:root {
    --bg-deep:    #08080F;
    --bg-dark:    #0D0D18;
    --bg-navy:    #0F1128;
    --bg-card:    #12121E;
    --bg-surface: #181828;
    --gradient-a: #C4A4E8;
    --gradient-b: #9BB8F0;
    --gradient-c: #A8D4C8;
    --accent:     #C4A4E8;
    --accent-2:   #9BB8F0;
    --green:      #6EC99A;
    --text-1:     #F0EEF8;
    --text-2:     #9B97B0;
    --text-3:     #5E5A72;
    --border:     rgba(196,164,232,0.12);
    --border-2:   rgba(255,255,255,0.07);
    --glow:       rgba(196,164,232,0.15);
    --font-display: 'Playfair Display', serif;
    --font-body:    'DM Sans', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg-deep);
    color: var(--text-1);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ─── NOISE OVERLAY ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
  }

  /* ─── UTILS ─── */
  .container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
  @media (max-width:768px) { .container { padding: 0 20px; } }

  .gradient-text {
    background: linear-gradient(135deg, var(--gradient-a) 0%, var(--gradient-b) 50%, var(--gradient-c) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ─── NAVBAR ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 20px 0;
    transition: background .4s, backdrop-filter .4s;
  }
  nav.scrolled {
    background: rgba(8,8,15,.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-2);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-1);
  }
  .nav-logo-icon {
    width: 36px; height: 36px;
  }
  .nav-logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .3s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .4s;
  }
  .nav-links a:hover { color: var(--text-1); }
  .nav-links a:hover::after { width: 100%; }
  .btn-nav {
    padding: 10px 24px;
    background: var(--text-1);
    color: var(--bg-deep);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .3s, transform .2s;
  }
  .btn-nav:hover { opacity: .9; transform: translateY(-1px); }
  @media (max-width:768px) {
    .nav-links { display: none; }
  }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .4;
  }
  .orb-1 { width: 600px; height: 600px; background: var(--gradient-a); top: -200px; right: -100px; }
  .orb-2 { width: 400px; height: 400px; background: var(--gradient-b); bottom: -100px; left: -100px; opacity: .25; }
  .orb-3 { width: 300px; height: 300px; background: var(--gradient-c); top: 40%; left: 40%; opacity: .15; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  @media (max-width:900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 28px;
    background: rgba(196,164,232,0.05);
  }
  .hero-eyebrow svg { width: 14px; height: 14px; }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.5px;
    margin-bottom: 24px;
  }
  .hero-title em {
    font-style: italic;
    font-weight: 400;
  }

  .hero-desc {
    font-size: 17px;
    color: var(--text-2);
    max-width: 420px;
    margin-bottom: 44px;
    line-height: 1.7;
  }

  .hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--text-1);
    color: var(--bg-deep);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s, opacity .25s, box-shadow .25s;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196,164,232,.3);
  }
  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .3s, background .3s;
  }
  .btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(196,164,232,.07);
  }

  /* ─── HERO VISUAL ─── */
  .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-shield-wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }
  .shield-glow-ring {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,164,232,.15) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
  }
  @keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%       { transform: scale(1.08); opacity: 1; }
  }
  .hero-shield-svg {
    width: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 60px rgba(196,164,232,.25));
    animation: float 6s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
  }

  .stat-chip {
    position: absolute;
    background: rgba(18,18,30,.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    backdrop-filter: blur(12px);
    z-index: 2;
  }
  .stat-chip-num {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-a), var(--gradient-b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .stat-chip-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
  }
  .chip-1 { top: 10%;  left: -10%; animation: float 5s ease-in-out infinite; }
  .chip-2 { bottom: 18%; right: -8%; animation: float 7s ease-in-out infinite .5s; }
  .chip-3 { top: 60%;  left: -12%; animation: float 6s ease-in-out infinite 1s; }

  /* ─── METRICS BAR ─── */
  .metrics {
    padding: 48px 0;
    border-top: 1px solid var(--border-2);
    border-bottom: 1px solid var(--border-2);
    background: var(--bg-dark);
  }
  .metrics-inner {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
  }
  .metric-item { text-align: center; }
  .metric-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 6px;
  }
  .metric-label {
    font-size: 13px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  /* ─── SECTION BASE ─── */
  section { padding: 100px 0; }
  .section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 16px;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .section-subtitle {
    font-size: 16px;
    color: var(--text-2);
    max-width: 500px;
    line-height: 1.7;
  }

  /* ─── FEATURES ─── */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
  }
  @media (max-width:900px)  { .features-grid { grid-template-columns: 1fr; } }
  @media (max-width:1100px) and (min-width:901px) { .features-grid { grid-template-columns: 1fr 1fr; } }

  .feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 36px 32px;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
  }
  .feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196,164,232,.04) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity .3s;
    opacity: 0;
  }
  .feat-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
  }
  .feat-card:hover::before { opacity: 1; }

  .feat-icon {
    width: 52px; height: 52px;
    background: rgba(196,164,232,.08);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
  .feat-icon svg { width: 26px; height: 26px; }
  .feat-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-1);
  }
  .feat-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
  }

  /* ─── HOW IT WORKS ─── */
  .how { background: var(--bg-dark); }
  .how-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
  }
  @media (max-width:900px) { .how-inner { grid-template-columns: 1fr; gap: 48px; } }

  .steps-list { margin-top: 48px; }
  .step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
  }
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    width: 1px;
    height: calc(100% - 10px);
    background: linear-gradient(to bottom, var(--border) 0%, transparent 100%);
  }
  .step-num {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gradient-a), var(--gradient-b));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--bg-deep);
  }
  .step-body h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .step-body p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
  }

  .network-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .network-svg-wrap {
    width: 100%;
    max-width: 420px;
    animation: float 8s ease-in-out infinite;
  }

  /* ─── PLATFORMS ─── */
  .platforms { text-align: center; }
  .platforms-title { max-width: 600px; margin: 0 auto 16px; }
  .platforms-sub   { max-width: 500px; margin: 0 auto 56px; }
  .platform-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  .platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-2);
    transition: border-color .3s, color .3s, transform .2s;
  }
  .platform-chip:hover {
    border-color: var(--accent);
    color: var(--text-1);
    transform: translateY(-2px);
  }
  .platform-chip svg { width: 20px; height: 20px; }

  /* ─── PRICING ─── */
  .pricing-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin-top: 64px;
    align-items: start;
  }
  @media (max-width:900px) { .pricing-wrap { grid-template-columns: 1fr; } }

  .plan-list { display: flex; flex-direction: column; gap: 12px; }
  .plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .3s, background .3s;
  }
  .plan-row.active {
    border-color: var(--accent);
    background: rgba(196,164,232,.06);
  }
  .plan-row-name { font-weight: 500; font-size: 15px; }
  .plan-row-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
  }

  .plan-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
  }
  .plan-detail::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-a), var(--gradient-b), var(--gradient-c));
  }
  .plan-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(196,164,232,.1);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 28px;
  }
  .plan-price-big {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 8px;
  }
  .plan-price-period {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 28px;
  }
  .plan-desc {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 36px;
    line-height: 1.7;
  }
  .plan-features-list {
    list-style: none;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  @media (max-width:600px) { .plan-features-list { grid-template-columns: 1fr; } }
  .plan-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
  }
  .plan-feature-item svg { width: 18px; height: 18px; flex-shrink: 0; }
  .plan-btns { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-plan {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: transform .2s, opacity .2s, box-shadow .3s;
  }
  .btn-plan-primary { background: var(--text-1); color: var(--bg-deep); }
  .btn-plan-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240,238,248,.2);
  }
  .btn-plan-secondary {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border-2);
  }
  .btn-plan-secondary:hover {
    border-color: var(--accent);
    background: rgba(196,164,232,.06);
  }

  /* ─── TESTIMONIALS ─── */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
  }
  @media (max-width:900px) { .testimonials-grid { grid-template-columns: 1fr; } }
  @media (max-width:1100px) and (min-width:901px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }

  .testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 32px 28px;
    transition: border-color .3s, transform .3s;
  }
  .testi-card:hover { border-color: var(--border); transform: translateY(-4px); }
  .testi-stars { display: flex; gap: 4px; margin-bottom: 20px; }
  .testi-stars svg { width: 16px; height: 16px; }
  .testi-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 28px;
    font-style: italic;
  }
  .testi-author { display: flex; align-items: center; gap: 14px; }
  .testi-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-a), var(--gradient-b));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--bg-deep);
    flex-shrink: 0;
  }
  .testi-name  { font-weight: 600; font-size: 15px; }
  .testi-role  { font-size: 12px; color: var(--text-3); margin-top: 2px; }

  /* ─── FAQ ─── */
  .faq { background: var(--bg-dark); }
  .faq-list { max-width: 720px; margin: 64px auto 0; }
  .faq-item { border-bottom: 1px solid var(--border-2); }
  .faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-1);
    transition: color .3s;
  }
  .faq-q:hover { color: var(--accent); }
  .faq-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s, border-color .3s;
  }
  .faq-icon svg { width: 14px; height: 14px; }
  .faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
    transition: max-height .5s ease, padding .4s;
  }
  .faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }

  /* ─── CTA FINAL ─── */
  .cta-final {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .cta-final-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(196,164,232,.12) 0%, transparent 70%);
  }
  .cta-final .section-title {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 900;
    max-width: 700px;
    margin: 0 auto 24px;
    position: relative;
  }
  .cta-final .section-subtitle {
    max-width: 480px;
    margin: 0 auto 48px;
    position: relative;
  }
  .cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-2);
    padding: 60px 0 32px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 32px;
  }
  .footer-brand { max-width: 280px; }
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-1);
    margin-bottom: 16px;
  }
  .footer-logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
  }
  .footer-tagline { font-size: 13px; color: var(--text-3); line-height: 1.6; }
  .footer-links-group h5 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-3);
    margin-bottom: 16px;
  }
  .footer-links-group ul  { list-style: none; }
  .footer-links-group li  { margin-bottom: 10px; }
  .footer-links-group a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-2);
    transition: color .3s;
  }
  .footer-links-group a:hover { color: var(--accent); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border-2);
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-copy { font-size: 12px; color: var(--text-3); }
  .footer-copy a { color: var(--text-3); text-decoration: none; }

  /* ─── SCROLL ANIMATIONS ─── */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg-deep); }
  ::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--border); }

  /* ─── MODAL LOGIN ─── */
  .modal-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 8, 15, 0.75);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .modal-login-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .modal-login-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 40px 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 80px rgba(196,164,232,.07);
    transform: translateY(24px) scale(.97);
    transition: transform .35s ease;
    overflow: hidden;
  }
  .modal-login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-a), var(--gradient-b), var(--gradient-c));
  }
  .modal-login-overlay.open .modal-login-box {
    transform: translateY(0) scale(1);
  }

  .modal-login-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 34px; height: 34px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-3);
    transition: color .25s, border-color .25s;
  }
  .modal-login-close:hover { color: var(--text-1); border-color: var(--border); }
  .modal-login-close svg { width: 14px; height: 14px; }

  .modal-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .modal-login-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-1);
  }
  .modal-login-subtitle {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 28px;
    line-height: 1.6;
  }

  .login-error-msg {
    display: none;
    background: rgba(220, 80, 80, .1);
    border: 1px solid rgba(220, 80, 80, .25);
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 13px;
    color: #E88080;
    margin-bottom: 20px;
  }
  .login-error-msg.show { display: block; }

  .modal-login-form { display: flex; flex-direction: column; gap: 18px; }

  .login-field { display: flex; flex-direction: column; gap: 7px; }
  .login-field label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
  }
  .login-field input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color .3s;
  }
  .login-field input::placeholder { color: var(--text-3); }
  .login-field input:focus { border-color: var(--accent); }

  .login-pwd-wrap { position: relative; }
  .login-pwd-wrap input { padding-right: 44px; }
  .pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    display: flex;
    align-items: center;
    transition: color .25s;
  }
  .pwd-toggle:hover { color: var(--text-1); }

  .login-submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: var(--text-1);
    color: var(--bg-deep);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .25s, transform .2s, box-shadow .3s;
  }
  .login-submit-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(240,238,248,.18);
  }
  .login-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

  .modal-login-help {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-3);
  }
  .modal-login-help a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity .25s;
  }
  .modal-login-help a:hover { opacity: .75; }