:root {
    --bg: #050505;
    --bg-elevated: #0d0d0d;
    --bg-card: #121212;
    --bg-card-soft: #171717;
    --border: rgba(212, 175, 55, 0.18);
    --border-soft: rgba(255, 255, 255, 0.08);
    --gold: #d4af37;
    --gold-bright: #f0d78c;
    --gold-deep: #a8841f;
    --text: #f4f1ea;
    --muted: #9a958a;
    --green: #3dd68c;
    --red: #ff6b6b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --header-h: 78px;
}

html[lang="fa"] {
    --font: "Vazirmatn", "Tahoma", "Segoe UI", sans-serif;
    --display: "Vazirmatn", "Tahoma", sans-serif;
}

html[lang="ar"] {
    --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
    --display: "Noto Naskh Arabic", "Cairo", "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
        radial-gradient(900px 500px at 10% 20%, rgba(212, 175, 55, 0.05), transparent 55%),
        var(--bg);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.page {
    position: relative;
    overflow: clip;
}

.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.ambient--one {
    width: 420px;
    height: 420px;
    top: 120px;
    right: -80px;
    background: rgba(212, 175, 55, 0.12);
    animation: floatY 10s ease-in-out infinite;
}

.ambient--two {
    width: 320px;
    height: 320px;
    top: 640px;
    left: -120px;
    background: rgba(61, 214, 140, 0.06);
    animation: floatY 12s ease-in-out infinite reverse;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(5, 5, 5, 0.72);
    border-bottom: 1px solid var(--border-soft);
}

.header__inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 28px;
    object-fit: contain;
    object-position: center;
}

.brand__logo--sm {
    height: 18px;
}

.brand__logo--md {
    height: 28px;
}

.brand__logo--lg {
    height: 36px;
}

.brand__logo--hero {
    height: clamp(34px, 5vh, 46px);
}

.brand__icon {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.brand__icon--sm {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.brand__icon--md {
    width: 28px;
    height: 28px;
}

.brand__icon--lg {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

/* Legacy CSS mark kept only if a page still emits an empty span */
.brand__mark:not(img) {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
    position: relative;
    flex-shrink: 0;
}

.brand__mark:not(img)::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1.5px solid rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    transform: rotate(45deg);
}

.brand__mark--sm:not(img) {
    width: 18px;
    height: 18px;
    border-radius: 5px;
}

.brand__mark--sm:not(img)::after {
    inset: 4px;
}

.brand__text {
    font-family: var(--display);
    font-size: 1.55rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gold-bright);
    white-space: nowrap;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 1.35rem;
    flex-wrap: wrap;
}

.nav a,
.link-muted,
.footer__grid a,
.footer__bottom a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav a:hover,
.link-muted:hover,
.footer__grid a:hover,
.footer__bottom a:hover,
.text-link:hover {
    color: var(--gold-bright);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.85rem 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
    color: #111;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.28);
}

.btn--gold:hover {
    box-shadow: 0 14px 36px rgba(212, 175, 55, 0.4);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.btn--sm {
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
}

.btn--icon {
    width: 46px;
    padding: 0;
    border-radius: 12px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: transparent;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
}

.lang-switcher-mobile,
.nav-mobile-actions {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
    padding: clamp(3.5rem, 7vh, 5.5rem) 0 3.25rem;
    min-height: calc(100vh - var(--header-h));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
}

.hero h1 {
    margin: 1.15rem 0 1rem;
    font-family: var(--display);
    font-size: clamp(2.6rem, 5.6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 700;
    display: grid;
    gap: 0.12em;
}

.text-gold {
    color: var(--gold-bright);
    background: linear-gradient(105deg, #fff1b0 0%, #f0d78c 35%, #c9a227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.28));
}

.hero__lead {
    max-width: 34rem;
    color: var(--muted);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.7rem 0 1.55rem;
}

.hero__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    border-radius: 12px;
    padding-inline: 1.25rem;
    font-weight: 750;
}

.btn--ghost-gold {
    border-color: rgba(212, 175, 55, 0.55);
    color: var(--text);
    background: transparent;
}

.btn--ghost-gold:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.06);
}

html[dir="rtl"] .hero__cta .btn svg {
    transform: scaleX(-1);
}

.trust-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.45rem, 1.2vw, 0.75rem);
    width: 100%;
    max-width: 100%;
}

.trust-bar li {
    display: grid;
    gap: 0.2rem;
    justify-items: start;
    align-content: start;
    min-width: 0;
    padding: 0.15rem 0.1rem;
}

.trust-bar__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 0.15rem;
    border-radius: 10px;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.trust-bar strong {
    font-size: clamp(0.78rem, 1.1vw, 0.86rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.trust-bar span:last-child {
    color: var(--muted);
    font-size: clamp(0.7rem, 1vw, 0.76rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.35rem;
    max-width: 100%;
}

.hero-social-proof p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
    min-width: 0;
}

.hero-social-proof__avatars {
    display: flex;
    align-items: center;
}

.hero-social-proof__avatars span {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 2px solid #0a0a0a;
    margin-inline-start: -8px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 45%),
        linear-gradient(145deg, #d4af37, #6b5310);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.hero-social-proof__avatars span:first-child {
    margin-inline-start: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 45%),
        linear-gradient(145deg, #f0d78c, #8a6a12);
}

.hero-social-proof__avatars span:nth-child(2) {
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 45%),
        linear-gradient(145deg, #cfcfcf, #555);
}

.hero-social-proof__avatars span:nth-child(3) {
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 45%),
        linear-gradient(145deg, #e8c56a, #7a5a10);
}

.hero__visual {
    display: grid;
    place-items: center;
    position: relative;
}

.orb {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 1;
}

.orb__glow {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 215, 140, 0.38), transparent 68%);
    filter: blur(16px);
    animation: pulse 4.5s ease-in-out infinite;
}

.orb__ring {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.12);
    pointer-events: none;
}

.orb__globe {
    width: 100%;
    height: 100%;
    animation: spinSlow 36s linear infinite;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.25));
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 14, 14, 0.82);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    animation: floatY 5.5s ease-in-out infinite;
    z-index: 2;
}

.float-chip strong {
    letter-spacing: 0.04em;
}

.float-chip em {
    font-style: normal;
    color: #7dcea0;
    font-weight: 750;
}

.float-chip--btc { top: 12%; left: 2%; }
.float-chip--eth { top: 16%; right: 0; animation-delay: -1.2s; }
.float-chip--sol { bottom: 24%; left: -2%; animation-delay: -2s; }
.float-chip--matic { bottom: 14%; right: 4%; animation-delay: -0.8s; }
.float-chip--ai {
    top: 46%;
    right: -4%;
    animation-delay: -1.6s;
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 14px 34px rgba(212, 175, 55, 0.18);
}

.float-chip--ai em {
    color: var(--gold-bright);
}

.platform {
    padding: clamp(2.5rem, 6vh, 4.5rem) 0 clamp(3rem, 7vh, 5rem);
}

.platform-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(1.5rem, 3.5vh, 2.25rem);
    display: grid;
    gap: 0.65rem;
    justify-items: center;
}

.platform-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.4vw, 2.55rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.platform-head p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.92rem, 1.4vw, 1.05rem);
    line-height: 1.55;
}

.emaar-stage {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: clamp(0.85rem, 1.8vh, 1.15rem);
    padding: clamp(0.95rem, 2vw, 1.35rem);
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(70% 80% at 12% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
        linear-gradient(165deg, rgba(18, 16, 10, 0.96), rgba(8, 8, 8, 0.98));
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: emaarStageIn 0.7s ease both;
}

.emaar-stage__glow {
    position: absolute;
    inset: auto -10% -30% 40%;
    height: 55%;
    background: radial-gradient(circle, rgba(240, 215, 140, 0.16), transparent 70%);
    pointer-events: none;
}

@keyframes emaarStageIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.emaar-stage__chrome {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0.25rem 0.35rem;
}

.emaar-stage__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.emaar-stage__brand strong {
    font-family: var(--display);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    letter-spacing: 0.04em;
    color: var(--gold-bright);
}

.emaar-stage__live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.emaar-stage__live i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #7dcea0;
    box-shadow: 0 0 0 0 rgba(125, 206, 160, 0.55);
    animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(125, 206, 160, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(125, 206, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(125, 206, 160, 0); }
}

.emaar-stage__kpis {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.emaar-kpi {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.emaar-kpi.is-active {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 28px rgba(212, 175, 55, 0.1);
    animation: floatY 6s ease-in-out infinite;
}

.emaar-kpi span {
    color: var(--muted);
    font-size: 0.78rem;
}

.emaar-kpi strong {
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.emaar-kpi em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 750;
}

.emaar-stage__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
    gap: 0.85rem;
    min-width: 0;
}

.emaar-panel {
    padding: 1rem 1.05rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 0;
}

.emaar-panel--chart {
    display: grid;
    gap: 0.65rem;
}

.emaar-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.emaar-panel__head h3 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    letter-spacing: 0.01em;
}

.emaar-stage__rail {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    min-width: 0;
}

.emaar-panel--ai p {
    margin: 0.75rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.emaar-insight-meta {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.emaar-insight-meta em {
    color: var(--muted);
    font-style: normal;
    margin-inline-end: 0.35rem;
}

.emaar-positions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.emaar-positions li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.emaar-positions .asset {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 750;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.positive { color: var(--green); }
.negative { color: var(--red); }

.chart-box {
    position: relative;
    width: 100%;
}

.chart-box--performance {
    height: clamp(200px, 28vh, 260px);
}

.chart-box canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.text-link {
    color: var(--gold);
    font-size: 0.85rem;
}

.panel__head h2,
.section-head h2,
.features h3,
.cta-band h2,
.footer__grid h4 {
    margin: 0;
    font-family: var(--display);
    letter-spacing: 0.01em;
}

.range-tabs {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.range-tabs button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 0.3rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
}

.range-tabs button.is-active,
.range-tabs button:hover {
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
}

.badge {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
}

.coin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.coin--btc { background: #f2a900; }
.coin--eth { background: #8c9eff; }
.coin--sol { background: #14f195; }

.features {
    padding: 2rem 0 4rem;
}

.section-head {
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-head p {
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.feature-card {
    position: relative;
    min-height: 220px;
    padding: 1.35rem;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
    max-width: 18rem;
}

.feature-card__icon {
    position: absolute;
    right: 1rem;
    bottom: 0.8rem;
    font-size: 2.8rem;
    color: rgba(212, 175, 55, 0.55);
}

.cta-band {
    padding: 1rem 0 4.5rem;
}

.cta-band__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    overflow: hidden;
    padding: clamp(1.8rem, 4vw, 2.75rem) clamp(1.4rem, 3.5vw, 2.75rem);
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(70% 90% at 85% 50%, rgba(212, 175, 55, 0.18), transparent 55%),
        linear-gradient(115deg, rgba(18, 14, 6, 0.98), rgba(8, 8, 8, 0.98) 48%, rgba(12, 10, 4, 0.98));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-band__waves {
    position: absolute;
    inset: -10% -5%;
    background:
        radial-gradient(40% 55% at 70% 40%, rgba(240, 215, 140, 0.22), transparent 70%),
        radial-gradient(35% 50% at 88% 70%, rgba(201, 162, 39, 0.18), transparent 65%),
        repeating-linear-gradient(
            105deg,
            transparent 0 18px,
            rgba(212, 175, 55, 0.05) 18px 20px
        );
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
    animation: ctaWave 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ctaWave {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); opacity: 1; }
}

.cta-band__copy {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.cta-band h2 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3.4vw, 2.55rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin: 0 0 0.85rem;
}

.cta-band__copy p {
    margin: 0 0 1.4rem;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 34ch;
}

.cta-band__copy .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 50px;
    border-radius: 12px;
    padding-inline: 1.3rem;
    font-weight: 750;
}

html[dir="rtl"] .cta-band__copy .btn svg {
    transform: scaleX(-1);
}

.cta-band__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 280px;
}

.cta-phone {
    position: relative;
    width: min(210px, 58vw);
    transform: rotate(8deg) translateY(8px);
    filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
}

.cta-phone__bezel {
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(160deg, #2a2a2a, #0c0c0c 55%, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cta-phone__notch {
    width: 42%;
    height: 10px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #050505;
}

.cta-phone__screen {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    padding: 1.1rem 0.85rem 1.25rem;
    border-radius: 20px;
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(212, 175, 55, 0.18), transparent 60%),
        #070707;
    border: 1px solid rgba(212, 175, 55, 0.16);
    min-height: 280px;
}

.cta-phone__screen .brand__logo {
    height: 26px;
}

.cta-phone__chart {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.35));
}

.cta-phone__stats {
    display: grid;
    justify-items: center;
    gap: 0.1rem;
}

.cta-phone__stats span {
    color: #7dcea0;
    font-weight: 800;
    font-size: 1.05rem;
}

.cta-phone__stats em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.75rem;
}

.cta-play {
    position: absolute;
    right: 6%;
    top: 18%;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

html[dir="rtl"] .cta-play {
    right: auto;
    left: 6%;
}

.cta-band__orb {
    display: none;
}

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 3rem 0 1.5rem;
    background: #070707;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.2fr;
    gap: 1.5rem;
}

.footer__brand p,
.footer__newsletter p {
    color: var(--muted);
}

.footer__grid > div {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.footer__grid h4 {
    color: var(--text);
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.socials {
    display: flex;
    gap: 0.7rem;
}

.socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    display: grid;
    place-items: center;
    color: var(--gold-bright);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #101010;
    color: var(--text);
    padding: 0.8rem 0.9rem;
}

.newsletter-form input:focus {
    outline: 1px solid var(--gold);
}

.flash {
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.88rem;
    transition: opacity 0.28s ease;
}

.flash.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.flash--success {
    background: rgba(61, 214, 140, 0.12);
    color: var(--green);
    border: 1px solid rgba(61, 214, 140, 0.3);
}

.flash--error {
    background: rgba(255, 107, 107, 0.12);
    color: var(--red);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.footer__bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer__bottom div {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.placeholder-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.placeholder-card {
    width: min(480px, 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-align: center;
    box-shadow: var(--shadow);
}

.placeholder-card h1 {
    font-family: var(--display);
    margin: 1rem 0 0.6rem;
}

.placeholder-card p {
    color: var(--muted);
}

.brand--center {
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .feature-grid,
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .emaar-stage__body {
        grid-template-columns: 1fr;
    }

    .trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .trust-bar li {
        padding: 0.7rem 0.75rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
    }
}

@media (max-width: 860px) {
    .header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        justify-self: end;
    }

    .header__actions {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 8, 8, 0.98);
        border-bottom: 1px solid var(--border-soft);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        max-height: min(70vh, 520px);
        overflow-y: auto;
        z-index: 60;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
    }

    .nav a.is-active {
        background: rgba(212, 175, 55, 0.1);
        color: var(--gold-bright);
    }

    .public-nav--wide a.is-active::after {
        display: none;
    }

    .nav-mobile-actions {
        display: grid;
        gap: 0.65rem;
        margin-top: 0.65rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--border-soft);
    }

    .lang-switcher-mobile {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-soft);
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 2.5rem;
    }

    .trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .trust-bar li {
        padding: 0.75rem 0.8rem;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .trust-bar__icon {
        width: 32px;
        height: 32px;
    }

    .hero-social-proof {
        flex-wrap: wrap;
        gap: 0.55rem 0.75rem;
        margin-top: 1.1rem;
    }

    .hero-social-proof p {
        flex: 1 1 12rem;
        font-size: 0.82rem;
    }

    .emaar-stage__kpis {
        display: flex;
        gap: 0.65rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .emaar-kpi {
        flex: 0 0 min(70%, 220px);
        scroll-snap-align: start;
    }

    .emaar-kpi.is-active {
        animation: none;
    }

    .emaar-positions {
        display: flex;
        gap: 0.55rem;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        scroll-snap-type: x mandatory;
    }

    .emaar-positions li {
        flex: 0 0 min(78%, 240px);
        scroll-snap-align: start;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .emaar-positions li span:last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .range-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .cta-band__inner {
        grid-template-columns: 1fr;
        text-align: start;
    }

    .cta-band h2 {
        max-width: none;
    }

    .cta-band__visual {
        min-height: 240px;
        order: -1;
    }

    .cta-phone {
        transform: rotate(4deg);
        width: min(180px, 52vw);
    }

    .hero-social-proof {
        flex-wrap: wrap;
    }

    .float-chip--ai,
    .float-chip--matic {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1180px, calc(100% - 1.25rem));
    }

    .feature-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .trust-bar li {
        padding: 0.65rem 0.7rem;
        gap: 0.15rem;
    }

    .trust-bar__icon {
        width: 30px;
        height: 30px;
        margin-bottom: 0.1rem;
    }

    .trust-bar strong {
        font-size: 0.78rem;
    }

    .trust-bar span:last-child {
        font-size: 0.68rem;
    }

    .hero-social-proof {
        align-items: flex-start;
    }

    .hero-social-proof__avatars span {
        width: 28px;
        height: 28px;
    }

    .emaar-stage {
        padding: 0.85rem;
        border-radius: 22px;
    }

    .emaar-kpi {
        flex-basis: min(78%, 200px);
        padding: 0.75rem 0.85rem;
    }

    .emaar-kpi strong {
        font-size: clamp(1.15rem, 6vw, 1.4rem);
    }

    .chart-box--performance {
        height: 190px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero__cta {
        flex-wrap: wrap;
    }

    .auth-card {
        padding: 1.35rem;
    }

    .auth-page {
        padding: 1.25rem 0.75rem;
    }
}

/* Auth + App shell (Phase 2) */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(440px, 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    font-family: var(--display);
    text-align: center;
    margin: 1rem 0 0.4rem;
}

.auth-lead,
.muted {
    color: var(--muted);
}

.auth-lead {
    text-align: center;
    margin-top: 0;
}

.auth-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.auth-form label {
    display: grid;
    gap: 0.35rem;
}

.auth-form label span {
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-form label em {
    font-style: normal;
    opacity: 0.7;
}

.auth-form input {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #101010;
    color: var(--text);
    padding: 0.8rem 0.9rem;
}

.auth-form input:focus {
    outline: 1px solid var(--gold);
}

.auth-form input:disabled {
    opacity: 0.7;
}

.auth-switch {
    text-align: center;
    color: var(--muted);
    margin-bottom: 0;
}

.auth-switch a {
    color: var(--gold-bright);
}

.app-body {
    background: var(--bg);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.app-sidebar {
    border-right: 1px solid var(--border-soft);
    background: #090909;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-nav {
    display: grid;
    gap: 0.3rem;
}

.app-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    color: var(--muted);
}

.app-nav__icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.9;
}

.app-nav__icon svg {
    display: block;
}

.app-nav a.is-active,
.app-nav a:hover {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-bright);
}

.app-sidebar__foot {
    margin-top: auto;
    display: grid;
    gap: 0.75rem;
}

.app-user {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.app-user span {
    color: var(--muted);
    font-size: 0.85rem;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.app-topbar__lead {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.app-topbar__brand {
    display: none;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.app-topbar__brand .brand__text {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
}

.app-topbar__title {
    margin: 0;
    font-family: var(--display);
    font-size: 1.45rem;
}

.app-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Bottom nav + more sheet: desktop hidden */
.app-bottom-nav,
.app-more-sheet {
    display: none;
}

.app-flash {
    margin: 1rem 1.5rem 0;
}

.app-content {
    padding: 1.25rem 1.5rem 2rem;
    display: grid;
    gap: 1rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.dash-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-spaced {
    padding: 1.1rem 1.2rem 1.25rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.7rem 0.55rem;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
}

.panel-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.dash-grid--two {
    grid-template-columns: 1fr 1fr;
}

.progress-block {
    margin-top: 0.85rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.levels-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    display: grid;
    gap: 0.45rem;
}

html[dir="rtl"] .levels-list {
    padding-left: 0;
    padding-right: 1.1rem;
}

.feature-card.is-current-level {
    border-color: var(--border);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.asset-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.asset-cell img {
    border-radius: 50%;
}

.markets-subtitle {
    margin: 1.25rem 0 0.75rem;
    font-family: var(--display);
    font-size: 1.2rem;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.nft-card {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.nft-card img,
.nft-card__placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #111;
}

.nft-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-weight: 700;
}

.nft-card__body {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
}

@media (max-width: 1100px) {
    .nft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }
}

.nft-card--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nft-card--link:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Compact featured collections — Rarible-style small tiles, not NFT cards */
.featured-collections {
    margin: 0 0 1.75rem;
}

.featured-collections__head h2 {
    margin: 0 0 0.85rem;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
}

.featured-collections__rail {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.featured-collections__rail::-webkit-scrollbar {
    height: 4px;
}

.featured-collections__rail::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
}

.collection-chip {
    flex: 0 0 auto;
    width: 108px;
    scroll-snap-align: start;
    display: grid;
    gap: 0.4rem;
}

.collection-chip__img {
    width: 108px;
    height: 108px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    background: #111;
    display: block;
}

.collection-chip__img--empty {
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.18), transparent 55%),
        #151515;
}

.collection-chip__meta {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.collection-chip__name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-chip__floor {
    font-size: 0.7rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1100px) {
    .featured-collections__rail {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        overflow: visible;
        gap: 0.75rem;
    }

    .collection-chip {
        width: auto;
    }

    .collection-chip__img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

.public-body {
    min-height: 100vh;
}

.public-page .public-main {
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 1;
}

.public-main--detail {
    padding-top: 1.25rem;
}

.public-hero {
    margin-bottom: 2rem;
}

.public-hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.35rem 0 0.75rem;
}

.public-nav a.is-active {
    color: var(--gold-bright);
}

.public-nav--wide {
    gap: 1.25rem;
}

.public-nav--wide a.is-active {
    position: relative;
}

.public-nav--wide a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.header__actions--market {
    gap: 0.65rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--muted);
    display: grid;
    place-items: center;
}

.wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-bright);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 100%;
    min-width: 0;
}

.wallet-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-pill--block {
    justify-content: center;
    width: 100%;
}

.avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #d4af37, #f0d78c);
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.public-footer {
    padding: 1.5rem 0 2.5rem;
    position: relative;
    z-index: 1;
}

.public-footer--market .public-footer__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.public-footer__links {
    display: flex;
    gap: 1rem;
}

.public-footer__links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.public-footer__links a:hover {
    color: var(--gold-bright);
}

/* NFT detail mockup */
.nd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.nd-back:hover {
    color: var(--gold-bright);
}

.nd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.nd-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.nd-pill--gold {
    color: #111;
    background: linear-gradient(135deg, #d4af37, #f0d78c);
}

.nd-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    margin: 0.85rem 0 0.45rem;
    letter-spacing: -0.02em;
}

.nd-verified {
    color: var(--gold);
    flex: 0 0 auto;
}

.nd-lead {
    color: var(--muted);
    margin: 0 0 1rem;
    max-width: 36rem;
}

.nd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.nd-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.8rem;
    color: var(--text);
}

.nd-buy-card {
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 20px;
    padding: 1.1rem;
    background: rgba(18, 18, 18, 0.9);
    display: grid;
    gap: 0.75rem;
    max-width: 420px;
}

.nd-buy-card__price {
    display: grid;
    gap: 0.2rem;
}

.nd-buy-card__price strong {
    font-size: 1.55rem;
    font-weight: 800;
}

.nd-buy-actions {
    display: grid;
}

.nd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.nd-btn--buy {
    color: #111;
    background: linear-gradient(135deg, #c9a227, #f0d78c 55%, #ffe9a8);
    border: none;
}

.nd-btn--buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nd-btn--ghost {
    color: var(--gold-bright);
    background: transparent;
    border-color: rgba(212, 175, 55, 0.45);
}

.nd-hint {
    margin: 0;
    font-size: 0.82rem;
}

.nd-hero__media {
    position: sticky;
    top: 1rem;
}

.nd-media-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #0c0c0c;
    aspect-ratio: 1;
}

.nd-media-frame img,
.nd-media-empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nd-media-empty {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.4rem;
}

.nd-like {
    position: absolute;
    top: 0.9rem;
    inset-inline-end: 0.9rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    display: grid;
    place-items: center;
}

.nd-dots {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.35rem;
}

.nd-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.nd-dots span.is-active {
    background: var(--gold);
}

.nd-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: rgba(18, 18, 18, 0.85);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.nd-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
}

.nd-stat + .nd-stat {
    border-inline-start: 1px solid var(--border-soft);
}

.nd-stat__icon {
    color: var(--gold);
    display: grid;
    place-items: center;
}

.nd-stat strong {
    display: block;
    margin-top: 0.15rem;
}

.nd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.nd-panel {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: rgba(18, 18, 18, 0.85);
    padding: 1rem 1.15rem 1.15rem;
}

.nd-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.nd-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.nd-panel__head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.nd-tabs {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 1rem;
}

.nd-tab {
    padding: 0.55rem 0;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    font-weight: 600;
}

.nd-tab.is-active {
    color: var(--text);
}

.nd-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--gold);
}

.nd-about {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.nd-tags--footer {
    margin: 1.15rem 0 0;
}

.nd-market-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.nd-market-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.nd-market-list span {
    color: var(--muted);
}

.nd-ai p {
    margin: 0 0 0.5rem;
}

.nd-more__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.nd-more__head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.nd-more__head a {
    color: var(--gold-bright);
    text-decoration: none;
    font-size: 0.92rem;
}

.nd-more__rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.nd-more-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    aspect-ratio: 1;
    background: #111;
}

.nd-more-card img,
.nd-more-card__empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-more-card__empty {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--gold-bright);
}

.badge--bullish { color: var(--green); border-color: rgba(61, 214, 140, 0.35); }
.badge--bearish { color: var(--red); border-color: rgba(255, 107, 107, 0.35); }
.badge--neutral { color: var(--muted); }

.ai-bullets {
    margin: 0.75rem 0 0;
    padding-inline-start: 1.1rem;
    color: var(--muted);
}

.trade-form {
    display: grid;
    gap: 0.85rem;
}

.trade-form label {
    display: grid;
    gap: 0.35rem;
}

.trade-form input,
.trade-form select {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text);
    padding: 0.65rem 0.75rem;
}

