* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* MEADOW — the storefront's look. One template colour (green by default) drives everything: buttons, prices,
   selection, and the soft background washes. app.js swaps it for a partner's own brand colour, so the whole page
   follows. --primary-blue = the colour as a FILL; --primary-text = the same colour deep enough to read as text on
   white; --on-primary = the text drawn on top of the fill (dark on light colours, white on dark ones). */
:root {
    --primary-blue: #22C55E;
    --primary-dark: #15A34A;
    --primary-text: #0F8A3F;
    --on-primary: #04230F;
    --ink: #0E1F16;
    --light-bg: #F7FAF6;
    --border-color: #E2E9E3;
    --text-dark: #14231A;
    --text-light: #5E6D63;
    --white: #ffffff;
    --success-green: #22C55E;
    --tint: color-mix(in srgb, var(--primary-blue) 8%, #ffffff);
    --tint-border: color-mix(in srgb, var(--primary-blue) 24%, #ffffff);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --glass: rgba(255, 255, 255, 0.78);
    --card-shadow: 0 1px 2px rgba(14, 31, 22, 0.04), 0 30px 70px -30px rgba(14, 60, 32, 0.28);
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-back {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* Pricing Page */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.pricing-cad {
    font-size: 0.85rem !important;
    margin-top: 0.4rem;
    opacity: 0.7;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    /* With a single plan, auto-fit stretches that one column to fill the
       whole 1200px container \xe2\x80\x94 an oversized, sparse-looking card. Cap and
       center it instead of letting it fill the row. */
    justify-content: center;
}

.pricing-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.15);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.billing-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

/* The winning option gets a highlighted border/glow on the whole row, not
   just a small corner label \xe2\x80\x94 a tiny pill was easy to miss entirely. */
.billing-option.is-best {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

.best-badge {
    position: absolute;
    top: -0.85rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.best-badge::before {
    content: "\2605";
    font-size: 0.85em;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.price-was {
    text-decoration: line-through;
    color: var(--text-light, #888);
    font-size: 0.85em;
}

.billing-option {
    position: relative;
    display: flex;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.billing-option:hover {
    border-color: var(--primary-blue);
    background-color: rgba(0, 82, 204, 0.02);
}

.billing-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.period {
    font-size: 0.95rem;
    color: var(--text-light);
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.featured-btn {
    background-color: var(--primary-blue);
    color: var(--white);
}

.featured-btn:hover {
    background-color: var(--primary-dark);
}

/* Checkout Page */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.checkout-main {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.checkout-main h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.checkout-main > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.btn-checkout {
    margin-top: 1rem;
}

.order-summary {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.order-summary h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.summary-item {
    margin-bottom: 1.5rem;
}

.summary-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.summary-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 0.5rem;
}

.summary-divider {
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
    padding-top: 1.5rem;
}

.summary-total {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Confirmation Page */
.confirmation-content {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.confirmation-box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    max-width: 500px;
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background-color: var(--success-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.confirmation-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.confirmation-box > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.id-display {
    background-color: var(--light-bg);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.id-display label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.id-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#user-id {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue);
    flex-grow: 1;
    word-break: break-all;
}

.btn-copy {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background-color: var(--primary-dark);
}

#confirmation-details {
    text-align: left;
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
}

.detail-value {
    font-weight: 500;
    color: var(--text-dark);
}

.confirmation-box .btn {
    margin-top: 1.5rem;
}

/* Account Selection Page */
.auth-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.auth-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.auth-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    font-weight: 600;
}

/* Account Creation Form */
.form-container {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-container > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.id-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.suggested-id {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    background-color: var(--light-bg);
}

.btn-small {
    padding: 0.75rem 1rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-small:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: rgba(0, 82, 204, 0.05);
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.error-text {
    color: #dc2626;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.warning-box {
    background-color: #fff8e1;
    border: 1px solid #ffd700;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.warning-box p {
    color: #7d5a00;
    font-size: 0.95rem;
    margin: 0;
}

/* Critical Warning */
.critical-warning {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.warning-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.warning-content h3 {
    font-size: 1.1rem;
    color: #dc2626;
    margin: 0 0 0.5rem 0;
}

.warning-content p {
    color: #991b1b;
    margin: 0;
    font-weight: 500;
}

/* ID Display */
.id-display {
    background-color: var(--light-bg);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.id-display label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.id-display.compact {
    padding: 1rem;
    margin: 1rem 0;
}

.id-display.prominent {
    background-color: #f0f7ff;
    border: 2px solid var(--primary-blue);
    padding: 2rem;
    margin: 2rem 0;
}

.id-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.id-box.large {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
}

.id-value {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
    word-break: break-all;
}

.id-box.large .id-value {
    border: none;
    padding: 1rem;
    background-color: transparent;
    font-size: 1.4rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-blue);
}

.confirmation-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 1rem 0;
}

/* PIN Verification */
#pin-verification-page .form-container {
    max-width: 450px;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .confirmation-box {
        padding: 1.5rem;
    }

    .pricing-header h2 {
        font-size: 1.75rem;
    }

    .header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn-back {
        width: 100%;
        text-align: center;
    }

    .auth-options {
        grid-template-columns: 1fr;
    }

    .auth-divider {
        display: none;
    }

    .critical-warning {
        flex-direction: column;
    }

    .id-input-group {
        flex-direction: column;
    }

    .btn-small {
        width: 100%;
    }
}

/* ========================================
   PIN GATE (CONFIRMATION PAGE)
   ======================================== */

.pin-gate {
    text-align: center;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pin-gate-msg {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pin-gate-sub {
    font-size: 0.88rem;
    color: var(--text-light);
    max-width: 320px;
}

.pin-gate-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pin-gate-input input {
    width: 130px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.15em;
    outline: none;
    transition: border-color 0.2s;
}

.pin-gate-input input:focus {
    border-color: var(--primary-blue);
}


/* ========================================
   CHAT WIDGET
   ======================================== */

#chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 82, 204, 0.4);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.5);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
    animation: chatSlideIn 0.25s ease;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#chat-header {
    background: var(--primary-blue);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.chat-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
    line-height: 1;
}

.chat-close-btn:hover { opacity: 1; }

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f9fc;
}

.chat-msg {
    display: flex;
    max-width: 82%;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg.assistant {
    align-self: flex-start;
}

.chat-msg span {
    display: block;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-msg.user span {
    background: var(--primary-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-msg.assistant span {
    background: white;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.chat-msg.typing span {
    background: white;
    color: var(--text-light);
    font-style: italic;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#chat-escalated-notice {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
    border-top: none;
    padding: 14px 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#chat-escalated-notice p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.chat-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #4f9cf9;
    color: white;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(79, 156, 249, 0.35);
}

.chat-call-btn:hover {
    background: #3a8ef0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 156, 249, 0.45);
}

.chat-call-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

#chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    background: white;
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

#chat-input:focus {
    border-color: var(--primary-blue);
}

#chat-send-btn {
    width: 38px;
    height: 38px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

#chat-send-btn:hover {
    background: var(--primary-dark);
}

#chat-send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #chat-window {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    #chat-bubble {
        bottom: 16px;
        right: 16px;
    }
}

/* ========================================
   SQUARE PAYMENT STYLES
   ======================================== */

#sq-web-payments-container {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
}

#sq-error-message {
    padding: 12px;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    font-size: 14px;
}

.confirmation-details {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.copy-row {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.copy-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.copy-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-all;
}

.copy-btn {
    flex-shrink: 0;
    padding: 5px 12px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: var(--primary-hover);
}

.detail-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.detail-row span {
    color: var(--text-dark);
    text-align: right;
    flex: 1;
}

/* ============================================================
   MULTI-ACCOUNT BUNDLE STYLES
   ============================================================ */

.account-row {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.account-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.account-row-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.btn-remove {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
}

.btn-remove:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.bundle-actions {
    margin: 4px 0 16px;
}

.discount-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
}

/* Price breakdown under account rows */
.price-breakdown {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0 16px;
    background: #fff;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
    border-bottom: none;
}

.price-total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 2px solid var(--border-color) !important;
}

/* Credential cards on confirmation page */
.credential-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.credential-card h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

/* Found accounts (renewal phase 2) */
.found-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
}

.found-account-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.found-nickname {
    font-size: 0.8rem;
    color: #888;
    margin-left: 6px;
}

.found-account-price {
    font-size: 0.85rem;
    color: #555;
}

.found-accounts-msg {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.btn-link {
    background: none;
    border: none;
    color: #0052CC;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 0;
    display: block;
    margin-top: 8px;
    text-decoration: underline;
}

/* ── Chat polish ─────────────────────────────────────────────────────────── */
#chat-bubble { width: 60px; height: 60px; background: linear-gradient(135deg, #1a6bff, #0052CC); box-shadow: 0 10px 28px rgba(0, 82, 204, 0.35), 0 2px 6px rgba(15, 23, 42, 0.12); }
#chat-bubble:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(0, 82, 204, 0.42), 0 3px 8px rgba(15, 23, 42, 0.14); }
#chat-window { width: 380px; height: min(560px, calc(100vh - 110px)); border-radius: 22px; border: 1px solid rgba(15, 23, 42, 0.06); box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25), 0 4px 14px rgba(15, 23, 42, 0.08); }
#chat-header { background: linear-gradient(135deg, #1a6bff 0%, #0052CC 55%, #0a3fa8 100%); padding: 18px 20px; }
.chat-avatar { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); letter-spacing: 0.03em; }
.chat-title { font-size: 1rem; letter-spacing: 0.01em; }
.chat-subtitle { display: flex; align-items: center; gap: 6px; }
.chat-subtitle::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.chat-close-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; opacity: 1; transition: background 0.15s; }
.chat-close-btn:hover { background: rgba(255, 255, 255, 0.26); }
#chat-messages { background: #f3f5fa; padding: 20px 16px; gap: 12px; }
.chat-msg { max-width: 86%; }
.chat-msg span { padding: 11px 15px; border-radius: 18px; font-size: 0.92rem; line-height: 1.5; }
.chat-msg.assistant span { border: 1px solid #e6eaf3; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.chat-msg.user span { background: linear-gradient(135deg, #1a6bff, #0052CC); border-bottom-right-radius: 6px; box-shadow: 0 2px 6px rgba(0, 82, 204, 0.25); }
#chat-quick { padding: 10px 14px 2px; background: #fff; border-top: 1px solid #eef1f7; display: flex; gap: 8px; flex-wrap: wrap; }
.chat-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #d9e2f4; border-radius: 12px; background: #fff; color: #17306b; font-family: inherit; font-size: 0.8rem; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s; }
.chat-chip svg { width: 15px; height: 15px; color: #0052CC; flex: none; }
.chat-chip:hover { border-color: #0052CC; background: #f5f8ff; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 82, 204, 0.12); }
#chat-input-area { padding: 12px 14px 14px; background: #fff; gap: 10px; border-top: 0; }
#chat-input { background: #f3f5fa; border: 1px solid transparent; border-radius: 999px; padding: 12px 18px; font-size: 0.92rem; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
#chat-input:focus { outline: none; background: #fff; border-color: #0052CC; box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.12); }
#chat-send-btn { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #1a6bff, #0052CC); box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3); transition: transform 0.15s, box-shadow 0.15s; }
@media (max-width: 480px) {
    #chat-window { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
}
#chat-send-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 82, 204, 0.38); }

/* ── My account details page ─────────────────────────────────────────────── */
.details-wrap { max-width: 620px; margin: 0 auto 4rem; }
.details-panel { background: var(--white); border: 1px solid #e6eaf3; border-radius: 20px; padding: 2.25rem 2rem; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); text-align: center; }
.details-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #eaf1ff; color: #0052CC; }
.details-icon svg { width: 28px; height: 28px; }
.details-wrap h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 0.4rem; }
.details-sub { color: var(--text-light); font-size: 0.95rem; margin: 0 0 1.25rem; }
.details-panel form { text-align: left; }
.details-panel label { display: block; font-size: 0.82rem; font-weight: 600; color: #334155; margin: 0.9rem 0 0.35rem; }
.details-panel input { width: 100%; box-sizing: border-box; padding: 0.8rem 1rem; border: 1px solid #d5dcea; border-radius: 12px; font-size: 1rem; background: #fbfcff; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.details-panel input:focus { outline: none; border-color: #0052CC; background: #fff; box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.12); }
.details-error { min-height: 1.3em; margin: 0.7rem 0 0.4rem; color: #b91c1c; font-size: 0.88rem; }
.details-panel .btn { border-radius: 12px; padding: 0.9rem 1.5rem; }
.details-foot { color: #64748b; font-size: 0.8rem; text-align: center; margin: 1.25rem 0 0; }
.details-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.details-top .details-sub { margin: 0; }
.details-renew { margin-top: 1.25rem; border-radius: 12px; }

.acct-card { background: var(--white); border: 1px solid #e6eaf3; border-radius: 20px; padding: 1.5rem 1.5rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.acct-title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.acct-pill { font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.acct-pill.ok { background: #e7f8ef; color: #0b7a43; }
.acct-pill.warn { background: #fff4e0; color: #a35a00; }
.acct-pill.bad { background: #fde8e8; color: #b42318; }
.acct-expiry { margin: 0.35rem 0 1rem; color: #64748b; font-size: 0.88rem; }
.acct-fields { display: grid; gap: 0.75rem; }
.acct-field { background: #f6f8fc; border: 1px solid #edf0f7; border-radius: 14px; padding: 0.7rem 0.85rem; }
.acct-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 0.3rem; }
.acct-line { display: flex; align-items: center; gap: 0.5rem; }
.acct-value { flex: 1; min-width: 0; font: 0.9rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #0f172a; word-break: break-all; background: none; padding: 0; }
.acct-btn { flex: none; border: 1px solid #d5dcea; background: #fff; color: #17306b; font-family: inherit; font-size: 0.78rem; font-weight: 600; line-height: 1; padding: 0.5rem 0.8rem; border-radius: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.acct-btn:hover { border-color: #0052CC; background: #f5f8ff; }
.acct-btn.copy-btn { background: #0052CC; border-color: #0052CC; color: #fff; }
.acct-btn.copy-btn:hover { background: #003D99; border-color: #003D99; }
.acct-btn.ghost { color: #475569; }
@media (max-width: 520px) {
    .details-panel { padding: 1.75rem 1.25rem; border-radius: 16px; }
    .acct-card { padding: 1.15rem 1rem; border-radius: 16px; }
    .acct-line { flex-wrap: wrap; }
    .acct-value { flex-basis: 100%; }
    .details-top { flex-direction: column; }
}

/* ── Details page + chat side by side ────────────────────────────────────── */
@media (min-width: 1000px) {
    body.on-details.chat-open #details-page .container { padding-right: 420px; }
}
@media (max-width: 999px) {
    /* Narrower screens: the chat becomes a bottom sheet so the details stay visible above it. */
    body.on-details.chat-open #chat-window { left: 0; right: 0; bottom: 0; width: 100%; height: 44vh; border-radius: 20px 20px 0 0; }
    body.on-details.chat-open #details-page { padding-bottom: 46vh; }
}

/* Version stamp */
.site-version { text-align: center; font-size: 0.7rem; color: #9aa4b2; padding: 1.5rem 0 2rem; letter-spacing: 0.04em; user-select: none; }

/* Orders-paused notice (shown instead of the card form) */
.orders-paused { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; border: 1px solid #f3d9a4; background: #fff8e8; border-radius: 12px; color: #7a4b00; font-size: 0.92rem; margin-bottom: 1rem; }
.orders-paused strong { font-size: 1rem; }

/* ── Inline messages (replace the browser's alert box) ───────────────────── */
#app-toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -140%); width: min(560px, calc(100% - 24px)); z-index: 2000; display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; background: #fff; border: 1px solid #f0c4c4; border-left: 4px solid #e53e3e; border-radius: 12px; box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18); font-size: 0.92rem; color: #1a1a1a; opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; pointer-events: none; }
#app-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#app-toast .app-toast-text { flex: 1; line-height: 1.45; }
#app-toast button { background: none; border: none; color: #64748b; font-size: 1rem; cursor: pointer; padding: 0 0.2rem; line-height: 1; }
#app-toast button:hover { color: #1a1a1a; }

/* ── "Before you go" block on the confirmation page ─────────────────────── */
.next-steps { text-align: left; margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: #f5f8ff; border: 1px solid #dfe8fb; border-radius: 14px; }
.next-steps h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.next-steps ul { margin: 0; padding-left: 1.15rem; }
.next-steps li { margin: 0.45rem 0; font-size: 0.9rem; line-height: 1.5; color: #334155; }

/* "Forgot your nickname or PIN?" help on the account search */
.forgot-link { display: inline-block; margin-top: 0.75rem; font-size: 0.88rem; }
.forgot-help { margin-top: 0.75rem; padding: 0.9rem 1rem; background: #f5f8ff; border: 1px solid #dfe8fb; border-radius: 12px; font-size: 0.9rem; color: #334155; text-align: left; }
.forgot-help p { margin: 0 0 0.4rem; }
.forgot-help ol { margin: 0.3rem 0 0.6rem; padding-left: 1.2rem; }
.forgot-help li { margin: 0.25rem 0; line-height: 1.45; }
.forgot-help .forgot-note { font-size: 0.82rem; color: #64748b; margin: 0; }

/* ── ZippyCast opt-in + code card ───────────────────────────────────────── */
.zippy-optin { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.85rem 1rem; margin: 0.9rem 0; border: 1px solid #dfe8fb; background: #f5f8ff; border-radius: 12px; cursor: pointer; font-size: 0.9rem; color: #1f2a44; }
.zippy-optin input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.zippy-optin small { color: #5a6784; line-height: 1.45; }
.zippy-card { margin-top: 0.9rem; padding: 0.9rem 1rem; border: 1px solid #dfe8fb; background: #f5f8ff; border-radius: 12px; text-align: left; }
.zippy-title { font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; }
.zippy-code { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.35rem; letter-spacing: 0.06em; }
.zippy-link { display: inline-block; margin: 0.45rem 0; font-weight: 600; }
.zippy-card p { margin: 0.3rem 0 0; font-size: 0.82rem; color: #5a6784; line-height: 1.45; }

/* Owner-only test plan card */
.test-plan-card { max-width: 440px; margin: 1.25rem auto 0; padding: 1rem 1.15rem; border: 1px dashed #b7c7ee; background: #f7f9ff; border-radius: 14px; text-align: left; }
.test-plan-card p { margin: 0.4rem 0 0.7rem; font-size: 0.88rem; color: #475569; line-height: 1.45; }
.test-plan-badge { font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; background: #e7f0ff; color: #0052CC; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 0.35rem; }

/* Partner branding (Hub): the brand name stays hidden until the page knows which partner it is, so a partner's
   customers never see another brand flash first. Shown after 2 s regardless, in case the server can't be reached. */
.brand-pending .brand-name { visibility: hidden; animation: brand-reveal 0s 2s forwards; }
@keyframes brand-reveal { to { visibility: visible; } }
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }

/* ============================================================================================================
   MEADOW — the look layer. Everything above is structure; this block carries colour, depth and type.
   To retune later: change the tokens in :root (top of file). This block rarely needs touching.
   ============================================================================================================ */

/* ── Atmosphere: soft washes of the template colour, fixed behind the page ── */
html, body { background-color: var(--light-bg); }
body {
    min-height: 100vh;
    position: relative; z-index: 0; /* own stacking context, so the wave layers below sit above the page colour */
    background-image:
        radial-gradient(62rem 42rem at 108% -12%, color-mix(in srgb, var(--primary-blue) 34%, transparent), transparent 62%),
        radial-gradient(54rem 38rem at -18% 108%, color-mix(in srgb, var(--primary-blue) 26%, transparent), transparent 60%),
        radial-gradient(40rem 30rem at 38% 42%, rgba(255, 255, 255, 0.95), transparent 70%);
    background-attachment: fixed;
    color: var(--text-dark);
}
body::before, body::after {
    content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
}
body::before { /* the sweeping wave across the bottom-left */
    left: -30vw; bottom: -34vh; width: 100vw; height: 62vh;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--primary-blue) 26%, transparent) 0%, color-mix(in srgb, var(--primary-blue) 10%, transparent) 55%, transparent 100%);
    transform: rotate(-9deg);
}
body::after { /* the glow at the top-right */
    right: -20vw; top: -30vh; width: 72vw; height: 66vh;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--primary-blue) 30%, transparent) 0%, color-mix(in srgb, var(--primary-blue) 10%, transparent) 55%, transparent 100%);
}

/* ── Header: floats on the atmosphere ── */
.header { background: transparent; border-bottom: 0; padding: 1.6rem 2.5rem; margin-bottom: 0; }
.logo { width: 42px; height: 42px; }
.header h1 { font-family: 'Inter', sans-serif; font-weight: 650; font-size: 1.3rem; letter-spacing: -0.015em; color: var(--ink); }
.btn-back { color: var(--text-dark); background: var(--glass); border: 1px solid var(--border-color); border-radius: 999px; padding: .55rem 1.1rem; backdrop-filter: blur(10px); }
.btn-back:hover { color: var(--primary-text); border-color: var(--tint-border); }

/* ── Type: serif display for headlines, Inter for everything else ── */
h2, h3, .pricing-card h3, .checkout-main h2, .confirmation-box h2, .auth-container h2, .form-container h2, .details-wrap h2 {
    font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}

/* ── Pricing hero: promise on the left, decision on the right ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: calc(100vh - 120px); padding: 1rem 0 4rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-text); background: var(--glass); border: 1px solid var(--tint-border); padding: .4rem .9rem; border-radius: 999px; backdrop-filter: blur(8px); }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-blue) 25%, transparent); }
.hero-copy h2 { font-size: clamp(2.8rem, 5.6vw, 4.6rem); font-weight: 650; line-height: 1.0; letter-spacing: -0.035em; margin: 1.2rem 0 1.1rem; }
.hero-lede { font-size: 1.18rem; line-height: 1.55; color: var(--text-light); max-width: 40ch; }
.benefits { list-style: none; display: grid; gap: 1.2rem; margin: 2.4rem 0 2.2rem; padding: 0; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary-text); border: 1px solid var(--tint-border); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--primary-blue) 60%, transparent); }
.benefit b { display: block; font-size: 1rem; font-weight: 650; color: var(--ink); margin-top: .1rem; }
.benefit > div > span { display: block; color: var(--text-light); font-size: .93rem; line-height: 1.45; margin-top: .15rem; }
.renew-link { background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; color: var(--text-light); cursor: pointer; }
.renew-link u { color: var(--primary-text); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.renew-link:hover u { color: var(--ink); }
.hero-plan .pricing-grid { display: block; margin: 0; }

/* ── The plan card: frosted glass, floating ── */
.pricing-card { max-width: 520px; margin: 0 0 0 auto; background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 30px; padding: 2.4rem 2.3rem 2rem; box-shadow: var(--card-shadow), inset 0 1px 0 #fff; }
.pricing-card:hover { transform: none; box-shadow: var(--card-shadow), inset 0 1px 0 #fff; }
.pricing-card h3 { font-size: 2.1rem; font-weight: 650; margin-bottom: .35rem; }
.card-desc { color: var(--text-light); font-size: .95rem; margin-bottom: 1.4rem; }
.billing-options { gap: .8rem; margin: 1.4rem 0 1.6rem; }
.billing-option { align-items: center; padding: 1.1rem 1.25rem; border: 1.5px solid var(--border-color); border-radius: 18px; background: #fff; transition: border-color .18s, box-shadow .18s, background .18s, transform .18s; }
.billing-option:hover { border-color: color-mix(in srgb, var(--primary-blue) 45%, var(--border-color)); background: #fff; transform: translateY(-1px); }
.billing-option.is-best { border: 1.5px solid var(--border-color); background: #fff; box-shadow: none; }
.billing-option:has(input:checked), .billing-option.is-best:has(input:checked) {
    border-color: var(--primary-blue); background: var(--tint);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-blue) 16%, transparent), 0 12px 26px -16px color-mix(in srgb, var(--primary-blue) 70%, transparent);
}
.billing-option input[type="radio"] { width: 1.2rem; height: 1.2rem; margin-right: 1rem; accent-color: var(--primary-dark); flex: none; }
.period-wrap { display: flex; flex-direction: column; gap: .1rem; }
.period { font-size: 1.04rem; font-weight: 600; color: var(--ink); }
.price-sub { font-size: .78rem; color: var(--text-light); }
.price-sub b { color: var(--primary-text); font-weight: 650; }
.price { font-family: 'Inter', sans-serif; font-size: 1.45rem; font-weight: 750; letter-spacing: -0.02em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.price-was { font-size: .95rem; color: #9AA69E; }
.best-badge { left: auto; right: 1.2rem; top: -0.8rem; background: color-mix(in srgb, var(--primary-dark) 55%, #062414); color: #fff; border-radius: 999px; font-size: .68rem; letter-spacing: .08em; padding: .32rem .75rem; box-shadow: 0 6px 14px -6px rgba(6, 36, 20, .55); }
.best-badge::before { color: color-mix(in srgb, var(--primary-blue) 70%, #fff); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; font-size: .8rem; color: var(--text-light); }

/* ── Buttons ── */
.btn { border-radius: 16px; }
.btn-primary, .featured-btn {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-blue) 86%, #ffffff), var(--primary-dark));
    color: var(--on-primary); font-weight: 700; font-size: 1.05rem; padding: 1.05rem 1.5rem;
    box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--primary-blue) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-primary:hover:not(:disabled), .featured-btn:hover { background: linear-gradient(180deg, var(--primary-blue), var(--primary-dark)); transform: translateY(-1px); filter: saturate(1.08); color: var(--on-primary); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: #fff; color: var(--primary-text); border: 1.5px solid var(--tint-border); border-radius: 16px; }
.btn-secondary:hover { background: var(--tint); border-color: var(--primary-blue); }
.btn-copy, .btn-small, .copy-btn, .acct-btn.copy-btn { background: var(--primary-blue); border-color: var(--primary-blue); color: var(--on-primary); font-weight: 650; border-radius: 10px; }
.btn-copy:hover, .btn-small:hover, .copy-btn:hover, .acct-btn.copy-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--on-primary); }
.btn-link, #user-id, .id-value, .summary-price, .chat-chip svg, .details-icon, .test-plan-badge { color: var(--primary-text); }

/* ── Every other step gets the same floating glass card ── */
.auth-container, .form-container, .checkout-main, .order-summary, .confirmation-box, .details-panel, .acct-card {
    background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 26px; box-shadow: var(--card-shadow), inset 0 1px 0 #fff;
}
.auth-container, .form-container { padding: 2.6rem 2.4rem; margin-top: 1rem; }
.auth-container h2, .form-container h2, .checkout-main h2, .confirmation-box h2, .details-wrap h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 650; }
.checkout-container { padding-top: 1rem; }
.order-summary { top: 1.5rem; }
.summary-price { font-family: 'Inter', sans-serif; font-weight: 750; letter-spacing: -0.02em; }
.success-checkmark { background: linear-gradient(180deg, var(--primary-blue), var(--primary-dark)); color: var(--on-primary); box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--primary-blue) 80%, transparent); }

/* ── Forms ── */
.form-group input, .form-group select, .details-panel input, .pin-gate-input input, #pin-modal-input {
    border-radius: 14px; border: 1.5px solid var(--border-color); background: #fff; padding: .85rem 1rem; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .details-panel input:focus, .pin-gate-input input:focus {
    outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-blue) 18%, transparent);
}
.details-panel label, .form-group label { color: var(--text-dark); font-weight: 600; }
.details-icon { background: var(--tint); }
.acct-field { background: #fff; border-color: var(--border-color); border-radius: 14px; }
.acct-value { color: var(--ink); }
.acct-label, .acct-expiry, .details-foot { color: var(--text-light); }
.acct-btn { border-color: var(--border-color); color: var(--text-dark); border-radius: 10px; }
.acct-btn:hover { border-color: var(--primary-blue); background: var(--tint); }

/* ── Info panels: soft tint of the template colour ── */
.next-steps, .forgot-help, .zippy-optin, .zippy-card, .id-display.prominent { background: var(--tint); border-color: var(--tint-border); }
.id-display.prominent { border-color: var(--primary-blue); border-radius: 18px; }
.next-steps li, .forgot-help, .zippy-optin { color: var(--text-dark); }
.forgot-help .forgot-note, .zippy-optin small, .zippy-card p { color: var(--text-light); }
.test-plan-card { max-width: 520px; margin: 1.2rem 0 0 auto; background: var(--glass); border: 1px dashed var(--tint-border); border-radius: 20px; backdrop-filter: blur(12px); }
.test-plan-badge { background: var(--tint); }
.found-account-row, .account-row, .price-breakdown, .credential-card { border-radius: 16px; background: #fff; border-color: var(--border-color); }
.discount-badge { background: var(--tint); color: var(--primary-text); }

/* ── Chat ── */
#chat-bubble { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-blue) 86%, #fff), var(--primary-dark)); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--primary-blue) 75%, transparent); }
#chat-bubble svg, #chat-send-btn svg, .chat-call-btn svg { fill: var(--on-primary); }
#chat-header, #chat-escalated-notice { background: linear-gradient(135deg, color-mix(in srgb, var(--primary-dark) 45%, #06170D) 0%, #06170D 100%); }
.chat-avatar { background: color-mix(in srgb, var(--primary-blue) 22%, transparent); border-color: color-mix(in srgb, var(--primary-blue) 50%, transparent); color: #fff; }
.chat-subtitle::before { background: var(--primary-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-blue) 30%, transparent); }
#chat-messages { background: var(--light-bg); }
.chat-msg.assistant span { border-color: var(--border-color); }
.chat-msg.user span { background: var(--primary-blue); color: var(--on-primary); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--primary-blue) 70%, transparent); }
.chat-chip { border-color: var(--border-color); color: var(--text-dark); }
.chat-chip:hover { border-color: var(--primary-blue); background: var(--tint); box-shadow: none; }
#chat-input:focus { border-color: var(--primary-blue); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-blue) 18%, transparent); }
#chat-send-btn { background: var(--primary-blue); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary-blue) 70%, transparent); }
#chat-send-btn:hover:not(:disabled) { background: var(--primary-dark); }
.chat-call-btn { background: var(--primary-blue); color: var(--on-primary); box-shadow: none; }
.chat-call-btn:hover { background: var(--primary-dark); }

.site-version { color: #A2ADA5; }
:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 2px; }

/* ── Phones ── */
@media (max-width: 900px) {
    /* Phones/tablets: headline → plans → reasons. The decision comes before the selling points. */
    .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: .5rem; }
    .hero-copy { display: contents; }
    .hero-eyebrow { order: 1; justify-self: start; }
    .hero-copy h2 { order: 2; }
    .hero-lede { order: 3; max-width: none; margin-bottom: 1.6rem; }
    .hero-plan { order: 4; }
    .benefits { order: 5; margin-top: 2.4rem; }
    .renew-link { order: 6; justify-self: start; margin-bottom: 2rem; }
    .pricing-card, .test-plan-card { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
    .header { padding: 1.1rem 1.25rem; }
    .container { padding: 0 1.1rem; }
    .pricing-card { padding: 1.8rem 1.25rem 1.5rem; border-radius: 24px; }
    .hero-copy h2 { font-size: 2.7rem; margin: 1rem 0 .8rem; }
    .hero-lede { font-size: 1.05rem; }
    .benefits { gap: 1rem; margin: 1.8rem 0 1.6rem; }
    .auth-container, .form-container { padding: 1.8rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .billing-option, .btn-primary { transition: none; } }
