:root {
    --bg: #f1fbf7;
    --surface: #ffffff;
    --surface-2: #e9f8f3;
    --ink: #06251e;
    --muted: #5d756f;
    --line: #cde9e1;
    --primary: #18b98f;
    --primary-strong: #087761;
    --accent: #f3cc58;
    --cyan: #1bbbd0;
    --danger: #c83d4a;
    --success: #177c4d;
    --shadow: 0 18px 45px rgba(6, 37, 30, 0.12);
    --glow: 0 0 0 1px rgba(24, 185, 143, 0.12), 0 24px 80px rgba(24, 185, 143, 0.22);
}

/* SAMJEA premium upgrade */
:root {
    --bg: #07110f;
    --surface: #0d1b18;
    --surface-2: #132a25;
    --ink: #f4fffb;
    --muted: #a7c2ba;
    --line: rgba(124, 255, 217, 0.17);
    --primary: #18d6a3;
    --primary-strong: #08a880;
    --accent: #f3cc58;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
    --glow: 0 0 0 1px rgba(24, 214, 163, 0.22), 0 24px 90px rgba(24, 214, 163, 0.2);
}

body {
    background:
        radial-gradient(circle at 12% 0%, rgba(24, 214, 163, 0.2), transparent 28%),
        radial-gradient(circle at 86% 8%, rgba(243, 204, 88, 0.14), transparent 30%),
        linear-gradient(180deg, #07110f 0%, #0b1715 48%, #07110f 100%);
}

.site-header,
.site-footer,
.panel,
.market-card,
.auth-card,
.empty-state,
.notice-band,
.home-market-strip article,
.stats-grid article,
.cta-band {
    background: rgba(13, 27, 24, 0.82);
    border-color: var(--line);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.site-header {
    background: rgba(7, 17, 15, 0.84);
}

.nav a,
.admin-tabs a {
    color: var(--ink);
}

.nav a:hover,
.admin-tabs a:hover,
.btn.ghost,
.lang-menu select,
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    border-color: var(--line);
}

.hero.hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--glow);
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(7, 17, 15, 0.9), rgba(7, 17, 15, 0.48), rgba(7, 17, 15, 0.18));
}

.guardian-card,
.profile-public,
.coin-public-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin: 24px 0;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(24, 214, 163, 0.16), transparent 38%),
        rgba(13, 27, 24, 0.92);
    box-shadow: var(--glow);
}

.guardian-orb {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07110f;
    font-weight: 900;
    background: radial-gradient(circle at 30% 25%, #fff, #18d6a3 45%, #087761);
    box-shadow: 0 0 35px rgba(24, 214, 163, 0.45);
}

.coin-public-hero {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

.coin-public-media img,
.coin-card > img,
.market-card > img {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #061713;
}

.coin-public-copy p {
    color: var(--muted);
}

.coin-public-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 14px;
}

.rarity-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #061713;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rarity-accent), var(--rarity-color));
    box-shadow: 0 0 24px color-mix(in srgb, var(--rarity-color), transparent 55%);
}

.rarity-shell {
    position: relative;
    overflow: hidden;
}

.rarity-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--rarity-color, #18d6a3), transparent 40%);
}

.rarity-rare { --rarity-color: #18d6a3; }
.rarity-epic { --rarity-color: #7c5cff; }
.rarity-legendary { --rarity-color: #f3b33d; }
.rarity-mythic { --rarity-color: #ff3d81; }

.certificate-grid,
.checkout-layout,
.purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.long-code {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.timeline {
    display: grid;
    gap: 14px;
    position: relative;
}

.timeline article {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 18px rgba(24, 214, 163, 0.75);
}

.achievement-grid,
.member-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.achievement-grid article,
.member-card,
.pricing-card,
.message-item {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
}

.member-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
}

.member-card img,
.profile-public-head img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.profile-public-head {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.market-filters .inline-form {
    align-items: end;
}

.world-map-visual {
    position: relative;
    min-height: 320px;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.08) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.08) 50%, transparent 51%),
        radial-gradient(circle at 28% 42%, rgba(24, 214, 163, 0.2), transparent 18%),
        radial-gradient(circle at 68% 46%, rgba(243, 204, 88, 0.18), transparent 20%),
        #0a1815;
}

.world-map-visual span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: calc(18px * var(--s));
    height: calc(18px * var(--s));
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 28px rgba(24, 214, 163, 0.8);
}

.mini-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mini-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.price {
    font-size: 28px;
    font-weight: 900;
}

.trend-chart {
    background: #fff !important;
    color: #111;
}

.trend-chart text {
    font-family: Arial, sans-serif;
}

.hero-ticker {
    border: 1px solid rgba(24, 214, 163, 0.36);
    background:
        radial-gradient(circle at 20% 10%, rgba(24, 214, 163, 0.32), transparent 35%),
        linear-gradient(145deg, rgba(13, 27, 24, 0.94), rgba(5, 12, 11, 0.88));
    box-shadow: 0 0 0 1px rgba(243, 204, 88, 0.12), 0 28px 90px rgba(24, 214, 163, 0.28);
}

.hero-ticker > span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #07110f;
    background: var(--accent);
    font-weight: 900;
}

.hero-ticker .dual-price {
    gap: 10px;
}

.hero-ticker .dual-price div {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.07);
}

.hero-ticker strong {
    color: #78ffd8;
    font-size: clamp(24px, 4vw, 38px);
    text-shadow: 0 0 24px rgba(24, 214, 163, 0.55);
}

.hidden-counter {
    display: none !important;
}