.pager {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.is-hidden { display: none !important; }

/* NFT Marketplace (trade mockup) */
.nm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.nm-hero h1 {
    margin: 0 0 0.4rem;
    font-family: var(--font);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
}

.nm-hero p {
    margin: 0;
    color: var(--muted);
}

.nm-ai-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    background: rgba(18, 18, 18, 0.92);
    min-height: 100%;
}

.nm-ai-card__glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
    pointer-events: none;
}

.nm-ai-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #d4af37, #f6e2a0);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
    flex: 0 0 auto;
}

.nm-ai-card strong { display: block; margin-bottom: 0.25rem; }
.nm-ai-card p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.88rem; }
.nm-link { color: var(--gold-bright); text-decoration: none; font-weight: 600; font-size: 0.88rem; }

.nm-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.nm-kpi {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: rgba(18, 18, 18, 0.85);
    display: grid;
    gap: 0.2rem;
}

.nm-kpi strong { font-size: 1.15rem; }
.nm-up { color: var(--green); font-style: normal; font-size: 0.82rem; font-weight: 700; }
.nm-down { color: var(--red); font-style: normal; font-size: 0.82rem; font-weight: 700; }

.nm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
    gap: 1rem;
    align-items: start;
}

.nm-layout > *,
.nm-hero > *,
.nd-hero > *,
.nd-grid > * {
    min-width: 0;
}

.nm-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.nm-tab {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.88rem;
}

.nm-tab.is-active {
    color: var(--text);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
}

.nm-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(110px, 0.7fr));
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.nm-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

.nm-search input,
.nm-filters select {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0.7rem 0;
    outline: none;
    font: inherit;
}

.nm-filters select {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
    background: rgba(255, 255, 255, 0.02);
}

.nm-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.nm-card {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.9);
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nm-card.is-selected,
.nm-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
}

.nm-card__fav {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    cursor: pointer;
}

.nm-card__fav.is-on {
    color: #ff6b8a;
    border-color: rgba(255, 107, 138, 0.45);
}

.nm-card__media {
    display: block;
    aspect-ratio: 1;
    background: #101010;
}

.nm-card__media img,
.nm-card__ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nm-card__ph {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-weight: 700;
}

.nm-card__body {
    padding: 0.8rem;
    display: grid;
    gap: 0.25rem;
}

.nm-card__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nm-card__verified {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
}

.nm-card__prices {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.nm-card__prices strong { display: block; }
.nm-card__prices small { display: block; margin-top: 0.15rem; }

.nm-native {
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.nm-summary strong .nm-native,
.nm-info strong .nm-native {
    display: inline;
    margin-inline-start: 0.35rem;
}

.collection-chip__floor small {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 500;
}

.nm-card__cart {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #c9a227, #f0d78c);
    color: #111;
    display: grid;
    place-items: center;
    cursor: pointer;
    text-decoration: none;
}

.nm-more {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
}

.nm-trade {
    position: sticky;
    top: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: rgba(14, 14, 14, 0.95);
    padding: 0.95rem;
    display: grid;
    gap: 0.9rem;
}

.nm-trade__nft {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.nm-trade__thumb,
.nm-trade__thumb img,
.nm-trade__thumb-empty {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #151515;
}

.nm-trade__thumb-empty {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
}

.nm-trade__nft strong { display: block; }
.nm-trade__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.nm-trade__tabs button {
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 10px;
    padding: 0.55rem;
    font-weight: 700;
    cursor: pointer;
}

.nm-trade__tabs button.is-active {
    background: rgba(212, 175, 55, 0.14);
    color: var(--text);
}

.nm-label {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.nm-side-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.nm-side-toggle button {
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text);
    padding: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.nm-side-toggle .is-long.is-active {
    border-color: rgba(61, 214, 140, 0.55);
    background: rgba(61, 214, 140, 0.12);
    color: var(--green);
}

.nm-side-toggle .is-short.is-active {
    border-color: rgba(255, 107, 107, 0.55);
    background: rgba(255, 107, 107, 0.12);
    color: var(--red);
}

.nm-leverage { margin-bottom: 0.85rem; }
.nm-leverage__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

.nm-leverage input[type="range"] {
    width: 100%;
    accent-color: var(--gold);
}

.nm-leverage__marks {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.72rem;
}

.nm-amount { display: grid; gap: 0.4rem; margin-bottom: 0.75rem; }
.nm-amount__row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.nm-amount__input {
    display: flex;
    gap: 0.4rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0.25rem 0.35rem 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.02);
}

.nm-amount__input input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    font: inherit;
    padding: 0.55rem 0;
}

.nm-amount__input button {
    border: 0;
    border-radius: 9px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-bright);
    font-weight: 700;
    padding: 0 0.7rem;
    cursor: pointer;
}

.nm-summary {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
}

.nm-summary div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.nm-summary span { color: var(--muted); }

.nm-trade-actions {
    display: grid;
    gap: 0.45rem;
}

.nm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

.nm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.nm-btn--long {
    background: rgba(61, 214, 140, 0.16);
    border-color: rgba(61, 214, 140, 0.45);
    color: var(--green);
}

.nm-btn--short {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.45);
    color: var(--red);
}

.nm-btn--ghost {
    border-color: var(--border-soft);
    background: transparent;
    color: var(--text);
    padding: 0 1rem;
}

.nm-note { margin: 0.35rem 0 0; font-size: 0.78rem; }

.nm-fill {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 0.4rem;
}

.nm-fill__head,
.nm-fill__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.nm-fill__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.nm-fill__bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #3dd68c);
}

.nm-joined {
    border: 1px solid rgba(61, 214, 140, 0.35);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(61, 214, 140, 0.08);
}

.nm-joined p { margin: 0; font-size: 0.9rem; }

.nm-chart-card {
    border-top: 1px solid var(--border-soft);
    padding-top: 0.85rem;
    display: grid;
    gap: 0.65rem;
}

.nm-chart-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.nm-chart-tabs {
    display: flex;
    gap: 0.25rem;
}

.nm-chart-tabs button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.4rem;
    border-radius: 7px;
    cursor: pointer;
}

.nm-chart-tabs button.is-active {
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
}

.nm-chart-wrap {
    position: relative;
    height: 120px;
}

.nm-chart-tag {
    position: absolute;
    right: 0.35rem;
    top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(61, 214, 140, 0.35);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.nm-sentiment__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.nm-sentiment__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.35);
    overflow: hidden;
}

.nm-sentiment__bar i {
    display: block;
    height: 100%;
    background: var(--green);
}

.nm-info h3 {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
}

.nm-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.nm-info li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.86rem;
}

.nm-info span { color: var(--muted); }

