/* ==========================================================================
   LawTranslations — style.css
   Design language: a certified document. Parchment paper, ink-navy panels,
   brass gold seals, and a hand-stamped wax seal as the signature mark.

   NOTE: this file currently styles the header, hero, documents, and footer.
   Sections were stripped out for a rebuild — styles for services, pricing,
   FAQ, institutions, guides, and countries will come back here as each
   section is rebuilt, not before.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,450;0,9..144,600;0,9..144,700;1,9..144,450;1,9..144,600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --ink: #12162a;
    --ink-2: #1b2140;
    --paper: #f7f1e3;
    --paper-line: rgba(18, 22, 42, .14);
    --gold: #b6862f;
    --gold-bright: #dcb35c;
    --seal: #7d2e2b;
    --ink-text: #1b2036;
    --muted: #6b6555;
    --muted-on-ink: #b7b7c9;
    --shadow-lg: 0 30px 70px -20px rgba(10, 12, 28, .45);
    --shadow-sm: 0 10px 26px -14px rgba(18, 22, 42, .28);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
p { line-height: 1.7; margin: 0 0 1em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.eyebrow::before { content: "§"; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: .01em;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-gold {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #201404;
    box-shadow: var(--shadow-sm);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(182,134,47,.55); }
.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,.35);
    color: #fff;
}
.btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Preloader ---------- */
.js-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .5s ease, visibility .5s ease;
}
.js-preloader.done { opacity: 0; visibility: hidden; }
.seal-spin {
    width: 64px; height: 64px;
    border: 2px solid rgba(220,179,92,.25);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    padding: 20px 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.static-page .site-header,
.site-header.scrolled {
    background: rgba(18, 22, 42, .92);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.brand-seal { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 2px; }
.brand .b1 { font-weight: 700; }
.brand .b2 { font-weight: 300; color: var(--gold-bright); }

.main-nav { display: flex; align-items: center; gap: 34px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: #e8e6ef;
    transition: color .18s ease;
}
.nav-links a:hover { color: var(--gold-bright); }

.lang-switch { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
    color: #fff; padding: 7px 12px; border-radius: 30px; font-size: 13px; font-family: var(--font-mono);
}
.lang-menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--ink-2); border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: 10px; display: none;
    width: 460px; max-width: calc(100vw - 48px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 4px;
    box-shadow: var(--shadow-lg);
}
.lang-menu.open { display: grid; }
.lang-menu a {
    display: flex; align-items: center; gap: 7px; padding: 8px 8px; border-radius: 5px;
    font-size: 13px; color: #eee; min-width: 0;
}
.lang-menu a span, .lang-menu a { overflow-wrap: anywhere; }
.lang-menu a:hover { background: rgba(255,255,255,.06); }

.menu-trigger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.menu-trigger span { width: 22px; height: 2px; background: #fff; display: block; }

.mobile-nav-brand { display: none; }

@media (max-width: 991px) {
    .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 84%; max-width: 380px;
        background: var(--ink-2); flex-direction: column; align-items: flex-start; justify-content: flex-start;
        padding: 100px 26px 40px; gap: 26px; transition: right .35s ease; box-shadow: var(--shadow-lg);
        overflow-y: auto; }
    .main-nav.open { right: 0; }
    .menu-trigger { display: flex; }

    .mobile-nav-brand {
        display: flex; align-items: center; gap: 10px;
        position: absolute; top: 24px; left: 26px;
        font-family: var(--font-display); font-size: 1.2rem; color: #fff;
    }
    .mobile-nav-brand .brand-seal { width: 30px; height: 30px; flex: none; }

    .nav-links { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
    .nav-links a { font-size: 16px; }
    .lang-switch { margin-top: 10px; width: 100%; }
    .lang-btn { width: 100%; justify-content: space-between; }
    .lang-menu {
        position: static; width: 100%; max-width: none; margin-top: 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 3px;
        max-height: 46vh; overflow-y: auto;
    }
    .lang-menu a { font-size: 11.5px; padding: 7px 4px; line-height: 1.2; gap: 4px; }
    .lang-menu .orbit-flag, .lang-menu a > span:first-child { flex: none; }
}

/* ---------- Legal / static pages ---------- */
.legal-page {
    padding: 168px 0 90px;
}
.legal-head { max-width: 640px; margin-bottom: 40px; }
.legal-head h1 { margin-top: 14px; }
.legal-lede { color: var(--muted); margin-top: 14px; font-size: 15px; }
.legal-body { max-width: 720px; }
.legal-updated { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.legal-section { margin-bottom: 30px; }
.legal-section h3 { font-size: 17px; margin-bottom: 8px; }
.legal-section p { color: var(--ink-text); font-size: 14.5px; line-height: 1.7; }
.legal-disclaimer { color: var(--muted); font-size: 13px; font-style: italic; margin-top: 40px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--ink);
    padding: 168px 0 90px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(182,134,47,.20), transparent 60%),
        radial-gradient(700px 500px at -10% 90%, rgba(125,46,43,.22), transparent 60%);
    pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .95fr; gap: 56px; align-items: start; }
@media (max-width: 991px) { .hero .container { grid-template-columns: 1fr; } }

.hero-eyebrow { color: var(--gold-bright); }
.notfound-section { min-height: 74vh; display: flex; align-items: center; padding: 168px 0 90px; }
.notfound-section .container { display: block; text-align: center; }
.notfound-lede { color: var(--muted-on-ink); font-size: 15px; margin: 14px auto 30px; max-width: 460px; }
.hero h1 { color: #fff; margin-top: 14px; }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 450; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-cta-top { margin: 10px 0 34px; }

.hero-points { display: grid; gap: 16px; margin: 34px 0; }
.hero-point { display: flex; gap: 14px; align-items: flex-start; }
.hero-point .mark {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid rgba(220,179,92,.5); color: var(--gold-bright);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 13px;
}
.hero-point strong { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }
.hero-point span.desc { color: var(--muted-on-ink); font-size: 14px; }

.hero-howto {
    border: 1px dashed rgba(220,179,92,.35);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 6px 0 8px;
    background: rgba(220,179,92,.04);
}
.hero-howto-label {
    display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold-bright); font-weight: 600; margin-bottom: 14px;
}
.hero-howto-steps { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.hero-howto-step { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 170px; }
.hero-howto-step .num {
    flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink);
    font-family: var(--font-mono); font-weight: 700; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.hero-howto-step span:last-child { color: var(--muted-on-ink); font-size: 13.5px; line-height: 1.5; }

.license-badge {
    display: inline-flex; align-items: center; gap: 12px;
    border: 1px solid rgba(220,179,92,.4); border-radius: 40px;
    padding: 10px 18px 10px 10px; margin-top: 12px;
}
.license-badge .seal-mini { width: 34px; height: 34px; }
.license-badge strong { color: #fff; display: block; font-size: 13.5px; }
.license-badge small { color: var(--muted-on-ink); font-size: 11.5px; font-family: var(--font-mono); }

/* Language panel (hero) — unboxed, lives right on the hero background
   so the dial gets the whole column instead of a small card. */
.lang-panel { position: relative; padding-top: 4px; }
.lang-panel .cert-kicker {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-bright); display: flex; justify-content: space-between; margin-bottom: 6px;
}
.lang-panel h3 { color: #fff; margin-bottom: 4px; }
.lang-panel .cert-sub { color: var(--muted-on-ink); font-size: 13.5px; margin-bottom: 4px; max-width: 420px; }
.lang-card-note { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted-on-ink); text-align: center; }

/* ---------- Language dial — a real circle: 26 points cut at
   360°/26 apart, radius set in %, straight chords instead of curves ---------- */
.lang-orbit {
    --spin-duration: 130s;
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    margin: 18px auto 0;
}

.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-svg .orbit-chord { fill: none; stroke: rgba(220,179,92,.32); stroke-width: .5; }
.orbit-svg .orbit-spoke { stroke: rgba(207,203,217,.22); stroke-width: .35; }
.orbit-spin { animation: orbit-spin var(--spin-duration) linear infinite; transform-origin: 50% 50%; transform-box: fill-box; }

.orbit-badges { position: absolute; inset: 0; animation: orbit-spin var(--spin-duration) linear infinite; }

.orbit-item {
    position: absolute;
    width: 13.2%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
}

.orbit-badge-inner { width: 100%; height: 100%; animation: orbit-spin-reverse var(--spin-duration) linear infinite; }

.orbit-badge {
    position: relative;
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0;
    cursor: default;
}
.orbit-badge:hover .orbit-code, .orbit-badge:focus-visible .orbit-code {
    color: var(--gold-bright);
}
.orbit-flag {
    font-size: clamp(17px, 3.46vw, 22.6px);
    line-height: 1;
    display: inline-block;
    transform-origin: 0% 50%;
    animation: flag-wave 3.4s ease-in-out infinite;
}
.orbit-laurel {
    font-size: clamp(14.6px, 2.93vw, 18.6px);
    color: var(--gold-bright);
    font-weight: 700;
    display: inline-block;
    transform-origin: 0% 50%;
    animation: flag-wave 3.4s ease-in-out infinite;
}
.orbit-code {
    font-family: var(--font-mono); font-size: clamp(6.5px, 1.15vw, 8.5px); letter-spacing: .04em;
    color: #fff; font-weight: 700; margin-top: 1px;
}

@keyframes flag-wave {
    0%, 100% { transform: rotate(0deg) skewY(0deg); }
    25%      { transform: rotate(-6deg) skewY(4deg); }
    50%      { transform: rotate(0deg) skewY(0deg); }
    75%      { transform: rotate(6deg) skewY(-4deg); }
}

.orbit-item:nth-child(3n) .orbit-flag,
.orbit-item:nth-child(3n) .orbit-laurel { animation-delay: -.6s; }
.orbit-item:nth-child(3n+1) .orbit-flag,
.orbit-item:nth-child(3n+1) .orbit-laurel { animation-delay: -1.3s; }

.orbit-hub {
    position: absolute; top: 50%; left: 50%;
    width: 19%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 4;
}
.orbit-hub-flag {
    font-size: clamp(26.6px, 5.59vw, 39.9px);
    line-height: 1;
    display: inline-block;
    transform-origin: 0% 50%;
    animation: flag-wave 3.4s ease-in-out infinite;
}
.orbit-hub-code {
    font-family: var(--font-mono); font-size: clamp(8px, 1.4vw, 10px); letter-spacing: .14em;
    color: var(--paper); font-weight: 700; margin-top: 2px;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-360deg); } }