.profile-preview img,
.avatar-link img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-preview img {
    width: 54px;
    height: 54px;
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-public-head img,
.member-card img {
    width: 64px;
    height: 64px;
}

@media (max-width: 920px) {
    .site-header {
        background: rgba(7, 17, 15, 0.96);
    }

    .nav {
        background: rgba(13, 27, 24, 0.98);
        border-color: var(--line);
    }

    .nav a,
    .nav .lang-menu label {
        background: rgba(255,255,255,0.06);
        color: var(--ink);
    }

    .menu-toggle span,
    .bag-icon::before,
    .user-icon::after {
        background: var(--ink);
    }

    .user-icon::before,
    .bag-icon::after {
        border-color: var(--ink);
    }

    .moon-icon::before {
        box-shadow: -6px 0 0 0 var(--ink);
    }

    .coin-public-hero,
    .certificate-grid,
    .checkout-layout,
    .purchase-layout,
    .guardian-card {
        grid-template-columns: 1fr;
    }

    .brand img {
        max-width: 138px;
    }
}

/* Navigation grouping, icon actions, and contrast fixes */
.btn.ghost,
a.btn.ghost,
button.btn.ghost {
    color: #073d35 !important;
    background: #ffffff;
    border: 1px solid rgba(8, 119, 97, 0.24);
}

.btn.ghost:hover,
a.btn.ghost:hover,
button.btn.ghost:hover {
    color: #04241e !important;
    background: #eafff8;
}

.home-hero .btn.ghost,
.home-hero .btn.glass {
    color: #ffffff !important;
}

.panel,
.auth-card,
.empty-state,
.market-card,
.coin-card,
.wallet-card,
.member-card,
.pricing-card,
.message-item,
.checkout-summary,
.checkout-entry {
    color: #06251e;
}

.panel p,
.auth-card p,
.empty-state p,
.market-card p,
.coin-card p,
.wallet-card p,
.member-card p,
.pricing-card p,
.message-item p,
.muted {
    color: #516d66;
}

.quick-verify-section,
.guardian-visual-card,
.home-market-indicator {
    color: #ffffff;
}

.quick-verify-section .muted,
.guardian-visual-card .muted,
.home-market-indicator .muted {
    color: rgba(255, 255, 255, 0.76);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #14342d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    list-style: none;
    user-select: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
    color: var(--primary-strong);
    background: rgba(23, 202, 161, 0.1);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    z-index: 40;
    width: 220px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(8, 119, 97, 0.12);
    box-shadow: 0 22px 60px rgba(6, 37, 30, 0.16);
}

[dir="rtl"] .nav-dropdown-menu {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.nav-dropdown-menu a {
    width: 100%;
    color: #073d35 !important;
    background: transparent;
}

.nav-dropdown-menu a:hover {
    background: #effdf8;
}

.nav-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-icon,
.mobile-icon.notification-pro-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #073d35;
    background: #ffffff;
    border: 1px solid rgba(8, 119, 97, 0.14);
}

.nav-icon:hover,
.mobile-icon.notification-pro-icon:hover {
    background: #eafff8;
}

.nav-icon.notification-pro-icon,
.mobile-icon.notification-pro-icon {
    color: #ffffff;
    border-color: rgba(23, 216, 184, 0.42);
    background:
        radial-gradient(circle at 70% 20%, rgba(54, 255, 214, 0.42), transparent 28%),
        linear-gradient(145deg, #06352f 0%, #08a990 58%, #031f1b 100%);
    box-shadow: 0 12px 26px rgba(7, 172, 145, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: visible;
}

.nav-icon.notification-pro-icon:hover,
.mobile-icon.notification-pro-icon:hover {
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.50), transparent 30%),
        linear-gradient(145deg, #07564c 0%, #0fc8aa 58%, #052c27 100%);
    transform: translateY(-1px);
}

.notification-pro-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 12px 12px 7px 7px;
    transform: translateY(-2px);
    box-shadow: 0 10px 0 -8px currentColor;
}

.notification-pro-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    bottom: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -18px 0 -2px rgba(255, 255, 255, 0.45);
}

.icon-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    color: #ffffff;
    background: #d93654;
    font-size: 10px;
    font-weight: 950;
    border: 2px solid #ffffff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.about-hero,
.about-grid,
.about-wide,
.about-cta {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 28px;
    margin-top: 26px;
    padding: clamp(28px, 6vw, 58px);
    border-radius: 8px;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 14%, rgba(23, 202, 161, 0.28), transparent 32%),
        linear-gradient(135deg, #06251e, #0b6d5d);
    box-shadow: 0 24px 70px rgba(6, 37, 30, 0.18);
}

.about-hero h1,
.about-hero p,
.about-hero .eyebrow {
    color: #ffffff;
}

.about-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.about-hero p {
    max-width: 760px;
    line-height: 1.9;
}

.about-orb {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, #ffffff, #8effe3 28%, #17caa1 60%, #087761);
    box-shadow: 0 0 70px rgba(23, 202, 161, 0.44);
}