.nm-features {
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.nm-features > div {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 0.9rem;
    background: rgba(18, 18, 18, 0.75);
}

.nm-features strong { display: block; margin-bottom: 0.3rem; }
.nm-features p { margin: 0; font-size: 0.85rem; }

.nm-collections-rail {
    margin-top: 0.5rem;
}

@media (max-width: 1100px) {
    .nm-hero,
    .nm-layout,
    .nm-features {
        grid-template-columns: 1fr;
    }

    .nm-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-trade {
        position: static;
    }

    .nm-filters {
        grid-template-columns: 1fr 1fr;
    }

    .nm-filters .nm-search {
        grid-column: 1 / -1;
    }

    .nm-ai-card {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .public-page .public-main {
        padding: 1.35rem 0 3rem;
    }

    .nm-features {
        grid-template-columns: 1fr 1fr;
    }

    .nm-card__prices {
        flex-wrap: wrap;
    }

    .nm-fill__meta,
    .nm-amount__row,
    .nm-summary div,
    .nm-info li,
    .nm-chart-card__head {
        flex-wrap: wrap;
    }

    .public-footer__row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .nm-kpis,
    .nm-filters,
    .nm-features {
        grid-template-columns: 1fr;
    }

    .nm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .nm-card {
        border-radius: 12px;
    }

    .nm-card.is-selected,
    .nm-card:hover {
        transform: none;
    }

    .nm-card__fav {
        top: 0.4rem;
        inset-inline-end: 0.4rem;
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .nm-card__body {
        padding: 0.55rem 0.55rem 0.65rem;
        gap: 0.12rem;
    }

    .nm-card__title {
        min-width: 0;
    }

    .nm-card__title strong {
        font-size: 0.82rem;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .nm-card__verified {
        width: 13px;
        height: 13px;
        font-size: 0.55rem;
        flex: 0 0 auto;
    }

    .nm-card__body > .muted {
        font-size: 0.68rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nm-card__prices {
        margin-top: 0.25rem;
        align-items: center;
        gap: 0.25rem;
    }

    .nm-card__prices strong {
        font-size: 0.8rem;
    }

    .nm-card__prices small {
        font-size: 0.65rem;
        margin-top: 0;
    }

    .nm-card__cart {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        flex: 0 0 auto;
    }

    .nm-card__cart svg {
        width: 13px;
        height: 13px;
    }

    .nm-native {
        font-size: 0.62rem;
        white-space: nowrap;
    }

    .nm-hero h1 {
        font-size: 1.55rem;
    }

    .nm-ai-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .nm-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
    }

    .nm-tab {
        flex: 0 0 auto;
    }

    .nm-chart-wrap {
        height: 140px;
    }
}

@media (max-width: 980px) {
    .nd-hero,
    .nd-grid {
        grid-template-columns: 1fr;
    }

    .nd-hero__media {
        position: static;
        order: -1;
    }

    .nd-stats {
        grid-template-columns: 1fr;
    }

    .nd-stat + .nd-stat {
        border-inline-start: 0;
        border-top: 1px solid var(--border-soft);
    }

    .nd-more__rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nd-buy-card {
        max-width: none;
        width: 100%;
    }

    .nd-panel__head {
        flex-wrap: wrap;
    }

    .nd-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.85rem;
    }

    .nd-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .nd-more__rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .nd-title {
        font-size: 1.55rem;
        flex-wrap: wrap;
    }

    .nd-buy-actions {
        display: grid;
        gap: 0.55rem;
    }

    .nd-buy-actions .nd-btn {
        width: 100%;
    }

    .nd-stat {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 420px) {
    .nm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .nm-card {
        border-radius: 10px;
    }

    .nm-card__body {
        padding: 0.45rem 0.45rem 0.55rem;
    }

    .nm-card__title strong {
        font-size: 0.75rem;
    }

    .nm-card__prices strong {
        font-size: 0.74rem;
    }

    .nm-card__cart {
        display: none;
    }

    .collection-chip,
    .collection-chip__img {
        width: 92px;
    }

    .collection-chip__img {
        height: 92px;
    }
}


@media (max-width: 960px) {
    .panel-row--two,
    .dash-grid--two {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }

    .app-topbar__brand {
        display: inline-flex;
    }

    .app-topbar__title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(52vw, 14rem);
    }

    .app-topbar {
        position: sticky;
        top: 0;
        z-index: 40;
        padding: 0.75rem 1rem;
        background: rgba(5, 5, 5, 0.88);
        backdrop-filter: blur(14px);
    }

    .app-topbar__landing {
        font-size: 0.78rem;
    }

    .app-flash {
        margin: 0.85rem 1rem 0;
    }

    .app-content {
        padding: 1rem 0.95rem calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }

    .dash-grid,
    .dash-grid--three {
        grid-template-columns: 1fr 1fr;
    }

    .table-wrap,
    .data-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .app-bottom-nav {
        display: grid;
        grid-template-columns: repeat(var(--bottom-cols, 4), minmax(0, 1fr));
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 80;
        min-height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        background: rgba(10, 10, 10, 0.94);
        border-top: 1px solid rgba(212, 175, 55, 0.22);
        backdrop-filter: blur(18px);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    }

    .app-bottom-nav__item {
        appearance: none;
        border: 0;
        background: transparent;
        color: var(--muted);
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 0.2rem;
        padding: 0.35rem 0.2rem;
        border-radius: 14px;
        text-decoration: none;
        font: inherit;
        cursor: pointer;
        min-width: 0;
        transition: color 0.2s, background 0.2s, transform 0.2s;
    }

    .app-bottom-nav__item:active {
        transform: scale(0.96);
    }

    .app-bottom-nav__item.is-active {
        color: var(--gold-bright);
        background: rgba(212, 175, 55, 0.1);
    }

    .app-bottom-nav__icon {
        display: grid;
        place-items: center;
        width: 24px;
        height: 24px;
    }

    .app-bottom-nav__icon svg {
        display: block;
    }

    .app-bottom-nav__label {
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-inline: 0.15rem;
    }

    .app-more-sheet {
        display: block;
    }

    .app-more-sheet[hidden] {
        display: none !important;
    }

    .app-more-sheet__backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        border: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(2px);
        cursor: pointer;
    }

    .app-more-sheet__panel {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 95;
        max-height: min(78vh, 560px);
        overflow: auto;
        padding: 0.65rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
        border-radius: 22px 22px 0 0;
        background: linear-gradient(180deg, #17150f, #0d0d0d 40%);
        border: 1px solid rgba(212, 175, 55, 0.28);
        border-bottom: 0;
        box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
        animation: appSheetUp 0.28s ease;
    }

    .app-more-sheet__handle {
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        margin: 0.15rem auto 0.85rem;
    }

    .app-more-sheet__head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .app-more-sheet__head strong {
        display: block;
    }

    .app-more-sheet__head span {
        color: var(--muted);
        font-size: 0.82rem;
    }

    .app-more-sheet__close {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        border: 1px solid var(--border-soft);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
    }

    .app-more-sheet__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .app-more-sheet__link {
        display: grid;
        grid-template-columns: 36px 1fr;
        align-items: center;
        gap: 0.55rem;
        padding: 0.85rem 0.75rem;
        border-radius: 14px;
        border: 1px solid var(--border-soft);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .app-more-sheet__link.is-active {
        border-color: rgba(212, 175, 55, 0.45);
        background: rgba(212, 175, 55, 0.1);
        color: var(--gold-bright);
    }

    .app-more-sheet__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        display: grid;
        place-items: center;
        background: rgba(212, 175, 55, 0.12);
        color: var(--gold-bright);
    }

    .app-more-sheet__foot {
        margin-top: 1rem;
        display: grid;
        gap: 0.75rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--border-soft);
    }

    body.has-more-open {
        overflow: hidden;
    }
}

@keyframes appSheetUp {
    from {
        opacity: 0.4;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .dash-grid,
    .dash-grid--three {
        grid-template-columns: 1fr;
    }

    .app-content {
        padding: 0.85rem 0.8rem calc(5.85rem + env(safe-area-inset-bottom, 0px));
    }

    .app-topbar {
        padding: 0.7rem 0.85rem;
    }

    .app-topbar__title {
        font-size: 0.98rem;
        max-width: min(48vw, 11rem);
    }

    .app-more-sheet__grid {
        grid-template-columns: 1fr;
    }

    .wallet-balances,
    .wallet-history,
    .wallet-form__row,
    .wallet-meta,
    .levels-tiers,
    .levels-bottom,
    .levels-benefits__grid,
    .levels-hero {
        grid-template-columns: 1fr;
    }
}

/* Language menu (single button → flags + names) */
.lang-menu {
    position: relative;
    display: inline-block;
}

.lang-menu__btn {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.35rem 0.7rem 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    user-select: none;
}

.lang-menu__btn::-webkit-details-marker {
    display: none;
}

.lang-menu__btn::marker {
    content: '';
}

.lang-menu[open] .lang-menu__btn {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.1);
}

.lang-menu__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.lang-menu__name {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-menu__chev {
    opacity: 0.7;
    transition: transform 0.18s ease;
}

.lang-menu[open] .lang-menu__chev {
    transform: rotate(180deg);
}

.lang-menu__panel {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 0.4rem);
    z-index: 80;
    min-width: 11.5rem;
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #141414;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    display: grid;
    gap: 0.15rem;
}

.lang-menu__option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
}

.lang-menu__option:hover,
.lang-menu__option.is-active {
    background: rgba(212, 175, 55, 0.12);
}

.lang-menu__option-text {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.lang-menu__option-text strong {
    font-size: 0.88rem;
    font-weight: 750;
}

.lang-menu__option-text small {
    color: var(--muted);
    font-size: 0.72rem;
}

.app-sidebar .lang-menu {
    width: 100%;
}

.app-sidebar .lang-menu__btn {
    width: 100%;
    justify-content: space-between;
}

.app-sidebar .lang-menu__panel {
    inset-inline: 0;
    width: 100%;
}

.auth-card .lang-menu,
.wiz-app-bar .lang-menu {
    margin: 0;
}

/* Legacy class hooks used by layouts */
.lang-switcher {
    display: inline-flex;
    align-items: center;
}

/* Keep mobile-only slot hidden on desktop (do not override to flex here) */
.lang-switcher-mobile .lang-menu__panel {
    inset-inline: auto 0;
}

.header__actions .lang-menu__panel {
    z-index: 120;
}

.header__actions {
    gap: 0.75rem;
}

/* RTL layout tweaks (fonts come from html[lang] variables) */
html[lang="fa"] body,
html[lang="ar"] body,
body.is-rtl {
    letter-spacing: 0;
}

html[lang="fa"] .brand__text,
html[lang="fa"] .hero h1,
html[lang="fa"] .panel__head h2,
html[lang="fa"] .section-head h2,
html[lang="fa"] .platform-head h2,
html[lang="fa"] .cta-band h2,
html[lang="fa"] .auth-card h1,
html[lang="fa"] .app-topbar__title,
html[lang="fa"] .feature-card h3,
html[lang="fa"] .footer__grid h4,
html[lang="fa"] .login-welcome-title,
html[lang="fa"] .login-step-title,
html[lang="fa"] .emaar-panel__head h3 {
    font-family: var(--display);
    font-weight: 800;
}

html[lang="ar"] .brand__text,
html[lang="ar"] .hero h1,
html[lang="ar"] .panel__head h2,
html[lang="ar"] .section-head h2,
html[lang="ar"] .platform-head h2,
html[lang="ar"] .cta-band h2,
html[lang="ar"] .auth-card h1,
html[lang="ar"] .app-topbar__title,
html[lang="ar"] .feature-card h3,
html[lang="ar"] .footer__grid h4,
html[lang="ar"] .login-welcome-title,
html[lang="ar"] .login-step-title,
html[lang="ar"] .emaar-panel__head h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.35;
}

html[dir="rtl"] .app-sidebar {
    border-right: 0;
    border-left: 1px solid var(--border-soft);
}

html[dir="rtl"] .feature-card__icon {
    right: auto;
    left: 1rem;
}

html[dir="rtl"] .data-table th,
html[dir="rtl"] .data-table td {
    text-align: right;
}

/* —— Wallet page (deposit / withdraw mock) —— */
.wallet-page {
    display: grid;
    gap: 1.25rem;
}

.wallet-balances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.wallet-bal-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.08), transparent 42%),
        linear-gradient(180deg, #161616, #0f0f0f);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.15rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
    animation: walletFadeUp 0.55s ease both;
}

.wallet-bal-card > *:not(.emaar-ornament) {
    position: relative;
    z-index: 1;
}

.wallet-bal-card:nth-child(2) { animation-delay: 0.06s; }
.wallet-bal-card:nth-child(3) { animation-delay: 0.12s; }

.wallet-bal-card--principal {
    border-color: rgba(212, 175, 55, 0.35);
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.16), transparent 50%),
        linear-gradient(180deg, #1a1710, #100e0a);
}

.wallet-bal-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.wallet-bal-card__badge {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.wallet-bal-card__value {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.wallet-bal-card__sub {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.wallet-eye {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.wallet-eye:hover {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
}

.is-blurred {
    filter: blur(7px);
    user-select: none;
}

.wallet-ops {
    padding: 0;
    overflow: hidden;
    animation: walletFadeUp 0.55s ease 0.14s both;
}

.wallet-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.85rem 1.25rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.wallet-tabs__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.wallet-tabs__btn.is-active {
    color: var(--gold-bright);
}

.wallet-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.wallet-tab-panel {
    display: none;
    padding: 1.25rem;
}

.wallet-tab-panel.is-active {
    display: block;
    animation: walletFadeUp 0.35s ease;
}

.wallet-deposit-grid,
.wallet-withdraw-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 1.25rem;
    align-items: start;
}

.wallet-guide {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 1.15rem 1.1rem;
}

.wallet-guide h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.wallet-guide__lead {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.wallet-guide__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.wallet-guide__list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.7rem;
    align-items: start;
}

.wallet-guide__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.22);
    font-size: 0.85rem;
}

.wallet-guide__list strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.wallet-guide__list span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.wallet-guide__badge {
    margin-top: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 700;
}

.wallet-guide__badge--ok {
    background: rgba(61, 214, 140, 0.1);
    border-color: rgba(61, 214, 140, 0.35);
    color: var(--green);
}

.wallet-guide__badge--warn {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.28);
    color: #ffb4b4;
}

.wallet-form {
    display: grid;
    gap: 1rem;
}

.wallet-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.wallet-field {
    display: grid;
    gap: 0.4rem;
}

.wallet-field > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.wallet-field input[type="text"],
.wallet-field input[type="number"],
.wallet-select,
.wallet-amount,
.wallet-address {
    background: #0a0a0a;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    min-height: 48px;
}

.wallet-field input[type="text"],
.wallet-field input[type="number"] {
    width: 100%;
    color: var(--text);
    padding: 0.7rem 0.9rem;
}

.wallet-field input:focus,
.wallet-select:focus-within,
.wallet-amount:focus-within,
.wallet-address:focus-within {
    outline: none;
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.wallet-select,
.wallet-amount,
.wallet-address {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-inline: 0.75rem;
}

.wallet-select select,
.wallet-amount input,
.wallet-address input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0.75rem 0;
    appearance: none;
}

.wallet-select select {
    cursor: pointer;
}

.wallet-select__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.wallet-select__icon--usdt {
    background: #26a17b;
    color: #fff;
}

.wallet-amount > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.wallet-address input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
}

.wallet-address .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.wallet-address-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.wallet-my-addrs {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.wallet-my-addrs h3 {
    margin: 0;
    font-size: 1.02rem;
}

.wallet-my-addrs .muted {
    margin: 0;
    font-size: 0.84rem;
}

.wallet-my-addrs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
}

.wallet-my-addr {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
}

.wallet-my-addr__net {
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 700;
}

.wallet-my-addr__row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.wallet-my-addr__row input {
    min-width: 0;
    flex: 1;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wallet-my-addr__qr {
    border-radius: 8px;
    background: #fff;
    justify-self: start;
}

.wallet-my-addr--empty {
    color: var(--muted);
}

.wallet-address-block__main {
    display: grid;
    gap: 0.85rem;
}

.wallet-qr {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 0.85rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #111;
    font-size: 0.78rem;
    font-weight: 700;
}

.wallet-qr img {
    display: block;
    border-radius: 8px;
}

.wallet-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.wallet-meta > div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
}

.wallet-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
}

.wallet-meta strong {
    font-size: 0.88rem;
}

.wallet-status-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.wallet-status-line em {
    color: var(--gold-bright);
    font-style: normal;
    font-weight: 700;
}

.wallet-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.wallet-warn {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold-bright);
    font-size: 0.82rem;
    line-height: 1.45;
}

.wallet-form__submit {
    justify-self: start;
    min-width: 180px;
}

.dep-wizard {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 1.1rem;
}

.dep-wizard__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.dep-wizard__step {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.dep-wizard__step span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
}

.dep-wizard__step.is-active {
    color: var(--gold-bright);
}

.dep-wizard__step.is-active span,
.dep-wizard__step.is-done span {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
}

.dep-panel {
    display: none;
    gap: 0.9rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    animation: walletFadeUp 0.28s ease;
}

.dep-panel.is-active {
    display: grid;
}

.dep-panel h3 {
    margin: 0;
    font-size: 1.08rem;
}

.dep-panel > .muted {
    margin: 0;
}

.dep-choice {
    appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    text-align: start;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.dep-choice:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.dep-choice.is-selected {
    border-color: rgba(212, 175, 55, 0.7);
    background: rgba(212, 175, 55, 0.1);
}

.dep-choice__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.dep-choice__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dep-choice__fallback {
    font-weight: 800;
    color: var(--gold-bright);
}

.dep-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dep-chip img {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: contain;
    background: #fff;
}

.dep-choice__body {
    display: grid;
    gap: 0.15rem;
}

.dep-choice__body strong {
    font-size: 0.98rem;
}

.dep-choice__body em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.78rem;
}

.dep-choice__tag,
.dep-choice__badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    white-space: nowrap;
}

.dep-choice--net {
    grid-template-columns: auto 1fr;
}

.dep-net-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dep-net-warn {
    margin: 0;
}

.dep-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.dep-summary strong {
    color: var(--text);
}

.dep-summary--final {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.dep-summary--final > div {
    display: grid;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
}

.dep-summary--final span {
    color: var(--muted);
    font-size: 0.72rem;
}

.dep-amount-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dep-wizard__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.dep-wizard__nav .btn--ghost {
    margin-inline-end: auto;
}

@media (max-width: 720px) {
    .dep-wizard__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dep-net-grid,
    .dep-summary--final {
        grid-template-columns: 1fr;
    }
}

.wallet-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    animation: walletFadeUp 0.55s ease 0.2s both;
}

.wallet-history__card {
    min-height: 220px;
}

.wallet-empty {
    display: grid;
    place-items: center;
    gap: 0.55rem;
    padding: 2.5rem 1rem;
    color: var(--muted);
    text-align: center;
}

.wallet-empty__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 1.25rem;
    opacity: 0.7;
}

.wallet-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.wallet-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
}

.wallet-pill--completed,
.wallet-pill--approved {
    color: var(--green);
    border-color: rgba(61, 214, 140, 0.3);
    background: rgba(61, 214, 140, 0.08);
}

.wallet-pill--waiting_payment,
.wallet-pill--confirming,
.wallet-pill--processing,
.wallet-pill--pending,
.wallet-pill--under_review {
    color: var(--gold-bright);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.08);
}