.lang-orbit:hover .orbit-spin,
.lang-orbit:hover .orbit-badges,
.lang-orbit:hover .orbit-badge-inner {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .orbit-spin, .orbit-badges, .orbit-badge-inner { animation: none; }
}

@media (max-width: 480px) {
    .lang-orbit { --spin-duration: 100s; max-width: 340px; margin-top: 26px; }
}

/* ---------- Documents ---------- */
.documents { padding: 100px 0 110px; }
.documents-head { max-width: 620px; margin: 0 0 52px; }
.documents-head h2 { color: var(--ink); }
.documents-lede { color: var(--muted); font-size: 1.03rem; margin: 0; }

.doc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: 1fr; } }

.doc-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--paper-line);
    border-radius: 4px;
    padding: 28px 24px 26px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.doc-card::before {
    /* torn/folded top-right corner, like a physical certified page */
    content: "";
    position: absolute; top: 0; right: 0;
    width: 22px; height: 22px;
    background: var(--paper);
    box-shadow: -1px 1px 3px rgba(18,22,42,.12);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.doc-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 16px; }
.doc-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--ink); }
.doc-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* The wax seal: a hand-stamped mark of authenticity, tilted like it was
   actually pressed onto the card by hand — one per document, each at a
   slightly different angle so no two look machine-printed. */