.about-orb span {
    color: #06251e;
    font-size: 46px;
    font-weight: 950;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.about-grid .panel,
.about-wide {
    background: #ffffff;
    border-color: rgba(23, 202, 161, 0.16);
}

.about-grid p,
.about-wide p {
    line-height: 1.9;
}

.about-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-process article {
    padding: 18px;
    border-radius: 8px;
    background: #eefbf7;
    border: 1px solid rgba(23, 202, 161, 0.18);
}

.about-process strong {
    color: var(--primary-strong);
    font-size: 24px;
}

.about-process h3 {
    color: #06251e;
}

.legal-soft {
    background: #fff8df !important;
    border-color: #f0d98b !important;
}

.about-cta {
    margin-top: 18px;
}

.notification-item {
    background: #ffffff;
}

@media (max-width: 920px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown summary {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        background: #ffffff;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
        background: #f7fffc;
    }

    .nav-icons {
        width: 100%;
        justify-content: stretch;
    }

    .nav-icon {
        flex: 1;
    }

    .about-hero,
    .about-grid,
    .about-process {
        grid-template-columns: 1fr;
    }

    .about-orb {
        width: 140px;
        height: 140px;
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .about-hero,
    .about-grid,
    .about-wide,
    .about-cta {
        width: min(100% - 24px, 1160px);
    }

    .about-hero {
        padding: 24px;
    }

    .about-hero h1 {
        font-size: 32px;
    }
}

/* SAMJEA homepage refinement */
.home-page {
    --bg: #f7fffc;
    --surface: #ffffff;
    --surface-2: #eefbf7;
    --ink: #06251e;
    --muted: #516d66;
    --line: #d5eee7;
    --primary: #17caa1;
    --primary-strong: #087761;
    background: linear-gradient(180deg, #fbfffd 0%, #eefbf7 48%, #ffffff 100%);
    color: var(--ink);
}

.home-page .site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(8, 119, 97, 0.1);
    box-shadow: 0 10px 34px rgba(6, 37, 30, 0.08);
}

.home-page .nav a {
    color: #14342d;
}

.home-page .nav a:hover {
    color: var(--primary-strong);
    background: rgba(23, 202, 161, 0.1);
}

.home-page .site-main {
    width: 100%;
    padding: 0 0 64px;
}

.home-hero {
    position: relative;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    padding: clamp(82px, 10vw, 128px) max(24px, calc((100vw - 1160px) / 2)) clamp(42px, 7vw, 78px);
    overflow: hidden;
    background: #073d35;
    border-bottom: 1px solid rgba(8, 119, 97, 0.14);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.home-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(247, 255, 252, 0.72), rgba(247, 255, 252, 0.34) 36%, rgba(4, 45, 38, 0.58) 100%),
        radial-gradient(circle at 75% 38%, rgba(23, 202, 161, 0.22), transparent 38%);
}

[dir="rtl"] .home-hero-shade {
    background:
        linear-gradient(270deg, rgba(4, 45, 38, 0.76), rgba(4, 45, 38, 0.44) 42%, rgba(247, 255, 252, 0.56) 100%),
        radial-gradient(circle at 72% 38%, rgba(23, 202, 161, 0.28), transparent 42%);
}

.home-hero-content,
.home-market-indicator {
    position: relative;
    z-index: 1;
}

.home-hero-content {
    max-width: 720px;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.home-hero-content .eyebrow,
.home-hero-content p {
    color: rgba(255, 255, 255, 0.9);
}

.home-hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: 0;
}

.home-hero-content > p:not(.eyebrow) {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.9;
}

.home-hero .hero-actions {
    margin-top: 26px;
}

.home-hero .btn {
    min-width: 138px;
    font-weight: 900;
}

.home-hero .btn.ghost,
.home-hero .btn.glass {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.home-hero .btn.ghost:hover,
.home-hero .btn.glass:hover {
    background: rgba(255, 255, 255, 0.24);
}

.home-market-indicator {
    align-self: center;
    display: grid;
    gap: 12px;
    padding: 22px;
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(5, 34, 29, 0.94), rgba(7, 74, 62, 0.9)),
        radial-gradient(circle at 20% 20%, rgba(23, 202, 161, 0.24), transparent 36%);
    border: 1px solid rgba(135, 255, 224, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.home-market-indicator > span {
    color: #82ffe0;
    font-size: 13px;
    font-weight: 900;
}

.home-market-indicator strong {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
}

.home-market-indicator p,
.home-market-indicator small {
    color: rgba(255, 255, 255, 0.78);
}

.indicator-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.indicator-row small:first-child {
    color: #f3cc58;
    font-size: 20px;
    font-weight: 900;
}

.home-stats-compact,
.home-section,
.quick-verify-section,
.trust-guardian-grid,
.home-legal-note {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.home-stats-compact {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.home-stats-compact article {
    min-height: 98px;
    padding: 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(23, 202, 161, 0.18);
    box-shadow: 0 16px 40px rgba(6, 37, 30, 0.09);
}

.home-stats-compact strong {
    display: block;
    color: var(--primary-strong);
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.home-stats-compact span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.home-section {
    margin-top: 58px;
}

.section-heading {
    margin-bottom: 20px;
    max-width: 760px;
}

.section-heading.split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading h2,
.quick-verify-section h2,
.trust-card h2,
.guardian-visual-card h2 {
    color: var(--ink);
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.25;
}

.home-page .eyebrow {
    color: var(--primary-strong);
    letter-spacing: 0;
}

.home-steps,
.home-feature-grid,
.asset-showcase {
    display: grid;
    gap: 14px;
}

.home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-steps article,
.home-feature-grid article,
.asset-card,
.quick-verify-section,
.trust-card,
.guardian-visual-card {
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(23, 202, 161, 0.16);
    box-shadow: 0 18px 50px rgba(6, 37, 30, 0.08);
}

.home-steps article {
    padding: 22px;
}

.home-steps span,
.home-feature-grid span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #06352d;
    background: linear-gradient(135deg, #9cffea, var(--primary));
    font-weight: 950;
}

.home-steps h3,
.home-feature-grid h3,
.asset-card strong {
    color: var(--ink);
}

.home-steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-grid article {
    padding: 18px;
    min-height: 132px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(239, 253, 248, 0.98));
}

.home-feature-grid h3 {
    margin: 0;
    font-size: 18px;
}

.asset-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-card {
    overflow: hidden;
    padding: 12px;
    background: #ffffff;
}

.asset-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #eaf8f3;
}

.asset-card > div {
    display: grid;
    gap: 10px;
    padding: 12px 2px 2px;
}

.asset-card span:not(.rarity-badge) {
    color: var(--primary-strong);
    font-weight: 950;
}

.asset-card .btn.full {
    width: 100%;
    color: var(--primary-strong);
    background: #eefbf7;
    border: 1px solid rgba(23, 202, 161, 0.22);
}

.compact-empty {
    padding: 18px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
}

.quick-verify-section {
    margin-top: 58px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    align-items: center;
    gap: 24px;
    padding: clamp(22px, 4vw, 34px);
    background:
        linear-gradient(135deg, rgba(6, 37, 30, 0.96), rgba(8, 119, 97, 0.92)),
        radial-gradient(circle at 12% 12%, rgba(23, 202, 161, 0.24), transparent 32%);
    color: #ffffff;
}

.quick-verify-section .eyebrow,
.quick-verify-section h2 {
    color: #ffffff;
}

.quick-verify-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.quick-verify-form input {
    min-height: 52px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #06251e;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.trust-guardian-grid {
    margin-top: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 16px;
}

.trust-card,
.guardian-visual-card {
    padding: clamp(22px, 4vw, 34px);
}

.trust-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.trust-card li {
    position: relative;
    padding-inline-start: 28px;
    color: var(--muted);
    line-height: 1.8;
}

.trust-card li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.72em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(23, 202, 161, 0.14);
}

.guardian-visual-card {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 16%, rgba(23, 202, 161, 0.28), transparent 38%),
        linear-gradient(145deg, #06251e, #0a594c);
    border-color: rgba(135, 255, 224, 0.24);
}

.guardian-visual-card .eyebrow,
.guardian-visual-card h2 {
    color: #ffffff;
}

.guardian-avatar {
    position: relative;
    width: 126px;
    height: 126px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 34px;
    background: linear-gradient(145deg, #ddfff6, #17caa1 52%, #087761);
    box-shadow: 0 24px 70px rgba(23, 202, 161, 0.38);
}

.guardian-avatar span {
    color: #06251e;
    font-size: 34px;
    font-weight: 950;
}

.guardian-avatar i {
    position: absolute;
    width: 26px;
    height: 26px;
    right: 18px;
    top: 18px;
    border-radius: 50%;
    background: #f3cc58;
    box-shadow: -52px 50px 0 rgba(255, 255, 255, 0.36);
}

.home-legal-note {
    margin-top: 44px;
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 8px;
    color: #5b4305;
    background: #fff8df;
    border: 1px solid #f0d98b;
}

.home-legal-note strong {
    color: #7a5a07;
}

.site-footer.samjea-footer {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.2fr);
    gap: 26px;
    align-items: start;
    margin-top: 0;
    padding: 34px max(24px, calc((100vw - 1160px) / 2));
    color: #dffbf3;
    background:
        radial-gradient(circle at 12% 0%, rgba(23, 202, 161, 0.18), transparent 28%),
        linear-gradient(145deg, #061612, #0a2b25);
    border-top: 1px solid rgba(135, 255, 224, 0.16);
}

.footer-brand img {
    width: 164px;
    max-width: 100%;
    margin-bottom: 12px;
    filter: drop-shadow(0 12px 24px rgba(23, 202, 161, 0.2));
}

.footer-brand p,
.footer-legal {
    margin: 0;
    color: rgba(223, 251, 243, 0.72);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.footer-links a {
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.footer-links a:hover {
    color: #06251e;
    background: #8effe3;
}

.footer-legal {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
    .home-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-inline: 22px;
    }

    .home-market-indicator {
        max-width: 520px;
    }

    .home-stats-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .home-steps,
    .home-feature-grid,
    .asset-showcase,
    .quick-verify-section,
    .trust-guardian-grid,
    .site-footer.samjea-footer {
        grid-template-columns: 1fr;
    }

    .section-heading.split {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .home-page .site-main {
        padding-bottom: 42px;
    }

    .home-hero {
        padding: 78px 16px 28px;
    }

    .home-hero-shade,
    [dir="rtl"] .home-hero-shade {
        background:
            linear-gradient(180deg, rgba(4, 45, 38, 0.9), rgba(4, 45, 38, 0.58), rgba(247, 255, 252, 0.42)),
            radial-gradient(circle at 60% 18%, rgba(23, 202, 161, 0.28), transparent 45%);
    }

    .home-hero-content h1 {
        font-size: 34px;
    }

    .home-hero-content > p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.8;
    }

    .home-hero .hero-actions .btn,
    .quick-verify-form .btn {
        width: 100%;
    }

    .home-stats-compact,
    .home-section,
    .quick-verify-section,
    .trust-guardian-grid,
    .home-legal-note {
        width: min(100% - 24px, 1160px);
    }

    .home-stats-compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-stats-compact article {
        min-height: 82px;
        padding: 14px;
    }

    .section-heading h2,
    .quick-verify-section h2,
    .trust-card h2,
    .guardian-visual-card h2 {
        font-size: 24px;
    }

    .quick-verify-form {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(27, 187, 208, 0.15), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(243, 204, 88, 0.12), transparent 28%),
        var(--bg);
    color: var(--ink);
    line-height: 1.7;
}

a {
    color: var(--primary-strong);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0;
}

.brand img {
    width: 176px;
    height: auto;
}

.brand-fallback {
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.brand-symbol {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #f8d878;
    border: 2px solid #d9a83a;
    background: radial-gradient(circle at 40% 28%, #142227, #03070b 70%);
    box-shadow: 0 0 18px rgba(32, 244, 223, 0.32);
    font-weight: 950;
    font-size: 1.2rem;
}

.brand-word {
    display: grid;
    line-height: 1;
}

.brand-word strong {
    color: #0b332d;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.brand-word small {
    color: #0aa889;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
}

.nav a,
.admin-tabs a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
}

.nav a:hover,
.admin-tabs a:hover {
    background: var(--surface-2);
}

.nav-cta {
    background: var(--ink);
    color: #fff !important;
}

.site-main {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 56px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
}

.hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: center;
    gap: 34px;
    padding: 42px 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary-strong);
    font-weight: 800;
    font-size: 14px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.12;
    margin-bottom: 18px;
}

h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.hero-text {
    max-width: 760px;
    font-size: 18px;
    color: var(--muted);
}

.hero-actions,
.inline-form,
.actions-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    background: var(--surface-2);
    color: var(--ink);
}

.btn.primary {
    background: var(--primary);
    color: #fff;
}

.btn.primary:hover {
    background: var(--primary-strong);
}

.btn.ghost {
    background: #fff;
    border: 1px solid var(--line);
}

.btn.danger {
    background: var(--danger);
    color: #fff;
}

.btn.full {
    width: 100%;
}

.coin-preview {
    min-height: 420px;
    display: grid;
    place-items: center;
    position: relative;
}

.coin-face {
    width: min(340px, 80vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, #ffffff 0 6%, transparent 7%),
        linear-gradient(135deg, #0f8f78, #69c5a8 58%, #d5b45f);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    color: #fff;
    border: 12px solid rgba(255, 255, 255, 0.72);
}

.coin-face strong {
    font-size: 78px;
    line-height: 1;
}

.coin-face small {
    align-self: start;
    margin-top: -80px;
    font-weight: 800;
}

.coin-orbit {
    position: absolute;
    inset: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.coin-orbit span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.coin-orbit span:nth-child(1) { top: 16%; left: 20%; }
.coin-orbit span:nth-child(2) { top: 60%; right: 8%; }
.coin-orbit span:nth-child(3) { bottom: 8%; left: 38%; }

.notice-band,
.flash,
.alert {
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #fff;
}

.notice-band {
    margin: 0 0 28px;
    border-color: #e6d08a;
    background: #fff9df;
}

.flash {
    width: min(1160px, calc(100% - 32px));
    margin: 16px auto 0;
}

.flash.success,
.alert.success,
.click-message.success {
    color: var(--success);
    border-color: #bde3cf;
    background: #edfbf3;
}

.flash.error,
.alert.error,
.click-message.error {
    color: var(--danger);
    border-color: #efb3bb;
    background: #fff0f2;
}

.alert.info {
    background: var(--surface-2);
}

.feature-grid,
.stats-grid,
.market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-grid article,
.stats-grid article,
.panel,
.auth-card,
.empty-state,
.market-card,
.coin-card,
.install-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-grid article,
.stats-grid article,
.panel,
.auth-card,
.empty-state,
.install-card {
    padding: 22px;
}

.feature-grid p,
.muted,
small {
    color: var(--muted);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(24, 185, 143, 0.22);
}

.stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
}

.points-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid span {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: var(--primary-strong);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: clamp(30px, 4vw, 46px);
    margin: 0;
}

.panel {
    margin-bottom: 18px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-title h2 {
    margin: 0;
}

.progress {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.2s ease;
}

.form-grid {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 12px 13px;
    min-height: 44px;
    font: inherit;
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 143, 120, 0.16);
    border-color: var(--primary);
}

.auth-card {
    width: min(520px, 100%);
    margin: 22px auto;
}

.generator-layout,
.verify-layout,
.purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.click-zone {
    min-height: 520px;
    border-radius: 8px;
    border: 2px dashed rgba(15, 143, 120, 0.45);
    background:
        linear-gradient(135deg, rgba(15, 143, 120, 0.12), rgba(213, 180, 95, 0.13)),
        #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.click-zone::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 30px solid rgba(15, 143, 120, 0.08);
    border-radius: 50%;
}

.click-zone.is-pressing {
    transform: scale(0.997);
}

.click-core {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    place-items: center;
    text-align: center;
    width: min(520px, calc(100% - 34px));
}

.click-core strong {
    font-size: 44px;
}

.generator-progress-near {
    width: min(460px, 100%);
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 143, 120, 0.20);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 36px rgba(5, 69, 59, 0.10);
}

.generator-progress-near .progress {
    height: 16px;
    background: #e4f7f1;
}

.generator-progress-near .progress span {
    box-shadow: 0 0 18px rgba(24, 185, 143, 0.35);
}

.generator-progress-near p {
    margin: 10px 0 0;
    color: #0d3f36;
    font-weight: 800;
}

.counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.counter span {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-strong);
}

.bot-field {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.clean-list {
    margin: 18px 0 0;
    padding: 0 20px 0 0;
    color: var(--muted);
}

.turnstile-box {
    margin: 16px 0;
}

.coin-list {
    display: grid;
    gap: 16px;
}

.coin-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coin-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    padding: 14px;
    align-items: start;
}

.coin-card img,
.market-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--surface-2);
}

.wallet-card {
    grid-template-columns: 220px minmax(0, 1fr);
}

.wallet-actions {
    display: grid;
    gap: 10px;
}

.site-buyback-form {
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(243, 204, 88, 0.16), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(243, 204, 88, 0.34);
}

.code-box input {
    font-family: Consolas, Monaco, monospace;
    direction: ltr;
    text-align: left;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 12px 0;
}

.meta-grid.stacked {
    grid-template-columns: 1fr;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--primary-strong);
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-card {
    overflow: hidden;
}

.market-card div {
    padding: 16px;
}

.price {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-strong);
}