.wallet-pill--failed,
.wallet-pill--rejected,
.wallet-pill--expired,
.wallet-pill--cancelled {
    color: #ffb4b4;
    border-color: rgba(255, 107, 107, 0.28);
    background: rgba(255, 107, 107, 0.08);
}

@keyframes walletFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .wallet-deposit-grid,
    .wallet-withdraw-grid {
        grid-template-columns: 1fr;
    }

    .wallet-address-block {
        grid-template-columns: 1fr;
    }

    .wallet-qr {
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .wallet-balances,
    .wallet-history,
    .wallet-form__row,
    .wallet-meta {
        grid-template-columns: 1fr;
    }
}

/* —— Levels page —— */
.levels-page {
    display: grid;
    gap: 1.25rem;
}

.levels-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: 1.5rem;
    align-items: center;
    padding: 1.35rem 1.4rem;
    overflow: hidden;
    background:
        radial-gradient(520px 260px at 88% 80%, rgba(212, 175, 55, 0.16), transparent 60%),
        linear-gradient(145deg, #17140f, #0e0e0e 55%);
    border: 1px solid rgba(212, 175, 55, 0.28);
    animation: walletFadeUp 0.55s ease both;
}

.levels-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 220px;
}

.levels-cube {
    position: relative;
    width: 160px;
    height: 180px;
    transform-style: preserve-3d;
}

.levels-cube__glow {
    position: absolute;
    inset: auto 10% 18px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 215, 140, 0.55), transparent 70%);
    filter: blur(6px);
    animation: levelsPulse 2.8s ease-in-out infinite;
}

.levels-cube__pedestal {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 22px;
    height: 18px;
    border-radius: 40%;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.35), rgba(20, 20, 20, 0.9));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.levels-cube__body {
    position: absolute;
    left: 50%;
    top: 28px;
    width: 78px;
    height: 78px;
    margin-left: -39px;
    transform-style: preserve-3d;
    animation: levelsFloat 4.5s ease-in-out infinite;
}

.levels-cube__face {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.levels-cube__face--front {
    background: linear-gradient(145deg, #f0d78c, #d4af37 45%, #8a6a14);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.levels-cube__face--top {
    transform: translateY(-18px) rotateX(68deg);
    background: linear-gradient(135deg, #fff1bf, #d4af37);
    opacity: 0.92;
}

.levels-cube__face--side {
    transform: translateX(18px) rotateY(68deg);
    background: linear-gradient(180deg, #c79a2a, #6d5310);
    opacity: 0.9;
}

.levels-cube--l2 .levels-cube__face--front {
    background: linear-gradient(145deg, #eceff4, #9aa3b2 50%, #5d6675);
}
.levels-cube--l2 .levels-cube__face--top {
    background: linear-gradient(135deg, #ffffff, #b8c0cc);
}
.levels-cube--l2 .levels-cube__face--side {
    background: linear-gradient(180deg, #aeb6c2, #4e5663);
}
.levels-cube--l2 .levels-cube__glow {
    background: radial-gradient(circle, rgba(200, 210, 230, 0.5), transparent 70%);
}

.levels-cube--l3 .levels-cube__face--front {
    background: linear-gradient(145deg, #ffe9a8, #f0d78c 30%, #d4af37 70%, #7a5a10);
}
.levels-cube--l3 .levels-cube__glow {
    background: radial-gradient(circle, rgba(255, 220, 120, 0.7), transparent 70%);
}

.levels-cube__badge {
    position: absolute;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #1a1408;
    background: linear-gradient(135deg, #fff1bf, #d4af37);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.levels-hero__title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.levels-hero__title-row h2 {
    margin: 0;
    font-size: 1.35rem;
}

.levels-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 800;
}

.levels-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.levels-hero__stats strong {
    color: var(--text);
}

.levels-dot {
    opacity: 0.5;
}

.levels-hero__lead {
    margin: 0 0 1rem;
    color: var(--muted);
    max-width: 46rem;
    line-height: 1.55;
}

.levels-progress {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.levels-progress__labels,
.levels-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
}

.levels-progress__track {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.levels-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
    transition: width 0.6s ease;
}

.levels-progress__hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gold-bright);
}

.levels-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.levels-tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    animation: walletFadeUp 0.55s ease 0.08s both;
}

.levels-tier {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #151515, #0f0f0f);
    border: 1px solid var(--border-soft);
    min-height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.levels-tier:hover {
    transform: translateY(-3px);
}

.levels-tier.is-current {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.18),
        0 18px 40px rgba(0, 0, 0, 0.35),
        inset 0 0 40px rgba(212, 175, 55, 0.05);
    background:
        radial-gradient(420px 180px at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
        linear-gradient(180deg, #1a1710, #100e0a);
}

.levels-tier__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.levels-tier__head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.levels-tier__range {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.levels-tier__chip {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.12);
}

.levels-tier__chip--muted {
    color: var(--muted);
    border-color: var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
}

.levels-tier__chip--ok {
    color: var(--green);
    border-color: rgba(61, 214, 140, 0.35);
    background: rgba(61, 214, 140, 0.08);
}

.levels-tier__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    flex: 1;
}

.levels-tier__features li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.45rem;
    align-items: start;
    font-size: 0.88rem;
    color: var(--text);
}

.levels-tier__features strong {
    font-weight: 700;
}

.levels-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1a1408;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.levels-tier__unlock {
    color: var(--muted) !important;
    font-size: 0.8rem !important;
    margin-top: 0.2rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border-soft);
}

.levels-tier__btn {
    width: 100%;
    justify-content: center;
}

.levels-tier__btn:disabled {
    opacity: 1;
    cursor: default;
}

.levels-bottom {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1rem;
    animation: walletFadeUp 0.55s ease 0.14s both;
}

.levels-benefits,
.levels-notes {
    padding: 1.2rem 1.15rem;
}

.levels-benefits h3,
.levels-notes h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.levels-benefits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.levels-benefit {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.7rem;
    align-items: start;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
}

.levels-benefit__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.levels-benefit strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.levels-benefit p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.levels-notes__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
    color: #1a1408;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.levels-notes ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.levels-notes li {
    position: relative;
    padding-inline-start: 1rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.levels-notes li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

@keyframes levelsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes levelsPulse {
    0%, 100% { opacity: 0.55; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 1100px) {
    .levels-hero {
        grid-template-columns: 1fr;
    }

    .levels-tiers,
    .levels-bottom,
    .levels-benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav .lang-switcher-mobile {
        display: flex;
    }
}

/* —— Profile page —— */
.profile-page {
    display: grid;
    gap: 1.15rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
    gap: 1rem;
    animation: walletFadeUp 0.5s ease both;
}

.profile-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: center;
    padding: 1.25rem;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
        linear-gradient(160deg, #16140f, #0f0f0f);
}

.profile-card__avatar-wrap {
    position: relative;
}

.profile-card__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    font-weight: 800;
    color: #1a1408;
    background: linear-gradient(145deg, #fff1bf, #d4af37 55%, #8a6a14);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.profile-card__edit {
    position: absolute;
    inset-inline-end: -2px;
    bottom: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #121212;
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-bright);
}

.profile-card__name-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.profile-card__name-row h2 {
    margin: 0;
    font-size: 1.35rem;
}

.profile-badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.profile-card__email {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-card__verified {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #0b1a12;
    background: var(--green);
}

.profile-card__code {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.profile-card__code code {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.profile-copy {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.profile-copy.is-copied,
.profile-copy:hover {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
}

.profile-card__since {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.profile-level {
    padding: 1.2rem;
    display: grid;
    gap: 0.85rem;
    align-content: start;
    background:
        radial-gradient(280px 140px at 100% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
        linear-gradient(160deg, #17150f, #0f0f0f);
    border-color: rgba(212, 175, 55, 0.28);
}

.profile-level__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.profile-level__top h3 {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 600;
}

.profile-level__value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.profile-level__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #1a1408;
    background: linear-gradient(145deg, #fff1bf, #d4af37);
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.profile-level__labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.profile-level__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.profile-level__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.profile-level__hint {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    animation: walletFadeUp 0.5s ease 0.06s both;
}

.profile-stat {
    padding: 1rem 0.95rem;
    display: grid;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.profile-stat--link:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.35);
}

.profile-stat__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-stat__icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-bright);
    font-size: 0.85rem;
}

.profile-stat strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.profile-stat em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.75rem;
}

.is-pos { color: var(--green) !important; }
.is-neg { color: #ff8f8f !important; }

.profile-tabs {
    display: flex;
    gap: 0.2rem;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-tabs__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    padding: 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.profile-tabs__btn.is-active {
    color: var(--gold-bright);
}

.profile-tabs__btn.is-active::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.profile-panel {
    display: none;
    animation: walletFadeUp 0.35s ease;
}

.profile-panel.is-active {
    display: grid;
    gap: 1rem;
}

.profile-overview {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.2fr);
    gap: 1rem;
}

.profile-alloc,
.profile-activity {
    padding: 1.15rem;
}

.profile-alloc h3,
.profile-activity h3 {
    margin: 0 0 1rem;
    font-size: 1.02rem;
}

.profile-alloc__body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-donut {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    background: conic-gradient(var(--donut, #d4af37 0 100%));
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.profile-donut__hole {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #101010;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 0.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.profile-donut__hole strong {
    font-size: 0.95rem;
    line-height: 1.1;
}

.profile-donut__hole span {
    font-size: 0.72rem;
    color: var(--gold-bright);
    font-weight: 700;
}

.profile-donut__hole em {
    font-style: normal;
    font-size: 0.68rem;
    color: var(--muted);
}

.profile-alloc__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.profile-alloc__legend li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.86rem;
}

.profile-alloc__legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.profile-activity__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.profile-activity__list li {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-soft);
}

.profile-activity__list strong {
    display: block;
    font-size: 0.9rem;
}

.profile-activity__list span {
    color: var(--muted);
    font-size: 0.75rem;
}

.profile-activity__right {
    display: grid;
    justify-items: end;
    gap: 0.3rem;
    text-align: end;
}

.profile-settings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    animation: walletFadeUp 0.5s ease 0.1s both;
}

.profile-setting {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 1rem 0.95rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

a.profile-setting:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.4);
}

.profile-setting.is-soon {
    opacity: 0.72;
}

.profile-setting__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold-bright);
}

.profile-setting strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
}

.profile-setting p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.profile-edit-form {
    max-width: 28rem;
}

@media (max-width: 1100px) {
    .profile-hero,
    .profile-overview,
    .profile-stats,
    .profile-settings {
        grid-template-columns: 1fr 1fr;
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .profile-hero,
    .profile-card,
    .profile-overview,
    .profile-alloc__body,
    .profile-stats,
    .profile-settings {
        grid-template-columns: 1fr;
    }

    .profile-donut {
        justify-self: center;
    }
}



/* —— Dashboard page —— */
.dash-page {
    display: grid;
    gap: 1.15rem;
}

.dash-top {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
    gap: 1rem;
    animation: walletFadeUp 0.5s ease both;
}

.dash-hello {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    background:
        radial-gradient(360px 160px at 100% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
        linear-gradient(160deg, #17150f, #0f0f0f);
}

.dash-hello__text,
.dash-hello__avatar {
    position: relative;
    z-index: 1;
}

.emaar-ornament {
    pointer-events: none;
    user-select: none;
}

.emaar-ornament--corner {
    position: absolute;
    inset-inline-end: -8%;
    bottom: -28%;
    width: min(46%, 168px);
    height: auto;
    z-index: 0;
    opacity: 0.34;
}

.emaar-ornament--e.emaar-ornament--corner {
    opacity: 0.42;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.emaar-ornament--inline {
    display: block;
    width: 72px;
    height: auto;
    margin: 0 auto 0.35rem;
    opacity: 0.88;
}

.td-ticket,
.td-live,
.td-ai,
.td-card {
    position: relative;
    overflow: hidden;
}

.td-ticket > *:not(.emaar-ornament),
.td-live > *:not(.emaar-ornament),
.td-ai > *:not(.emaar-ornament),
.td-card > *:not(.emaar-ornament) {
    position: relative;
    z-index: 1;
}

.dash-hello h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.dash-hello p {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.dash-hello__date {
    color: var(--gold-bright);
    font-size: 0.8rem;
    font-weight: 700;
}

.dash-hello__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #1a1408;
    background: linear-gradient(145deg, #fff1bf, #d4af37);
    flex-shrink: 0;
}

.dash-level {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-color: rgba(212, 175, 55, 0.28);
}

.dash-level__cube {
    transform: scale(0.72);
    transform-origin: center;
    height: 140px;
    width: 120px;
    margin: 0 auto;
}

.dash-level__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dash-level__head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.dash-level__bars {
    display: grid;
    gap: 0.75rem;
}

.dash-kpis {
    animation: walletFadeUp 0.5s ease 0.05s both;
}

.dash-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
    gap: 1rem;
    animation: walletFadeUp 0.5s ease 0.08s both;
}

.dash-chart {
    padding: 1.15rem;
    display: grid;
    gap: 0.85rem;
}

.dash-chart__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dash-chart__head h3 {
    margin: 0 0 0.2rem;
    font-size: 1.02rem;
}

.dash-chart__canvas {
    position: relative;
    min-height: 220px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent 43px,
            rgba(255, 255, 255, 0.04) 44px
        );
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.dash-chart__canvas svg {
    display: block;
    width: 100%;
    height: 220px;
}

.dash-chart__tip {
    position: absolute;
    top: 0.85rem;
    inset-inline-end: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 700;
}

.dash-chart__perf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dash-alloc {
    padding: 1.15rem;
}

.dash-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
    gap: 1rem;
    animation: walletFadeUp 0.5s ease 0.12s both;
}

.dash-act-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dash-act-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}

.dash-act-icon.is-pos {
    background: rgba(61, 214, 140, 0.12);
    color: var(--green);
}

.dash-act-icon.is-neg {
    background: rgba(255, 107, 107, 0.12);
    color: #ff8f8f;
}

.dash-quick {
    padding: 1.15rem;
}

.dash-quick h3 {
    margin: 0 0 0.9rem;
    font-size: 1.02rem;
}

.dash-quick__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.dash-quick__grid a {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 1rem 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.05);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.dash-quick__grid a span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
    font-size: 1rem;
}

.dash-quick__grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.1);
}

.dash-banners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    animation: walletFadeUp 0.5s ease 0.16s both;
}

.dash-banner {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 1rem 0.95rem;
    text-decoration: none;
    color: inherit;
}

.dash-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.25);
    font-weight: 800;
}

.dash-banner--ok .dash-banner__icon {
    background: rgba(61, 214, 140, 0.12);
    color: var(--green);
    border-color: rgba(61, 214, 140, 0.3);
}

.dash-banner strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.dash-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .dash-top,
    .dash-mid,
    .dash-bottom,
    .dash-banners {
        grid-template-columns: 1fr;
    }

    .dash-level {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 720px) {
    .dash-hello {
        align-items: flex-start;
    }

    .dash-level {
        grid-template-columns: 1fr;
    }

    .dash-quick__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html[dir="ltr"] .dash-mid .dash-chart {
    order: -1;
}

html[dir="ltr"] .dash-bottom .profile-activity {
    order: -1;
}

html[dir="ltr"] .dash-top .dash-level {
    order: -1;
}

/* —— Markets page —— */
.mk-page { display: grid; gap: 1rem; }

.mk-ticker {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mk-ticker__track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding: 0.65rem 1rem;
    animation: mkTicker 28s linear infinite;
}

.mk-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    font-size: 0.82rem;
}

.mk-ticker__item strong { color: var(--gold-bright); }
.mk-ticker__item em { font-style: normal; color: var(--text); }
.mk-ticker__item i { font-style: normal; font-weight: 700; }

@keyframes mkTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

html[dir="rtl"] .mk-ticker__track {
    animation-name: mkTickerRtl;
}

@keyframes mkTickerRtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.mk-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.25rem;
    background:
        radial-gradient(420px 160px at 100% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
        linear-gradient(160deg, #17150f, #0f0f0f);
}

.mk-hero h2 {
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.3rem;
}

.mk-hero__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
}

.mk-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.mk-tabs {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.25);
    gap: 0.2rem;
}

.mk-tabs__btn {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.mk-tabs__btn.is-active {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #1a1408;
}

.mk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.mk-stat {
    padding: 1rem 0.95rem;
    display: grid;
    gap: 0.35rem;
}

.mk-stat > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.mk-stat strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.mk-stat em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--muted);
}

.mk-trend-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.mk-trend-icons span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--gold-bright);
}

.mk-trend-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
}

.mk-search {
    flex: 1 1 220px;
    min-width: 180px;
}

.mk-search input {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #0a0a0a;
    color: var(--text);
    padding: 0.65rem 0.9rem;
}

.mk-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mk-toolbar__actions select,
.mk-per-page select {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #0a0a0a;
    color: var(--text);
    padding: 0.35rem 0.55rem;
}

.mk-icon-btn,
.mk-view-toggle button,
.mk-pager button,
.mk-star {
    appearance: none;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    border-radius: 10px;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
    font: inherit;
}

.mk-icon-btn.is-on,
.mk-star.is-on {
    color: var(--gold-bright);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
}

.mk-view-toggle {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.mk-view-toggle button {
    min-width: 36px;
    min-height: 36px;
    border: 0;
}

.mk-view-toggle button.is-active {
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-bright);
}