.doc-seal {
    position: absolute; top: 20px; right: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 8.5px; letter-spacing: .08em; font-weight: 700;
    color: rgba(247,241,227,.85);
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), transparent 45%),
        radial-gradient(circle at 65% 70%, rgba(0,0,0,.25), transparent 55%),
        var(--seal);
    box-shadow: 0 3px 8px -2px rgba(125,46,43,.55), inset 0 0 0 1px rgba(255,255,255,.15);
    opacity: .92;
}
.doc-seal::after {
    content: "";
    position: absolute; inset: 5px;
    border: 1px dashed rgba(247,241,227,.5);
    border-radius: 50%;
}
.doc-seal-1 { transform: rotate(-9deg); }
.doc-seal-2 { transform: rotate(6deg); }
.doc-seal-3 { transform: rotate(-4deg); }
.doc-seal-4 { transform: rotate(10deg); }

.doc-note {
    display: flex; gap: 18px; align-items: flex-start;
    margin-top: 44px;
    padding: 24px 26px;
    background: rgba(182,134,47,.07);
    border: 1px solid rgba(182,134,47,.25);
    border-radius: 4px;
}
.doc-note-icon { flex: none; width: 30px; height: 30px; color: var(--gold); margin-top: 2px; }
.doc-note strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.doc-note p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.65; }

