﻿/* From Sign Up Page.html + auth */
    :root {
      --bg: #05060B;
      --panel: #0E1422;
      --panel-2: #131A2C;
      --border: rgba(96, 142, 220, 0.18);
      --border-strong: rgba(96, 142, 220, 0.4);
      --text: #E8EEF8;
      --text-dim: #8A95AE;
      --text-faint: #4A5670;
      --blue: #4A8BE8;
      --blue-deep: #1E3A6B;
      --blue-light: #7DB0F0;
      --amber: #F5A623;
      --green: #3FCB7E;
    }
    * { box-sizing: border-box; }
    html, body {
      margin: 0; padding: 0;
      background: var(--bg); color: var(--text);
      font-family: 'Inter', system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    body {
      background:
        radial-gradient(ellipse 600px 400px at 50% -10%, rgba(74, 139, 232, 0.18), transparent 70%),
        var(--bg);
      min-height: 100vh;
    }

    .wrap {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 20px 18px 32px;
      display: flex; flex-direction: column;
      gap: 20px;
    }

    .auth-centered {
      width: 100%;
      max-width: 460px;
      margin-left: auto;
      margin-right: auto;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .wrap > .headline,
    .wrap > .subhead {
      text-align: center;
    }
    .wrap > .subhead {
      margin: 0;
    }

    /* ── Brand row */
    .brand-row {
      display: flex; align-items: center; justify-content: space-between;
    }
    .brand { display: flex; align-items: center; gap: 10px; }
    .brand-row a.brand { color: inherit; text-decoration: none; }
    .brand-mark {
      width: 32px; height: 32px; border-radius: 8px;
      background: linear-gradient(135deg, var(--blue), var(--blue-deep));
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 16px rgba(74, 139, 232, 0.35);
    }
    .brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
    .signin-link {
      font-size: 13px; color: var(--blue-light);
      text-decoration: none; font-weight: 600;
    }

    /* ── Trust strip (live counter) */
    .live-pill {
      align-self: center;
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 12px; border-radius: 999px;
      background: rgba(63, 203, 126, 0.1);
      border: 1px solid rgba(63, 203, 126, 0.3);
      font-size: 12px; color: var(--green);
      font-weight: 500;
    }
    .live-pill .dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 8px var(--green);
      animation: pulse 1.6s ease-in-out infinite;
    }
    .live-pill .live-count {
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.03em;
      color: #6fe8b0;
      text-shadow: 0 0 12px rgba(63, 203, 126, 0.35);
    }
    .live-pill-below-title {
      margin: 2px auto 0;
      align-self: center;
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

    /* ── Hero */
    .hero { text-align: center; display: flex; flex-direction: column; gap: 8px; }
    .headline {
      font-size: 30px; font-weight: 800; line-height: 1.08;
      letter-spacing: -0.025em; margin: 0;
    }
    .headline .grad {
      background: linear-gradient(135deg, var(--blue) 0%, var(--amber) 100%);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .subhead {
      font-size: 14px; color: var(--text-dim); line-height: 1.5;
      margin: 0; padding: 0 8px;
    }

    /* ── 3-step row */
    .steps {
      display: grid; grid-template-columns: 1fr 1fr 1fr;
      gap: 8px;
    }
    .step {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 8px;
      text-align: center;
      display: flex; flex-direction: column; gap: 4px;
    }
    .step-num {
      font-family: 'Inter', sans-serif;
      font-size: 11px; color: var(--blue-light);
      font-weight: 700; letter-spacing: 0.1em;
    }
    .step-text {
      font-size: 13px; color: var(--text); font-weight: 600;
    }

    /* ── Form */
    .form-card {
      background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 22px 18px;
    }

    .form-title {
      font-size: 18px; font-weight: 700; margin: 0 0 4px;
      letter-spacing: -0.01em;
    }
    .form-sub {
      font-size: 13px; color: var(--text-dim); margin: 0 0 16px;
    }

    /* ── Social FIRST (mobile pattern that converts) */
    .socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
    .btn-social {
      padding: 13px; min-height: 50px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: inherit; font-size: 14px; font-weight: 600;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      -webkit-tap-highlight-color: transparent;
    }
    .btn-social:active { transform: scale(0.98); }
    .socials-google-only {
      grid-template-columns: 1fr !important;
    }

    .divider {
      display: flex; align-items: center; gap: 10px;
      margin: 14px 0;
      font-size: 11px; color: var(--text-faint);
      letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    }
    .divider::before, .divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }

    .field { margin-bottom: 12px; }
    form.auth-fields .field {
      margin-bottom: 22px;
    }
    form.auth-fields .btn-primary {
      margin-top: 10px;
    }
    .field input {
      width: 100%;
      padding: 15px 16px;
      min-height: 50px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: inherit; font-size: 16px;
      -webkit-appearance: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .field input:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(74, 139, 232, 0.2);
    }
    .field input::placeholder { color: var(--text-faint); }

    .btn-primary {
      width: 100%;
      padding: 16px 20px; min-height: 54px;
      border: none; border-radius: 11px;
      background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
      color: #fff;
      font-family: inherit; font-size: 16px; font-weight: 700;
      letter-spacing: 0.01em;
      cursor: pointer;
      box-shadow: 0 8px 24px rgba(74, 139, 232, 0.35);
      -webkit-tap-highlight-color: transparent;
      margin-top: 4px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-primary:active { transform: scale(0.98); }

    /* Sign-up wizard: Back + primary in one row */
    .signup-form-actions {
      display: flex;
      gap: 10px;
      align-items: stretch;
      margin-top: 4px;
    }
    .signup-form-actions .btn-text-back {
      flex: 0 0 auto;
      padding: 14px 12px;
      min-height: 54px;
      border: none;
      border-radius: 11px;
      background: transparent;
      color: var(--text-dim);
      font: inherit;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }
    .signup-form-actions .btn-text-back:hover { color: var(--text); filter: brightness(1.05); }
    .signup-form-actions .btn-primary {
      flex: 1;
      margin-top: 0;
      min-width: 0;
    }

    .terms {
      font-size: 11px; color: var(--text-faint);
      text-align: center; margin: 12px 0 0; line-height: 1.5;
    }
    .terms a { color: var(--text-dim); }

    /* ── Reviews */
    .reviews {
      display: flex; flex-direction: column; gap: 10px;
    }
    .reviews-header {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      font-size: 13px; color: var(--text-dim);
    }
    .reviews-header strong { color: var(--text); font-weight: 700; }
    .stars { color: var(--amber); letter-spacing: 1px; font-size: 13px; }
    .review-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px;
      display: flex; gap: 12px;
    }
    .review-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 13px; font-weight: 700;
    }
    .review-body { flex: 1; min-width: 0; }
    .review-meta {
      display: flex; align-items: center; gap: 8px;
      font-size: 12px; margin-bottom: 4px;
    }
    .review-name { font-weight: 600; color: var(--text); }
    .review-stars { color: var(--amber); letter-spacing: 0.5px; font-size: 11px; }
    .review-text { font-size: 13px; color: var(--text); line-height: 1.45; margin: 0; }

    /* ── FAQ */
    .faq {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .faq-item {
      border-bottom: 1px solid var(--border);
    }
    .faq-item:last-child { border-bottom: none; }
    .faq-q {
      width: 100%;
      padding: 14px 16px;
      background: transparent;
      border: none;
      color: var(--text);
      font-family: inherit; font-size: 14px; font-weight: 600;
      text-align: left;
      cursor: pointer;
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      -webkit-tap-highlight-color: transparent;
    }
    .faq-q .chev {
      transition: transform 0.2s;
      color: var(--text-dim);
      flex-shrink: 0;
    }
    .faq-item.open .faq-q .chev { transform: rotate(180deg); }
    .faq-a {
      max-height: 0; overflow: hidden;
      transition: max-height 0.25s ease, padding 0.25s ease;
      padding: 0 16px;
      font-size: 13px; color: var(--text-dim); line-height: 1.5;
    }
    .faq-item.open .faq-a {
      max-height: 200px;
      padding: 0 16px 14px;
    }

    /* ── Footer */
    .footer {
      text-align: center;
      font-size: 11px; color: var(--text-faint);
      padding: 8px 0 0;
      line-height: 1.6;
    }
    .footer a { color: var(--text-dim); text-decoration: none; }
    .footer .row { display: flex; justify-content: center; gap: 16px; margin-bottom: 4px; }

    /* ── Sticky bottom CTA on small screens */
    @media (max-width: 480px) {
      .wrap { padding-bottom: 80px; }
      .sticky-cta {
        position: fixed; bottom: 0; left: 0; right: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, transparent, rgba(5, 6, 11, 0.95) 30%);
        z-index: 50;
        pointer-events: none;
      }
      .sticky-cta button {
        pointer-events: auto;
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
        color: #fff;
        border: none; border-radius: 11px;
        font-family: inherit; font-size: 15px; font-weight: 700;
        box-shadow: 0 10px 30px rgba(74, 139, 232, 0.45);
        -webkit-tap-highlight-color: transparent;
      }
      .sticky-cta.hidden { display: none; }
    }
    @media (min-width: 481px) { .sticky-cta { display: none; } }

/* Auth + Firebase layout */
.auth-loading-overlay{position:fixed;inset:0;z-index:9999;background:#05060B;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}
.auth-loading-overlay .big-spinner{width:46px;height:46px;border:4px solid rgba(74,139,232,.25);border-top-color:var(--blue);border-radius:50%;animation:pulse-spin .7s linear infinite}
.auth-loading-overlay p{font-size:.95rem;color:var(--text-dim)}
@keyframes pulse-spin{to{transform:rotate(360deg)}}
.wrap{display:none;flex-direction:column}
.signin-link{cursor:pointer;background:none;border:none;font:inherit;padding:0}
.btn-primary:disabled{opacity:.55;cursor:not-allowed}
.stepper-row{display:flex;gap:8px;margin-bottom:14px}
.step-chip{flex:1;border:1px solid var(--border);border-radius:10px;padding:10px 8px;text-align:center;font-size:11px;color:var(--text-dim);background:rgba(0,0,0,.2)}
.step-chip.active{border-color:var(--blue);color:var(--text);background:rgba(74,139,232,.15)}
.field label{display:block;font-size:12px;font-weight:600;color:var(--text-dim);margin-bottom:6px}
.field-error{display:none;font-size:12px;color:#ff8a8a;margin-top:6px;line-height:1.3}
.field input.invalid{border-color:#ff6b6b!important}
.error-msg{display:none;margin:0 0 12px;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.4;background:rgba(255,80,80,.12);border:1px solid rgba(255,80,80,.35);color:#ff9a9a}
.ok-msg{display:none;margin:0 0 12px;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.4;background:rgba(63,203,126,.1);border:1px solid rgba(63,203,126,.35);color:var(--green)}
.btn-secondary{width:100%;margin-top:10px;padding:13px;border-radius:10px;border:1px solid var(--border);background:rgba(255,255,255,.04);color:var(--text);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.btn-secondary:disabled{opacity:.5;cursor:not-allowed}
.spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:pulse-spin .6s linear infinite;vertical-align:middle;margin-right:8px}