.mk-table-wrap { padding: 0.5rem 0.75rem 0.85rem; }

.mk-table .asset-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.mk-table .asset-cell span {
    display: grid;
    gap: 0.1rem;
}

.mk-table .asset-cell em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.78rem;
}

.mk-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-bright);
    font-weight: 800;
    font-size: 0.75rem;
}

.mk-pill {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mk-pill.is-pos,
.is-pos { color: var(--green); }
.mk-pill.is-neg,
.is-neg { color: #ff8f8f; }

.mk-pill.is-pos {
    background: rgba(61, 214, 140, 0.1);
    border: 1px solid rgba(61, 214, 140, 0.28);
}

.mk-pill.is-neg {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.28);
}

.mk-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.mk-actions .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.mk-star {
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    font-size: 1rem;
}

.mk-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 0.35rem 0.25rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 0.5rem;
}

.mk-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.mk-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
    animation: mkPulse 1.6s infinite;
}

@keyframes mkPulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.mk-pager {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.mk-pager button {
    min-width: 34px;
    min-height: 34px;
    border-radius: 8px;
}

.mk-pager button.is-active {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-bright);
    border-color: rgba(212, 175, 55, 0.4);
}

.mk-per-page {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.mk-grid-view { display: block; }
.mk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

a.mk-card {
    cursor: pointer;
}

.mk-card {
    padding: 1rem;
    display: grid;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

a.mk-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.mk-card__top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.mk-card__top div { display: grid; }
.mk-card__top em { color: var(--muted); font-style: normal; font-size: 0.78rem; }
    .mk-card__price { font-size: 1.05rem; font-weight: 800; }

@media (max-width: 1100px) {
    .mk-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .mk-stats { grid-template-columns: 1fr; }
    .mk-actions { flex-direction: column; }
    .mk-table th:nth-child(4),
    .mk-table td:nth-child(4),
    .mk-table th:nth-child(7),
    .mk-table td:nth-child(7) {
        display: none;
    }
}

/* —— Referral / Invite page —— */
.referral-page {
    display: grid;
    gap: 1rem;
}

.referral-hero {
    padding: 1.25rem 1.35rem 1.4rem;
}

.referral-hero__head {
    margin-bottom: 1rem;
}

.referral-hero__lead {
    color: var(--muted);
    margin: 0 0 1rem;
    max-width: 42rem;
    line-height: 1.55;
}

.referral-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
    gap: 1rem;
    align-items: start;
}

.referral-code-row {
    display: grid;
    gap: 0.75rem;
}

.referral-code-block {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.14);
}

.referral-code-block__label {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.referral-code-block__value {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.referral-code-block__value code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f3e6b8;
    background: transparent;
}

.referral-link-text {
    font-size: 0.82rem !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    direction: ltr;
    text-align: left;
}

.referral-award {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem;
    align-content: start;
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.02));
    border-color: rgba(212, 175, 55, 0.28);
}

.referral-award > span {
    color: var(--muted);
    font-size: 0.82rem;
}

.referral-award strong {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.referral-award em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.78rem;
}

.referral-rates {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.referral-rate {
    padding: 0.9rem 0.95rem;
    display: grid;
    gap: 0.25rem;
}

.referral-rate > span {
    color: var(--muted);
    font-size: 0.78rem;
}

.referral-rate strong {
    font-size: 1.25rem;
    color: var(--gold, #d4af37);
}

.referral-rate em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.72rem;
}

.referral-history {
    padding: 1.15rem 1.25rem 1.35rem;
}

.referral-empty {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 2.25rem 1rem;
    text-align: center;
}

.referral-empty__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold, #d4af37);
    font-size: 1.1rem;
}

.referral-empty p {
    margin: 0;
    color: var(--muted);
}