/* ---------- Additional services ---------- */
.services-extra { padding: 20px 0 110px; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
    position: relative;
    background: var(--ink);
    color: var(--muted-on-ink);
    border-radius: 4px;
    padding: 30px 26px 28px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    /* mouse-tilt hover, set via JS custom properties; harmless with no JS */
    transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateZ(0);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
    will-change: transform;
}
.service-card::before {
    /* faint gold vignette, like a stamped ledger page */
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(220,179,92,.16), transparent 55%);
    pointer-events: none;
}
.service-card:hover { box-shadow: 0 24px 48px -18px rgba(10,12,28,.55); }

.service-badge {
    position: absolute; top: 20px; right: 20px;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: .08em; font-weight: 600;
    color: var(--gold-bright);
    border: 1px solid rgba(220,179,92,.4);
    border-radius: 20px;
    padding: 4px 10px;
    background: rgba(220,179,92,.08);
}

.service-icon { width: 32px; height: 32px; color: var(--gold-bright); margin-bottom: 18px; }
.service-card h3 { font-size: 1.05rem; margin: 0 0 10px; color: #fff; padding-right: 60px; }
.service-card p { font-size: 13.5px; color: var(--muted-on-ink); margin: 0; line-height: 1.65; }

/* Stamp-in reveal: cards land the way a wax seal is pressed down, rather
   than a plain fade — snaps in slightly oversized/rotated and settles. */
.service-card.reveal {
    opacity: 0;
    transform: perspective(900px) scale(.92) rotate(-3deg) translateY(22px);
    transition: opacity .5s ease, transform .55s cubic-bezier(.34,1.56,.64,1);
}
.service-card.reveal.in {
    opacity: 1;
    transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) scale(1) rotate(0deg) translateY(0);
}
.service-card:nth-child(2).reveal { transition-delay: .08s; }
.service-card:nth-child(3).reveal { transition-delay: .16s; }
.service-card:nth-child(4).reveal { transition-delay: .04s; }
.service-card:nth-child(5).reveal { transition-delay: .12s; }
.service-card:nth-child(6).reveal { transition-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
    .service-card, .service-card.reveal, .service-card.reveal.in { transition: none; transform: none; }
}

/* ---------- Telegram float button ---------- */
.telegram-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 400;
    width: 56px; height: 56px; border-radius: 50%; background: #229ed9;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
    transition: transform .2s ease;
}
.telegram-float:hover { transform: scale(1.08); }
.telegram-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- AI assistant widget ---------- */
.ai-assistant-launcher {
    position: fixed; right: 22px; bottom: 90px; z-index: 400;
    display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 20px 0 16px; border-radius: 30px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--ink); border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    box-shadow: var(--shadow-lg); transition: transform .2s ease;
}
.ai-assistant-launcher:hover { transform: scale(1.05); }
.ai-assistant-launcher svg { width: 22px; height: 22px; flex: none; }
.ai-assistant-launcher.is-open { display: none; }

