/* ==========================================================================
   Mystic Hopee OTC — main.css
   Institutional dark-blue fintech theme for the public exchange experience.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- 1. Design tokens ---------- */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-soft: #dbeafe;
    --accent: #10b981;
    --accent-red: #ef4444;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --surface: #ffffff;
    --secondary: var(--bg-dark);
    --text: #334155;
    --bg-warm: var(--bg-light);
    --radius: 10px;
    --radius-lg: 16px;
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
    --maxw: 1200px;
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .55em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.025em;
    color: var(--text-dark);
}
p { margin: 0 0 1rem; }
ul, ol { margin-top: 0; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--text-dark); background: #bfdbfe; }
:focus-visible { outline: 3px solid rgba(30, 64, 175, .28); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- 3. Layout and utilities ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container.narrow, .container--narrow { max-width: 820px; }
.site-main { min-height: 60vh; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }
.gap-sm { gap: .75rem; }
.gap-md { gap: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-success { color: var(--accent); }
.text-danger { color: var(--accent-red); }
.page-title { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-content { width: min(100%, 820px); margin-inline: auto; padding: 4rem 0 5rem; }
.page-content h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.page-content h3 { margin-top: 2rem; font-size: 1.15rem; }
.page-content p, .page-content li { color: #475569; }
.page-content li + li { margin-top: .5rem; }

/* ---------- 4. Announcement and navigation ---------- */
.announce {
    padding: .5rem 0;
    background: #081225;
    color: #cbd5e1;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}
.announce-inner { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.announce-dot { color: var(--accent); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
    backdrop-filter: blur(14px);
}
.site-header--dark { background: rgba(15, 23, 42, .96); border-bottom-color: rgba(148, 163, 184, .18); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 72px; }
.logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    color: var(--text-dark);
}
.logo:hover { color: var(--primary); }
.logo-pick, .logo-mark {
    width: 36px;
    height: 36px;
    padding: 8px;
    color: #fff;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(30, 64, 175, .22);
}
.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: -.03em;
}
.logo-text small {
    margin-top: .35rem;
    color: var(--text-light);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
}
.site-header--dark .logo,
.site-header--dark .main-nav > a,
.site-header--dark .nav-dropdown-link,
.site-header--dark .account-link { color: #f8fafc; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > a, .nav-dropdown-link {
    position: relative;
    padding: 1.5rem 0;
    color: #334155;
    font-size: .875rem;
    font-weight: 600;
}
.main-nav > a::after, .nav-dropdown-link::after {
    content: '';
    position: absolute;
    right: 100%;
    bottom: 1rem;
    left: 0;
    height: 2px;
    background: var(--primary);
    transition: right .2s ease;
}
.main-nav > a:hover::after,
.main-nav > a.is-active::after,
.nav-dropdown-link:hover::after { right: 0; }
.caret { margin-left: .2rem; color: var(--text-light); font-size: .75em; }
.nav-dropdown { position: relative; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: -1rem;
    display: flex;
    min-width: 220px;
    padding: .5rem;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-panel a { padding: .65rem .8rem; color: #334155; font-size: .875rem; border-radius: 7px; }
.dropdown-panel a:hover { color: var(--primary); background: var(--primary-soft); }
.header-tools { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.account-link { display: inline-flex; align-items: center; gap: .5rem; color: #334155; font-size: .875rem; font-weight: 600; }
.currency-switch {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .25rem .75rem;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
}
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}
.btn:hover { color: var(--primary); border-color: #93c5fd; transform: translateY(-1px); }
.btn--primary, .btn-primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(30, 64, 175, .18);
}
.btn--primary:hover, .btn-primary:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--accent, .btn-accent { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn--accent:hover, .btn-accent:hover { color: #fff; background: #059669; border-color: #059669; }
.btn--danger, .btn-danger { color: #fff; background: var(--accent-red); border-color: var(--accent-red); }
.btn--outline, .btn-outline { color: var(--primary); background: transparent; border: 2px solid var(--primary); }
.btn--outline:hover, .btn-outline:hover { color: #fff; background: var(--primary); }
.btn--ghost, .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover, .btn-ghost:hover { color: var(--bg-dark); background: #fff; border-color: #fff; }
.btn--lg, .btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--sm, .btn-sm { padding: .5rem .85rem; font-size: .8125rem; }
.btn--block, .btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; pointer-events: none; transform: none; }
.link-btn { padding: 0; color: var(--primary); background: transparent; border: 0; font-weight: 600; cursor: pointer; }

/* ---------- 6. Forms ---------- */
.field, .form-group { margin-bottom: 1.25rem; }
.field label, .form-group label { display: block; margin-bottom: .45rem; color: var(--text-dark); font-size: .875rem; font-weight: 600; }
.field .req, .required { color: var(--accent-red); }
input[type='text'], input[type='email'], input[type='password'],
input[type='number'], input[type='tel'], input[type='url'],
input[type='search'], select, textarea {
    width: 100%;
    padding: .8rem 1rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, .13); }
input:disabled, select:disabled, textarea:disabled { color: #94a3b8; background: #f1f5f9; cursor: not-allowed; }
textarea { min-height: 140px; resize: vertical; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--primary); }
.field-hint, .form-hint { display: block; margin-top: .4rem; color: var(--text-light); font-size: .78rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-card, .contact-form, .auth-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.auth-card { max-width: 520px; margin: 4rem auto; }
.auth-title { font-size: 1.75rem; }
.auth-sub, .auth-alt { color: var(--text-light); }
.auth-alt { margin-top: 1.5rem; text-align: center; }

/* ---------- 7. Alerts and toast ---------- */
.alert, .flash-message {
    position: relative;
    padding: .9rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .9rem;
}
.alert p, .flash-message p { margin: 0; }
.alert ul, .flash-message ul { margin: 0; padding-left: 1.25rem; }
.alert--success, .alert-success, .flash-success { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.alert--error, .alert-error, .flash-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.alert--warning, .alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert--info, .alert-info { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 100;
    min-width: min(360px, calc(100vw - 2rem));
    padding: .85rem 1.25rem;
    color: #fff;
    background: var(--bg-dark);
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 8. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    text-align: center;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px), radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .22), transparent 42%);
    background-size: 48px 48px, 48px 48px, 100% 100%;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 95%);
}
.hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .12; filter: saturate(.6) contrast(1.15); }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(30, 58, 138, .82)); }
.hero-content { position: relative; max-width: 920px; margin-inline: auto; }
.hero__eyebrow, .hero-eyebrow {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .7);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hero__title, .hero-title {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.045em;
}
.hero-title em { color: #93c5fd; font-style: normal; }
.hero__subtitle, .hero-sub { max-width: 600px; margin: 0 auto 2rem; color: rgba(255, 255, 255, .8); font-size: 1.125rem; line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; }
.hero-proof {
    display: flex;
    max-width: 660px;
    margin: 3rem auto 0;
    padding: 1.5rem 0 0;
    justify-content: center;
    gap: clamp(1.5rem, 6vw, 4rem);
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { color: #fff; font-size: 1.5rem; }
.hero-proof span { color: rgba(255, 255, 255, .6); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 9. Sections ---------- */
.section { position: relative; overflow: hidden; padding: 5rem 0; }
.section--alt, .section-warm { background: var(--bg-light); }
.section--dark { color: #fff; background: var(--bg-dark); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section__title, .section-title { margin-bottom: 1rem; font-size: 2rem; font-weight: 800; text-align: center; }
.section-head .section-title { margin: 0; text-align: left; }
.section__subtitle, .section-subtitle { max-width: 600px; margin: 0 auto 3rem; color: var(--text-light); text-align: center; }
.section--dark h2, .section--dark h3, .section--dark .section__title { color: #fff; }
.section--dark .section__subtitle { color: #94a3b8; }
.section-link { flex-shrink: 0; font-size: .9rem; font-weight: 600; }

/* ---------- 10. Rate cards ---------- */
.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.rate-card {
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rate-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #3b82f6, var(--accent)); }
.rate-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); border-color: #bfdbfe; }
.rate-card__pair { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }
.rate-card__meta { margin: -.7rem 0 1rem; color: var(--text-light); font-size: .78rem; }
.rate-card__rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rate-card__rate { text-align: center; padding: .75rem; border-radius: 8px; }
.rate-card__rate--buy { background: #ecfdf5; }
.rate-card__rate--sell { background: #fef2f2; }
.rate-card__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); }
.rate-card__value { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.rate-card__value--buy { color: var(--accent); }
.rate-card__value--sell { color: var(--accent-red); }
.rate-card__action { margin-top: 1.5rem; }

/* ---------- 11. Exchange form ---------- */
.exchange-form {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    border: 1px solid rgba(226, 232, 240, .9);
}
.exchange-form__title { margin-bottom: .5rem; font-size: 1.5rem; }
.exchange-form__intro { margin-bottom: 2rem; color: var(--text-light); }
.pair-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.pair-option {
    position: relative;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: var(--text-dark);
    background: #fff;
    transition: all .2s;
}
.pair-option.active, .pair-option:hover, .pair-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.pair-option input[type='radio'] { position: absolute; opacity: 0; pointer-events: none; }
.pair-option__name { display: block; font-weight: 700; }
.pair-option__note { display: block; margin-top: .2rem; color: var(--text-light); font-size: .75rem; }
.direction-toggle { display: flex; margin-bottom: 2rem; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); }
.direction-btn {
    flex: 1;
    padding: .875rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s;
    border: none;
    background: #fff;
}
.direction-btn + .direction-btn { border-left: 1px solid var(--border); }
.direction-btn.active { color: #fff; }
.direction-btn.active.buy { background: var(--accent); }
.direction-btn.active.sell { background: var(--accent-red); }
.amount-input-group { position: relative; margin-bottom: 1.5rem; }
.amount-input-group input { padding-right: 4rem; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.amount-input-group .currency-badge { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--text-light); }
.calculation-preview { background: var(--bg-light); border-radius: 10px; padding: 1.5rem; margin-bottom: 2rem; border: 1px solid var(--border); }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.calc-row.total { border-top: 2px solid var(--border); margin-top: .5rem; padding-top: 1rem; font-weight: 700; font-size: 1.125rem; }
.calc-label { color: var(--text-light); }
.calc-value { font-weight: 600; color: var(--text-dark); font-variant-numeric: tabular-nums; }

/* ---------- 12. Process and trust ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding: 0; list-style: none; }
.step, .steps > li { text-align: center; padding: 2rem; }
.step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    box-shadow: 0 0 0 7px var(--primary-soft);
}
.step__title, .steps > li h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: .5rem; }
.step__desc, .steps > li p { color: var(--text-light); line-height: 1.6; margin: 0; }
.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding: 3rem 0; }
.trust-item { text-align: center; padding: 1.5rem; }
.trust-item__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto .75rem;
    font-size: 2rem;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
}
.trust-item__title { font-weight: 700; margin-bottom: .25rem; }
.trust-item__desc { font-size: .875rem; color: var(--text-light); margin: 0; }
.promise-band { padding: 4rem 0; color: #cbd5e1; background: var(--bg-dark); }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.promise-item { padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.promise-item h3 { color: #fff; font-size: 1.05rem; }
.promise-item p { margin: 0; color: #94a3b8; font-size: .9rem; }

/* ---------- 13. Status badges ---------- */
.status-badge, .badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-badge--pending, .badge-status-pending, .status-pending { background: #fef3c7; color: #92400e; }
.status-badge--confirmed, .badge-status-confirmed, .status-confirmed { background: #dbeafe; color: #1e40af; }
.status-badge--processing, .badge-status-processing, .status-processing { background: #e0e7ff; color: #3730a3; }
.status-badge--completed, .badge-status-completed, .status-completed { background: #d1fae5; color: #065f46; }
.status-badge--cancelled, .badge-status-cancelled, .status-cancelled { background: #f3f4f6; color: #374151; }
.status-badge--rejected, .badge-status-rejected, .status-rejected { background: #fee2e2; color: #991b1b; }

/* ---------- 14. Tables and account ---------- */
.table-wrap, .orders-table-wrap {
    width: 100%;
    margin-bottom: 2rem;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
table, .data-table, .orders-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
th, td, .data-table th, .data-table td, .orders-table th, .orders-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th, .data-table thead th, .orders-table thead th {
    color: #475569;
    background: #f1f5f9;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
tbody tr:nth-child(even) { background: #fbfdff; }
tbody tr:hover { background: #eff6ff; }
tbody tr:last-child td { border-bottom: 0; }
.num, .amount { text-align: right; font-variant-numeric: tabular-nums; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.account-tile {
    display: flex;
    min-width: 0;
    padding: 1.5rem;
    flex-direction: column;
    gap: .25rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all .2s ease;
}
a.account-tile:hover { border-color: #93c5fd; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.account-tile-count { color: var(--primary); font-size: 1.8rem; font-weight: 800; }
.account-tile-label { overflow-wrap: anywhere; color: var(--text-light); font-size: .875rem; }
.account-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.order-detail-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; }
.order-meta { margin: 0; }
.order-meta > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.order-meta dt { color: var(--text-light); }
.order-meta dd { margin: 0; color: var(--text-dark); font-weight: 600; }

/* ---------- 15. Static pages, cards and FAQ ---------- */
.static-page { padding-top: 4rem; }
.static-head { max-width: 760px; margin-bottom: 3rem; }
.static-head > p { color: var(--text-light); font-size: 1.05rem; }
.static-body { max-width: 820px; }
.static-body > h2 { padding-top: 2rem; margin: 2.5rem 0 1rem; border-top: 1px solid var(--border); font-size: 1.4rem; }
.static-cta { padding: 1.25rem 1.5rem; margin-top: 2.5rem; background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; }
.info-cards, .mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.info-card, .mv-card { padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.info-card h2, .mv-card h2 { font-size: 1.05rem; }
.check-list { max-width: 72ch; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; padding: 2rem; margin: 2rem 0; background: var(--bg-dark); border-radius: 14px; }
.stat { display: flex; flex-direction: column; text-align: center; }
.stat strong { color: #fff; font-size: 2rem; }
.stat span { color: #94a3b8; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.faq-section { max-width: 820px; margin-inline: auto; }
.faq-item {
    margin-bottom: .75rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: #bfdbfe; box-shadow: var(--shadow-sm); }
.faq-item summary { position: relative; padding: 1rem 3rem 1rem 1.25rem; color: var(--text-dark); font-weight: 700; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; top: 50%; right: 1.25rem; color: var(--primary); font-size: 1.35rem; transform: translateY(-50%); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p, .faq-item .faq-answer { padding: 0 1.25rem 1.25rem; margin: 0; color: var(--text-light); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; }
.contact-list { margin: 1.5rem 0; }
.contact-list > div { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.contact-list dt { color: var(--text-light); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-list dd { margin: .25rem 0 0; }
.empty-state { display: flex; min-height: 260px; padding: 3rem 1rem; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; color: var(--text-light); text-align: center; }
.error-404-code { margin: 0; color: var(--primary-soft); font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; -webkit-text-stroke: 2px var(--primary); }
.success-card { max-width: 680px; margin-inline: auto; padding: 4rem 1.5rem; text-align: center; }
.success-seal {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 10px #d1fae5;
    font-size: 2rem;
}
.success-meta { display: flex; justify-content: center; gap: 2.5rem; padding: 1.25rem 0; margin: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.success-meta dt { color: var(--text-light); font-size: .72rem; text-transform: uppercase; }
.success-meta dd { margin: .25rem 0 0; color: var(--text-dark); font-weight: 700; }
.success-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* ---------- 16. Account and confirmation compositions ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.account-page, .success-section { padding: 4rem 0 5rem; background: #f8fafc; }
.account-dashboard-card { max-width: 700px; }
.account-page-head, .order-detail-head { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; align-items: flex-end; }
.account-page-head p, .order-detail-head p { margin: 0; color: var(--text-light); }
.exchange-orders-table td small { display: block; color: var(--text-light); font-size: .75rem; }
.direction-badge { display: inline-flex; padding: .25rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.direction-buy { color: #065f46; background: #d1fae5; }
.direction-sell { color: #991b1b; background: #fee2e2; }
.table-link { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.order-detail-page { padding-top: 1.5rem; }
.status-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 1.5rem 0 2rem; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 12px; }
.status-step { display: flex; min-width: 0; padding: 1rem; align-items: center; gap: .65rem; color: var(--text-light); background: #fff; font-size: .8rem; }
.status-step > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; background: #e2e8f0; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.status-step.is-reached { color: var(--primary-dark); background: #eff6ff; }
.status-step.is-reached > span { color: #fff; background: var(--primary); }
.exchange-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-card { padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.detail-card-head { display: flex; align-items: center; gap: .75rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); }
.detail-card-head > span { color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.detail-card-head h2 { margin: 0; font-size: 1.05rem; }
.stacked-meta > div { align-items: flex-start; flex-direction: column; gap: .2rem; }
.break-value { overflow-wrap: anywhere; }
.order-detail-actions { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.exchange-success-card { max-width: 780px; padding: 4rem 2rem; }
.success-title { font-size: clamp(2rem, 5vw, 3rem); }
.success-message { max-width: 620px; margin: 0 auto 1.5rem; color: var(--text-light); }
.order-reference { display: inline-flex; padding: .8rem 1.2rem; margin-bottom: 2rem; flex-direction: column; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; }
.order-reference span { color: var(--text-light); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.order-reference strong { color: var(--primary-dark); font-size: 1.12rem; letter-spacing: .04em; }
.exchange-summary-card, .next-steps { padding: 1.5rem; margin-bottom: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; text-align: left; }
.exchange-summary-card h2, .next-steps h2 { font-size: 1.15rem; }
.summary-rows { margin: 0; }
.summary-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--border); }
.summary-rows > div:last-child { border-bottom: 0; }
.summary-rows dt { color: var(--text-light); }
.summary-rows dd { margin: 0; color: var(--text-dark); font-weight: 700; text-align: right; }
.next-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.next-steps li { display: flex; gap: .7rem; }
.next-steps li > span { color: var(--primary); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.next-steps strong { color: var(--text-dark); font-size: .86rem; }
.next-steps p { margin: .3rem 0 0; color: var(--text-light); font-size: .78rem; }

/* ---------- 17. Supporting fintech components ---------- */
.market-strip {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .75rem 0;
    overflow-x: auto;
    color: #cbd5e1;
    background: var(--bg-dark);
    scrollbar-width: none;
}
.market-strip::-webkit-scrollbar { display: none; }
.market-quote { display: inline-flex; align-items: baseline; gap: .55rem; flex: 0 0 auto; font-size: .82rem; }
.market-quote__pair { color: #fff; font-weight: 700; }
.market-quote__price { font-variant-numeric: tabular-nums; }
.market-quote__change--up { color: #34d399; }
.market-quote__change--down { color: #f87171; }

.compliance-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.5rem;
    color: #334155;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}
.compliance-callout__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--primary);
    background: #fff;
    border-radius: 10px;
}
.compliance-callout__title { margin-bottom: .25rem; font-size: 1rem; }
.compliance-callout__text { margin: 0; color: var(--text-light); font-size: .875rem; }

.kyc-progress { display: flex; align-items: center; margin: 2rem 0; }
.kyc-progress__step { position: relative; display: flex; flex: 1; align-items: center; color: var(--text-light); font-size: .78rem; }
.kyc-progress__step::after { content: ''; height: 2px; flex: 1; margin: 0 .75rem; background: var(--border); }
.kyc-progress__step:last-child { flex: 0 0 auto; }
.kyc-progress__step:last-child::after { display: none; }
.kyc-progress__dot {
    display: grid;
    width: 30px;
    height: 30px;
    margin-right: .5rem;
    place-items: center;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50%;
    font-weight: 700;
}
.kyc-progress__step.is-active, .kyc-progress__step.is-complete { color: var(--primary); font-weight: 600; }
.kyc-progress__step.is-active .kyc-progress__dot { color: #fff; background: var(--primary); border-color: var(--primary); }
.kyc-progress__step.is-complete .kyc-progress__dot { color: #fff; background: var(--accent); border-color: var(--accent); }
.kyc-progress__step.is-complete::after { background: var(--accent); }

.breadcrumbs {
    display: flex;
    gap: .5rem;
    padding: 1.5rem 0 .5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: .8rem;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.page-link {
    display: grid;
    min-width: 40px;
    height: 40px;
    padding: 0 .7rem;
    place-items: center;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
}
.page-link:hover { color: var(--primary); border-color: #93c5fd; }
.page-link.is-current, .page-link.current { color: #fff; background: var(--primary); border-color: var(--primary); }

.search-form {
    display: flex;
    align-items: center;
    padding: 2px 3px 2px .85rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, .12); }
.search-form input { width: 150px; padding: .4rem; background: transparent; border: 0; box-shadow: none; font-size: .82rem; }
.search-form input:focus { box-shadow: none; }
.search-form button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; color: #fff; background: var(--primary); border: 0; border-radius: 50%; cursor: pointer; }
.search-form button:hover { background: var(--primary-dark); }

/* ---------- 18. Footer ---------- */
.site-footer { margin-top: 0; color: #94a3b8; background: var(--bg-dark); border-top: 1px solid rgba(148, 163, 184, .14); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.35fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.footer-col h4 { margin-bottom: 1rem; color: #f8fafc; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; padding: .3rem 0; color: #94a3b8; font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-contact p { margin: 0 0 .5rem; font-size: .875rem; }
.footer-company { color: #fff; font-weight: 700; }
.footer-hours { color: #6ee7b7; }
.footer-bottom { padding: 1.25rem 0; border-top: 1px solid rgba(148, 163, 184, .14); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-legal, .pay-badges { display: flex; align-items: center; gap: .65rem; }
.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: #fff; }
.pay-badge { display: inline-flex; min-height: 26px; padding: .25rem .65rem; align-items: center; color: #cbd5e1; background: rgba(255, 255, 255, .07); border: 1px solid rgba(148, 163, 184, .2); border-radius: 5px; font-size: .65rem; font-weight: 700; letter-spacing: .05em; }

/* ---------- 18. Integrated public-page compositions ---------- */
.market-bar {
    color: #bfdbfe;
    background: #071126;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    font-size: .72rem;
    letter-spacing: .04em;
}
.market-bar-inner { display: flex; min-height: 34px; align-items: center; gap: 1.5rem; }
.market-status { display: inline-flex; align-items: center; gap: .5rem; flex: 0 0 auto; color: #fff; font-weight: 700; text-transform: uppercase; }
.market-status i { width: 7px; height: 7px; background: #34d399; border-radius: 50%; box-shadow: 0 0 0 5px rgba(52, 211, 153, .12); }
.market-ticker { display: flex; min-width: 0; gap: 1.5rem; overflow: hidden; color: #94a3b8; white-space: nowrap; }
.market-ticker strong { color: #e2e8f0; }
.market-settlement { margin-left: auto; flex: 0 0 auto; color: #6ee7b7; }
.header-login { color: #475569; font-size: .875rem; font-weight: 700; }
.header-cta { padding: .65rem 1rem; }

.exchange-hero {
    position: relative;
    overflow: hidden;
    color: #cbd5e1;
    background: radial-gradient(circle at 78% 20%, rgba(37, 99, 235, .34), transparent 30%), linear-gradient(125deg, #071126 0%, #10255b 58%, #123f6b 100%);
    isolation: isolate;
}
.hero-grid-overlay { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(147, 197, 253, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 197, 253, .055) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.exchange-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(3rem, 7vw, 7rem); min-height: 650px; padding-top: 6.5rem; padding-bottom: 6.5rem; align-items: center; }
.exchange-hero-copy h1 { max-width: 760px; margin-bottom: 1.5rem; color: #fff; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -.065em; }
.exchange-hero-copy h1 em { color: #93c5fd; font-style: normal; }
.exchange-hero-copy .hero-sub { max-width: 650px; margin: 0 0 2rem; color: #cbd5e1; font-size: 1.1rem; }
.exchange-hero-copy .hero-actions { justify-content: flex-start; }
.hero-security-line { display: flex; gap: 1rem 1.5rem; margin-top: 2rem; flex-wrap: wrap; color: #94a3b8; font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-security-line span::before { content: '✓'; margin-right: .4rem; color: #34d399; }
.hero-rate-panel { padding: 1.4rem; background: rgba(7, 17, 38, .72); border: 1px solid rgba(147, 197, 253, .25); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); backdrop-filter: blur(16px); }
.rate-panel-head { display: flex; justify-content: space-between; padding: .2rem .25rem 1rem; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.live-indicator { color: #6ee7b7; }
.live-indicator::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .45rem; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(110, 231, 183, .12); }
.hero-rate-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: .8rem; padding: 1.05rem .25rem; align-items: center; border-top: 1px solid rgba(148, 163, 184, .18); }
.hero-rate-row > div:not(:first-child) { text-align: right; }
.hero-rate-row strong { display: block; color: #fff; font-variant-numeric: tabular-nums; }
.hero-rate-row small { display: block; color: #94a3b8; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.rate-panel-note { margin: 1rem .25rem 0; color: #94a3b8; font-size: .76rem; line-height: 1.6; }
.section-kicker { margin-bottom: .55rem; color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fintech-section-head > p { max-width: 320px; margin: 0; color: var(--text-light); text-align: right; }
.live-rates-section { background: #f8fafc; }
.rate-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.rate-card-top { display: flex; gap: 1rem; align-items: flex-start; }
.rate-card-top h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.rate-card-top p { margin: 0; color: var(--text-light); font-size: .86rem; }
.currency-monogram { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; color: #fff; background: var(--primary); border-radius: 12px; font-weight: 800; box-shadow: 0 7px 18px rgba(30, 64, 175, .2); }
.rate-values { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.4rem 0 1rem; }
.rate-values div { padding: .8rem; background: #f8fafc; border: 1px solid var(--border); border-radius: 9px; }
.rate-values dt { color: var(--text-light); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.rate-values dd { margin: .2rem 0 0; color: var(--text-dark); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rate-limits { padding: .8rem 0 1.2rem; color: var(--text-light); font-size: .78rem; border-top: 1px solid var(--border); }
.process-section { background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 16px; }
.process-card { padding: 2.25rem; background: #fff; }
.process-card > span { display: block; margin-bottom: 2.5rem; color: var(--primary); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.process-card h3 { font-size: 1.18rem; }
.process-card p { margin: 0; color: var(--text-light); font-size: .9rem; }
.trust-band { overflow: hidden; color: #fff; background: var(--primary-dark); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid .trust-item { padding: 2.2rem 1.5rem; text-align: left; border-right: 1px solid rgba(255, 255, 255, .15); }
.trust-grid .trust-item:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { color: #fff; }
.trust-grid span { color: #bfdbfe; font-size: .78rem; }
.company-intro-section { background: #eef4ff; }
.company-intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.company-intro-grid .section-title { text-align: left; }
.company-intro-grid > div:last-child { font-size: 1.08rem; }
.text-link { font-weight: 700; }

.exchange-page-hero, .static-hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; color: #cbd5e1; background: radial-gradient(circle at 85% 20%, rgba(59, 130, 246, .28), transparent 30%), linear-gradient(125deg, #071126, #153b6e); }
.exchange-page-hero::after, .static-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(147, 197, 253, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 197, 253, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, #000, transparent); }
.exchange-page-heading, .static-head { position: relative; z-index: 1; margin-bottom: 0; }
.exchange-page-hero .page-title, .static-hero .page-title { max-width: 760px; color: #fff; }
.exchange-page-hero p:last-child, .static-hero .static-head > p:last-child { max-width: 650px; margin-bottom: 0; color: #cbd5e1; font-size: 1.06rem; }
.exchange-form-section { background: #f1f5f9; }
.exchange-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 2rem; align-items: start; }
.exchange-form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); }
.exchange-fieldset { min-width: 0; padding: 0 0 2rem; margin: 0 0 2rem; border: 0; border-bottom: 1px solid var(--border); }
.exchange-fieldset legend { width: 100%; margin-bottom: 1.2rem; color: var(--text-dark); font-size: 1rem; font-weight: 800; }
.exchange-fieldset legend span { display: inline-grid; width: 30px; height: 30px; margin-right: .6rem; place-items: center; color: #fff; background: var(--primary); border-radius: 8px; font-size: .68rem; }
.pair-option-body strong, .pair-option-body small, .pair-option-body em { display: block; }
.pair-option-body small { color: var(--text-light); }
.pair-option-body em { margin-top: .35rem; color: var(--primary); font-size: .72rem; font-style: normal; font-weight: 700; }
.direction-toggle label { flex: 1; position: relative; cursor: pointer; }
.direction-toggle label + label { border-left: 1px solid var(--border); }
.direction-toggle label input { position: absolute; opacity: 0; pointer-events: none; }
.direction-toggle label > span { display: flex; min-height: 68px; padding: .8rem; align-items: center; justify-content: center; flex-direction: column; color: var(--text-dark); font-weight: 700; transition: .2s ease; }
.direction-toggle label > span small { color: var(--text-light); font-size: .7rem; font-weight: 500; }
.direction-toggle label input:checked + span { color: #fff; background: var(--primary); }
.direction-toggle label input:checked + span small { color: #dbeafe; }
.form-grid { display: grid; gap: 0 1rem; }
.form-grid.two-columns { grid-template-columns: 1fr 1fr; }
.form-grid-full { grid-column: 1 / -1; }
.optional { color: var(--text-light); font-size: .72rem; font-weight: 400; }
.fieldset-intro { margin-top: -.5rem; color: var(--text-light); font-size: .86rem; }
.amount-input-wrap { position: relative; }
.amount-input-wrap input { padding-right: 5rem; font-size: 1.2rem; font-weight: 700; }
.amount-input-wrap span { position: absolute; top: 50%; right: 1rem; color: var(--text-light); font-size: .78rem; font-weight: 800; transform: translateY(-50%); }
.consent-row { display: flex; gap: .75rem; margin: 0 0 1.25rem; align-items: flex-start; color: #475569; font-size: .82rem; }
.consent-row input { margin-top: .3rem; flex: 0 0 auto; }
.quote-preview { position: sticky; top: 130px; overflow: hidden; padding: 1.7rem; color: #cbd5e1; background: #071126; border: 1px solid #1e3a5f; border-radius: 18px; box-shadow: var(--shadow-lg); }
.quote-preview h2 { color: #fff; }
.quote-preview .section-kicker { color: #6ee7b7; }
.quote-flow { margin: 1.5rem 0; }
.quote-flow > div { padding: 1rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(148, 163, 184, .16); border-radius: 10px; }
.quote-flow span, .quote-details dt { color: #94a3b8; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.quote-flow strong { display: block; margin-top: .2rem; color: #fff; font-size: 1.25rem; overflow-wrap: anywhere; }
.quote-arrow { display: block; padding: .35rem; color: #6ee7b7 !important; text-align: center; }
.quote-details { margin: 0; }
.quote-details > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(148, 163, 184, .16); }
.quote-details dd { margin: 0; color: #fff; text-align: right; }
.quote-note { margin: 1.2rem 0; color: #94a3b8; font-size: .76rem; }
.quote-assurance { display: flex; gap: .5rem; flex-wrap: wrap; }
.quote-assurance span { padding: .3rem .55rem; color: #bfdbfe; background: rgba(30, 64, 175, .22); border: 1px solid rgba(147, 197, 253, .17); border-radius: 999px; font-size: .65rem; }

.static-page { padding-top: 4rem; padding-bottom: 5rem; }
.editorial-intro .lead { color: var(--text-dark); font-size: 1.25rem; line-height: 1.7; }
.company-facts, .compliance-registration, .risk-panel, .regulatory-note { padding: 2rem; margin-top: 2rem; background: #f8fafc; border: 1px solid var(--border); border-radius: 14px; }
.company-facts dl { margin: 0; }
.company-facts dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.company-facts dl > div:last-child { border-bottom: 0; }
.company-facts dt { color: var(--text-light); }
.company-facts dd { margin: 0; color: var(--text-dark); font-weight: 600; }
.static-cta-panel { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem; margin-top: 3rem; align-items: center; color: #fff; background: var(--bg-dark); border-radius: 16px; }
.static-cta-panel h2 { margin: 0; color: #fff; }
.static-cta-panel .section-kicker { color: #6ee7b7; }
.faq-list .faq-item summary { display: flex; gap: 1rem; }
.faq-list .faq-item summary > span { color: var(--primary); font-size: .72rem; letter-spacing: .08em; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; max-width: none; }
.contact-details { display: grid; gap: 1rem; }
.contact-details .info-card { margin: 0; }
.compliance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.compliance-card { padding: 1.6rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.compliance-card > span { color: var(--primary); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.compliance-card h2 { margin-top: .5rem; font-size: 1.08rem; }
.compliance-card p { margin: 0; color: var(--text-light); font-size: .9rem; }
.legal { color: #475569; }
.legal h2 { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); font-size: 1.35rem; }
.footer-lead { display: flex; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; align-items: center; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.footer-lead h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.footer-kicker { color: #6ee7b7; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.risk-disclosure { padding-top: 1.4rem; padding-bottom: 1.4rem; border-top: 1px solid rgba(148, 163, 184, .14); font-size: .76rem; }
.risk-disclosure strong { color: #e2e8f0; }
.risk-disclosure p { margin: .35rem 0 0; }

/* ---------- 19. Responsive: tablet ---------- */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-inner { gap: 1.25rem; }
    .main-nav { gap: 1rem; }
    .account-label { display: none; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .order-detail-grid, .exchange-detail-grid { grid-template-columns: 1fr; }
    .exchange-hero-grid { grid-template-columns: 1fr; gap: 3rem; min-height: 0; }
    .hero-rate-panel { max-width: 700px; }
    .exchange-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid .trust-item:nth-child(2) { border-right: 0; }
}


/* ---------- 20. Responsive: mobile ---------- */
@media (max-width: 768px) {
    .container { padding-inline: 18px; }
    .grid--2, .grid--3, .grid--4, .form-row, .contact-grid, .account-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; order: -1; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 72px);
        padding: .75rem 1.25rem 1.25rem;
        overflow-y: auto;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    body.nav-open .main-nav { display: flex; }
    .main-nav > a, .nav-dropdown-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--border); }
    .main-nav > a::after, .nav-dropdown-link::after { display: none; }
    .dropdown-panel { position: static; min-width: 0; padding: .35rem 0 .35rem .75rem; visibility: visible; opacity: 1; border: 0; box-shadow: none; transform: none; }
    .hero { padding: 4.5rem 0 4rem; }
    .hero-proof { gap: 1.25rem; }
    .section { padding: 4rem 0; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .section-head .section-title { text-align: left; }
    .exchange-form, .exchange-form-card { padding: 1.75rem; }
    .rate-cards, .rate-card-grid { grid-template-columns: 1fr; }
    .exchange-hero-grid { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .exchange-hero-copy h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
    .process-grid, .company-intro-grid, .exchange-layout, .contact-layout { grid-template-columns: 1fr; }
    .quote-preview { position: static; }
    .fintech-section-head > p { text-align: left; }
    .footer-lead { align-items: flex-start; flex-direction: column; }
    .account-page-head, .order-detail-head { align-items: flex-start; flex-direction: column; }
    .status-timeline { grid-template-columns: repeat(2, 1fr); }
    .next-steps ol { grid-template-columns: 1fr; }
    .footer-grid { gap: 2rem; }
}

/* ---------- 21. Responsive: compact phones ---------- */
@media (max-width: 480px) {
    .container { padding-inline: 16px; }
    .header-inner { min-height: 64px; gap: .65rem; }
    .logo-text { font-size: 1rem; }
    .logo-text small { max-width: 125px; overflow: hidden; font-size: .5rem; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
    .header-tools { gap: .4rem; }
    .header-login { display: none; }
    .header-cta { padding: .58rem .72rem; font-size: .78rem; }
    .currency-switch { display: none; }
    .hero-actions, .success-actions { align-items: stretch; flex-direction: column; }
    .hero-proof { align-items: center; flex-direction: column; }
    .hero-proof li { align-items: center; }
    .section { padding: 3.25rem 0; }
    .section__title, .section-title { font-size: 1.65rem; }
    .rate-card { padding: 1.35rem; }
    .rate-card__rates, .pair-selector, .rate-values, .form-grid.two-columns, .compliance-grid { grid-template-columns: 1fr; }
    .exchange-form, .exchange-form-card { padding: 1.35rem; border-radius: 12px; }
    .direction-toggle { flex-direction: column; }
    .direction-btn + .direction-btn, .direction-toggle label + label { border-top: 1px solid var(--border); border-left: 0; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-grid .trust-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
    .company-facts dl > div { grid-template-columns: 1fr; gap: .25rem; }
    .static-cta-panel { align-items: flex-start; flex-direction: column; }
    .market-settlement { display: none; }
    .market-ticker { justify-content: flex-end; }
    .market-ticker span:not(:first-child) { display: none; }
    .status-timeline { grid-template-columns: 1fr; }
    .summary-rows > div { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .summary-rows dd { text-align: left; }
    .steps { gap: .5rem; }
    .step, .steps > li { padding: 1.5rem .75rem; }
    .form-card, .contact-form, .auth-card { padding: 1.35rem; }
    .auth-card { margin: 2rem auto; }
    .success-meta { align-items: center; flex-direction: column; gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 2rem; }
    .footer-bottom-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