.wallet-pill--awarded { color: #3dd68c; }
.wallet-pill--clawed_back,
.wallet-pill--rejected,
.wallet-pill--flagged { color: #ff8f8f; }

@media (max-width: 960px) {
    .referral-hero__grid {
        grid-template-columns: 1fr;
    }
    .referral-rates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .referral-rates {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* —— KYC page + localized guide image + declaration —— */
.kyc-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
    gap: 1rem;
    align-items: start;
}

.kyc-side {
    display: grid;
    gap: 1rem;
}

.kyc-form {
    margin-top: 1.1rem;
    display: grid;
    gap: 1rem;
}

.kyc-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    margin: 1rem 0 0.25rem;
}

.kyc-status__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
}

.kyc-status--ok {
    border-color: rgba(61, 214, 140, 0.35);
    background: rgba(61, 214, 140, 0.08);
}
.kyc-status--ok .kyc-status__icon { background: #3dd68c; color: #04140c; }

.kyc-status--warn {
    border-color: rgba(240, 192, 64, 0.4);
    background: rgba(240, 192, 64, 0.08);
}
.kyc-status--warn .kyc-status__icon { background: #f0c040; color: #1a1400; }

.kyc-status--bad {
    border-color: rgba(255, 110, 110, 0.4);
    background: rgba(255, 110, 110, 0.08);
}
.kyc-status--bad .kyc-status__icon { background: #ff6e6e; color: #2a0505; }

.kyc-status--idle .kyc-status__icon { color: var(--gold, #d4af37); }

.kyc-status__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.kyc-status__top strong {
    font-size: 1.05rem;
}

.kyc-status__chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: #f3e6b8;
}

.kyc-status__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.kyc-status__meta {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.3rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.kyc-status__meta .is-bad {
    color: #ff8f8f;
}

.kyc-uploads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.kyc-drop {
    position: relative;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    text-align: center;
    padding: 1.15rem 0.9rem 1rem;
    border-radius: 16px;
    border: 1px dashed rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    overflow: hidden;
    min-height: 11.5rem;
}

.kyc-drop:hover,
.kyc-drop.is-drag {
    border-color: rgba(212, 175, 55, 0.7);
    background: rgba(212, 175, 55, 0.06);
}

.kyc-drop.has-file {
    border-style: solid;
    border-color: rgba(61, 214, 140, 0.45);
}

.kyc-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.kyc-drop__preview {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
}

.kyc-drop.has-file .kyc-drop__icon,
.kyc-drop.has-file .kyc-drop__title,
.kyc-drop.has-file .kyc-drop__text,
.kyc-drop.has-file .kyc-drop__btn,
.kyc-drop.has-file .kyc-drop__name {
    position: relative;
    z-index: 1;
}

.kyc-drop__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.kyc-drop__title {
    font-weight: 700;
    color: #fff;
}

.kyc-drop__text {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 16rem;
}

.kyc-drop__btn {
    margin-top: 0.25rem;
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f3e6b8;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.25);
}

.kyc-drop__name {
    font-size: 0.78rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kyc-note {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(165deg, rgba(212, 175, 55, 0.07), rgba(255, 255, 255, 0.02));
}

.kyc-note__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.kyc-note__label {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.kyc-note__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.kyc-note__optional {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 0.72rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: #f3e6b8;
    background: rgba(0, 0, 0, 0.22);
}

.kyc-note__box {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kyc-note__box.is-focus {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.kyc-note__box textarea {
    width: 100%;
    min-height: 5.5rem;
    resize: vertical;
    border: 0;
    outline: none;
    background: transparent;
    color: #f7f1df;
    font: inherit;
    line-height: 1.55;
}

.kyc-note__box textarea::placeholder {
    color: rgba(180, 180, 180, 0.7);
}

.kyc-note__footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.45rem;
}

.kyc-note__count b {
    color: #f3e6b8;
    font-weight: 700;
}

.kyc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.kyc-form__rules {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    max-width: 28rem;
    line-height: 1.45;
}

.kyc-actions__submit {
    min-width: 11rem;
}

.kyc-followup {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
}

.kyc-followup--ok {
    border-color: rgba(61, 214, 140, 0.35);
}

.kyc-guide,
.kyc-declaration {
    padding: 1.1rem 1.15rem 1.25rem;
}

.kyc-guide__hint,
.kyc-declaration__hint {
    margin: 0 0 0.85rem;
    line-height: 1.5;
}

.kyc-guide__figure {
    margin: 0;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.25);
}

.kyc-guide__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #04140c;
    background: #3dd68c;
    box-shadow: 0 0 0 3px rgba(3, 12, 8, 0.45), 0 8px 18px rgba(61, 214, 140, 0.35);
}

.kyc-guide__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.kyc-declaration__body {
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.16);
    color: #f2ead0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.7;
}

.kyc-declaration__copy.is-copied {
    border-color: rgba(61, 214, 140, 0.45);
    color: #3dd68c;
}

@media (max-width: 960px) {
    .kyc-page {
        grid-template-columns: 1fr;
    }

    .kyc-side {
        order: -1;
    }
}

@media (max-width: 640px) {
    .kyc-uploads {
        grid-template-columns: 1fr;
    }
}

/* —— Notifications —— */
.notif-page {
    display: grid;
    gap: 1rem;
}

.notif-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem 1.4rem;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.notif-hero__copy h1 {
    margin: 0.15rem 0 0.45rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    letter-spacing: -0.02em;
}

.notif-hero__lead {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.notif-hero__stats {
    display: grid;
    gap: 0.65rem;
    justify-items: end;
    flex-shrink: 0;
}

.notif-stat {
    display: grid;
    gap: 0.15rem;
    text-align: end;
    padding: 0.7rem 0.95rem;
    min-width: 7rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.08);
}

.notif-stat > span {
    font-size: 0.75rem;
    color: var(--muted);
}

.notif-stat strong {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f3e6b8;
}

.notif-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.notif-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.notif-filter:hover {
    color: #fff;
    border-color: rgba(212, 175, 55, 0.28);
}

.notif-filter.is-active {
    color: #1a160c;
    background: linear-gradient(135deg, #e8d48b, #c9a227);
    border-color: transparent;
    font-weight: 650;
}

.notif-digest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.notif-digest__chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #121212;
    font-size: 0.78rem;
}

.notif-digest__chip strong {
    font-weight: 750;
}

.notif-digest__chip em {
    font-style: normal;
    color: var(--gold-bright);
    font-weight: 800;
}

.notif-digest__chip.kind-crypto {
    border-color: rgba(61, 214, 140, 0.28);
}

.notif-digest__chip.kind-forex {
    border-color: rgba(110, 168, 255, 0.32);
}

.notif-digest__chip.kind-nft {
    border-color: rgba(212, 175, 55, 0.32);
}

.notif-item__pair {
    color: var(--gold-bright);
    font-weight: 750;
    font-size: 0.78rem;
}

.notif-item__kind {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.notif-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 1.05rem;
    margin: 0;
    border-color: rgba(255, 255, 255, 0.07);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.notif-item.is-unread {
    border-color: rgba(212, 175, 55, 0.28);
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.07), rgba(255, 255, 255, 0.02));
}

.notif-item.tone-positive.is-unread {
    border-color: rgba(61, 214, 140, 0.35);
    background: linear-gradient(120deg, rgba(61, 214, 140, 0.08), rgba(255, 255, 255, 0.02));
}

.notif-item.tone-negative.is-unread {
    border-color: rgba(232, 96, 96, 0.35);
    background: linear-gradient(120deg, rgba(232, 96, 96, 0.08), rgba(255, 255, 255, 0.02));
}

.notif-item__icon {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #f3e6b8;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.notif-item.tone-positive .notif-item__icon {
    color: #3dd68c;
    background: rgba(61, 214, 140, 0.12);
    border-color: rgba(61, 214, 140, 0.28);
}

.notif-item.tone-negative .notif-item__icon {
    color: #f08a8a;
    background: rgba(232, 96, 96, 0.12);
    border-color: rgba(232, 96, 96, 0.28);
}

.notif-item__body {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

.notif-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.notif-item__cat {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(243, 230, 184, 0.75);
}

.notif-item__badge {
    display: inline-flex;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1a160c;
    background: #e8d48b;
}

.notif-item__time {
    margin-inline-start: auto;
    font-variant-numeric: tabular-nums;
}

.notif-item__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.notif-item__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

.notif-item__action {
    align-self: center;
}

.notif-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.notif-empty__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: #f3e6b8;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.08);
}

.notif-empty h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.notif-empty p {
    margin: 0 auto;
    max-width: 28rem;
}

@media (max-width: 720px) {
    .notif-hero {
        flex-direction: column;
    }

    .notif-hero__stats {
        width: 100%;
        justify-items: stretch;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .notif-stat {
        text-align: start;
    }

    .notif-item {
        grid-template-columns: auto 1fr;
    }

    .notif-item__action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .notif-item__action .btn {
        width: 100%;
    }

    .notif-item__time {
        margin-inline-start: 0;
    }
}

/* Unified trade desk */
.td-page {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    max-width: 100%;
}

.td-tape {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.td-tape::-webkit-scrollbar { display: none; }

.td-tape__item {
    flex: 0 0 auto;
    min-width: 7.2rem;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #121212;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 0.08rem;
}

.td-tape__item.is-active {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.1);
}

.td-tape__item strong {
    font-size: 0.78rem;
    color: var(--muted);
}

.td-tape__item span { font-weight: 750; font-size: 0.92rem; }

.td-tape__item em {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
}

.td-desk {
    display: grid;
    grid-template-columns: minmax(170px, 0.4fr) minmax(0, 2.28fr) minmax(250px, 0.7fr);
    gap: 0.75rem;
    align-items: start;
    min-width: 0;
}

.td-markets,
.td-chart,
.td-rail {
    min-width: 0;
    display: grid;
    gap: 0.65rem;
}

.td-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
    min-width: 0;
    direction: ltr;
}

html[dir="rtl"] .td-quote--chart {
    direction: rtl;
}

@media (min-width: 1101px) {
    .td-rail {
        position: sticky;
        top: 0.85rem;
        align-self: start;
        max-height: calc(100vh - 1.7rem);
        overflow: auto;
    }

    .td-workspace:has(.td-book) {
        grid-template-columns: minmax(0, 1fr) 198px;
    }

    .td-book {
        min-height: 100%;
    }

    .td-quote--chart .td-tv-wrap,
    .td-quote--chart .td-spark--lg {
        height: clamp(420px, 58vh, 640px);
        min-height: 380px;
    }
}

.td-converter__stack {
    display: grid;
    gap: 0.55rem;
}

.td-converter__stack .td-swap {
    justify-self: center;
    transform: rotate(90deg);
}

.td-pairs {
    display: grid;
    gap: 0.2rem;
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.55rem;
    max-height: 18rem;
    overflow: auto;
}

.td-pairs__label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.4rem 0.5rem;
}

.td-pairs__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 0.82rem;
}

.td-pairs__row:hover,
.td-pairs__row.is-active {
    background: rgba(212, 175, 55, 0.12);
}

.td-pairs__row em { font-style: normal; font-weight: 700; }

.td-quote--chart {
    margin: 0;
    padding: 0.7rem 0.85rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.td-quote--chart .td-quote__head {
    margin-bottom: 0.4rem;
}

.td-quote--chart .td-quote__num {
    margin-bottom: 0.55rem;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.td-tv-wrap {
    height: clamp(400px, 66vh, 640px);
    min-height: 360px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #0d0d0d;
}

.td-quote--chart .td-tv-wrap,
.td-quote--chart .td-spark--lg {
    margin-inline: -0.85rem;
    margin-bottom: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
}

.td-tv {
    height: 100%;
    width: 100%;
    position: relative;
}

.td-tv iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.td-stars {
    color: #d4af37;
    font-size: 0.62em;
    letter-spacing: 0.08em;
    margin-inline-start: 0.28rem;
    vertical-align: 0.12em;
}

.td-spark--lg {
    height: clamp(260px, 45vh, 450px);
}

.td-side-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.td-side-pick {
    text-align: center;
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    color: var(--muted);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.td-side-pick.is-on {
    color: #0d0d0d;
    background: #3dd68c;
    border-color: #3dd68c;
}

.td-side-pick.is-on:last-child {
    background: #ff8f8f;
    border-color: #ff8f8f;
}

.td-ai {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(280px 140px at 100% 0%, rgba(212, 175, 55, 0.16), transparent 62%),
        linear-gradient(180deg, #17140c, #0e0c08);
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 18px;
    padding: 1rem 1.05rem 1.05rem;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.06), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.td-ai__brand {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--gold-bright);
}

.td-ai__pair {
    margin: 0.45rem 0 0.85rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    font-weight: 750;
    font-size: 0.92rem;
}

.td-ai__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.td-ai__gauge {
    --pct: 70;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: conic-gradient(#d4af37 calc(var(--pct) * 1%), #2a2416 0);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.td-ai__gauge.is-bear {
    background: conic-gradient(#ff8f8f calc(var(--pct) * 1%), #2a1818 0);
}

.td-ai__gauge span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #120f0a;
    font-size: 0.82rem;
    font-weight: 800;
}

.td-ai__bias {
    display: grid;
    gap: 0.2rem;
}

.td-ai__bias em {
    font-style: normal;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.td-ai__bias span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-ai__hint {
    margin: 0.35rem 0 0;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
}

.td-ai__metrics {
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.td-ai__metrics div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
}

.td-ai__metrics dt {
    color: var(--muted);
    font-weight: 650;
}

.td-ai__metrics dd {
    margin: 0;
    font-weight: 800;
}

.td-ai__action {
    margin-top: 0.9rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.28);
    display: grid;
    gap: 0.15rem;
}

.td-ai__action span {
    color: var(--gold-bright);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.td-ai__action strong {
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-ai__more {
    margin-top: 0.7rem;
}

.td-ai__more summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.38);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 750;
}

.td-ai__more summary::-webkit-details-marker {
    display: none;
}

.td-ai__more[open] summary {
    background: rgba(212, 175, 55, 0.16);
}

.td-ai__more p,
.td-ai__more ul {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.td-ai__more ul {
    padding-inline-start: 1.05rem;
    display: grid;
    gap: 0.28rem;
}

.td-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
}

.td-chart .td-card {
    padding: 0.75rem 0.85rem 0.85rem;
}

.td-chart .td-card__head {
    margin-bottom: 0.35rem;
}

.td-chart .td-card h2 {
    font-size: 0.92rem;
}

.td-kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #121212;
}

.td-kpi {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.15rem 0.85rem;
    border-inline-end: 1px solid var(--border-soft);
    min-width: 0;
}

.td-kpi:last-child {
    border-inline-end: 0;
}

.td-kpi span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-kpi strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.td-kpi em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.75rem;
}

.td-book {
    direction: ltr;
    text-align: left;
    margin: 0;
    padding: 0.55rem 0.55rem 0.65rem;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #161616, #101010);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.td-book__caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    padding: 0 0.2rem;
}

.td-book__caption strong {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.td-book__caption span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
}

.td-book__cols {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    padding: 0.15rem 0.35rem 0.3rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.td-book__cols em {
    font-style: normal;
}

.td-book__side {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.td-book__side--bid {
    justify-content: flex-start;
}

.td-book__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.12rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 650;
    overflow: hidden;
}

.td-book__row i {
    position: absolute;
    inset: 0 0 0 auto;
    background: rgba(255, 143, 143, 0.16);
    pointer-events: none;
}

.td-book__row.is-bid i {
    background: rgba(61, 214, 140, 0.16);
}

.td-book__row span,
.td-book__row em {
    position: relative;
    font-style: normal;
}

.td-book__row.is-ask span { color: #ff8f8f; }
.td-book__row.is-bid span { color: #3dd68c; }

.td-book__row.is-flash span {
    filter: brightness(1.35);
}

.td-book__last {
    display: grid;
    gap: 0.08rem;
    margin: 0.2rem 0;
    padding: 0.4rem 0.45rem;
    border-block: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.06);
    border-radius: 8px;
}

.td-book__last small {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.td-book__last strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.td-book__last span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.td-type-hint {
    display: none;
}

.td-ticket {
    border-color: rgba(212, 175, 55, 0.42);
}

.is-pos { color: #3dd68c; }
.is-neg { color: #ff8f8f; }

.td-howto {
    list-style: none;
    margin: 0;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.08), transparent 50%),
        linear-gradient(180deg, #161616, #101010);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.td-howto li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    min-width: 0;
}

.td-howto strong {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(232, 212, 139, 0.16);
    color: var(--gold-bright);
    font-size: 0.85rem;
}

.td-howto div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.td-howto b {
    font-size: 0.92rem;
}

.td-howto span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.td-type-hint {
    margin: 0 0 0.75rem;
    padding: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.td-quote__means {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.td-ops.panel {
    padding: 0;
    overflow: hidden;
    min-width: 0;
}

.td-suggest {
    margin-top: 0.9rem;
    min-width: 0;
}

.td-suggest__label {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.td-suggest__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    min-width: 0;
    padding-bottom: 0.1rem;
}

.td-suggest__chips::-webkit-scrollbar {
    display: none;
}

.td-suggest__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    max-width: 16rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
    min-height: 36px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-suggest__chip:hover,
.td-suggest__chip.is-active {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-bright);
}

.td-suggest__chip--nft {
    border-color: rgba(232, 212, 139, 0.28);
}

.td-suggest__chip--back {
    margin-top: 0.75rem;
    width: fit-content;
}

@media (min-width: 721px) {
    .td-suggest__chips {
        flex-wrap: wrap;
        overflow: visible;
    }
}

.td-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: 1.1rem;
    align-items: start;
    padding: 1.1rem 1.25rem 1.35rem;
    min-width: 0;
}

.td-main,
.td-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.td-converter {
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.08), transparent 48%),
        linear-gradient(180deg, #161616, #0f0f0f);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.75rem 0.85rem;
    min-width: 0;
}

.td-converter__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.td-converter__nft,
.td-converter__pick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.td-converter__nft {
    align-items: stretch;
}

.td-converter__field,
.td-converter__leg {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.td-converter__leg span,
.td-converter__field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-converter__leg em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-converter select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text);
    padding: 0.7rem 0.8rem;
    font-weight: 650;
    font-size: 16px;
    min-height: 44px;
}

.td-face {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(232, 212, 139, 0.12);
    border: 1px solid rgba(232, 212, 139, 0.22);
}

.td-face--lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.td-face__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-face__letter {
    font-weight: 800;
    color: var(--gold-bright);
    font-size: 1.05rem;
}

.td-swap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
    font-size: 1.15rem;
    font-weight: 800;
    flex-shrink: 0;
}

.td-swap:hover {
    background: rgba(212, 175, 55, 0.22);
}

.td-swap--static {
    color: var(--muted);
    background: transparent;
    border-color: transparent;
}

html[dir="rtl"] .td-swap--static {
    transform: scaleX(-1);
}

.td-quote,
.td-ticket,
.td-live,
.td-result,
.td-card {
    background:
        linear-gradient(180deg, #161616, #101010);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem 1.2rem 1.2rem;
    min-width: 0;
}

.td-rail .td-ticket,
.td-rail .td-live {
    border-color: rgba(212, 175, 55, 0.42);
}

.td-quote__head,
.td-ticket__head,
.td-live__head,
.td-result__head,
.td-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    min-width: 0;
}

.td-ticket__titles {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.td-quote h2,
.td-ticket h3,
.td-live h3,
.td-result h3,
.td-card h2,
.td-quote__pair {
    margin: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.td-quote__num,
.td-ticket__size,
.td-result__pnl {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 4.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.td-quote__num small,
.td-ticket__size small {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 650;
}

.td-chg {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

.td-chg small {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--muted);
}

.td-spark {
    height: 92px;
    margin-top: 0.65rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.td-spark canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.td-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.td-badge--long,
.td-badge--win {
    color: #04140c;
    background: #3dd68c;
}

.td-badge--short,
.td-badge--loss {
    color: #2a0c0c;
    background: #ff8f8f;
}

.td-meta {
    list-style: none;
    margin: 0.85rem 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.td-meta li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.9rem;
    min-width: 0;
}

.td-meta span {
    color: var(--muted);
    flex-shrink: 0;
}

.td-meta strong {
    min-width: 0;
    text-align: end;
    overflow-wrap: anywhere;
}

.td-cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    min-height: 48px;
    line-height: 1.3;
}

.td-live__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.td-rail .td-live__body {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0.55rem;
}

.td-rail .td-meta--live {
    width: 100%;
    margin: 0.25rem 0 0.7rem;
}

.td-rail .td-meta--live li {
    width: 100%;
    min-width: 0;
}

.td-rail .td-meta--live strong {
    white-space: nowrap;
    overflow-wrap: normal;
}

.td-rail .td-live > .muted {
    margin: 0.75rem 0 0;
    line-height: 1.65;
}

.td-ring {
    position: relative;
    width: 118px;
    height: 118px;
    flex-shrink: 0;
}

.td-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.td-ring__track,
.td-ring__bar {
    fill: none;
    stroke-width: 8;
}

.td-ring__track {
    stroke: rgba(255, 255, 255, 0.08);
}

.td-ring__bar {
    stroke: var(--gold-bright, #e8d48b);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s linear;
}

.td-ring__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.td-ring__label strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.td-ring__label span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.td-hold {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 0.35rem 0 0.7rem;
}

.td-hold__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-deep, #c9a227), var(--gold-bright, #e8d48b));
}

.td-result.is-win {
    border-color: rgba(61, 214, 140, 0.35);
}

.td-result.is-loss {
    border-color: rgba(255, 143, 143, 0.35);
}

.td-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.85rem 0.4rem 0.55rem;
}

.td-empty p {
    margin: 0;
    max-width: 16rem;
    line-height: 1.45;
}

.td-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.15rem;
}

.td-list li {
    border-bottom: 1px solid var(--border-soft);
    min-width: 0;
}

.td-list li:last-child {
    border-bottom: 0;
}

.td-list__link {
    display: grid;
    gap: 0.12rem;
    padding: 0.7rem 0;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.td-list__link strong {
    overflow-wrap: anywhere;
}

.td-list__link span,
.td-mini-timer {
    color: var(--muted);
    font-size: 0.82rem;
}

.td-pnl-badge {
    font-style: normal;
    font-weight: 800;
    font-size: 0.82rem;
}

@media (max-width: 1100px) {
    .td-kpis {
        justify-content: space-between;
    }

    .td-desk {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-workspace:has(.td-book) {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-chart { order: 1; }
    .td-rail { order: 2; }
    .td-markets { order: 3; }

    .td-tv-wrap {
        height: clamp(320px, 49vh, 490px);
        min-height: 280px;
    }
}

@media (max-width: 960px) {
    .td-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem 1rem 1.15rem;
    }

    .td-main {
        order: 1;
    }

    .td-side {
        order: 2;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .td-result { order: 1; }
    .td-converter { order: 2; }
    .td-ticket,
    .td-live { order: 3; }
    .td-quote { order: 4; }

    .td-howto {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.85rem 0.9rem;
        gap: 0.65rem;
    }

    .td-type-hint {
        padding: 0;
    }
}

@media (max-width: 720px) {
    .td-bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-converter__row {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    .td-swap {
        justify-self: center;
        transform: rotate(90deg);
    }

    html[dir="rtl"] .td-swap--static {
        transform: rotate(90deg);
    }

    .td-live__body {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: start;
    }

    .td-ring {
        margin-inline: auto;
    }

    .td-meta--live {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .td-meta--live li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .td-meta--live strong {
        text-align: start;
    }

    .td-quote__head,
    .td-ticket__head,
    .td-live__head,
    .td-result__head {
        flex-wrap: wrap;
    }

    .td-spark:not(.td-spark--lg) {
        height: 76px;
    }
}

@media (max-width: 640px) {
    .td-page {
        gap: 0.75rem;
    }

    .td-status {
        gap: 0.7rem;
    }

    .td-status .wallet-bal-card {
        padding: 0.85rem 0.9rem 0.95rem;
        border-radius: 14px;
    }

    .td-status .wallet-bal-card__top {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
    }

    .td-status .wallet-bal-card__value {
        font-size: clamp(1.05rem, 5vw, 1.45rem);
    }

    .td-status .wallet-bal-card__sub {
        font-size: 0.75rem;
    }

    .td-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-converter,
    .td-quote,
    .td-ticket,
    .td-live,
    .td-result,
    .td-card {
        padding: 0.95rem 0.95rem 1.05rem;
        border-radius: 14px;
    }

    .td-grid {
        padding: 0.85rem 0.75rem 1rem;
        gap: 0.85rem;
    }

    .td-cta {
        padding-inline: 0.9rem;
    }
}

@media (max-width: 420px) {
    .td-status {
        gap: 0.55rem;
    }

    .td-face {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .td-face--lg {
        width: 48px;
        height: 48px;
    }

    .td-meta--live {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-ring {
        width: 104px;
        height: 104px;
    }

    .td-chg small {
        display: none;
    }

    .td-meta li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .td-meta span {
        max-width: 100%;
    }

    .td-meta strong {
        text-align: start;
    }
}

/* —— Admin desk —— */
.adm-body .adm-sidebar .brand__text::after {
    content: none;
}

.adm-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1408;
    background: linear-gradient(180deg, #f0d78c, #d4af37);
}

.adm-content {
    display: grid;
    gap: 1.1rem;
}

.adm-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.adm-kpi {
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #161616, #101010);
    min-width: 0;
}

.adm-kpi:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.adm-kpi span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.adm-kpi.is-warn {
    border-color: rgba(232, 145, 60, 0.55);
    background: linear-gradient(180deg, rgba(60, 36, 12, 0.55), #101010);
}

.adm-kpi__hint {
    font-style: normal;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.adm-dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
        linear-gradient(165deg, #17140f 0%, #101010 60%, #0c0c0c 100%);
}

.adm-dash-hero__eyebrow {
    margin: 0 0 0.25rem;
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.adm-dash-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 800;
    color: var(--text);
}

.adm-dash-hero__meta {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
}

.adm-dash-hero__side {
    display: grid;
    gap: 0.65rem;
    min-width: min(100%, 16rem);
    align-content: start;
}

.adm-dash-attention {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
}

.adm-dash-attention span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.adm-dash-attention strong {
    font-size: 1.35rem;
    font-weight: 800;
}

.adm-dash-attention.is-hot {
    border-color: rgba(232, 145, 60, 0.5);
    background: rgba(232, 145, 60, 0.1);
}

.adm-dash-attention.is-hot strong {
    color: #f0b060;
}

.adm-dash-attention.is-ok strong {
    color: #7dcea0;
}

.adm-dash-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.adm-dash-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}

.adm-dash-flag.is-on {
    border-color: rgba(125, 206, 160, 0.4);
    color: #9fdfb8;
    background: rgba(125, 206, 160, 0.08);
}

.adm-dash-flag.is-off {
    border-color: rgba(220, 100, 100, 0.35);
    color: #e8a0a0;
    background: rgba(220, 100, 100, 0.08);
}

.adm-kpis--action {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adm-kpis--system {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.adm-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1rem;
    align-items: stretch;
}

.adm-dash-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.adm-dash-metric {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
    min-width: 0;
}

.adm-dash-metric span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.adm-dash-metric strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold-bright);
}

.adm-dash-metric strong small {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--muted);
}

.adm-dash-metric em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.72rem;
}

.adm-dash-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: end;
    min-height: 11rem;
    padding: 0.35rem 0.15rem 0;
}

.adm-dash-bar {
    display: grid;
    gap: 0.4rem;
    justify-items: center;
}

.adm-dash-bar__cols {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 8.5rem;
    width: 100%;
    justify-content: center;
}

.adm-dash-bar__col {
    width: 42%;
    max-width: 14px;
    height: var(--h, 2%);
    border-radius: 6px 6px 2px 2px;
    min-height: 4px;
}

.adm-dash-bar__col.is-dep {
    background: linear-gradient(180deg, #e0c56a, #a8872a);
}

.adm-dash-bar__col.is-wd {
    background: linear-gradient(180deg, #8eb8e8, #4a6f9c);
}

.adm-dash-bar__label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
}

@media (max-width: 1100px) {
    .adm-kpis--system {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .adm-dash-grid,
    .adm-kpis--action {
        grid-template-columns: minmax(0, 1fr);
    }

    .adm-dash-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .adm-kpis--action {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .adm-dash-bars {
        min-height: 9rem;
    }

    .adm-dash-bar__cols {
        height: 6.5rem;
    }
}

.adm-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.adm-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.adm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.adm-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
}

.adm-chip.is-active,
.adm-chip:hover {
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
}

.adm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.adm-actions input[type="text"],
.adm-actions input[type="number"] {
    min-width: 8rem;
    max-width: 14rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text);
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
}

.adm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.adm-form-grid label,
.adm-form-stack label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 650;
}

.adm-form-grid input,
.adm-form-grid select,
.adm-form-grid textarea,
.adm-form-stack input,
.adm-form-stack select,
.adm-form-stack textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text);
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
}

.adm-settings {
    max-width: 44rem;
    gap: 1.25rem;
}

.adm-settings__group {
    margin: 0;
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 0.85rem;
}

.adm-settings__group legend {
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--gold, #d4af37);
}

.adm-settings__field {
    display: grid;
    gap: 0.25rem;
}

.adm-settings__label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.adm-settings__hint {
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 500;
}

/* —— Admin finance settings —— */
.fin-set {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.fin-set__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem 1.15rem;
    padding: 1.15rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(480px 200px at 100% 0%, rgba(212, 175, 55, 0.14), transparent 65%),
        linear-gradient(155deg, #17140f, #0f0f0f 58%);
}

.fin-set__hero > *:not(.emaar-ornament) {
    position: relative;
    z-index: 1;
}

.fin-set__hero-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.fin-set__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.fin-set__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.fin-set__lead {
    margin: 0.4rem 0 0;
    max-width: 40rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

.fin-set__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.fin-set__note,
.fin-set__lock {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.fin-set__note svg,
.fin-set__lock svg {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: var(--gold);
}

.fin-set__note p,
.fin-set__lock p {
    margin: 0;
}

.fin-set__lock {
    border-color: rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.07);
    color: var(--text);
}

.fin-set__kpis {
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fin-set__kpis .adm-kpi {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.7rem;
}

.fin-set__kpis .adm-kpi span:not(.fin-set__kpi-ico) {
    grid-column: 2;
}

.fin-set__kpis .adm-kpi strong {
    grid-column: 2;
}

.fin-set__kpi-ico {
    grid-row: 1 / span 2;
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.fin-set__layout {
    display: grid;
    grid-template-columns: 12.75rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.fin-set__toc {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 0.3rem;
    padding: 0.45rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: #0d0d0d;
}

.fin-set__toc a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.fin-set__toc a svg {
    flex: 0 0 auto;
}

.fin-set__toc a:hover,
.fin-set__toc a.is-active {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
}

.fin-set__form {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.fin-set__card {
    display: grid;
    gap: 1.15rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #141414, #101010);
    scroll-margin-top: 5.25rem;
}

.fin-set__card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.fin-set__card-ico {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    flex: 0 0 auto;
}

.fin-set__card-head h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.25;
}

.fin-set__card-head p {
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 46rem;
}

.fin-set__block {
    display: grid;
    gap: 0.7rem;
}

.fin-set__block h4 {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.fin-set__block-lead {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.fin-set__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.fin-set__grid--conf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fin-field {
    display: grid;
    gap: 0.28rem;
    margin: 0;
    min-width: 0;
}

.fin-field__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
}

.fin-field__label img {
    border-radius: 999px;
}

.fin-field__hint {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 500;
}

.fin-field__control {
    position: relative;
    display: block;
}

.fin-field__control input,
.fin-field__control select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text);
    padding: 0.62rem 0.8rem;
    font-size: 0.92rem;
}

.fin-field__control.has-unit input {
    padding-inline-end: 4.1rem;
}

.fin-field__control em {
    position: absolute;
    inset-inline-end: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    color: var(--muted);
    pointer-events: none;
}

.fin-set__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem !important;
}

.fin-switch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.fin-switch.is-master {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.07);
}

.fin-switch__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.fin-switch__copy strong {
    font-size: 0.9rem;
    color: var(--text);
}

.fin-switch__copy em {
    font-style: normal;
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 500;
    color: var(--muted);
}

.fin-switch input[type="hidden"] {
    display: none;
}

.fin-switch input[type="checkbox"] {
    appearance: none;
    width: 2.75rem;
    height: 1.55rem;
    margin: 0;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #242424;
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
}

.fin-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 2px;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #8d8d8d;
    transition: inset-inline-start 0.16s ease, background 0.16s ease;
}

.fin-switch input[type="checkbox"]:checked {
    background: rgba(212, 175, 55, 0.38);
    border-color: rgba(212, 175, 55, 0.55);
}

.fin-switch input[type="checkbox"]:checked::after {
    inset-inline-start: calc(100% - 1.15rem - 2px);
    background: var(--gold-bright);
}

.fin-switch input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.55);
    outline-offset: 2px;
}

.fin-nets,
.fin-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.fin-net,
.fin-choice__item {
    margin: 0;
    position: relative;
}

.fin-net input,
.fin-choice__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fin-net__card,
.fin-choice__card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 100%;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.fin-choice__card {
    display: grid;
    gap: 0.25rem;
}

.fin-net__card img {
    width: 22px;
    height: 22px;
    border-radius: 999px;
}

.fin-net__card strong,
.fin-choice__card strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
}

.fin-net__card em,
.fin-choice__card em {
    display: block;
    font-style: normal;
    font-size: 0.74rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--muted);
}

.fin-net input:checked + .fin-net__card,
.fin-choice__item input:checked + .fin-choice__card,
.fin-net input:focus-visible + .fin-net__card,
.fin-choice__item input:focus-visible + .fin-choice__card {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.12);
}

.fin-chain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.fin-chain {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.22);
}

.fin-chain__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.fin-chain__head img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
}

.fin-chain__head strong {
    display: block;
    font-size: 0.95rem;
}

.fin-chain__head em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--muted);
}