.code-display {
    direction: ltr;
    text-align: left;
    display: inline-flex;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--primary-strong);
    font: 800 20px Consolas, Monaco, monospace;
}

.market-index {
    overflow: hidden;
}

.market-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 8px 0 16px;
}

.market-chart {
    width: 100%;
    min-height: 230px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fcfb, #eef8f4);
    border: 1px solid var(--line);
}

.market-chart line {
    stroke: #c5d8d2;
    stroke-width: 2;
}

.market-chart polyline {
    fill: none;
    stroke: var(--primary);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-chart circle {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 2;
}

.info-list p {
    margin-bottom: 12px;
}

.withdrawal-action {
    align-items: center;
    gap: 8px;
}

.withdrawal-action input {
    min-width: 180px;
    min-height: 36px;
    padding: 7px 10px;
}

.empty-state {
    text-align: center;
    padding: 42px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: middle;
}

th {
    background: var(--surface-2);
    font-size: 13px;
}

.table-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
}

.table-action {
    display: inline-flex;
}

.table-action .btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.inline-form.wide {
    align-items: end;
}

.inline-form.wide label {
    min-width: 220px;
}

.legal-page {
    max-width: 880px;
    margin: 0 auto;
}

.install-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.install-shell {
    width: min(820px, calc(100% - 32px));
    padding: 28px 0;
}

.install-card .brand-mark {
    margin-bottom: 12px;
}

@media (max-width: 980px) {
    .site-header,
    .page-head,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .generator-layout,
    .verify-layout,
    .purchase-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .stats-grid,
    .market-grid,
    .market-stats,
    .coin-list.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .generator-status {
        order: -1;
    }
}

