:root {
      --bg: #070711;
      --bg-soft: #11101f;
      --panel: rgba(18, 17, 34, 0.76);
      --panel-strong: rgba(13, 12, 26, 0.94);
      --line: rgba(255, 255, 255, 0.12);
      --line-gold: rgba(239, 205, 132, 0.34);
      --text: #f7f2e8;
      --muted: #b7b1c3;
      --gold: #efcd84;
      --gold-2: #ffe9b6;
      --violet: #a78bfa;
      --pink: #f0a5d8;
      --cyan: #7dd3fc;
      --success: #8ce6bc;
      --danger: #ff9b9b;
      --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
      --radius-xl: 32px;
      --radius-lg: 22px;
      --radius-md: 15px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      background:
        radial-gradient(circle at 15% 8%, rgba(167, 139, 250, 0.15), transparent 29%),
        radial-gradient(circle at 87% 13%, rgba(240, 165, 216, 0.13), transparent 25%),
        radial-gradient(circle at 50% 86%, rgba(239, 205, 132, 0.10), transparent 34%),
        var(--bg);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: 0.38;
      background-image:
        radial-gradient(circle at 12% 25%, rgba(255,255,255,.72) 0 1px, transparent 1.4px),
        radial-gradient(circle at 72% 18%, rgba(255,255,255,.55) 0 1px, transparent 1.4px),
        radial-gradient(circle at 83% 66%, rgba(255,255,255,.48) 0 1px, transparent 1.4px),
        radial-gradient(circle at 32% 77%, rgba(255,255,255,.42) 0 1px, transparent 1.4px);
      background-size: 160px 160px, 210px 210px, 250px 250px, 190px 190px;
      z-index: -1;
    }

    button, input, select { font: inherit; }
    button { cursor: pointer; }
    a { color: inherit; }

    .shell {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(18px);
      background: rgba(7, 7, 17, 0.66);
      border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .topbar-inner {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      letter-spacing: .15em;
      text-transform: uppercase;
      font-weight: 760;
      font-size: .84rem;
    }

    .brand-mark {
      width: 38px;
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      border-radius: 50%;
      border: 1px solid rgba(239,205,132,.55);
      color: var(--gold);
      box-shadow: 0 0 28px rgba(239,205,132,.18), inset 0 0 18px rgba(239,205,132,.08);
      position: relative;
    }

    .brand-mark::before,
    .brand-mark::after {
      content: "";
      position: absolute;
      inset: 7px;
      border: 1px solid rgba(167,139,250,.55);
      transform: rotate(45deg);
    }

    .brand-mark::after { transform: rotate(0deg) scale(.68); border-color: rgba(240,165,216,.45); }
    .brand-sub { color: var(--muted); font-weight: 500; letter-spacing: .15em; }

    .mini-link {
      border: 1px solid var(--line);
      background: rgba(255,255,255,.035);
      color: var(--muted);
      border-radius: 999px;
      padding: 9px 14px;
      text-decoration: none;
      font-size: .84rem;
      transition: .25s ease;
    }
    .mini-link:hover { color: var(--text); border-color: var(--line-gold); transform: translateY(-1px); }

    .hero {
      min-height: calc(100vh - 72px);
      display: grid;
      place-items: center;
      padding: 82px 0 64px;
      position: relative;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.06fr .94fr;
      gap: 52px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: .22em;
      font-size: .75rem;
      font-weight: 760;
      margin-bottom: 20px;
    }
    .eyebrow::before { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      margin-bottom: 24px;
      font-family: Times New Roman;
      font-size: clamp(3.25rem, 7vw, 6.8rem);
      line-height: 1.2;
      font-weight: 500;
      letter-spacing: 0.015em;
    }

    .aurora-text {
      background: linear-gradient(105deg, #fff 5%, var(--gold-2) 35%, #dfd3ff 63%, #ffcde9 90%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      /*filter: drop-shadow(0 0 35px rgba(239,205,132,.12));*/
    }

    .intro {
      max-width: 720px;
      color: #d9d4e0;
      font-size: clamp(1rem, 1.65vw, 1.15rem);
    }
    .intro strong { color: var(--text); font-weight: 700; }

    .hero-quote {
      margin-top: 34px;
      padding-left: 18px;
      border-left: 1px solid var(--line-gold);
      color: var(--muted);
      font-style: italic;
    }

    .portal-wrap {
      position: relative;
      min-height: 530px;
      display: grid;
      place-items: center;
      isolation: isolate;
    }

    .portal {
      width: min(430px, 86vw);
      aspect-ratio: 1;
      border-radius: 50%;
      position: relative;
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle, rgba(255,255,255,.12) 0 4%, transparent 5% 22%, rgba(167,139,250,.13) 23% 34%, transparent 35% 48%, rgba(239,205,132,.09) 49% 56%, transparent 57%),
        rgba(255,255,255,.015);
      box-shadow: inset 0 0 80px rgba(167,139,250,.12), 0 0 90px rgba(167,139,250,.15);
    }

    .portal::before,
    .portal::after {
      content: "";
      position: absolute;
      inset: 7%;
      border-radius: 50%;
      border: 1px solid rgba(239,205,132,.38);
      box-shadow: 0 0 35px rgba(239,205,132,.16), inset 0 0 34px rgba(239,205,132,.12);
      animation: spin 30s linear infinite;
    }
    .portal::after {
      inset: 18%;
      border-style: dashed;
      border-color: rgba(167,139,250,.48);
      animation-direction: reverse;
      animation-duration: 22s;
    }

    .portal-core {
      width: 42%;
      aspect-ratio: 1;
      border-radius: 50%;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 20px;
      color: var(--gold-2);
      font-family: Times New Roman;
      font-size: 1.2rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      background: radial-gradient(circle, rgba(239,205,132,.23), rgba(167,139,250,.08) 56%, transparent 72%);
      border: 1px solid rgba(255,255,255,.1);
      box-shadow: 0 0 60px rgba(239,205,132,.22);
      z-index: 2;
    }

    .orbit {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      animation: spin 18s linear infinite;
      z-index: 1;
    }
    .orbit:nth-child(2) { animation-duration: 26s; animation-direction: reverse; transform: rotate(65deg); }
    .orbit:nth-child(3) { animation-duration: 34s; transform: rotate(140deg); }
    .orb {
      position: absolute;
      top: 3%;
      left: 50%;
      width: 9px;
      aspect-ratio: 1;
      border-radius: 50%;
      background: var(--gold-2);
      box-shadow: 0 0 18px 5px rgba(239,205,132,.38);
    }
    .orbit:nth-child(2) .orb { top: 17%; left: 8%; background: #c5b3ff; box-shadow: 0 0 18px 5px rgba(167,139,250,.35); }
    .orbit:nth-child(3) .orb { top: 77%; left: 86%; background: #ffc6e8; box-shadow: 0 0 18px 5px rgba(240,165,216,.33); }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes pulse { 50% { opacity: .45; transform: scale(.96); } }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes shimmer { to { background-position: 200% center; } }

    .section { padding: 84px 0; }
    .section-head { max-width: 780px; margin-bottom: 34px; }
    .section-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 760; }
    .section-title {
      margin: 10px 0 14px;
      font-family: Times New Roman;
      font-size: clamp(2.1rem, 4vw, 4rem);
      line-height: 1.05;
      font-weight: 500;
    }
    .section-desc { color: var(--muted); max-width: 720px; }

    .card {
      background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .form-card { padding: clamp(22px, 4vw, 44px); position: relative; overflow: hidden; }
    .form-card::before {
      content: "";
      position: absolute;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      background: rgba(167,139,250,.12);
      filter: blur(70px);
      top: -190px;
      right: -130px;
      pointer-events: none;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
    }
    .field.full { grid-column: 1 / -1; }
    .field label {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
      color: #e9e4ef;
      font-size: .92rem;
      font-weight: 650;
    }
    .field label small { color: #8d8798; font-weight: 500; }

    input, select {
      width: 100%;
      min-height: 52px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(7,7,17,.56);
      color: var(--text);
      padding: 0 15px;
      outline: none;
      transition: .2s ease;
    }
    input::placeholder { color: #777180; }
    input:focus, select:focus { border-color: rgba(239,205,132,.6); box-shadow: 0 0 0 4px rgba(239,205,132,.08); }
    select option { background: #11101f; }

    .form-note {
      margin: 22px 0 0;
      padding: 15px 17px;
      border: 1px solid rgba(125,211,252,.16);
      border-radius: 14px;
      background: rgba(125,211,252,.05);
      color: #b9cbd8;
      font-size: .86rem;
    }

    .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
    .btn {
      min-height: 52px;
      border: 0;
      border-radius: 999px;
      padding: 0 22px;
      font-weight: 760;
      letter-spacing: .2em;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary {
      color: #17120a;
      background: linear-gradient(110deg, var(--gold), var(--gold-2), #f6c979);
      background-size: 200% auto;
      box-shadow: 0 14px 34px rgba(239,205,132,.18);
      animation: shimmer 6s linear infinite;
    }
    .btn-secondary { color: var(--text); background: transparent; border: 1px solid var(--line); }
    .btn-secondary:hover { border-color: var(--line-gold); }
    .privacy { color: #8d8798; font-size: .82rem; margin-left: auto; }

    .loading-screen,
    .result-screen { display: none; }
    .loading-screen.active,
    .result-screen.active { display: block; animation: rise .7s ease both; }
    .form-screen.hidden { display: none; }

    .loading-card {
      min-height: 520px;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 40px 22px;
      position: relative;
      overflow: hidden;
    }
    .loading-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at center, rgba(167,139,250,.13), transparent 48%);
      animation: pulse 3s ease-in-out infinite;
    }

    .loader-sigil {
      width: 145px;
      aspect-ratio: 1;
      border-radius: 50%;
      margin: 0 auto 30px;
      border: 1px solid rgba(239,205,132,.36);
      display: grid;
      place-items: center;
      position: relative;
      box-shadow: 0 0 45px rgba(167,139,250,.15);
    }
    .loader-sigil::before,
    .loader-sigil::after {
      content: "";
      position: absolute;
      inset: 18px;
      border: 1px dashed rgba(167,139,250,.55);
      border-radius: 50%;
      animation: spin 9s linear infinite;
    }
    .loader-sigil::after { inset: 39px; border-style: solid; border-color: rgba(240,165,216,.45); animation-direction: reverse; animation-duration: 6s; }
    .loader-sigil span { font-family: Times New Roman; color: var(--gold-2); font-size: 1.35rem; z-index: 2; }

    .loading-lines { display: grid; gap: 10px; width: min(590px, 100%); }
    .loading-line {
      color: #85808f;
      transition: .35s ease;
      padding: 8px 12px;
      border-radius: 10px;
    }
    .loading-line.active { color: var(--text); background: rgba(255,255,255,.04); }
    .loading-line.done { color: var(--success); }
    .loading-line.done::before { content: "✓ "; }
    .loading-line.active::before { content: "◌ "; color: var(--gold); }

    .voice-line {
      margin-top: 28px;
      min-height: 36px;
      color: var(--gold-2);
      font-family: Georgia, serif;
      font-size: 1.2rem;
      opacity: 0;
      transform: translateY(8px);
      transition: .6s ease;
    }
    .voice-line.show { opacity: 1; transform: translateY(0); }

    .result-card { overflow: hidden; }
    .result-hero {
      text-align: center;
      padding: clamp(42px, 8vw, 92px) clamp(22px, 5vw, 70px) 54px;
      background:
        radial-gradient(circle at 50% 18%, rgba(239,205,132,.17), transparent 31%),
        radial-gradient(circle at 17% 82%, rgba(167,139,250,.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.035), transparent);
      border-bottom: 1px solid var(--line);
      position: relative;
    }
    .result-hero::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -1px;
      width: min(540px, 80%);
      height: 1px;
      transform: translateX(-50%);
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    .ritual-label { color: var(--gold); letter-spacing: .24em; text-transform: uppercase; font-size: .72rem; font-weight: 760; }
    .ritual-sub { margin: 14px auto 8px; color: #d5cfe0; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.78rem, 1.4vw, .95rem); }
    .congrats { color: var(--muted); text-transform: uppercase; letter-spacing: .17em; margin: 25px 0 8px; font-size: .76rem; }
    .identity-code { display: inline-grid; place-items: center; min-width: 64px; height: 32px; border: 1px solid var(--line-gold); border-radius: 999px; color: var(--gold); font-size: .79rem; font-weight: 760; letter-spacing: .12em; }
    .identity-name {
      margin: 18px 0 12px;
      font-family: Times New Roman;
      font-size: clamp(2.8rem, 7vw, 6.4rem);
      line-height: 1.26;
      font-weight: 500;
      background: linear-gradient(105deg, #fff, var(--gold-2) 40%, #ded2ff 76%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .family-name { color: #e4dbff; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: clamp(.85rem, 1.8vw, 1.05rem); }
    .profile-greeting { margin-top: 24px; color: var(--muted); }
    .profile-greeting strong { color: var(--text); }

    .result-body { padding: clamp(26px, 5vw, 58px); }
    .hero-line {
      max-width: 860px;
      margin: 0 auto 22px;
      text-align: center;
      color: var(--gold-2);
      font-family: Times New Roman;
      font-size: clamp(1.35rem, 2.8vw, 2.15rem);
      line-height: 1.35;
    }
    .welcome-text { max-width: 820px; margin: 0 auto; color: #d9d4e0; text-align: center; font-size: 1.05rem; }

    .keywords-block { margin: 42px auto 0; max-width: 900px; text-align: center; }
    .block-title { color: var(--muted); text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 760; margin-bottom: 15px; }
    .keyword-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .keyword {
      padding: 9px 14px;
      border-radius: 999px;
      border: 1px solid rgba(239,205,132,.22);
      background: rgba(239,205,132,.05);
      color: #f8e9c7;
      font-size: .88rem;
    }

    .hooks {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 34px auto 0;
      max-width: 980px;
    }
    .hook {
      padding: 20px;
      border-radius: 18px;
      background: rgba(255,255,255,.028);
      border: 1px solid var(--line);
      color: #cfc8d7;
    }
    .hook strong { display: block; color: var(--text); margin-bottom: 7px; }

    .unlock {
      margin-top: 56px;
      padding-top: 48px;
      border-top: 1px solid var(--line);
    }
    .unlock-intro { max-width: 780px; margin: 0 auto 30px; text-align: center; }
    .unlock-intro h3 { font-family: Times New Roman; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; margin-bottom: 12px; }
    .unlock-intro p { color: var(--muted); }

    .packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .package {
      min-height: 100%;
      padding: 24px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.03);
      display: flex;
      flex-direction: column;
      position: relative;
      transition: .25s ease;
    }
    .package:hover { transform: translateY(-5px); border-color: rgba(239,205,132,.34); box-shadow: 0 18px 42px rgba(0,0,0,.22); }
    .package.featured { background: linear-gradient(155deg, rgba(239,205,132,.1), rgba(167,139,250,.055)); border-color: rgba(239,205,132,.32); }
    .package-badge { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 760; }
    .package h4 { margin: 11px 0 10px; font-family: Times New Roman; font-size: 1.45rem; font-weight: 500; }
    .package p { color: var(--muted); font-size: .91rem; flex: 1; }
    .package .btn { width: 100%; min-height: 48px; margin-top: 12px; padding: 0 15px; font-size: .88rem; }

    .closing {
      margin: 50px auto 0;
      max-width: 900px;
      text-align: center;
      color: #d8d2df;
      font-family: Times New Roman;
      font-size: clamp(1.15rem, 2.5vw, 1.65rem);
      line-height: 1.65;
    }
    .closing strong { color: var(--gold-2); font-weight: 500; }

    .result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

    .modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      place-items: center;
      padding: 20px;
      background: rgba(0,0,0,.68);
      backdrop-filter: blur(12px);
    }
    .modal.show { display: grid; animation: rise .3s ease both; }
    .modal-card { width: min(510px, 100%); padding: 30px; border-radius: 24px; background: var(--panel-strong); border: 1px solid var(--line-gold); box-shadow: var(--shadow); text-align: center; }
    .modal-icon { width: 58px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--line-gold); color: var(--gold); }
    .modal-card h3 { font-family: Times New Roman; font-size: 1.8rem; font-weight: 500; margin-bottom: 10px; }
    .modal-card p { color: var(--muted); }
    .modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

    .footer { padding: 34px 0 52px; color: #817b89; font-size: .8rem; text-align: center; }
    .footer details { max-width: 760px; margin: 16px auto 0; text-align: left; border-top: 1px solid rgba(255,255,255,.07); padding-top: 14px; }
    .footer summary { cursor: pointer; color: #aaa3b3; }
    .qa-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
    .qa-tools select { min-height: 44px; }
    .qa-tools .btn { min-height: 44px; }

    .error { color: var(--danger); font-size: .86rem; margin-top: 12px; display: none; }
    .error.show { display: block; }

    @media (max-width: 920px) {
      .hero-grid { grid-template-columns: 1fr; text-align: center; }
      .hero .intro { margin-inline: auto; }
      .hero-quote { max-width: 670px; margin-inline: auto; text-align: left; }
      .portal-wrap { min-height: 410px; }
      .portal { width: min(360px, 88vw); }
      .packages { grid-template-columns: 1fr; }
    }

    @media (max-width: 680px) {
      .shell { width: min(100% - 22px, 1180px); }
      .topbar-inner { min-height: 62px; }
      .brand-sub, .mini-link { display: none; }
      .hero { min-height: auto; padding-top: 58px; }
      h1 { font-size: clamp(3rem, 17vw, 5rem); }
      .section { padding: 60px 0; }
      .form-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .privacy { width: 100%; margin-left: 0; }
      .hooks { grid-template-columns: 1fr; }
      .result-body { padding-inline: 18px; }
      .result-hero { padding-inline: 18px; }
      .qa-tools { grid-template-columns: 1fr; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    }

/*logo*/
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
/*zalo*/
.result-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-connect {
  background: #ffffff;
  color: #111111;
  border: 1px solid #ffffff;
  cursor: pointer;
}

.btn-connect:hover {
  background: #eeeeee;
}


.zalo-popup {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;

  padding: 20px;
}

.zalo-popup.active {
  display: flex;
}

.zalo-popup-box {
  position: relative;

  background: #ffffff;
  color: #111111;

  width: 100%;
  max-width: 420px;

  padding: 40px 30px;
  border-radius: 20px;

  text-align: center;
}

.zalo-popup-box h3 {
  margin: 0 0 12px;

  font-family: "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

.zalo-popup-box p {
  margin: 0 0 24px;

  font-family: Inter, sans-serif;
  line-height: 1.6;
  color: #555;
}

.zalo-qr {
  display: block;

  width: 220px;
  max-width: 100%;
  height: auto;

  margin: 0 auto;
}

.zalo-close {
  position: absolute;

  top: 12px;
  right: 16px;

  border: none;
  background: none;

  font-size: 32px;
  cursor: pointer;
}

/*bao loi khi chua nhap*/
.error {
  display: none;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 90, 110, 0.38);
  border-radius: 12px;
  background: rgba(255, 65, 90, 0.08);
}

.error.visible {
  display: block;
}

input.field-error,
select.field-error {
  border-color: #ff5f7a !important;
  background: rgba(255, 70, 95, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(255, 70, 95, 0.1) !important;
}