.fin-set__foot {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(12, 12, 12, 0.94);
    backdrop-filter: blur(12px);
}

.fin-set__foot p {
    margin: 0;
    max-width: 32rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .fin-set__hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fin-set__hero-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .fin-set__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fin-set__layout {
        grid-template-columns: 1fr;
    }

    .fin-set__toc {
        position: sticky;
        top: 0;
        z-index: 25;
        display: flex;
        overflow-x: auto;
        gap: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .fin-set__toc a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 960px) {
    .fin-set__toc {
        top: 3.35rem;
    }

    .fin-set__card {
        scroll-margin-top: 7.5rem;
    }

    .fin-set__foot {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .fin-set__grid,
    .fin-set__grid--conf,
    .fin-nets,
    .fin-choice,
    .fin-chain-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fin-set__hero {
        grid-template-columns: 1fr;
    }

    .fin-set__hero-icon {
        width: 2.4rem;
        height: 2.4rem;
    }
}

.adm-check {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.adm-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.adm-empty {
    margin: 0;
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: var(--muted);
}

.adm-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.1);
    text-decoration: none;
    color: inherit;
}

.adm-banner strong {
    color: var(--gold-bright);
}

.adm-kyc-card {
    display: grid;
    gap: 0.65rem;
}

/* —— Admin bonus campaigns —— */
.adm-bonus {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.adm-bonus__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.25rem;
    background:
        radial-gradient(480px 200px at 100% 0%, rgba(212, 175, 55, 0.14), transparent 65%),
        linear-gradient(155deg, #17140f, #0f0f0f 58%);
    border-color: rgba(212, 175, 55, 0.22);
}

.adm-bonus__eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-bright, #f0d78c);
}

.adm-bonus__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.adm-bonus__lead {
    margin: 0.4rem 0 0;
    max-width: 38rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.adm-bonus__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.adm-bonus__kpis {
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.adm-bonus__layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.adm-bonus__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0.85rem;
}

.adm-bonus-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.adm-bonus-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.adm-bonus-card.is-active {
    border-color: rgba(72, 187, 120, 0.45);
    background: linear-gradient(165deg, rgba(20, 48, 32, 0.35), #101010);
}

.adm-bonus-card.is-paused {
    border-color: rgba(232, 145, 60, 0.45);
}

.adm-bonus-card.is-ended {
    opacity: 0.72;
}

.adm-bonus-card__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: start;
}

.adm-bonus-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.adm-bonus-card__head h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.adm-bonus-card__code {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.adm-bonus-card__status {
    font-size: 0.72rem;
    font-weight: 750;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    color: var(--muted);
    white-space: nowrap;
}

.adm-bonus-card.is-active .adm-bonus-card__status {
    color: #7dffb0;
    border-color: rgba(72, 187, 120, 0.45);
    background: rgba(72, 187, 120, 0.1);
}

.adm-bonus-card__reward {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.adm-bonus-card__reward strong {
    font-size: 1.2rem;
    color: var(--gold-bright);
    letter-spacing: 0.02em;
}

.adm-bonus-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.adm-bonus-card__meta li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.adm-bonus-card__desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
}

.adm-bonus-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.adm-bonus-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.adm-bonus-tag--deposit {
    color: var(--gold-bright, #f0d78c);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.adm-bonus-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.8rem;
}

.adm-bonus-card__promos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.adm-bonus-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
}

.adm-bonus-promo-pill em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.68rem;
}

.adm-bonus__aside {
    display: grid;
    gap: 0.85rem;
}

.bonus-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.bonus-modal[hidden] {
    display: none;
}

.bonus-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(4, 4, 4, 0.78);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.bonus-modal__sheet {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(900px 280px at 100% 0%, rgba(212, 175, 55, 0.1), transparent 55%),
        #0c0c0c;
    color: var(--text);
}

.bonus-modal__head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.35rem 0.85rem;
    border-bottom: 1px solid var(--border-soft);
}

.bonus-modal__kicker {
    margin: 0 0 0.15rem;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.bonus-modal__head h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.25;
}

.bonus-modal__head-lead {
    margin: 0.35rem 0 0;
    max-width: 40rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.bonus-modal__close {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.bonus-modal__close:hover {
    border-color: rgba(212, 175, 55, 0.45);
    color: var(--gold-bright);
}

.bonus-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
}

.bonus-modal__scroll {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 1.1rem 1.35rem 1.5rem;
    display: grid;
    align-content: start;
    gap: 1.1rem;
}

.bonus-modal__preview {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.08);
}

.bonus-modal__preview span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.bonus-modal__preview strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.bonus-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.55rem;
}

.bonus-type {
    margin: 0;
    position: relative;
}

.bonus-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bonus-type__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 0.65rem;
    align-items: start;
    min-height: 100%;
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.bonus-type__icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.bonus-type__card strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text);
}

.bonus-type__card em {
    display: block;
    margin-top: 0.2rem;
    font-style: normal;
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--muted);
    font-weight: 500;
}

.bonus-type input:focus-visible + .bonus-type__card,
.bonus-type input:checked + .bonus-type__card {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.12);
}

.bonus-modal__section {
    margin: 0;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 0.85rem;
}

.bonus-modal__section > legend,
.bonus-modal__section-title {
    padding: 0;
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--text);
}

.bonus-modal__section-lead {
    margin: -0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.bonus-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.bonus-field {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted);
}

.bonus-field--wide {
    grid-column: 1 / -1;
}

.bonus-field input,
.bonus-field select,
.bonus-field textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text);
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.bonus-field input:focus,
.bonus-field select:focus,
.bonus-field textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5);
}

.bonus-field__help {
    margin: 0;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
}

.bonus-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-soft);
}

.bonus-seg--status {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bonus-seg__item {
    position: relative;
    display: block;
    margin: 0;
}

.bonus-seg__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bonus-seg__item span {
    display: grid;
    gap: 0.15rem;
    text-align: center;
    padding: 0.5rem 0.4rem;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}

.bonus-seg__item small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted);
}

.bonus-seg__item input:checked + span {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-bright);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.bonus-modal__checks {
    display: grid;
    gap: 0.55rem;
}

.bonus-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.65rem;
    align-items: start;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.bonus-check input {
    margin-top: 0.2rem;
}

.bonus-check strong {
    display: block;
    font-size: 0.86rem;
    color: var(--text);
}

.bonus-check em {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
}

.bonus-modal__foot {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.85rem 1.35rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-soft);
    background: #0a0a0a;
}

.bonus-note {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
}

html.has-bonus-modal,
body.has-bonus-modal {
    overflow: hidden;
}

.adm-bonus-promo {
    padding: 1rem 1.05rem;
    max-width: 36rem;
}

.adm-bonus-promo h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.adm-bonus-promo__lead {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
}

.adm-bonus-promo__empty {
    margin: 0;
    font-size: 0.82rem;
}

.adm-bonus__empty {
    text-align: center;
    padding: 2rem 1rem;
}

.adm-bonus-form__hint {
    display: block;
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
}

.adm-bonus-form__warn {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #f3c27a;
    background: rgba(232, 145, 60, 0.12);
    border: 1px solid rgba(232, 145, 60, 0.35);
}

.adm-bonus-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.adm-bonus-filters input,
.adm-bonus-filters select {
    min-width: 10rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text);
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
}

.adm-bonus-card__status.is-active {
    color: #7dffb0;
    border-color: rgba(72, 187, 120, 0.45);
    background: rgba(72, 187, 120, 0.1);
}

.adm-bonus-card__status.is-paused {
    color: #f3c27a;
    border-color: rgba(232, 145, 60, 0.45);
    background: rgba(232, 145, 60, 0.1);
}

.adm-bonus-card__status.is-ended {
    color: var(--muted);
}

.wallet-deposit-bonus {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.08);
}

.wallet-deposit-bonus strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gold-bright, #f0d78c);
}

.wallet-deposit-bonus ul {
    margin: 0;
    padding: 0 1rem 0 0;
    display: grid;
    gap: 0.3rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.is-ltr .wallet-deposit-bonus ul {
    padding: 0 0 0 1rem;
}

@media (max-width: 1100px) {
    .bonus-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .bonus-seg--status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .adm-kpis,
    .adm-split,
    .adm-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .adm-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* —— Ledger page —— */
.ld-page {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.ld-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(212, 175, 55, 0.15), transparent 62%),
        linear-gradient(155deg, #17140f, #0f0f0f 58%);
    border-color: rgba(212, 175, 55, 0.25);
}

.ld-hero__copy h1 {
    margin: 0.15rem 0 0.35rem;
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.ld-hero__lead {
    margin: 0;
    max-width: 44rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.ld-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ld-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.ld-kpi {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #161616, #101010);
}

.ld-kpi::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
}

.ld-kpi--principal {
    border-color: rgba(212, 175, 55, 0.34);
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.12), transparent 54%),
        linear-gradient(180deg, #18150e, #100f0b);
}

.ld-kpi span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
}

.ld-kpi strong {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ld-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ld-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.ld-filter:hover,
.ld-filter.is-active {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-bright);
}

.ld-filters__count {
    margin-inline-start: auto;
    color: var(--muted);
    font-size: 0.78rem;
}

.ld-feed {
    padding: 0.55rem;
}

.ld-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid var(--border-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.018);
}

.ld-row:hover {
    border-color: rgba(212, 175, 55, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.ld-row__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 1.05rem;
    font-weight: 850;
}

.ld-row.is-in .ld-row__icon {
    color: var(--green);
    border: 1px solid rgba(61, 214, 140, 0.28);
    background: rgba(61, 214, 140, 0.09);
}

.ld-row.is-out .ld-row__icon {
    color: #ff8f8f;
    border: 1px solid rgba(255, 143, 143, 0.28);
    background: rgba(255, 143, 143, 0.09);
}

.ld-row__main {
    min-width: 0;
}

.ld-row__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.7rem;
}