@media (max-width: 680px) {
    .site-main {
        width: min(100% - 22px, 1160px);
        padding-top: 24px;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    h1 {
        font-size: 34px;
    }

    .feature-grid,
    .stats-grid,
    .market-grid,
    .market-stats,
    .coin-list.compact,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .coin-card,
    .wallet-card {
        grid-template-columns: 1fr;
    }

    .click-zone {
        min-height: 360px;
    }

    .click-core strong {
        font-size: 36px;
    }

    .inline-form {
        align-items: stretch;
    }

    .inline-form label,
    .inline-form .btn {
        width: 100%;
    }
}

.btn.glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: #fff;
    backdrop-filter: blur(8px);
}

.avatar-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(24, 185, 143, 0.16), rgba(243, 204, 88, 0.22));
    color: var(--primary-strong);
    font-size: 12px;
    white-space: nowrap;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.lang-switch a {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.lang-switch a.active {
    background: var(--primary);
    color: #fff;
}

.avatar-link img,
.profile-preview img,
.table-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(6, 37, 30, 0.16);
}

.hero.hero-image {
    position: relative;
    min-height: 650px;
    grid-template-columns: minmax(0, 1fr) 320px;
    overflow: hidden;
    border-radius: 8px;
    padding: clamp(28px, 6vw, 72px);
    margin-top: 10px;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg {
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 37, 30, 0.86) 0%, rgba(6, 37, 30, 0.55) 42%, rgba(6, 37, 30, 0.08) 100%),
        linear-gradient(0deg, rgba(6, 37, 30, 0.24), rgba(6, 37, 30, 0.02));
}

.hero-image .hero-copy {
    max-width: 680px;
    color: #fff;
}

.hero-image .eyebrow {
    color: #a7f4df;
}

.hero-image h1 {
    color: #fff;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.hero-image .hero-text {
    color: rgba(255, 255, 255, 0.86);
}

.hero-ticker {
    align-self: end;
    justify-self: end;
    width: min(320px, 100%);
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(16px);
    color: #fff;
    box-shadow: var(--glow);
}

.hero-ticker span,
.hero-ticker small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
}

.hero-ticker strong {
    display: block;
    font-size: 34px;
    margin: 6px 0;
}

.dual-price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.dual-price div {
    padding: 12px;
    border-radius: 8px;
    background: rgba(24, 185, 143, 0.08);
    border: 1px solid rgba(24, 185, 143, 0.16);
}

.dual-price div:last-child {
    background: rgba(243, 204, 88, 0.13);
}

.dual-price strong {
    font-size: 22px;
    margin: 2px 0 0;
}

.head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-market-strip,
.cta-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.home-market-strip article,
.cta-band {
    background: linear-gradient(135deg, #ffffff, #f4fffb);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.home-market-strip small {
    color: var(--primary-strong);
    font-weight: 900;
}

.home-market-strip strong {
    display: block;
    font-size: 24px;
    margin: 4px 0 8px;
}

.cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.market-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(24, 185, 143, 0.14), rgba(27, 187, 208, 0.14));
    color: var(--primary-strong);
}

.market-badge.صاعد {
    background: linear-gradient(135deg, rgba(24, 185, 143, 0.18), rgba(243, 204, 88, 0.18));
}

.market-badge.هابط {
    color: #9f2f3a;
    background: rgba(200, 61, 74, 0.1);
}

.market-chart polyline {
    stroke: url(#chartStroke);
}

.ad-slot {
    width: min(1160px, calc(100% - 32px));
    margin: 16px auto;
    min-height: 88px;
    border-radius: 8px;
    border: 1px dashed rgba(8, 119, 97, 0.32);
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ad-empty {
    color: var(--muted);
    font-weight: 800;
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-2);
}

.profile-preview img {
    width: 72px;
    height: 72px;
}

.table-avatar {
    width: 44px;
    height: 44px;
}

.official-buy-card {
    text-align: center;
}

.official-coin-preview {
    width: min(240px, 80%);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 25%, #fff 0 5%, transparent 6%),
        conic-gradient(from 160deg, #18c79a, #1bbbd0, #f7e38d, #18c79a);
    border: 12px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--glow);
}

.official-coin-preview span {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 10px 24px rgba(6, 37, 30, 0.24);
}

.official-price-split span {
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(24, 185, 143, 0.1), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(24, 185, 143, 0.18);
}

.official-price-split span:nth-child(2) {
    background: linear-gradient(135deg, rgba(243, 204, 88, 0.18), rgba(255, 255, 255, 0.94));
}

.usd-inline,
.price small,
.hero-ticker small {
    font-weight: 800;
}

@media (max-width: 980px) {
    .hero.hero-image,
    .home-market-strip,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .hero-ticker {
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .brand img {
        width: 144px;
    }

    .hero.hero-image {
        min-height: 560px;
        padding: 24px;
    }

    .hero-ticker strong {
        font-size: 28px;
    }

}

/* Tether-inspired polish layer */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(6, 37, 30, 0.05);
}

.lang-menu label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 4px 6px 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(6, 37, 30, 0.07);
}

.lang-menu span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 900;
}

.lang-menu select {
    width: auto;
    min-height: 30px;
    border: 0;
    padding: 4px 28px 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--surface-2), #fff);
    font-weight: 800;
}

.hero.hero-image {
    width: 100vw;
    margin: -36px calc(50% - 50vw) 22px;
    border-radius: 0;
    min-height: 690px;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.76) 42%, rgba(255,255,255,0.15) 100%),
        linear-gradient(0deg, rgba(232,250,245,0.45), rgba(255,255,255,0.02));
}

.hero-image .hero-copy,
.hero-image h1 {
    color: var(--ink);
    text-shadow: none;
}

.hero-image .hero-text {
    color: var(--muted);
}

.hero-image .eyebrow {
    color: var(--primary-strong);
}

.hero-ticker {
    background: rgba(255,255,255,0.86);
    color: var(--ink);
    border-color: rgba(24, 185, 143, 0.22);
}

.hero-ticker span,
.hero-ticker small {
    color: var(--muted);
}

.market-pro {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,255,252,0.98)),
        radial-gradient(circle at 96% 4%, rgba(27,187,208,0.13), transparent 30%);
}

.market-price-split {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.price-card-vjs,
.price-card-usd {
    position: relative;
    overflow: hidden;
}

.price-card-vjs::after,
.price-card-usd::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    inset-inline-end: -26px;
    top: -26px;
    background: rgba(24, 185, 143, 0.08);
}

.price-card-usd::after {
    background: rgba(243, 204, 88, 0.14);
}

.candlestick-chart {
    width: 100%;
    min-height: 390px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,253,252,0.98)),
        repeating-linear-gradient(90deg, transparent 0 27px, rgba(6,37,30,0.025) 28px 29px);
}

.candlestick-chart .grid {
    stroke: rgba(6, 37, 30, 0.08);
    stroke-width: 1;
}

.candlestick-chart .price-line {
    stroke: rgba(27, 187, 208, 0.7);
    stroke-dasharray: 3 4;
    stroke-width: 1.4;
}

.candlestick-chart .axis-line {
    stroke: rgba(6, 37, 30, 0.18);
    stroke-width: 1.2;
}

.candlestick-chart .wick {
    stroke-width: 1.4;
}

.candlestick-chart .wick.up,
.candlestick-chart .candle.up {
    stroke: #12a88a;
    fill: #13b99a;
}

.candlestick-chart .wick.down,
.candlestick-chart .candle.down {
    stroke: #ff6f7d;
    fill: #ff7f8c;
}

.candlestick-chart .volume.up {
    fill: rgba(19, 185, 154, 0.42);
}