.ai-assistant-panel {
    position: fixed; right: 22px; bottom: 90px; z-index: 410;
    width: min(380px, calc(100vw - 44px));
    height: min(560px, calc(100vh - 130px));
    background: var(--ink-2); border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(220,179,92,.25);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.ai-assistant-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.ai-assistant-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ai-assistant-head-title { display: flex; align-items: center; gap: 10px; }
.ai-assistant-head-title strong { color: #fff; font-size: 14.5px; }
.ai-assistant-head-title span { display: block; color: var(--muted-on-ink); font-size: 11.5px; font-family: var(--font-mono); }
.ai-assistant-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: none;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.ai-assistant-avatar svg { width: 18px; height: 18px; }
.ai-assistant-close {
    background: none; border: none; color: var(--muted-on-ink); cursor: pointer;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .15s ease, color .15s ease;
}
.ai-assistant-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.ai-assistant-close svg { width: 16px; height: 16px; }

.ai-assistant-body {
    flex: 1; overflow-y: auto; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 12px;
}
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.55; }
.ai-msg p { margin: 0 0 8px; }
.ai-msg p:last-child { margin-bottom: 0; }
.ai-msg-bot {
    align-self: flex-start; background: rgba(255,255,255,.06); color: #e6e4f0;
    border-bottom-left-radius: 4px;
}
.ai-msg-user {
    align-self: flex-end; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--ink); border-bottom-right-radius: 4px; font-weight: 500;
}
.ai-msg-error { background: rgba(125,46,43,.35); color: #f4d6d4; }
.ai-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.ai-typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--muted-on-ink);
    animation: ai-typing-bounce 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.ai-suggestion {
    background: rgba(220,179,92,.12); border: 1px solid rgba(220,179,92,.3); color: var(--gold-bright);
    font-family: var(--font-body); font-size: 12px; padding: 6px 11px; border-radius: 30px; cursor: pointer;
    transition: background .15s ease;
}
.ai-suggestion:hover { background: rgba(220,179,92,.22); }

.ai-assistant-foot {
    display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.08); background: var(--ink);
}
.ai-assistant-input {
    flex: 1; resize: none; max-height: 90px; min-height: 20px;
    background: transparent; border: none; color: #fff; font-family: var(--font-body);
    font-size: 13.5px; line-height: 1.5; padding: 6px 4px; outline: none;
}
.ai-assistant-input::placeholder { color: var(--muted-on-ink); }
.ai-assistant-send {
    flex: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink);
    display: flex; align-items: center; justify-content: center; transition: opacity .15s ease;
}
.ai-assistant-send:disabled { opacity: .4; cursor: default; }
.ai-assistant-send svg { width: 15px; height: 15px; }
.ai-assistant-disclaimer { padding: 0 18px 12px; font-size: 10.5px; color: var(--muted-on-ink); text-align: center; }

@media (max-width: 480px) {
    .ai-assistant-launcher { bottom: 84px; }
    .ai-assistant-panel { bottom: 84px; right: 12px; width: calc(100vw - 24px); }
}

/* ---------- Footer ---------- */
footer { background: #0d1022; color: #cfcbd9; padding: 60px 0 30px; }
footer .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 700px) { footer .foot-grid { grid-template-columns: 1fr; } }
footer .brand { margin-bottom: 12px; }
footer .foot-contact { margin-top: 16px; font-size: 13px; color: #a9a6bb; }
footer .foot-contact p { margin: 0 0 6px; line-height: 1.55; }
footer .foot-contact a { color: #a9a6bb; }
footer .foot-contact a:hover { color: var(--gold-bright); }

.verify-box {
    margin-top: 20px; max-width: 380px;
    border: 1px dashed rgba(220,179,92,.35); border-radius: 8px;
    padding: 14px 16px;
    background: rgba(220,179,92,.03);
}
.verify-box-label {
    display: block; font-size: 12px; color: #a9a6bb; line-height: 1.5; margin-bottom: 10px;
}
.verify-box-nums { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.verify-box-nums span { font-family: var(--font-mono); font-size: 12px; color: #cfcbd9; }
.verify-box-nums b { color: #eee; font-weight: 600; }
.verify-box-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 600; color: var(--gold-bright);
}
.verify-box-link svg { width: 13px; height: 13px; flex: none; }
.verify-box-link:hover { color: var(--gold); }
footer .foot-links a { display: block; margin-bottom: 10px; font-size: 13.5px; color: #a9a6bb; }
footer .foot-links a:hover { color: var(--gold-bright); }
footer .foot-bottom { padding-top: 22px; font-size: 12.5px; color: #767392; text-align: center; }
footer .foot-bottom a { color: #a9a6bb; }
footer .foot-bottom a:hover { color: var(--gold-bright); }

/* ---------- Utility ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
