.check-network-btn {
    background: #0a84ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,23,42,0.08);
    transition: background 0.18s, color 0.18s;
    z-index: 10;
}
.check-network-btn:hover, .check-network-btn:focus {
    background: #0665c2;
    color: #fff;
    outline: none;
}

.network-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.network-modal.hidden {
    display: none !important;
}
.network-modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 32px 28px 24px;
    min-width: 320px;
    max-width: 98vw;
    position: relative;
    text-align: center;
}
.network-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.15s;
}
.network-modal-close:hover, .network-modal-close:focus {
    background: #e0e7ef;
    color: #0a84ff;
    outline: none;
}
.network-modal-status {
    font-size: 1.1rem;
    margin-top: 18px;
    font-weight: 600;
}
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff url("https://beavertv.ca/wp-content/uploads/2025/03/cropped-watchingtv-scaled-1.jpg") center / cover no-repeat fixed;
    color: #1a1a1a;
}

.is-hidden {
    display: none !important;
}

.intro-choice,
.signup-flow {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid #d0d7de;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

body.signup-active .intro-choice {
    display: none !important;
}

body.signup-active #signupFlow {
    display: block !important;
    opacity: 1;
}

.intro-choice h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 2rem;
    text-align: center;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.choice-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #d0d7de;
    background-color: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.choice-card:hover,
.choice-card:focus {
    transform: translateY(-4px);
    border-color: #0a84ff;
    box-shadow: 0 18px 35px rgba(10, 132, 255, 0.28);
    outline: none;
}

.choice-card--primary {
    background-color: #0a84ff;
    color: #ffffff;
    border-color: #0a84ff;
}

.choice-card--primary:hover,
.choice-card--primary:focus {
    background-color: #0665c2;
    border-color: #0665c2;
    color: #ffffff;
}

.choice-title {
    font-size: 1.25rem;
}

.choice-description {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

.top-bar {
    background-color: #000000;
    padding: 20px 48px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar .brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.top-bar img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.35);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.login-btn:hover,
.login-btn:focus-visible {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.55);
    outline: none;
}

.signup-container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px 64px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.stepper .step {
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    background-color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.stepper .step.active {
    background-color: #0a84ff;
    border-color: #0a84ff;
    color: #ffffff;
}

.stepper .step.completed {
    background-color: #1f883d;
    border-color: #1f883d;
    color: #ffffff;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid currentColor;
    margin-bottom: 4px;
    font-weight: 600;
}

.step-panel {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.step-panel.hidden {
    display: none;
}

.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.province-option {
    padding: 16px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.province-option:hover,
.province-option.selected {
    border-color: #0a84ff;
    background-color: rgba(10, 132, 255, 0.08);
    color: #0a84ff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
}

.card.selected {
    border-color: #0a84ff;
    box-shadow: 0 10px 28px rgba(10, 132, 255, 0.25);
}

.card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.card .price {
    font-size: 1.5rem;
    font-weight: 700;
}

.card .meta {
    font-size: 0.9rem;
    color: #6b7280;
}

.card button {
    align-self: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    border-color: #0a84ff;
    color: #0a84ff;
}

.btn.primary {
    background-color: #0a84ff;
    border-color: #0a84ff;
    color: #ffffff;
}

.btn.primary:hover {
    background-color: #0665c2;
    border-color: #0665c2;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.status-message {
    font-size: 1.1rem;
    padding: 24px;
    background-color: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #94a3b8;
}

.status-message.success {
    border-color: #1f883d;
    background-color: #ecfdf3;
    color: #1f883d;
}

.status-message.error {
    border-color: #b42318;
    background-color: #fef3f2;
    color: #b42318;
}

.pick-pack-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.pick-pack-option {
    padding: 16px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    flex: 1 1 180px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pick-pack-option.selected {
    border-color: #0a84ff;
    background-color: rgba(10, 132, 255, 0.08);
}

.pick-channel-grid {
    margin-top: 24px;
}

.pick-channel-grid.hidden {
    display: none;
}

.pick-channel-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pick-channel {
    border: 1px solid #d0d7de;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pick-channel.selected {
    border-color: #1f883d;
    background-color: rgba(31, 136, 61, 0.1);
}

.pick-channel .channel-logo {
    flex-shrink: 0;
}

.pick-channel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-badge {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background-color: #f1f5f9;
    border: 1px solid #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-badge--small {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.pick-selection-status {
    margin-bottom: 12px;
    font-weight: 600;
}

.summary {
    display: grid;
    gap: 16px;
}

.summary-card {
    border: 1px solid #d0d7de;
    border-radius: 10px;
    padding: 16px;
    background-color: #f8fafc;
}

.summary-card h3 {
    margin-top: 0;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.summary-list li:last-child {
    border-bottom: none;
}

.channel-table {
    width: 100%;
    border-collapse: collapse;
}

.channel-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.channel-table tr:last-child {
    border-bottom: none;
}

.channel-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.channel-logo-cell {
    width: 56px;
    text-align: center;
}

.channel-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1f2937;
    overflow: hidden;
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.channel-logo.placeholder {
    background-color: #e0f2fe;
    color: #0369a1;
}

.channel-number-cell {
    width: 64px;
    font-weight: 600;
    color: #0f172a;
}

.channel-name-cell {
    color: #1f2937;
    font-weight: 500;
}

.activation-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row--split .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 768px) {
    .form-row--split {
        grid-template-columns: 1fr;
    }
}

.form-row input,
.form-row textarea,
.form-row select {
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
}

.form-row select {
    background-color: #fff;
    color: #0f172a;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}

.form-status {
    margin-top: 20px;
    font-weight: 600;
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #d0d7de;
}

.modal-body {
    padding: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    color: #6b7280;
}

.success-container {
    max-width: 720px;
    margin: 64px auto;
    padding: 0 24px 64px;
}

.success-panel h1 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 12px;
}

.success-panel .lead-message {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.success-links a {
    color: #0a84ff;
    font-weight: 600;
}

.success-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .stepper {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    .province-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