.candlestick-chart .volume.down {
    fill: rgba(255, 127, 140, 0.42);
}

.candlestick-chart .axis-label {
    fill: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.candlestick-chart .y-label {
    text-anchor: end;
}

.candlestick-chart .x-label {
    text-anchor: middle;
    fill: #31463f;
}

@media (max-width: 980px) {
    .market-price-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero.hero-image {
        margin-top: -24px;
        min-height: 560px;
    }

    .market-price-split {
        grid-template-columns: 1fr;
    }
}

/* Professional responsive finish */
body {
    background:
        linear-gradient(180deg, #f7fffc 0%, #eefbf7 42%, #ffffff 100%);
}

.site-header {
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav a {
    font-weight: 800;
}

.nav a:hover,
.admin-tabs a:hover {
    color: var(--primary-strong);
}

.nav-cta,
.btn.primary {
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: 0 12px 26px rgba(24, 185, 143, 0.22);
}

.btn.ghost {
    background: #fff;
    border-color: rgba(8, 119, 97, 0.2);
}

.hero.hero-image {
    min-height: 720px;
}

.hero-image .hero-copy {
    padding-top: 40px;
}

.hero-image h1 {
    max-width: 720px;
    font-size: clamp(42px, 5.5vw, 74px);
}

.hero-text {
    max-width: 640px;
    font-size: 19px;
}

.feature-grid article,
.stats-grid article,
.panel,
.auth-card,
.empty-state,
.market-card,
.coin-card,
.install-card,
.home-market-strip article {
    border-color: rgba(24, 185, 143, 0.16);
    box-shadow: 0 16px 44px rgba(6, 37, 30, 0.08);
}

.feature-grid article,
.home-market-strip article {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-grid article:hover,
.home-market-strip article:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 58px rgba(6, 37, 30, 0.12);
}

.market-pro {
    padding: clamp(18px, 3vw, 30px);
}

.candlestick-chart {
    display: block;
    margin-top: 18px;
}

.range-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
}

.range-tab {
    min-width: 58px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(24, 185, 143, 0.18);
    color: var(--muted);
    text-align: center;
    font-weight: 900;
}

.range-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    box-shadow: 0 12px 24px rgba(24, 185, 143, 0.2);
}

.chart-asset-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.chart-asset-tabs .range-tab {
    border-color: color-mix(in srgb, var(--rarity-color, var(--primary)) 42%, rgba(24, 185, 143, 0.18));
}

.chart-asset-tabs .range-tab.active {
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.28), transparent 24%),
        linear-gradient(135deg, var(--rarity-color, var(--primary-strong)), var(--primary));
}

.chart-value-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.chart-value-strip span {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--rarity-color, var(--primary)) 50%, rgba(24, 185, 143, 0.18));
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--rarity-color, var(--primary)) 20%, transparent), transparent 38%),
        #ffffff;
}

.chart-value-strip small {
    color: #42655e;
    font-weight: 900;
}

.chart-value-strip strong {
    color: var(--rarity-color, var(--primary-strong));
    font-size: 1.05rem;
}

.trend-chart {
    display: block;
    width: 100%;
    min-height: 430px;
    margin-top: 14px;
    background: #fff;
    border: 2px solid #111;
    border-radius: 2px;
}

.trend-chart .chart-frame {
    fill: #fff;
    stroke: #111;
    stroke-width: 1.5;
}

.trend-chart .grid {
    stroke: rgba(0, 0, 0, 0.18);
    stroke-width: 1;
    stroke-dasharray: 1 3;
}

.trend-chart .axis-value {
    fill: #111;
    font-size: 14px;
    font-weight: 800;
    font-family: Arial, sans-serif;
}

.trend-chart .y-left {
    text-anchor: end;
}

.trend-chart .y-right {
    text-anchor: start;
}

.trend-chart .x-bottom {
    text-anchor: middle;
}

.trend-chart .chart-title-bg {
    fill: #2d8577;
    stroke: #1f6259;
    stroke-width: 1;
}

.trend-chart .chart-title,
.trend-chart .chart-subtitle {
    fill: #fff;
    font-family: Arial, sans-serif;
    font-weight: 900;
}

.trend-chart .chart-title {
    font-size: 22px;
}

.trend-chart .chart-subtitle {
    font-size: 18px;
}

.trend-chart .chart-legend-box {
    fill: #fff;
    stroke: #111;
    stroke-width: 1.5;
}

.trend-chart .legend-line,
.trend-chart .price-trend-line {
    fill: none;
    stroke: #0035d8;
    stroke-width: 2.4;
}

.trend-chart .legend-text {
    fill: #111;
    font-size: 15px;
    font-weight: 800;
    font-family: Arial, sans-serif;
}

.trend-chart .projection-line {
    stroke: #111;
    stroke-width: 1.8;
    stroke-dasharray: 2 3;
}

.trend-chart .target-line {
    stroke: #e10000;
    stroke-width: 3;
}

.trend-chart .target-text {
    fill: #e10000;
    font-size: 15px;
    font-weight: 900;
    font-family: Arial, sans-serif;
}

.trend-chart .chart-source {
    fill: #111;
    font-size: 14px;
    font-weight: 800;
    font-family: Arial, sans-serif;
}

.candlestick-chart .volume.up {
    fill: rgba(18, 168, 138, 0.58);
}

.candlestick-chart .volume.down {
    fill: rgba(224, 72, 85, 0.62);
}

.candlestick-chart .wick.down,
.candlestick-chart .candle.down {
    stroke: #e04855;
    fill: #e04855;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.checkout-summary {
    position: sticky;
    top: 96px;
}

.single-checkout {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

.checkout-price {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.checkout-price span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(24, 185, 143, 0.1), #fff);
    border: 1px solid rgba(24, 185, 143, 0.16);
    font-weight: 900;
}

.checkout-price span:last-child {
    background: linear-gradient(135deg, rgba(243, 204, 88, 0.18), #fff);
}

.hidden-form {
    display: none;
}

.soft-panel {
    margin: 0;
    background: linear-gradient(135deg, rgba(24, 185, 143, 0.07), rgba(255, 255, 255, 0.96));
    box-shadow: none;
}

.checkout-entry {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 255, 250, 0.98)),
        radial-gradient(circle at 92% 8%, rgba(24, 185, 143, 0.16), transparent 32%);
}

.secure-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.secure-list li {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--primary-strong);
    font-weight: 800;
}

@media (max-width: 1100px) {
    .site-header {
        gap: 12px;
    }

    .nav a {
        padding-inline: 9px;
        font-size: 13px;
    }
}