.ld-row__top > strong {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.ld-row__amt {
    flex-shrink: 0;
    font-style: normal;
    font-size: 0.96rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.ld-row__pnl {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 650;
}

.ld-row__pnl.is-pos { color: var(--ok, #3dba7c); }
.ld-row__pnl.is-neg { color: var(--danger, #e05c5c); }

.ld-row__hint {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.ld-row__meta,
.ld-row__after {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.ld-row__meta time {
    margin-inline-start: auto;
    font-variant-numeric: tabular-nums;
}

.ld-row__after {
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.ld-row__after span {
    padding: 0.2rem 0.45rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    font-variant-numeric: tabular-nums;
}

.ld-row__ref {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.ld-empty {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 2.5rem 1rem;
    text-align: center;
}

.ld-empty h2,
.ld-empty p {
    margin: 0;
}

@media (max-width: 720px) {
    .ld-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .ld-hero__actions,
    .ld-hero__actions .btn {
        width: 100%;
    }

    .ld-hero__actions .btn {
        justify-content: center;
    }

    .ld-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .ld-kpi--principal {
        grid-column: 1 / -1;
    }

    .ld-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    .ld-filters::-webkit-scrollbar {
        display: none;
    }

    .ld-filter {
        flex: 0 0 auto;
    }

    .ld-filters__count {
        display: none;
    }

    .ld-feed {
        padding: 0.4rem;
    }

    .ld-row {
        gap: 0.6rem;
        padding: 0.7rem;
    }

    .ld-row__meta time {
        width: 100%;
        margin-inline-start: 0;
    }
}

@media (max-width: 440px) {
    .ld-kpis {
        grid-template-columns: 1fr;
    }

    .ld-kpi--principal {
        grid-column: auto;
    }

    .ld-row__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .ld-row__amt {
        font-size: 1.05rem;
    }

    .ld-row__after {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Registration wizard */
.auth-page--wizard {
    --wiz-pad-x: clamp(1rem, 4.2vw, 1.35rem);
    --wiz-pad-y: clamp(1rem, 2.5vh, 1.5rem);
    --wiz-gap: clamp(0.75rem, 1.8vh, 1.1rem);
    padding: 1.25rem 0.85rem 2.25rem;
    min-height: 100dvh;
    display: grid;
    align-items: start;
    box-sizing: border-box;
}

.auth-card--wizard {
    width: min(480px, 100%);
    margin-inline: auto;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

.wiz-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem var(--wiz-pad-x) 0.35rem;
}

.wiz-app-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
}

.wiz-app-bar__brand .brand__logo {
    height: 32px;
}

.wiz-body {
    padding: 0.85rem var(--wiz-pad-x) 1.5rem;
    display: grid;
    gap: var(--wiz-gap);
}

.wiz-page-title {
    margin: 0.55rem 0 0;
    text-align: center;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
}

.wiz-page-lead {
    margin: 0;
    text-align: center;
}

.auth-card--wizard .auth-lead {
    margin-bottom: 0.35rem;
}

.wiz-step {
    display: none;
    animation: wiz-in 0.28s ease;
}

.wiz-step.is-active {
    display: grid;
    gap: var(--wiz-gap);
    padding-top: 0.55rem;
}

.wiz-step__title {
    font-family: var(--display);
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    margin: 0.35rem 0 0;
    text-align: center;
    line-height: 1.25;
}

.wiz-step__lead {
    text-align: center;
    color: var(--muted);
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}

.wiz-masked {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    direction: ltr;
    unicode-bidi: plaintext;
}

.wiz-otp-field {
    display: grid;
    gap: 0.4rem;
}

.wiz-phone {
    display: grid;
    grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
    gap: 0.7rem;
}

.wiz-phone label {
    min-width: 0;
}

.wiz-phone select,
.wiz-phone input {
    width: 100%;
}

.wiz-code {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.35rem;
    font-weight: 800;
}

.wiz-code--ref {
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.wiz-nav {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.wiz-nav .btn {
    flex: 1;
    min-height: 48px;
}

.wiz-nav .btn--gold {
    flex: 1.35;
}

.wiz-resend {
    width: 100%;
}

.wiz-ref-status {
    margin: 0;
    font-size: 0.85rem;
    text-align: center;
}

.wiz-ref-status.is-ok {
    color: #7dcea0;
}

.wiz-ref-status.is-bad {
    color: #e8a0a0;
}

@keyframes wiz-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
    body:has(.auth-page--wizard) {
        background: #0a0a0a;
    }

    .auth-page--wizard {
        --wiz-pad-x: clamp(1.05rem, 5vw, 1.35rem);
        --wiz-gap: clamp(0.85rem, 2vh, 1.15rem);
        padding: 0;
        min-height: 100dvh;
        min-height: 100svh;
        align-items: stretch;
        background:
            radial-gradient(120% 70% at 50% -10%, rgba(212, 175, 55, 0.16), transparent 55%),
            #0a0a0a;
    }

    .auth-card--wizard {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        min-height: 100svh;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .wiz-app-bar {
        position: sticky;
        top: 0;
        z-index: 40;
        padding: calc(0.65rem + env(safe-area-inset-top, 0px)) var(--wiz-pad-x) 0.65rem;
        background: rgba(10, 10, 10, 0.88);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .wiz-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: var(--wiz-gap);
        padding:
            clamp(1.15rem, 3.2vh, 1.75rem)
            var(--wiz-pad-x)
            calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .wiz-page-title {
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        margin-top: clamp(0.55rem, 2vh, 1rem);
    }

    .wiz-page-lead {
        font-size: 0.92rem;
        padding-inline: 0.35rem;
        margin-bottom: clamp(0.25rem, 1vh, 0.55rem);
    }

    .wiz-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: var(--wiz-gap);
        padding-top: clamp(0.35rem, 1.5vh, 0.75rem);
    }

    .wiz-step.is-active {
        flex: 1;
        align-content: start;
        gap: clamp(0.95rem, 2.2vh, 1.25rem);
        padding-top: clamp(0.55rem, 2vh, 1rem);
    }

    .wiz-step__title {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
        margin-top: clamp(0.25rem, 1.2vh, 0.55rem);
    }

    .wiz-phone {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-top: 0.15rem;
    }

    .wiz-code {
        letter-spacing: 0.32em;
        font-size: 1.35rem;
        min-height: 54px;
        border-radius: 14px;
    }

    .auth-form.wiz-form input,
    .auth-form.wiz-form select {
        min-height: 52px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .auth-form.wiz-form label {
        display: grid;
        gap: 0.4rem;
    }

    .wiz-nav {
        position: sticky;
        bottom: 0;
        margin-top: auto;
        padding-top: clamp(1rem, 2.5vh, 1.35rem);
        padding-bottom: 0.25rem;
        flex-direction: column-reverse;
        gap: 0.65rem;
        background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.92) 28%);
    }

    .wiz-nav .btn--ghost,
    .wiz-nav .btn--gold {
        width: 100%;
        flex: none;
        min-height: 52px;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 750;
    }

    .wiz-switch {
        text-align: center;
        margin: 0.35rem 0 0;
        font-size: 0.9rem;
    }

    .wiz-step__lead {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: clamp(0.35rem, 1.2vh, 0.65rem);
    }

    .wiz-otp-field {
        gap: 0.55rem;
        margin-top: 0.15rem;
    }
}
.auth-form select {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: #101010;
    color: var(--text);
    padding: 0.8rem 0.9rem;
    box-sizing: border-box;
}

.wiz-phone input,
.auth-form input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.adm-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.adm-toggle input {
    width: auto;
}

.adm-provider-fields[hidden] {
    display: none !important;
}

.adm-auth-grid {
    display: grid;
    gap: 1.1rem;
    max-width: 42rem;
}

@media (max-width: 380px) {
    .wiz-code {
        letter-spacing: 0.18em;
        font-size: 1.1rem;
    }

    .lang-menu__name {
        display: none;
    }
}




/* —— Login app (mockup) — no scroll, fluid fit —— */
html:has(.login-app),
body:has(.login-app) {
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: #070707;
}

.login-app {
    --login-pad-x: clamp(0.75rem, 3.2vw, 1.15rem);
    --login-gap: clamp(0.35rem, 1.2vh, 0.85rem);
    --login-title: clamp(1.05rem, 2.6vh + 1.2vw, 1.75rem);
    --login-lead: clamp(0.72rem, 1.35vh + 0.35vw, 0.95rem);
    --login-card-pad: clamp(0.45rem, 1.2vh, 0.85rem);
    --login-field-h: clamp(42px, 6.2vh, 54px);
    --login-cta-h: clamp(44px, 6.5vh, 54px);
    --login-icon: clamp(52px, 9vh, 88px);
    --login-dot: clamp(28px, 4.4vh, 34px);

    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    overflow: hidden;
    display: grid;
    color: var(--text);
    background:
        radial-gradient(90% 50% at 50% -5%, rgba(212, 175, 55, 0.14), transparent 50%),
        #070707;
}

.login-app__form {
    width: min(430px, 100%);
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-app .flash {
    position: absolute;
    top: calc(4.05rem + env(safe-area-inset-top, 0px));
    left: var(--login-pad-x);
    right: var(--login-pad-x);
    z-index: 40;
    margin: 0;
    padding: 0.7rem 0.9rem;
    font-size: var(--login-lead);
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.login-app .flash.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.login-screen {
    display: none;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding:
        0
        var(--login-pad-x)
        calc(var(--login-gap) + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.login-screen.is-active {
    display: flex;
}

.login-screen:not(.login-screen--welcome).is-active {
    padding-top: clamp(0.15rem, 0.8vh, 0.4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-screen:not(.login-screen--welcome) .login-icon {
    margin-top: clamp(0.85rem, 3.2vh, 1.65rem);
}

.login-screen:not(.login-screen--welcome) .login-step-title {
    margin-top: clamp(0.55rem, 1.8vh, 0.95rem);
}

.login-screen:not(.login-screen--welcome) .login-step-lead {
    margin-bottom: clamp(0.65rem, 2vh, 1.1rem);
}

.login-screen:not(.login-screen--welcome) .login-cta {
    margin-top: auto;
}

.login-screen--welcome {
    padding: 0;
}

.login-screen--welcome.is-active {
    display: flex;
    flex-direction: column;
}

.login-welcome-hero {
    position: relative;
    flex: 0 0 48%;
    min-height: 42dvh;
    max-height: 52dvh;
    background:
        linear-gradient(180deg, rgba(7,7,7,0.08) 0%, rgba(7,7,7,0.35) 45%, #070707 100%),
        var(--login-hero) center top / cover no-repeat;
}

.login-welcome-hero__veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 70% at 50% 20%, rgba(212,175,55,0.12), transparent 60%);
    pointer-events: none;
}

.login-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 0 0.2rem;
    min-height: clamp(36px, 5.5vh, 48px);
}

.login-topbar--welcome {
    display: flex;
    justify-content: flex-end;
    padding: calc(0.45rem + env(safe-area-inset-top, 0px)) var(--login-pad-x) 0;
    position: relative;
    z-index: 2;
}

.login-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.6vh, 0.9rem);
    cursor: pointer;
    padding: 0.25rem 0.1rem;
}

html[dir="rtl"] .login-back svg {
    transform: scaleX(-1);
}

.login-progress {
    display: inline-flex;
    gap: 0.35rem;
    justify-self: center;
}

.login-progress span {
    width: clamp(6px, 1vh, 8px);
    height: clamp(6px, 1vh, 8px);
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.login-progress span.is-on {
    background: linear-gradient(135deg, #f0d78c, #b8860b);
    box-shadow: 0 0 10px rgba(212,175,55,0.45);
}

.login-mini-brand,
.login-welcome-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
}

.login-welcome-brand {
    position: absolute;
    left: 50%;
    bottom: clamp(0.55rem, 1.8vh, 1.15rem);
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
}

.login-welcome-brand .brand__logo {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.login-welcome-body {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: -1.5rem;
    padding: 0.55rem var(--login-pad-x) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 0.9vh, 0.55rem);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(7, 7, 7, 0.35) 10%,
        rgba(7, 7, 7, 0.72) 42%,
        rgba(7, 7, 7, 0.92) 100%
    );
}

.login-welcome-body::before {
    content: "";
    position: absolute;
    inset: 18% -10% -5%;
    background:
        radial-gradient(55% 40% at 50% 35%, rgba(212, 175, 55, 0.16), transparent 70%),
        radial-gradient(40% 30% at 20% 70%, rgba(255, 255, 255, 0.06), transparent 65%),
        radial-gradient(35% 28% at 85% 55%, rgba(255, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.login-welcome-title {
    margin: 0;
    text-align: center;
    font-size: var(--login-title);
    font-weight: 800;
    line-height: 1.2;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.login-welcome-lead {
    margin: 0 0 clamp(0.35rem, 1.2vh, 0.65rem);
    text-align: center;
    color: var(--muted);
    font-size: var(--login-lead);
    line-height: 1.35;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.login-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(0.35rem, 1vh, 0.55rem);
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    align-content: center;
}

.login-timeline::before {
    content: "";
    position: absolute;
    inset-inline-end: calc(var(--login-dot) / 2 - 1px);
    top: calc(var(--login-dot) / 2);
    bottom: calc(var(--login-dot) / 2);
    width: 2px;
    background: linear-gradient(180deg, rgba(212,175,55,0.55), rgba(255,255,255,0.08));
}

.login-timeline__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(0.45rem, 1.5vw, 0.75rem);
    min-height: 0;
}

.login-timeline__card {
    display: grid;
    align-content: center;
    gap: 0.08rem;
    min-height: 0;
    padding: clamp(0.42rem, 1.1vh, 0.62rem) clamp(0.7rem, 2.4vw, 0.95rem);
    border-radius: clamp(12px, 1.7vh, 15px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
        rgba(18, 18, 18, 0.28);
    backdrop-filter: blur(22px) saturate(1.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 8px 22px rgba(0, 0, 0, 0.32);
    min-width: 0;
    isolation: isolate;
}

.login-timeline__card strong {
    font-size: clamp(0.8rem, 1.75vh + 0.2vw, 0.98rem);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-timeline__card span {
    color: rgba(230, 225, 215, 0.78);
    font-size: clamp(0.66rem, 1.35vh, 0.8rem);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-timeline__dot {
    width: var(--login-dot);
    height: var(--login-dot);
    align-self: center;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: clamp(0.75rem, 1.6vh, 0.95rem);
    color: #c9c3b5;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.login-timeline__item.is-active .login-timeline__dot {
    color: #111;
    background: linear-gradient(135deg, #f0d78c, #c9a227);
    border-color: transparent;
    box-shadow: 0 0 18px rgba(212,175,55,0.45);
}

.login-timeline__item.is-active .login-timeline__card {
    border-color: rgba(240, 215, 140, 0.55);
    background:
        linear-gradient(165deg, rgba(240, 215, 140, 0.28) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.03) 100%),
        rgba(30, 24, 10, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(212, 175, 55, 0.12),
        0 10px 26px rgba(212, 175, 55, 0.14),
        0 8px 22px rgba(0, 0, 0, 0.28);
}

.login-icon {
    display: grid;
    place-items: center;
    margin: clamp(0.35rem, 1.5vh, 1rem) auto 0;
    width: var(--login-icon);
    height: var(--login-icon);
    border-radius: clamp(16px, 2.5vh, 28px);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    flex: 0 0 auto;
}

.login-icon svg {
    width: 70%;
    height: 70%;
}

.login-step-title {
    margin: clamp(0.25rem, 1vh, 0.55rem) 0 0;
    text-align: center;
    font-size: var(--login-title);
    font-weight: 800;
    line-height: 1.25;
    flex: 0 0 auto;
}

.login-step-lead {
    margin: clamp(0.2rem, 0.8vh, 0.4rem) 0 clamp(0.35rem, 1.2vh, 0.75rem);
    text-align: center;
    color: var(--muted);
    font-size: var(--login-lead);
    line-height: 1.35;
    flex: 0 0 auto;
}

.login-masked {
    display: inline-block;
    color: var(--gold-bright);
    direction: ltr;
    unicode-bidi: plaintext;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: clamp(0.4rem, 1.2vh, 0.75rem);
    flex: 0 0 auto;
}

.login-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: clamp(38px, 5.5vh, 46px);
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-weight: 750;
    font-size: clamp(0.75rem, 1.6vh, 0.9rem);
    cursor: pointer;
}

.login-tab.is-active {
    color: #111;
    background: linear-gradient(135deg, #f0d78c, #c9a227);
    box-shadow: 0 8px 22px rgba(212,175,55,0.28);
}

.login-fields {
    flex: 0 0 auto;
}

.login-field {
    display: block;
    position: relative;
    margin-bottom: clamp(0.4rem, 1.1vh, 0.7rem);
    flex-shrink: 0;
}

.login-field input,
.login-field select {
    width: 100%;
    min-height: var(--login-field-h);
    height: var(--login-field-h);
    border-radius: clamp(12px, 1.8vh, 16px);
    border: 1px solid rgba(255,255,255,0.1);
    background: #f7f7f7;
    color: #111;
    padding: 0 clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.85rem, 1.8vh, 1rem);
    box-sizing: border-box;
}

.login-field__icon {
    position: absolute;
    inset-inline-end: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8a8a;
    pointer-events: none;
}

.login-field input {
    padding-inline-end: 2.4rem;
}

.login-phone-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
    gap: 0.45rem;
}

.login-cta {
    width: 100%;
    min-height: var(--login-cta-h);
    height: var(--login-cta-h);
    border-radius: clamp(12px, 1.8vh, 16px);
    margin-top: auto;
    font-size: clamp(0.9rem, 1.9vh, 1.05rem);
    box-shadow: 0 10px 28px rgba(212,175,55,0.32);
    flex: 0 0 auto;
}

.login-screen--welcome .login-cta {
    margin-top: clamp(0.55rem, 1.8vh, 0.95rem);
    position: relative;
    z-index: 1;
}

.login-resend {
    width: 100%;
    min-height: clamp(36px, 5vh, 46px);
    margin-bottom: clamp(0.25rem, 0.8vh, 0.5rem);
    font-size: var(--login-lead);
    flex: 0 0 auto;
}

.login-otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 800;
    font-size: clamp(1.05rem, 2.4vh, 1.35rem) !important;
}

.login-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: clamp(0.35rem, 1vh, 0.7rem) 0 0;
    color: var(--muted);
    font-size: clamp(0.62rem, 1.25vh, 0.78rem);
    text-align: center;
    line-height: 1.3;
    flex: 0 0 auto;
}

.login-switch {
    text-align: center;
    margin: 0;
    color: var(--muted);
    font-size: var(--login-lead);
    flex: 0 0 auto;
}

.login-switch a {
    color: var(--gold-bright);
    font-weight: 750;
}

@media (max-height: 700px) {
    .login-app {
        --login-gap: 0.35rem;
    }

    .login-welcome-hero {
        flex: 0 0 42%;
        min-height: 36dvh;
        max-height: 44dvh;
    }
}

@media (max-height: 620px) {
    .login-welcome-hero {
        flex: 0 0 36%;
        min-height: 30dvh;
        max-height: 38dvh;
    }

    .login-icon {
        display: none;
    }

    .login-secure {
        display: none;
    }

    .login-welcome-lead {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 860px) {
    html:has(.login-app),
    body:has(.login-app) {
        overflow: auto;
    }

    .login-app {
        min-height: 100dvh;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 1.25rem 0;
        align-content: center;
    }

    .login-app__form {
        height: min(780px, calc(100dvh - 2.5rem));
        max-height: calc(100dvh - 2.5rem);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 28px;
        overflow: hidden;
        background: #0a0a0a;
        box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    }

    .login-screen:not(.login-screen--welcome) {
        padding-inline: 1.25rem;
    }
}

/* —— Register app (same class as login) —— */
.register-app .register-topbar {
    flex: 0 0 auto;
    padding-inline: var(--login-pad-x);
    padding-bottom: 0.15rem;
    grid-template-columns: auto 1fr auto;
    gap: 0.45rem;
}

.register-topbar__end {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: end;
}

.register-app .register-topbar .lang-menu {
    position: relative;
}

.register-app .login-app__form {
    gap: 0;
}

.register-app .login-screen.wiz-step {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding-top: clamp(0.35rem, 1.5vh, 0.85rem);
    padding-bottom: 0.25rem;
    overflow: auto;
}

.register-app .login-screen.wiz-step.is-active {
    display: flex;
}

.register-app .login-screen.wiz-step .login-cta,
.register-app .login-screen.wiz-step .login-secure,
.register-app .login-screen.wiz-step .login-switch {
    display: none;
}

.register-foot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 1vh, 0.55rem);
    padding: clamp(0.45rem, 1.4vh, 0.75rem) var(--login-pad-x) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, rgba(7, 7, 7, 0.92) 30%);
}

.register-app .register-foot .login-cta {
    margin-top: 0;
}

.register-app .register-foot .login-secure {
    margin: 0;
}

.register-app .register-foot .login-switch {
    margin: 0;
    text-align: center;
}

.register-app .login-progress {
    flex-wrap: nowrap;
    gap: clamp(0.22rem, 0.9vw, 0.4rem);
    max-width: 100%;
    overflow: hidden;
}

.register-app .login-progress span {
    width: clamp(5px, 0.9vh, 7px);
    height: clamp(5px, 0.9vh, 7px);
    flex: 0 0 auto;
}

.register-ref-status,
.register-app .wiz-ref-status {
    margin: 0.15rem 0 0;
    text-align: center;
    font-size: var(--login-lead);
    min-height: 1.2em;
}

.register-app .wiz-ref-status.is-ok {
    color: #7dcea0;
}

.register-app .wiz-ref-status.is-bad {
    color: #e8a0a0;
}

.register-app .login-resend {
    margin-top: 0.15rem;
}

@media (min-width: 860px) {
    .register-app .login-app__form {
        height: min(820px, calc(100dvh - 2.5rem));
    }

    .register-foot {
        padding-inline: 1.25rem;
    }
}