@media (max-width: 680px) {
    .hero.hero-image {
        width: 100vw;
        margin-inline: calc(50% - 50vw);
        min-height: 620px;
        padding: 92px 18px 26px;
    }

    .hero-image h1 {
        font-size: 38px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-ticker,
    .dual-price {
        width: 100%;
    }

    .dual-price {
        grid-template-columns: 1fr;
    }

    .home-market-strip,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .candlestick-chart {
        min-height: 300px;
    }
}

/* Mobile header like a compact app bar */
.mobile-header-actions {
    display: none;
}

@media (max-width: 920px) {
    body.menu-open {
        overflow: auto;
    }

    .site-header {
        direction: ltr;
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        min-height: 78px;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid rgba(6, 37, 30, 0.08);
        box-shadow: 0 8px 22px rgba(6, 37, 30, 0.1);
    }

    .mobile-header-actions {
        order: 1;
        display: inline-flex;
        align-items: center;
        gap: 16px;
    }

    .site-header .brand {
        order: 2;
        margin-left: auto;
    }

    .site-header .brand img {
        width: 150px;
        max-height: 48px;
    }

    .menu-toggle {
        position: relative;
        display: inline-flex;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
        border-radius: 999px;
        background: #2a2d31;
    }

    .menu-toggle strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .mobile-icon {
        position: relative;
        display: inline-grid;
        place-items: center;
        width: 28px;
        height: 28px;
        color: #2a2d31;
    }

    .moon-icon {
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .moon-icon::before {
        content: "";
        width: 20px;
        height: 20px;
        border-radius: 50%;
        box-shadow: -6px 0 0 0 #2a2d31;
        transform: translateX(5px);
    }

    .user-icon::before {
        content: "";
        width: 22px;
        height: 22px;
        border: 3px solid #2a2d31;
        border-radius: 50%;
    }

    .user-icon::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        top: 7px;
        border-radius: 50%;
        background: #2a2d31;
        box-shadow: 0 8px 0 3px #2a2d31;
    }

    .bag-icon::before {
        content: "";
        width: 22px;
        height: 18px;
        margin-top: 6px;
        border-radius: 2px 2px 4px 4px;
        background: #2a2d31;
    }

    .bag-icon::after {
        content: "";
        position: absolute;
        top: 1px;
        width: 12px;
        height: 10px;
        border: 3px solid #2a2d31;
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
    }

    .nav {
        direction: rtl;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 16px !important;
        right: 16px !important;
        bottom: auto !important;
        inset-inline: 16px !important;
        z-index: 25;
        width: auto !important;
        max-height: calc(100vh - 100px);
        display: none !important;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(6, 37, 30, 0.08);
        box-shadow: 0 22px 60px rgba(6, 37, 30, 0.16);
        overflow-y: auto;
        transform: none !important;
    }

    body.menu-open .nav {
        display: grid !important;
    }

    .nav a,
    .nav .lang-menu label {
        width: 100%;
        min-height: 44px;
        border-radius: 8px;
        background: #fff;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }
}

/* Final contrast contract: light surfaces use dark text, dark surfaces use white text. */
:root {
    --bg: #f7fffc;
    --surface: #ffffff;
    --surface-2: #eefbf7;
    --ink: #06251e;
    --muted: #516d66;
    --line: #d5eee7;
    --primary: #17caa1;
    --primary-strong: #087761;
}

body {
    color: #06251e;
    background: linear-gradient(180deg, #fbfffd 0%, #eefbf7 46%, #ffffff 100%);
}

.site-header,
.nav,
.nav-dropdown-menu,
.panel,
.auth-card,
.empty-state,
.notice-band,
.market-card,
.coin-card,
.wallet-card,
.member-card,
.pricing-card,
.message-item,
.checkout-summary,
.checkout-entry,
.soft-panel,
.table-wrap,
.stats-grid article,
.market-stats article,
.home-stats-compact article,
.home-steps article,
.home-feature-grid article,
.asset-card,
.trust-card,
.compact-empty,
.admin-tabs,
.certificate-grid > article,
.purchase-layout > article,
.form-grid,
.about-grid .panel,
.about-wide {
    color: #06251e !important;
}

.site-header,
.nav-dropdown-menu,
.panel,
.auth-card,
.empty-state,
.notice-band,
.market-card,
.coin-card,
.wallet-card,
.member-card,
.pricing-card,
.message-item,
.checkout-summary,
.table-wrap,
.stats-grid article,
.market-stats article,
.home-stats-compact article,
.home-steps article,
.home-feature-grid article,
.asset-card,
.trust-card,
.compact-empty,
.admin-tabs,
.certificate-grid > article,
.purchase-layout > article,
.form-grid,
.about-grid .panel,
.about-wide {
    background: #ffffff !important;
}

.panel h1,
.panel h2,
.panel h3,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.empty-state h1,
.empty-state h2,
.market-card h1,
.market-card h2,
.market-card h3,
.coin-card h1,
.coin-card h2,
.coin-card h3,
.wallet-card h1,
.wallet-card h2,
.wallet-card h3,
.member-card h1,
.member-card h2,
.member-card h3,
.pricing-card h1,
.pricing-card h2,
.pricing-card h3,
.message-item h1,
.message-item h2,
.message-item h3,
.checkout-summary h1,
.checkout-summary h2,
.checkout-summary h3,
.stats-grid strong,
.stats-grid span,
.market-stats strong,
.market-stats span,
.home-stats-compact strong,
.home-steps h3,
.home-feature-grid h3,
.asset-card strong,
.trust-card h2,
.about-wide h2,
.about-grid h2,
.table-wrap th,
.table-wrap td,
label,
input,
select,
textarea {
    color: #06251e !important;
}

.panel p,
.panel small,
.panel li,
.auth-card p,
.auth-card small,
.empty-state p,
.notice-band p,
.market-card p,
.market-card small,
.coin-card p,
.coin-card small,
.wallet-card p,
.wallet-card small,
.member-card p,
.member-card small,
.pricing-card p,
.pricing-card small,
.message-item p,
.message-item small,
.checkout-summary p,
.checkout-summary small,
.stats-grid small,
.market-stats small,
.home-stats-compact span,
.home-steps p,
.trust-card li,
.about-wide p,
.about-grid p,
.muted {
    color: #516d66 !important;
}

.site-header a,
.nav a,
.nav-dropdown summary,
.nav-dropdown-menu a,
.admin-tabs a,
.footer-links a {
    color: #073d35 !important;
}

.nav a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary,
.nav-dropdown-menu a:hover,
.admin-tabs a:hover {
    color: #087761 !important;
}

.btn,
.btn.ghost,
a.btn.ghost,
button.btn.ghost,
.nav-icon,
.lang-menu select {
    color: #073d35 !important;
    background: #ffffff;
    border-color: rgba(8, 119, 97, 0.24);
}

.btn.primary,
.nav-cta,
button.btn.primary,
a.btn.primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #087761, #17caa1);
}

.nav-icon.notification-pro-icon,
.mobile-icon.notification-pro-icon {
    color: #ffffff !important;
    background:
        radial-gradient(circle at 70% 20%, rgba(54, 255, 214, 0.42), transparent 28%),
        linear-gradient(145deg, #06352f 0%, #08a990 58%, #031f1b 100%) !important;
    border-color: rgba(23, 216, 184, 0.42) !important;
}

.btn.danger,
button.btn.danger,
a.btn.danger {
    color: #ffffff !important;
}

.alert.error {
    color: #7a1021 !important;
    background: #fff0f2;
}

.alert.success,
.pill.success {
    color: #0a5135 !important;
    background: #e6fff4;
}

.pill,
.rarity-badge,
.balance-pill {
    color: #06251e !important;
}

.home-hero,
.hero.hero-image,
.home-market-indicator,
.quick-verify-section,
.guardian-visual-card,
.site-footer.samjea-footer,
.about-hero,
.click-zone,
.market-pro.dark-panel,
.dark-panel,
.cta-band.dark {
    color: #ffffff !important;
}

.dark-panel,
.market-pro.dark-panel,
.cta-band.dark {
    background: linear-gradient(135deg, #06251e, #0a594c) !important;
}

.home-hero h1,
.home-hero h2,
.home-hero h3,
.home-hero p,
.home-hero .eyebrow,
.hero.hero-image h1,
.hero.hero-image h2,
.hero.hero-image h3,
.hero.hero-image p,
.hero.hero-image .eyebrow,
.home-market-indicator strong,
.home-market-indicator span,
.home-market-indicator p,
.home-market-indicator small,
.quick-verify-section h1,
.quick-verify-section h2,
.quick-verify-section h3,
.quick-verify-section p,
.quick-verify-section .eyebrow,
.guardian-visual-card h1,
.guardian-visual-card h2,
.guardian-visual-card h3,
.guardian-visual-card p,
.guardian-visual-card .eyebrow,
.site-footer.samjea-footer,
.site-footer.samjea-footer p,
.site-footer.samjea-footer span,
.site-footer.samjea-footer strong,
.about-hero h1,
.about-hero h2,
.about-hero h3,
.about-hero p,
.about-hero .eyebrow,
.click-zone,
.click-zone strong,
.click-zone span,
.dark-panel,
.dark-panel h1,
.dark-panel h2,
.dark-panel h3,
.dark-panel p,
.cta-band.dark,
.cta-band.dark strong,
.cta-band.dark span {
    color: #ffffff !important;
}

.site-footer.samjea-footer .footer-links a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.site-footer.samjea-footer .footer-links a:hover {
    color: #06251e !important;
    background: #8effe3;
}

.quick-verify-form input,
.home-hero input,
.about-hero input {
    color: #06251e !important;
    background: #ffffff !important;
}

@media (max-width: 920px) {
    .nav,
    .nav a,
    .nav .lang-menu label,
    .nav-dropdown summary,
    .nav-dropdown-menu {
        color: #06251e !important;
        background: #ffffff !important;
    }
}
/* SAMJEA premium identity refresh */
.brand img {
    width: 154px;
    height: auto;
    object-fit: contain;
}

.legacy-trend-chart {
    display: none !important;
}

.premium-trading-chart {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(43, 244, 223, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at 78% 12%, rgba(35, 199, 255, 0.18), transparent 32%),
        linear-gradient(145deg, #061426, #02070d 72%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #f4fbff;
    margin-top: 18px;
}

.premium-trading-chart canvas {
    display: block;
    width: 100%;
    height: min(62vw, 610px);
    min-height: 360px;
}

.chart-topline {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    pointer-events: none;
}

.chart-topline > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.chart-topline small {
    color: #8ed9e9;
    font-weight: 700;
}

.coin-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #10110c;
    font-weight: 950;
    background: linear-gradient(135deg, #fff4b9, #c78a22 55%, #ffe07b);
    box-shadow: 0 0 22px rgba(32, 244, 223, 0.38);
}

.chart-live-price {
    flex-direction: column;
    align-items: flex-end !important;
    gap: 2px !important;
}

.chart-live-price span {
    color: #ffffff;
    font-size: clamp(1.15rem, 2vw, 1.9rem);
    font-weight: 950;
}

.chart-live-price small {
    color: #21f0ae;
}

.chart-tooltip {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 208px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(53, 199, 255, 0.45);
    background: rgba(3, 13, 25, 0.94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 22px rgba(53, 199, 255, 0.24);
    color: #f5fbff;
    pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
    display: block;
    font-size: 0.82rem;
}

.chart-tooltip span {
    color: #dff8ff;
    margin-top: 4px;
}

.chart-tooltip i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-inline-end: 6px;
}

.coin-public-hero,
.dark-page-head {
    background:
        radial-gradient(circle at 72% 22%, rgba(32, 244, 223, 0.18), transparent 34%),
        radial-gradient(circle at 18% 75%, rgba(217, 168, 58, 0.16), transparent 28%),
        linear-gradient(135deg, #061014, #020509 72%);
    border: 1px solid rgba(243, 191, 88, 0.2);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    color: #ffffff;
}

.coin-public-hero .muted,
.coin-public-hero p,
.dark-page-head .muted {
    color: #d6eef0;
}

.coin-public-media img,
.market-card img,
.wallet-card > img {
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.certificate-card,
.upgrade-card,
.chat-panel,
.chat-users {
    border-color: rgba(32, 244, 223, 0.18);
}

.upgrade-rarity-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.upgrade-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(4, 17, 18, 0.96), rgba(1, 7, 10, 0.98));
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.upgrade-card h2 {
    margin: 0 0 10px;
}

.upgrade-card > strong {
    display: block;
    color: var(--rarity-accent, #20f4df);
    font-size: 2rem;
    font-weight: 950;
}

.rarity-orb {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--rarity-accent, #20f4df), var(--rarity-color, #20f4df));
    box-shadow: 0 0 28px var(--rarity-color, #20f4df);
}

.unlock-list {
    display: grid;
    gap: 12px;
}

.unlock-list article {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(7, 70, 67, 0.16);
    border-radius: 14px;
    background: #ffffff;
}

.chat-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
}

.chat-users {
    display: grid;
    align-content: start;
    gap: 8px;
}

.chat-users a,
.chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-users a {
    padding: 9px;
    border-radius: 12px;
    color: #0b2f2d;
    text-decoration: none;
}

.chat-users a.active,
.chat-users a:hover {
    background: rgba(32, 244, 223, 0.13);
}

.chat-users img,
.chat-head img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-messages {
    height: 440px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(145deg, #061014, #020509);
}

.chat-messages article {
    max-width: min(76%, 560px);
    padding: 10px 12px;
    border-radius: 14px;
    color: #ffffff;
}

.chat-messages .mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #0fbf9f, #087f72);
}

.chat-messages .theirs {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.12);
}

.chat-messages p {
    margin: 0 0 4px;
}

.chat-messages small {
    color: rgba(255, 255, 255, 0.72);
}

.chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.kyc-form input[type="file"] {
    padding: 12px;
    border: 1px dashed rgba(9, 131, 113, 0.34);
    background: #f7fbfa;
}

.generation-rarity-picker {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.generation-rarity-picker label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(7, 70, 67, 0.14);
    background: #ffffff;
}

.generation-rarity-picker label.locked {
    opacity: 0.5;
}

.generation-rarity-picker input {
    width: auto;
}

.auction-page form,
.auction-page .form-grid,
.auction-page input,
.auction-page button,
form[action$="place_bid.php"],
form[action$="place_bid.php"] input,
form[action$="place_bid.php"] button {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .premium-trading-chart canvas {
        min-height: 430px;
        height: 88vw;
    }

    .chart-topline {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 14px 14px 0;
        flex-wrap: wrap;
    }

    .upgrade-rarity-grid,
    .chat-shell {
        grid-template-columns: 1fr;
    }

    .unlock-list article {
        grid-template-columns: 1fr;
    }

    .chat-compose {
        grid-template-columns: 1fr;
    }

    .chat-compose button {
        width: 100%;
    }
}

.brand-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: center;
}

.brand-logo-showcase {
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #03070b, #071b1d);
    color: #ffffff;
    text-align: center;
}

.brand-logo-showcase img {
    max-width: min(460px, 100%);
}

.brand-logo-showcase p {
    color: #20f4df;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-swatches,
.asset-samples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.brand-swatches article,
.asset-samples article {
    border: 1px solid rgba(7, 70, 67, 0.14);
    border-radius: 14px;
    background: #ffffff;
    padding: 14px;
    color: #082b28;
}

.brand-swatches span {
    display: block;
    height: 76px;
    border-radius: 12px;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
}

.asset-samples img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #03070b;
    border-radius: 12px;
    padding: 10px;
}

.coin-samples img {
    padding: 0;
}

@media (max-width: 860px) {
    .brand-guide {
        grid-template-columns: 1fr;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 0;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
