/* ============================================================
   NEXARC — MASTER STYLESHEET (LIGHT + DARK THEME)
   Covers: Home, Games, Game Detail, Blog, Blog Post,
   About, Contact, Auth, 404, Admin, Wallet, Profile,
   Freeplay, Referrals, Reviews, Notifications, CMS
   ============================================================ */

/* ===========================
   1. THEME VARIABLES
   =========================== */

/* ─── DARK (default) ─── */
:root {
    --bg: #07080f;
    --bg2: #0b0d18;
    --panel: rgba(255, 255, 255, 0.045);
    --panel2: #10131f;
    --line: rgba(255, 255, 255, 0.09);
    --line2: rgba(255, 255, 255, 0.16);
    --text: #eef0ff;
    --text-secondary: #c3c8de;
    --muted: #8b91ad;
    --violet: #7c5cff;
    --cyan: #00d4ff;
    --amber: #ffb54d;
    --pink: #ff6b9d;
    --teal: #2ee6a8;
    --red: #ff5470;
    --grad: linear-gradient(120deg, #7c5cff, #00d4ff);
    --grad-reverse: linear-gradient(120deg, #00d4ff, #7c5cff);
    --disp: "Unbounded", sans-serif;
    --body: "Space Grotesk", sans-serif;
    --mono: "JetBrains Mono", monospace;
    --r: 18px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 22px rgba(124, 92, 255, 0.6);
    --transition: 0.3s ease;
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.16);
    --hover-bg: rgba(124, 92, 255, 0.07);
    --scrollbar-thumb: rgba(255, 255, 255, 0.16);
    --scrollbar-track: transparent;
    --overlay: rgba(7, 8, 15, 0.85);
    --code-bg: #0b0d18;
    --table-row-hover: rgba(124, 92, 255, 0.07);
    --table-border: rgba(255, 255, 255, 0.05);
    --card-glow: 0 0 30px rgba(124, 92, 255, 0.15);
    --hero-gradient-1: rgba(124, 92, 255, 0.14);
    --hero-gradient-2: rgba(0, 212, 255, 0.08);
    --noise-opacity: 0.04;
    --theme-icon: "🌙";
}

/* ─── LIGHT ─── */
html.light {
    --bg: #f4f6fb;
    --bg2: #eef1f8;
    --panel: rgba(255, 255, 255, 0.85);
    --panel2: #ffffff;
    --line: rgba(15, 20, 40, 0.08);
    --line2: rgba(15, 20, 40, 0.14);
    --text: #1a1e2e;
    --text-secondary: #3d4260;
    --muted: #6b7194;
    --violet: #6a4bef;
    --cyan: #0099cc;
    --amber: #d4860a;
    --pink: #e0447a;
    --teal: #0da678;
    --red: #e03a56;
    --grad: linear-gradient(120deg, #6a4bef, #0099cc);
    --grad-reverse: linear-gradient(120deg, #0099cc, #6a4bef);
    --shadow-sm: 0 4px 12px rgba(15, 20, 40, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 20, 40, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 20, 40, 0.12);
    --shadow-glow: 0 0 22px rgba(106, 75, 239, 0.25);
    --input-bg: rgba(15, 20, 40, 0.03);
    --input-border: rgba(15, 20, 40, 0.12);
    --hover-bg: rgba(106, 75, 239, 0.05);
    --scrollbar-thumb: rgba(15, 20, 40, 0.15);
    --scrollbar-track: rgba(15, 20, 40, 0.03);
    --overlay: rgba(244, 246, 251, 0.9);
    --code-bg: #eef1f8;
    --table-row-hover: rgba(106, 75, 239, 0.05);
    --table-border: rgba(15, 20, 40, 0.05);
    --card-glow: 0 0 30px rgba(106, 75, 239, 0.08);
    --hero-gradient-1: rgba(106, 75, 239, 0.08);
    --hero-gradient-2: rgba(0, 153, 204, 0.05);
    --noise-opacity: 0.02;
    --theme-icon: "☀️";
}

/* ===========================
   2. RESET & BASE
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(1000px 600px at 80% -10%, var(--hero-gradient-1), transparent 60%),
        radial-gradient(800px 500px at -10% 40%, var(--hero-gradient-2), transparent 60%);
    transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
    background: var(--violet);
    color: #fff;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.15;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

/* ===========================
   3. UTILITIES
   =========================== */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.mono {
    font-family: var(--mono);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Noise overlay */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 80;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.4);
}

/* ===========================
   4. THEME TOGGLE BUTTON
   =========================== */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.theme-toggle .toggle-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.3s;
}

/* Dark mode: show sun (click to go light) */
.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Light mode: show moon (click to go dark) */
html.light .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

html.light .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ===========================
   5. TICKER
   =========================== */
.ticker {
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
}

html.light .ticker {
    background: rgba(15, 20, 40, 0.02);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: mq 30s linear infinite;
}

.ticker-group {
    display: flex;
    gap: 2.4rem;
    padding: 0.55rem 1.2rem;
    white-space: nowrap;
}

.ticker-group em {
    font-style: normal;
    color: var(--cyan);
}

@keyframes mq {
    to {
        transform: translateX(-50%);
    }
}

/* ===========================
   6. HEADER & NAVIGATION
   =========================== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 8, 15, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.4s;
}

html.light header {
    background: rgba(255, 255, 255, 0.82);
}

header.scrolled {
    border-color: var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--disp);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.orb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad);
    position: relative;
    box-shadow: var(--shadow-glow);
    flex: none;
}

.orb::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1.5px solid rgba(0, 212, 255, 0.55);
    border-radius: 50%;
    transform: rotate(-18deg) scaleY(0.4);
}

.logo b {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu {
    display: flex;
    gap: 1.7rem;
    margin-left: auto;
}

.menu a {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.25s;
}

.menu a:hover {
    color: var(--text);
}

.menu a.active {
    color: var(--text);
    border-bottom-color: var(--cyan);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-left: 1rem;
}

.online-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.online-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.3;
    }
}

.burger {
    display: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 42px;
    height: 38px;
    position: relative;
}

.burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.burger span:nth-child(1) {
    top: 10px;
}

.burger span:nth-child(2) {
    top: 17px;
}

.burger span:nth-child(3) {
    top: 24px;
}

/* ===========================
   7. BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 0;
    border-radius: 12px;
    padding: 1rem 1.7rem;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn-grad {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 28px rgba(124, 92, 255, 0.35);
}

.btn-grad:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 212, 255, 0.4);
}

.btn-ghost {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line2);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.btn-danger {
    background: linear-gradient(120deg, #ff5470, #ff6b9d);
    color: #fff;
    box-shadow: 0 8px 28px rgba(255, 84, 112, 0.35);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(255, 84, 112, 0.4);
}

.btn-sm {
    padding: 0.65rem 1.15rem;
    font-size: 0.66rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 1.2rem 2.2rem;
    font-size: 0.85rem;
    border-radius: 14px;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

.btn-full {
    width: 100%;
}

/* ===========================
   8. PANELS & CARDS
   =========================== */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.4s;
}

.panel:hover {
    border-color: rgba(124, 92, 255, 0.55);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(124, 92, 255, 0.25);
}

html.light .panel:hover {
    border-color: rgba(106, 75, 239, 0.35);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(106, 75, 239, 0.12);
}

/* ===========================
   9. TYPOGRAPHY
   =========================== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.06);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.h1 {
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(2.1rem, 5vw, 4rem);
    text-transform: uppercase;
    line-height: 1.06;
}

.h2 {
    font-family: var(--disp);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    text-transform: uppercase;
}

.h3 {
    font-family: var(--disp);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.4rem);
    text-transform: uppercase;
}

.grad-txt {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sec-sub {
    color: var(--muted);
    margin-top: 0.8rem;
    max-width: 60ch;
}

.section {
    padding: 6rem 0;
}

.section.alt {
    background: var(--bg2);
    border-block: 1px solid var(--line);
}

/* ===========================
   10. HERO
   =========================== */
.hero {
    position: relative;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

#fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rings {
    position: absolute;
    right: -220px;
    top: 50%;
    width: 760px;
    height: 760px;
    transform: translateY(-50%);
    pointer-events: none;
}

.rings i {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

html.light .rings i {
    border-color: rgba(15, 20, 40, 0.08);
}

.rings i:nth-child(1) {
    inset: 0;
}

.rings i:nth-child(2) {
    inset: 90px;
    border-color: rgba(124, 92, 255, 0.22);
}

.rings i:nth-child(3) {
    inset: 190px;
    border-color: rgba(0, 212, 255, 0.16);
}

.rings .sat {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 18px var(--cyan);
    animation: orbit 14s linear infinite;
}

.rings .sat2 {
    background: var(--violet);
    animation: orbit2 22s linear infinite reverse;
    animation-delay: -6s;
}

@keyframes orbit {
    from {
        transform: rotate(0) translateX(378px);
    }

    to {
        transform: rotate(360deg) translateX(378px);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(0) translateX(278px);
    }

    to {
        transform: rotate(-360deg) translateX(278px);
    }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.lede {
    color: var(--muted);
    max-width: 52ch;
    margin: 1.6rem 0 2.2rem;
    font-size: 1.05rem;
}

.lede b {
    color: var(--cyan);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 2.2rem;
    margin-top: 3rem;
}

.hero-stats strong {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.5rem;
}

.hero-stats div {
    padding-left: 1rem;
    border-left: 2px solid rgba(124, 92, 255, 0.5);
}

.hero-stats span {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.featured-card {
    position: relative;
    border-radius: 22px;
    overflow: visible;
}

.featured-card .shot {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line2);
}

.featured-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.fc-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(7, 8, 15, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line2);
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
}

html.light .fc-bar {
    background: rgba(255, 255, 255, 0.85);
}

.fc-bar h3 {
    font-family: var(--disp);
    font-size: 0.95rem;
    text-transform: uppercase;
}

.fc-bar p {
    font-size: 0.72rem;
    color: var(--muted);
}

.chip-float {
    position: absolute;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 12px;
    padding: 0.55rem 0.95rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    box-shadow: var(--shadow-md);
    animation: float 5.5s ease-in-out infinite;
    z-index: 3;
}

.chip-float b {
    color: var(--cyan);
}

.cf-a {
    top: -18px;
    right: -14px;
}

.cf-b {
    bottom: 34%;
    left: -34px;
    animation-delay: 1.1s;
}

.cf-c {
    top: 38%;
    right: -26px;
    animation-delay: 2s;
}

@keyframes float {
    50% {
        transform: translateY(-9px);
    }
}

/* ===========================
   11. BIG MARQUEE
   =========================== */
.bigmarquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 1rem 0;
    background: var(--bg2);
}

.bm-track {
    display: flex;
    width: max-content;
    animation: mq 36s linear infinite;
}

.bm-group {
    display: flex;
    gap: 2.6rem;
    padding-right: 2.6rem;
    white-space: nowrap;
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(1.8rem, 4.6vw, 3.1rem);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

html.light .bm-group {
    -webkit-text-stroke: 1px rgba(15, 20, 40, 0.2);
}

.bm-group i {
    font-style: normal;
    -webkit-text-stroke: 0;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===========================
   12. GAME CARDS & GRID
   =========================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.5rem;
}

.gcard {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gcard:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, 0.6);
    box-shadow: var(--shadow-md), var(--card-glow);
}

.gcard[hidden] {
    display: none;
}

.gcover {
    position: relative;
    height: 196px;
    overflow: visible;
}

.gcover .imgwrap {
    height: 100%;
    overflow: hidden;
}

.gcover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.gcard:hover .gcover img {
    transform: scale(1.08);
}

.corner {
    position: absolute;
    top: -11px;
    right: -9px;
    z-index: 4;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    transform: rotate(7deg);
    box-shadow: var(--shadow-sm);
    display: inline-block;
}

.corner.pts {
    background: linear-gradient(120deg, #ffb54d, #ff8a3d);
    color: #221400;
}

.corner.sale {
    background: linear-gradient(120deg, #ff6b9d, #ff5470);
    color: #fff;
}

.corner.free {
    background: linear-gradient(120deg, #2ee6a8, #00d4ff);
    color: #03231a;
}

.corner.bonus {
    background: linear-gradient(120deg, #2ee6a8, #00d4ff);
    color: #03231a;
}

.gcover-ov {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 8, 15, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}

html.light .gcover-ov {
    background: rgba(244, 246, 251, 0.6);
}

.gcard:hover .gcover-ov {
    opacity: 1;
}

@media (hover: none) {
    .gcover-ov {
        opacity: 1;
        background: linear-gradient(to top, rgba(7, 8, 15, 0.75), transparent 60%);
    }

    html.light .gcover-ov {
        background: linear-gradient(to top, rgba(244, 246, 251, 0.8), transparent 60%);
    }

    .gcover-ov .btn {
        align-self: flex-end;
        margin: 0 0 0.8rem;
    }
}

.gbody {
    padding: 1rem 1.1rem 1.15rem;
}

.gbody h3 {
    font-family: var(--disp);
    font-size: 0.92rem;
    text-transform: uppercase;
}

.ggenre {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0.3rem 0 0.8rem;
}

.gfoot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.gfoot .stars {
    color: var(--amber);
    font-family: var(--mono);
}

.gpts {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--amber);
}

.gpts .free {
    color: var(--teal);
}

.gpts s {
    color: var(--muted);
    font-weight: 500;
    margin-left: 0.35rem;
}

.gc-balance {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    background: rgba(7, 8, 15, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(46, 230, 168, 0.4);
    color: var(--teal);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

html.light .gc-balance {
    background: rgba(255, 255, 255, 0.9);
}

/* Lib bar / Filters */
.lib-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin: 2.2rem 0;
}

.tabs {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.tab {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    transition: 0.25s;
}

.tab:hover {
    color: var(--text);
    border-color: var(--line2);
}

.tab.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

.search {
    background: var(--input-bg);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--body);
    padding: 0.75rem 1.2rem;
    width: 230px;
    border-radius: 12px;
    outline: none;
    transition: 0.25s;
}

.search:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* ===========================
   13. STEPS / HOW IT WORKS
   =========================== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 3rem;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 5%;
    right: 5%;
    border-top: 1px dashed rgba(124, 92, 255, 0.35);
}

.step {
    padding: 1.7rem 1.5rem;
    position: relative;
    z-index: 1;
}

.step-ico {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 26px rgba(124, 92, 255, 0.4);
    margin-bottom: 1.1rem;
}

.step .num {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.2em;
}

.step h3 {
    font-family: var(--disp);
    font-size: 0.92rem;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.step p {
    color: var(--muted);
    font-size: 0.88rem;
}

.step .kbd {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.06);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}

/* ===========================
   14. OFFER SECTION
   =========================== */
.offer-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(124, 92, 255, 0.4);
    box-shadow: 0 30px 80px rgba(124, 92, 255, 0.18);
}

.offer-copy {
    padding: 3rem;
}

.offer-copy h2 {
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(1.5rem, 2.9vw, 2.3rem);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.offer-copy p {
    color: var(--muted);
}

.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.4rem 0;
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: 0.18em;
    border: 1px dashed rgba(255, 181, 77, 0.6);
    background: rgba(255, 181, 77, 0.08);
    color: var(--amber);
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
}

.code-chip button {
    border: 1px solid var(--line2);
    background: var(--panel2);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: 0.2s;
}

.code-chip button:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.offer-art {
    position: relative;
    border-left: 1px solid var(--line);
    overflow: hidden;
    min-height: 400px;
}

.offer-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kb 16s ease-in-out infinite alternate;
}

@keyframes kb {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.14) translate(-2%, 2%);
    }
}

.offer-badge {
    position: absolute;
    top: 1.3rem;
    right: 1.3rem;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(120deg, #ff6b9d, #ff5470);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-weight: 900;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 14px 36px rgba(255, 84, 112, 0.5);
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}

/* ===========================
   15. POINTS STRIP
   =========================== */
.points-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.pcard {
    padding: 1.8rem 1.6rem;
}

.pcard .ico {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--panel2);
    border: 1px solid var(--line2);
    margin-bottom: 1.1rem;
}

.pcard h3 {
    font-family: var(--disp);
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pcard p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===========================
   16. LEDGER & TABLES
   =========================== */
.ledger-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

.ledger-panel {
    overflow: hidden;
}

.lg-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.lg-head h3 {
    font-family: var(--disp);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.lg-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--teal);
    letter-spacing: 0.18em;
}

.lg-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: pulse 1.4s infinite;
}

.ltable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.ltable th {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}

.ltable td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--table-border);
}

.ltable tbody tr {
    transition: background 0.2s;
}

.ltable tbody tr:hover {
    background: var(--table-row-hover);
}

.ltable tr.newrow {
    animation: rowIn 0.5s ease;
}

@keyframes rowIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.lplayer {
    font-weight: 700;
}

.ltype {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}

.t-earn {
    background: rgba(46, 230, 168, 0.12);
    color: var(--teal);
}

.t-redeem {
    background: rgba(255, 107, 157, 0.12);
    color: var(--pink);
}

.t-topup {
    background: rgba(255, 181, 77, 0.12);
    color: var(--amber);
}

.lpts {
    font-family: var(--mono);
    font-weight: 700;
}

.lpts.plus {
    color: var(--teal);
}

.lpts.minus {
    color: var(--pink);
}

.ltime {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.top-panel {
    padding: 1.5rem;
}

.tp-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--table-border);
}

.tp-row:last-child {
    border-bottom: 0;
}

.tp-rank {
    font-family: var(--mono);
    font-weight: 700;
    width: 30px;
    color: var(--muted);
}

.tp-row:first-of-type .tp-rank {
    color: var(--amber);
}

.tp-row:nth-of-type(2) .tp-rank {
    color: var(--text-secondary);
}

.tp-row:nth-of-type(3) .tp-rank {
    color: var(--amber);
}

.tp-name {
    font-weight: 700;
    flex: 1;
}

.tp-score {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 0.82rem;
}

.ava {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-size: 0.6rem;
    font-weight: 700;
    flex: none;
    color: #fff;
}

/* ===========================
   17. QUOTES / TESTIMONIALS
   =========================== */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.qcard {
    padding: 1.9rem 1.7rem;
    position: relative;
}

.qcard::before {
    content: "\201C";
    position: absolute;
    top: 0.6rem;
    right: 1.2rem;
    font-family: var(--disp);
    font-size: 3.4rem;
    color: rgba(124, 92, 255, 0.3);
}

.qcard p {
    font-size: 0.95rem;
}

.qcard footer {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.qcard footer b {
    color: var(--cyan);
}

/* ===========================
   18. BLOG CARDS
   =========================== */
.bcard {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.bcard:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow-md);
}

.bcard[hidden] {
    display: none;
}

.bcard img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.bbody {
    padding: 1.3rem;
}

.bcat {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(124, 92, 255, 0.15);
    color: var(--violet);
    border: 1px solid rgba(124, 92, 255, 0.35);
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.bbody h3 {
    font-family: var(--disp);
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
}

.bbody p {
    color: var(--muted);
    font-size: 0.87rem;
}

.bmeta {
    display: flex;
    gap: 1.1rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    margin-top: 1rem;
}

.featured {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 2.2rem;
}

.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured .bbody {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured h3 {
    font-size: 1.35rem;
}

/* ===========================
   19. BLOG POST / SINGLE
   =========================== */
.crumbs {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.crumbs a:hover {
    color: var(--cyan);
}

.crumbs i {
    font-style: normal;
    margin: 0 0.55rem;
    color: var(--violet);
}

.post-hero {
    border-radius: 22px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid var(--line2);
}

.post-hero img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    animation: kb 18s ease-in-out infinite alternate;
}

.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose p {
    margin-bottom: 1.25rem;
    font-size: 1.03rem;
    color: var(--text-secondary);
}

.prose blockquote {
    border: 1px solid rgba(124, 92, 255, 0.4);
    border-left: 4px solid var(--violet);
    background: rgba(124, 92, 255, 0.07);
    border-radius: 14px;
    padding: 1.5rem 1.7rem;
    margin: 2rem 0;
    font-family: var(--disp);
    font-size: 1rem;
}

.author-pop {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.6rem;
    max-width: 760px;
    margin: 2.5rem auto;
}

.author-pop .ava {
    width: 58px;
    height: 58px;
    font-size: 0.9rem;
}

.pn-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 760px;
    margin: 2rem auto;
    flex-wrap: wrap;
}

/* ===========================
   20. GAME DETAIL
   =========================== */
.gd-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 2.6rem;
    align-items: start;
}

.shot-wrap {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line2);
}

.shot-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: filter 0.4s;
}

.gd-corner {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.thumbs {
    display: flex;
    gap: 1rem;
    margin-top: 1.1rem;
}

.thumb {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: var(--panel);
    transition: 0.25s;
}

.thumb img {
    width: 98px;
    height: 72px;
    object-fit: cover;
}

.thumb.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4);
}

.thumb:hover {
    transform: translateY(-3px);
}

.gd-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.gd-tags span {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--line2);
    background: var(--panel);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--muted);
}

.gd-tags span.hot {
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--cyan);
}

.gd-title {
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    text-transform: uppercase;
}

.gd-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.3rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.gd-meta .stars {
    color: var(--amber);
}

.status-pop {
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.1rem;
}

.srow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--table-border);
    font-size: 0.88rem;
}

.srow:last-child {
    border-bottom: 0;
}

.srow b {
    font-family: var(--mono);
    font-weight: 700;
}

.sdot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.55rem;
    vertical-align: middle;
}

.sdot.on {
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: pulse 1.6s infinite;
}

.sdot.busy {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

.gd-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.wallet-pop {
    padding: 1.3rem 1.5rem;
    background: rgba(124, 92, 255, 0.08);
    border-color: rgba(124, 92, 255, 0.35);
}

.wallet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.wallet-top b {
    font-family: var(--mono);
    color: var(--cyan);
}

.chips {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.chip-btn {
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    transition: 0.2s;
}

.chip-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.desc-pop {
    padding: 2.2rem;
    margin-top: 3rem;
}

.desc-pop h2 {
    font-family: var(--disp);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.desc-pop p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.feat-list {
    list-style: none;
    margin-top: 1.2rem;
}

.feat-list li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    font-weight: 500;
    color: var(--muted);
}

.feat-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.7rem;
    top: 0.8rem;
}

/* ===========================
   21. FORMS
   =========================== */
.frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.fgroup {
    margin-bottom: 1.2rem;
    position: relative;
}

.fgroup label {
    display: block;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.fgroup input,
.fgroup select,
.fgroup textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text);
    padding: 0.85rem 1.1rem;
    font-family: var(--body);
    font-size: 0.95rem;
    outline: none;
    transition: 0.25s;
}

.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.fgroup input::placeholder,
.fgroup textarea::placeholder {
    color: rgba(139, 145, 173, 0.5);
}

.fgroup select option {
    background: var(--panel2);
    color: var(--text);
}

.fgroup textarea {
    resize: vertical;
}

.fgroup.error input,
.fgroup.error textarea {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 84, 112, 0.15);
}

.fgroup .err-msg {
    font-size: 0.7rem;
    color: var(--red);
    margin-top: 0.4rem;
    display: none;
    font-family: var(--mono);
}

.fgroup.error .err-msg {
    display: block;
}

/* ===========================
   22. AUTH
   =========================== */
.auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 24px;
    position: relative;
    overflow: hidden;
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.auth-bg-orb.a {
    width: 400px;
    height: 400px;
    background: var(--violet);
    top: -100px;
    right: -100px;
}

.auth-bg-orb.b {
    width: 300px;
    height: 300px;
    background: var(--cyan);
    bottom: -80px;
    left: -80px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

.auth-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    padding: 2.8rem;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.auth-logo .orb {
    width: 40px;
    height: 40px;
}

.auth-logo span {
    font-family: var(--disp);
    font-weight: 900;
    font-size: 1.3rem;
}

.auth-logo span b {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-tabs {
    display: flex;
    background: var(--panel2);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 0.85rem 1rem;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 11px;
    color: var(--muted);
    transition: 0.3s;
    border: none;
    background: none;
}

.auth-tab.active {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}

.auth-tab:not(.active):hover {
    color: var(--text);
}

.pw-toggle {
    position: absolute;
    right: 14px;
    top: 36px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: 0.2s;
}

.pw-toggle:hover {
    color: var(--cyan);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--violet);
    cursor: pointer;
}

.checkbox-wrap span {
    font-size: 0.82rem;
    color: var(--muted);
}

.forgot-link {
    font-size: 0.82rem;
    color: var(--cyan);
    transition: 0.2s;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.8rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider span {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.social-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    transition: 0.25s;
}

.social-btn:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--violet);
    margin-top: 2px;
    cursor: pointer;
    flex: none;
}

.terms span {
    font-size: 0.8rem;
    color: var(--muted);
}

.terms a {
    color: var(--cyan);
    text-decoration: underline;
}

.bonus-badge {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(46, 230, 168, 0.08);
    border: 1px solid rgba(46, 230, 168, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
}

.bonus-badge .ico {
    font-size: 1.3rem;
}

.bonus-badge p {
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 500;
}

.bonus-badge p b {
    font-family: var(--mono);
}

.pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.pw-strength .bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: var(--line);
    transition: 0.3s;
}

.pw-strength .bar.weak {
    background: var(--red);
}

.pw-strength .bar.mid {
    background: var(--amber);
}

.pw-strength .bar.strong {
    background: var(--teal);
}

.pw-strength-txt {
    font-size: 0.62rem;
    font-family: var(--mono);
    color: var(--muted);
    margin-top: 0.3rem;
}

/* ===========================
   23. CTA BAND
   =========================== */
.cta-band {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 5rem 0;
    background: var(--bg2);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 20% 50%, rgba(124, 92, 255, 0.2), transparent 60%),
        radial-gradient(500px 260px at 85% 50%, rgba(0, 212, 255, 0.14), transparent 60%);
}

html.light .cta-band::before {
    background:
        radial-gradient(600px 300px at 20% 50%, rgba(106, 75, 239, 0.08), transparent 60%),
        radial-gradient(500px 260px at 85% 50%, rgba(0, 153, 204, 0.06), transparent 60%);
}

.cta-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cta-inner h2 {
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(1.7rem, 4vw, 3rem);
    text-transform: uppercase;
}

.cta-inner p {
    color: var(--muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===========================
   24. FOOTER
   =========================== */
.site-foot {
    border-top: 1px solid var(--line);
    padding: 4.5rem 0 2rem;
    background: var(--bg);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
}

.foot-grid h4 {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.2rem;
}

.foot-grid a {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    transition: 0.2s;
}

.foot-grid a:hover {
    color: var(--text);
    transform: translateX(4px);
}

.foot-blurb {
    color: var(--muted);
    font-size: 0.88rem;
    max-width: 34ch;
    margin-top: 1rem;
}

.foot-bottom {
    border-top: 1px solid var(--line);
    margin-top: 3.5rem;
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.7rem;
}

/* ===========================
   25. TOAST / ALERTS
   =========================== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 160%);
    background: var(--panel2);
    border: 1px solid rgba(0, 212, 255, 0.5);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(0, 212, 255, 0.15);
    padding: 0.95rem 1.7rem;
    border-radius: 14px;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 90;
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    max-width: 90vw;
}

.toast b {
    color: var(--cyan);
}

.toast.show {
    transform: translate(-50%, 0);
}

.alert {
    padding: 1rem 1.4rem;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: rgba(46, 230, 168, 0.1);
    border: 1px solid rgba(46, 230, 168, 0.3);
    color: var(--teal);
}

.alert-error {
    background: rgba(255, 84, 112, 0.1);
    border: 1px solid rgba(255, 84, 112, 0.3);
    color: var(--red);
}

.alert-warning {
    background: rgba(255, 181, 77, 0.1);
    border: 1px solid rgba(255, 181, 77, 0.3);
    color: var(--amber);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--cyan);
}

/* ===========================
   26. MODAL
   =========================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
    position: relative;
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--muted);
    transition: 0.2s;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--cyan);
}

/* ===========================
   27. PAGINATION
   =========================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    transition: 0.25s;
}

.pagination a:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.pagination .active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

.pagination-wrap .pagination {
    margin-top: 0;
}

.pagination-info {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.pagination-info b {
    color: var(--cyan);
}

.per-page {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.per-page label {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.per-page select {
    background: var(--panel2);
    border: 1px solid var(--line2);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.74rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    outline: none;
    color-scheme: dark;
    transition: 0.25s;
    cursor: pointer;
}

html.light .per-page select {
    color-scheme: light;
}

.per-page select:focus {
    border-color: var(--cyan);
}

.per-page select option {
    background: var(--panel2);
    color: var(--text);
}

/* ===========================
   28. SKELETON
   =========================== */
.skeleton {
    background: linear-gradient(90deg, var(--panel) 25%, rgba(255, 255, 255, 0.08) 50%, var(--panel) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

html.light .skeleton {
    background: linear-gradient(90deg, var(--panel) 25%, rgba(15, 20, 40, 0.06) 50%, var(--panel) 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 300px;
    border-radius: var(--r);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 0.6rem;
}

/* ===========================
   29. COOKIE BAR
   =========================== */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel2);
    border-top: 1px solid var(--line);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.cookie-bar.visible {
    transform: translateY(0);
}

.cookie-bar p {
    font-size: 0.84rem;
    color: var(--muted);
    flex: 1;
}

.cookie-bar a {
    color: var(--cyan);
    text-decoration: underline;
}

/* ===========================
   30. BADGES
   =========================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.badge-violet {
    background: rgba(124, 92, 255, 0.15);
    color: var(--violet);
    border: 1px solid rgba(124, 92, 255, 0.3);
}

.badge-cyan {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-teal {
    background: rgba(46, 230, 168, 0.1);
    color: var(--teal);
    border: 1px solid rgba(46, 230, 168, 0.3);
}

.badge-pink {
    background: rgba(255, 107, 157, 0.1);
    color: var(--pink);
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.badge-amber {
    background: rgba(255, 181, 77, 0.1);
    color: var(--amber);
    border: 1px solid rgba(255, 181, 77, 0.3);
}

.badge-red {
    background: rgba(255, 84, 112, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 84, 112, 0.3);
}

/* ===========================
   31. TOOLTIP
   =========================== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--panel2);
    border: 1px solid var(--line2);
    color: var(--text);
    font-size: 0.72rem;
    font-family: var(--mono);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    z-index: 50;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================
   32. 404
   =========================== */
.nf {
    padding: 7rem 0;
    text-align: center;
}

.nf h1 {
    font-family: var(--disp);
    font-weight: 900;
    font-size: clamp(3rem, 9vw, 6.5rem);
}

/* ===========================
   33. REVEAL ANIMATIONS
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--d, 0s), transform 0.7s var(--d, 0s);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===========================
   34. USER DROPDOWN
   =========================== */
.user-dropdown {
    position: relative;
    z-index: 60;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 61;
}

.user-trigger:hover {
    border-color: var(--cyan);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
}

.user-ava {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    flex: none;
}

.user-name {
    font-weight: 700;
    font-size: 0.82rem;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    color: var(--muted);
    transition: transform 0.3s;
    flex: none;
}

.user-dropdown.open .user-chevron {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}

.user-dropdown.open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0s;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--line);
}

.user-ava-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex: none;
}

.user-menu-header strong {
    display: block;
    font-size: 0.88rem;
}

.user-menu-email {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
}

.user-menu-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.4rem;
    background: rgba(124, 92, 255, 0.06);
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
}

.user-menu-balance b {
    font-family: var(--mono);
    color: var(--cyan);
}

.user-menu-links {
    padding: 0.6rem 0;
}

.user-menu-links a,
.user-menu-logout {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 1.4rem;
    font-size: 0.84rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--body);
    text-align: left;
    text-decoration: none;
}

.user-menu-links a:hover,
.user-menu-logout:hover {
    background: rgba(124, 92, 255, 0.08);
    color: var(--cyan);
}

.user-menu-links svg {
    color: var(--muted);
    flex: none;
}

.user-menu-divider {
    height: 1px;
    background: var(--line);
    margin: 0.4rem 1.4rem;
}

.user-menu-logout {
    color: var(--red);
}

.user-menu-logout:hover {
    background: rgba(255, 84, 112, 0.08);
    color: var(--red);
}

.user-menu-logout svg {
    color: var(--red);
}

/* ===========================
   35. WALLET PILL
   =========================== */
.wallet-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(46, 230, 168, 0.08);
    border: 1px solid rgba(46, 230, 168, 0.3);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--teal);
    transition: var(--transition);
}

.wallet-pill:hover,
.wallet-pill.active {
    background: rgba(46, 230, 168, 0.16);
    border-color: var(--teal);
    box-shadow: 0 4px 14px rgba(46, 230, 168, 0.2);
    transform: translateY(-1px);
}

.wallet-pill svg {
    flex: none;
}

.wallet-amount {
    white-space: nowrap;
}

/* ===========================
   36. WALLET PAGE
   =========================== */
.wallet-summary {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.ws-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.4rem 1.6rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.ws-card:hover {
    border-color: rgba(124, 92, 255, 0.45);
    transform: translateY(-3px);
}

.ws-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.ws-card strong {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.45rem;
    margin-top: 0.5rem;
}

.ws-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.ws-main {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(0, 212, 255, 0.08));
    border-color: rgba(124, 92, 255, 0.45);
}

.ws-main .ws-amount {
    font-size: 2.1rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wallet-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.wtab {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    transition: 0.25s;
}

.wtab:hover {
    color: var(--text);
    border-color: var(--line2);
}

.wtab.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}

.wallet-filters {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(10px);
}

.wf-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.wf-group {
    flex: 1;
    min-width: 140px;
}

.wf-group label {
    display: block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.wf-group input,
.wf-group select {
    width: 100%;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--text);
    padding: 0.62rem 0.9rem;
    font-family: var(--body);
    font-size: 0.84rem;
    outline: none;
    transition: 0.25s;
    color-scheme: dark;
}

html.light .wf-group input,
html.light .wf-group select {
    color-scheme: light;
}

.wf-group input:focus,
.wf-group select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.wf-group select option {
    background: var(--panel2);
}

.wf-actions {
    flex: none;
    display: flex;
    gap: 0.6rem;
    min-width: auto;
}

.wallet-table-panel {
    overflow-x: auto;
}

.wallet-table-panel .ltable {
    min-width: 760px;
}

/* ===========================
   37. PROFILE PAGE
   =========================== */
.profile-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
}

.profile-card {
    padding: 2rem;
}

.profile-ava-wrap {
    display: flex;
    justify-content: center;
}

.profile-ava {
    width: 90px;
    height: 90px;
    font-size: 1.4rem;
}

.profile-ava-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--violet);
}

.profile-wallet-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(124, 92, 255, 0.08);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 1.5rem;
}

.profile-wallet-box b {
    font-family: var(--mono);
    color: var(--cyan);
    font-size: 1.05rem;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.profile-stats-row strong {
    display: block;
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--cyan);
}

.profile-stats-row span {
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.game-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--table-border);
}

.game-account-row:last-child {
    border-bottom: 0;
}

.ga-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ga-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.ga-info strong {
    display: block;
    font-size: 0.88rem;
}

.ga-user {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--cyan);
    margin-top: 0.15rem;
}

.ga-bal {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
}

.tx-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--table-border);
    font-size: 0.84rem;
}

.tx-row:last-child {
    border-bottom: 0;
}

.tx-type {
    font-family: var(--mono);
    font-weight: 700;
    min-width: 76px;
}

.tx-type.plus {
    color: var(--teal);
}

.tx-type.minus {
    color: var(--pink);
}

.tx-desc {
    flex: 1;
    color: var(--muted);
}

.tx-time {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--muted);
}

/* ===========================
   38. GAME ACCOUNT PANEL
   =========================== */
.game-account-panel {
    padding: 1.6rem;
    margin-top: 1.2rem;
    border-color: rgba(0, 212, 255, 0.3);
}

.ga-credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ga-field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.ga-input-row {
    display: flex;
    gap: 0.5rem;
}

.ga-input-row input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text);
    padding: 0.7rem 1rem;
    font-family: var(--mono);
    font-size: 0.88rem;
    outline: none;
    transition: 0.25s;
}

.ga-input-row input:focus {
    border-color: var(--cyan);
}

.copy-btn {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    transition: 0.2s;
    cursor: pointer;
    flex: none;
}

.copy-btn:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.ga-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(46, 230, 168, 0.06);
    border: 1px solid rgba(46, 230, 168, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}

.ga-balance-row b {
    font-family: var(--mono);
    color: var(--teal);
}

.ga-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.ga-note {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 1rem;
    font-family: var(--mono);
}

.ga-empty {
    text-align: center;
    padding: 1rem 0;
}

.deposit-wallet-info {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.dw-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--table-border);
    font-size: 0.84rem;
}

.dw-row:last-child {
    border-bottom: 0;
}

.dw-row b {
    font-family: var(--mono);
    color: var(--cyan);
}

/* ===========================
   39. ADMIN
   =========================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    margin: 2.5rem 0;
}

.admin-stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.admin-stat-card:hover {
    border-color: rgba(124, 92, 255, 0.45);
    transform: translateY(-2px);
}

.as-icon {
    font-size: 1.6rem;
    flex: none;
}

.admin-stat-card strong {
    display: block;
    font-family: var(--mono);
    font-size: 1.15rem;
}

.admin-stat-card span {
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-grid-wide {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.admin-grid-tri {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.admin-user-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--table-border);
}

.admin-user-row:last-child {
    border-bottom: 0;
}

/* ===========================
   40. BACK TO SITE
   =========================== */
.back-to-site {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    transition: 0.25s;
}

.back-to-site:hover {
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.2);
    transform: translateX(-3px);
}

.back-to-site svg {
    flex: none;
    transition: transform 0.25s;
}

.back-to-site:hover svg {
    transform: translateX(-3px);
}

/* ===========================
   41. BELL / NOTIFICATIONS
   =========================== */
.bell-wrap {
    position: relative;
}

.bell-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    transition: 0.25s;
}

.bell-btn:hover {
    border-color: var(--cyan);
    transform: translateY(-1px);
}

.bell-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(255, 84, 112, 0.6);
}

.bell-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 330px;
    max-height: 430px;
    overflow-y: auto;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s;
    z-index: 999;
}

.bell-wrap.open .bell-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.bell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.bell-head strong {
    font-family: var(--disp);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.bell-mark {
    background: none;
    border: none;
    color: var(--cyan);
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
}

.bell-mark:hover {
    text-decoration: underline;
}

.notif-row {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--table-border);
    padding: 0.9rem 1.1rem;
    transition: 0.2s;
}

.notif-row:hover {
    background: var(--hover-bg);
}

.notif-row.unread {
    background: rgba(0, 212, 255, 0.05);
}

.notif-ico {
    font-size: 1.2rem;
    flex: none;
    margin-top: 2px;
}

.notif-body b {
    display: block;
    font-size: 0.82rem;
}

.notif-body p {
    font-size: 0.76rem;
    color: var(--muted);
}

.notif-time {
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
    display: block;
    margin-top: 0.2rem;
}

.bell-foot {
    padding: 0.8rem 1.1rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.bell-foot a {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.bell-foot a:hover {
    text-decoration: underline;
}

.notif-page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.notif-filters {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 2.6rem 1rem 1.1rem;
    transition: 0.2s;
}

.notif-item:hover {
    border-color: rgba(124, 92, 255, 0.45);
    transform: translateX(3px);
}

.notif-item.unread {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
}

.notif-main {
    flex: 1;
    min-width: 0;
}

.notif-content {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
}

.notif-content .notif-body b {
    font-size: 0.88rem;
}

.notif-content .notif-body p {
    font-size: 0.8rem;
    color: var(--muted);
}

.dot-unread {
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.notif-actions {
    display: flex;
    gap: 0.4rem;
    align-self: center;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--panel2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    color: var(--muted);
    transition: 0.2s;
}

.icon-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-1px);
}

/* ===========================
   42. VERIFY BANNER
   =========================== */
.verify-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: rgba(255, 181, 77, 0.08);
    border: 1px solid rgba(255, 181, 77, 0.35);
    border-radius: 16px;
    padding: 1.2rem 1.6rem;
    margin-bottom: 2rem;
}

.verify-banner strong {
    color: var(--amber);
    font-family: var(--disp);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.verify-banner p {
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 0.3rem;
}

.vb-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

/* ===========================
   43. REVIEWS
   =========================== */
.review-stars {
    color: var(--amber);
    font-family: var(--mono);
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 12px rgba(255, 181, 77, 0.35);
}

.review-title {
    font-family: var(--disp);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.review-card {
    display: flex;
    flex-direction: column;
}

.review-card p {
    flex: 1;
}

.review-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.review-link {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    transition: 0.2s;
}

.review-link:hover {
    text-decoration: underline;
}

.review-show-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.4rem;
    align-items: start;
}

.review-show-card {
    padding: 2.2rem;
}

.review-show-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-show-head strong {
    font-size: 0.95rem;
    display: block;
}

.review-body-full {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    white-space: pre-line;
}

.review-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--table-border);
}

.review-row:last-child {
    border-bottom: 0;
}

/* ===========================
   44. FREEPLAY WHEEL
   =========================== */
.freeplay-hero {
    text-align: center;
}

.wheel-stage {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 2.5rem auto;
}

.wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 6px solid var(--panel2);
    box-shadow: 0 0 0 2px var(--line2), var(--shadow-lg), 0 0 40px rgba(124, 92, 255, 0.25);
    background: conic-gradient(#343a5e 0 72deg,
            #177f63 72deg 144deg,
            #0e7fa0 144deg 216deg,
            #b57f2e 216deg 288deg,
            #b04a71 288deg 360deg);
    will-change: transform;
}

.wlabel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg + 36deg)) translateY(-112px);
    font-family: var(--disp);
    font-weight: 900;
    font-size: 0.78rem;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--cyan);
    filter: drop-shadow(0 0 10px var(--cyan));
    z-index: 5;
}

.wheel-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 74px;
    margin: -37px;
    border-radius: 50%;
    background: var(--panel2);
    border: 2px solid var(--line2);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    z-index: 4;
}

/* ===========================
   45. GENDER AVATARS
   =========================== */
.ava-male {
    background: linear-gradient(120deg, #00d4ff, #7c5cff);
    font-size: 1rem;
}

.ava-female {
    background: linear-gradient(120deg, #ff6b9d, #ff5470);
    font-size: 1rem;
}

.ava-other {
    background: linear-gradient(120deg, #2ee6a8, #00d4ff);
    font-size: 1rem;
}

/* ===========================
   46. PERMISSION MANAGER
   =========================== */
.perm-group {
    margin-bottom: 2rem;
}

.perm-group-title {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.7rem;
}

.perm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.perm-check:hover {
    border-color: rgba(124, 92, 255, 0.5);
}

.perm-check:has(input:checked) {
    border-color: rgba(46, 230, 168, 0.5);
    background: rgba(46, 230, 168, 0.06);
}

.perm-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--teal);
    margin-top: 2px;
    flex: none;
    cursor: pointer;
}

.perm-check b {
    display: block;
    font-size: 0.8rem;
}

.perm-check i {
    font-style: normal;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--muted);
}

/* ===========================
   47. SETTINGS SWITCH
   =========================== */
.switch-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    cursor: pointer;
}

.switch-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    width: 46px;
    height: 26px;
    background: var(--line2);
    border-radius: 999px;
    position: relative;
    transition: 0.25s;
    flex: none;
    margin-top: 2px;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: 0.25s;
}

.switch-row input:checked~.switch-track {
    background: var(--teal);
    box-shadow: 0 0 14px rgba(46, 230, 168, 0.4);
}

.switch-row input:checked~.switch-track::after {
    left: 23px;
}

/* ===========================
   48. DATE PICKER
   =========================== */
.dp {
    position: relative;
}

.dp-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--text);
    padding: 0.62rem 0.9rem;
    font-family: var(--body);
    font-size: 0.84rem;
    transition: 0.25s;
    cursor: pointer;
}

.dp-trigger:hover {
    border-color: var(--cyan);
}

.dp.open .dp-trigger {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.dp-text {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.74rem;
}

.dp.has-value .dp-text {
    color: var(--text);
}

.dp-trigger svg {
    color: var(--cyan);
    flex: none;
}

.dp-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    width: 280px;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.9rem;
    display: none;
}

.dp.open .dp-pop {
    display: block;
    animation: formIn 0.25s ease;
}

.dp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.dp-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
}

.dp-nav {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    transition: 0.2s;
    cursor: pointer;
}

.dp-nav:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-week span {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
    text-align: center;
    padding: 0.3rem 0;
}

.dp-day {
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 0.45rem 0;
    border-radius: 8px;
    color: var(--text);
    background: none;
    border: none;
    transition: 0.15s;
    cursor: pointer;
    text-align: center;
}

.dp-day:hover {
    background: rgba(124, 92, 255, 0.18);
}

.dp-day.today {
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: var(--cyan);
}

.dp-day.sel {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}

.dp-blank {
    visibility: hidden;
}

.dp-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7rem;
    border-top: 1px solid var(--line);
    padding-top: 0.7rem;
}

.dp-foot button {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    transition: 0.2s;
    cursor: pointer;
}

.dp-foot button:hover {
    color: var(--cyan);
}

/* ===========================
   49. DATE FILTER (ADMIN)
   =========================== */
.date-filter {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5rem 1.8rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 80;
}

.df-section {
    margin-bottom: 0;
}

.df-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.df-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.df-chip {
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    transition: 0.25s;
    cursor: pointer;
}

.df-chip:hover {
    color: var(--text);
    border-color: var(--line2);
    transform: translateY(-1px);
}

.df-chip.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.4);
}

.df-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
}

.df-divider::before,
.df-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.df-divider span {
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.df-pickers {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.df-picker {
    position: relative;
    flex: 1;
    min-width: 240px;
    z-index: 1;
}

.df-picker.open {
    z-index: 220;
}

.df-picker-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.45rem;
}

.df-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 12px;
    color: var(--text);
    padding: 0.7rem 1rem;
    font-family: var(--body);
    font-size: 0.84rem;
    cursor: pointer;
    transition: 0.25s;
    user-select: none;
}

.df-trigger:hover {
    border-color: var(--cyan);
}

.df-picker.open .df-trigger {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.df-trigger-text {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.74rem;
}

.df-picker.has-value .df-trigger-text {
    color: var(--text);
}

.df-trigger svg {
    color: var(--cyan);
    flex: none;
}

.df-arrow {
    font-family: var(--mono);
    font-size: 1.1rem;
    color: var(--muted);
    padding-bottom: 0.7rem;
    flex: none;
}

.df-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 230;
    width: 300px;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: none;
    animation: formIn 0.25s ease;
    max-height: 420px;
    overflow-y: auto;
}

.df-picker.open .df-pop {
    display: block;
}

.df-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

/* ===========================
   50. FORM ANIMATION
   =========================== */
@keyframes formIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ===========================
   51. NEWSLETTER
   =========================== */
.newsletter {
    display: flex;
    gap: 0.8rem;
    max-width: 460px;
}

.newsletter input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--line2);
    border-radius: 12px;
    color: var(--text);
    padding: 0.85rem 1.2rem;
    font-family: var(--body);
    font-size: 0.9rem;
    outline: none;
    transition: 0.25s;
}

.newsletter input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* ===========================
   52. ABOUT PAGE
   =========================== */
.about-stats {
    display: flex;
    gap: 2.6rem;
    flex-wrap: wrap;
    margin-top: 2.6rem;
}

.about-stats strong {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 2rem;
    display: block;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-stats span {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.timeline {
    max-width: 760px;
    margin: 3rem auto;
    position: relative;
    padding-left: 2.4rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    border-left: 2px dashed rgba(124, 92, 255, 0.4);
}

.tl-item {
    position: relative;
    margin-bottom: 2.2rem;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -2.28rem;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

.tl-item .yr {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}

.tl-item h3 {
    font-family: var(--disp);
    font-size: 0.98rem;
    text-transform: uppercase;
}

.tl-item p {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 58ch;
}

.team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 3rem;
}

.tcard {
    padding: 1.9rem 1.4rem;
    text-align: center;
}

.tcard .ava {
    width: 72px;
    height: 72px;
    font-size: 1.05rem;
    margin: 0 auto 1rem;
}

.tcard h3 {
    font-family: var(--disp);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tcard p {
    color: var(--muted);
    font-size: 0.76rem;
    margin-top: 0.3rem;
    font-family: var(--mono);
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ===========================
   53. CONTACT
   =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.2rem;
    align-items: start;
}

.form-pop {
    padding: 2.4rem;
}

.info-card {
    padding: 1.5rem;
    margin-bottom: 1.2rem;
}

.info-card h3 {
    font-family: var(--disp);
    font-size: 0.82rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--cyan);
}

.info-card p {
    color: var(--muted);
    font-size: 0.88rem;
}

.faq {
    max-width: 820px;
    margin: 3.5rem auto 0;
}

.faq-item {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 14px;
    margin-bottom: 0.9rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.open {
    border-color: rgba(0, 212, 255, 0.45);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: 0;
    padding: 1.1rem 1.4rem;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 0.8rem;
    text-align: left;
    color: var(--text);
}

.faq-q i {
    font-style: normal;
    font-size: 1.2rem;
    color: var(--cyan);
    transition: transform 0.3s;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-a p {
    padding: 0 1.4rem 1.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

/* ===========================
   54. RESPONSIVE — TABLET
   =========================== */
@media (max-width: 1200px) {
    .wrap {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 980px) {

    .hero-grid,
    .gd-grid,
    .contact-grid,
    .featured,
    .offer-card,
    .ledger-grid,
    .review-show-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .steps::before {
        display: none;
    }

    .points-strip,
    .values,
    .quotes {
        grid-template-columns: 1fr;
    }

    .team {
        grid-template-columns: 1fr 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rings {
        right: -380px;
        opacity: 0.5;
    }

    .offer-art {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .featured img {
        max-height: 260px;
    }

    .menu {
        position: fixed;
        inset: 72px 0 auto 0;
        background: rgba(7, 8, 15, 0.97);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 1.8rem;
        gap: 1.2rem;
        transform: translateY(-130%);
        transition: transform 0.4s;
        margin: 0;
        z-index: 49;
    }

    html.light .menu {
        background: rgba(255, 255, 255, 0.97);
    }

    .menu.open {
        transform: none;
    }

    .burger {
        display: block;
    }

    .online-pill {
        display: none;
    }

    .frow {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .user-name {
        display: none;
    }

    .user-trigger {
        padding: 0.45rem 0.65rem;
    }

    .user-menu {
        right: -10px;
        width: 272px;
    }

    .wallet-summary {
        grid-template-columns: 1fr 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-grid,
    .admin-grid-wide,
    .admin-grid-tri {
        grid-template-columns: 1fr;
    }

    .wf-row {
        flex-direction: column;
        align-items: stretch;
    }

    .wf-group {
        min-width: 100%;
    }

    .wf-actions {
        width: 100%;
    }

    .wf-actions .btn {
        flex: 1;
    }

    .df-pickers {
        flex-direction: column;
        align-items: stretch;
    }

    .df-arrow {
        display: none;
    }

    .df-pop {
        width: 100%;
        left: 0;
        right: 0;
    }

    .pagination-wrap {
        flex-direction: column;
        align-items: center;
    }
}

/* ===========================
   55. RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 560px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .team {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .search {
        width: 100%;
    }

    .lib-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-panel {
        padding: 2rem 1.5rem;
    }

    .social-row {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .gd-actions {
        flex-direction: column;
    }

    .gd-actions .btn {
        width: 100%;
    }

    .thumbs {
        flex-wrap: wrap;
    }

    .newsletter {
        flex-direction: column;
    }

    .cookie-bar {
        flex-direction: column;
        text-align: center;
    }

    .foot-bottom {
        flex-direction: column;
        text-align: center;
    }

    .pn-nav {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .wallet-summary {
        grid-template-columns: 1fr;
    }

    .ws-main .ws-amount {
        font-size: 1.8rem;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ga-actions {
        flex-direction: column;
    }

    .ga-actions .btn {
        width: 100%;
    }

    .profile-stats-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .game-account-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-menu {
        right: -40px;
        width: 260px;
    }

    .wheel-stage {
        width: 260px;
        height: 260px;
    }

    .wlabel {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg + 36deg)) translateY(-90px);
        font-size: 0.66rem;
    }

    .bell-menu {
        right: -60px;
        width: 290px;
    }

    .dp-pop {
        width: 260px;
    }

    .notif-item {
        padding-right: 1rem;
        flex-wrap: wrap;
    }

    .notif-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .notif-page-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .wrap {
        padding: 0 14px;
    }

    .h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   56. ACCESSIBILITY
   =========================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .gcard,
    .bcard {
        opacity: 1;
        transform: none;
    }
}

/* ===========================
   57. PRINT
   =========================== */
@media print {

    .noise,
    .ticker,
    header,
    .site-foot,
    .toast,
    .back-to-top,
    .cookie-bar,
    .theme-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .panel,
    .gcard,
    .bcard {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Game card circulation indicator */
.gc-circulation {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.gc-circulation svg {
    flex: none;
    opacity: 0.7;
}

/* Game economy panel enhancement */
.status-pop .srow b {
    font-family: var(--mono);
}

/* ═══ GAME DETAIL — BONUS BREAKDOWN ═══ */
.servers-head {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.ga-bonus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(46, 230, 168, 0.06);
    border: 1px dashed rgba(46, 230, 168, 0.4);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.6rem;
    font-size: 0.78rem;
}

.ga-bonus-row b {
    font-family: var(--mono);
    color: var(--teal);
}

.bonus-breakdown {
    padding: 2.2rem;
    margin-top: 3rem;
    border-color: rgba(46, 230, 168, 0.35);
}

.bb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 2rem;
    margin-bottom: 1.8rem;
}

.bb-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--table-border);
    font-size: 0.86rem;
}

.bb-row span {
    color: var(--muted);
}

.bb-row b {
    font-family: var(--mono);
}

.bb-calc {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
}

.bb-calc-out {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bb-calc-out div {
    text-align: center;
}

.bb-calc-out span {
    display: block;
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.bb-calc-out b {
    font-family: var(--mono);
    font-size: 1.2rem;
}

@media (max-width: 700px) {
    .bb-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   AUTH PAGE — FULL CHROME LAYOUT
   =========================== */
.auth-wrap {
    min-height: calc(100vh - 420px);
    /* keeps footer pushed down */
    padding: 3.5rem 24px 4.5rem;
}

.auth-col {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.auth-col .auth-card {
    width: 100%;
}

.auth-col .back-to-site {
    position: static;
}

@media (max-width: 560px) {
    .auth-wrap {
        padding: 2.5rem 16px 3.5rem;
    }
}

/* ===========================
   ADMIN SIDEBAR (FIXED)
   =========================== */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 264px;
    flex: none;
    background: var(--panel2);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
}

.admin-side-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.4rem 1.2rem;
    border-bottom: 1px solid var(--line);
    flex: none;
}

.admin-side-tag {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
}

.admin-side-nav {
    flex: 1;
    padding: 1rem 0.8rem;
    overflow-y: auto;
}

.admin-side-group {
    margin-bottom: 1.4rem;
}

.admin-side-title {
    display: block;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 0.8rem;
    margin-bottom: 0.5rem;
}

/* THE FIX — proper block links */
.admin-side-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.9rem;
    margin-bottom: 2px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s;
}

.admin-side-link:hover {
    color: var(--text);
    background: var(--hover-bg);
    transform: translateX(2px);
}

.admin-side-link.active {
    color: var(--text);
    background: rgba(124, 92, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.3);
}

html.light .admin-side-link.active {
    background: rgba(106, 75, 239, 0.08);
    border-color: rgba(106, 75, 239, 0.25);
}

.asl-ico {
    width: 20px;
    text-align: center;
    flex: none;
    font-size: 0.9rem;
}

.asl-txt {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-side-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(255, 84, 112, 0.5);
    flex: none;
}

.admin-side-foot {
    padding: 1rem;
    border-top: 1px solid var(--line);
    flex: none;
}

.admin-side-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.admin-side-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-side-website {
    display: block;
    text-align: center;
    margin-top: 0.6rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.4rem;
    border-radius: 8px;
    transition: 0.2s;
}

.admin-side-website:hover {
    color: var(--cyan);
    background: var(--hover-bg);
}

/* Main area */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    /* overflow-y: auto; */
}

/* Mobile: off-canvas sidebar */
@media (max-width: 980px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-topbar {
        padding: 1rem 1.2rem;
    }

    .admin-content {
        padding: 1.2rem;
    }
}

@media (min-width: 981px) {
    #adminMenuToggle {
        display: none;
    }
}

/* FIX: nav links wrapping ("FREE PLAY" breaking into 2 lines) */
.menu a {
    white-space: nowrap;
}

/* Dynamic wheel: slice angle driven by --sa (set from Blade) */
.wlabel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--sa, 72deg) + var(--sa, 72deg) / 2)) translateY(-112px);
    font-family: var(--disp);
    font-weight: 900;
    font-size: 0.78rem;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

@media (max-width: 560px) {
    .wlabel {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * var(--sa, 72deg) + var(--sa, 72deg) / 2)) translateY(-90px);
        font-size: 0.66rem;
    }
}

.wheel-stage.disabled .wheel {
    filter: grayscale(0.7);
    opacity: 0.5;
}

/* Admin color inputs */
.color-input {
    width: 46px;
    height: 34px;
    padding: 2px;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 8px;
    cursor: pointer;
}

.seg-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    vertical-align: -2px;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ═══ COLOR PICKER (swatch + hex) ═══ */
.color-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

input[type="color"].color-input {
    -webkit-appearance: none;
    appearance: none;
    width: 46px;
    height: 36px;
    border: none;
    padding: 0;
    background: none;
    border-radius: 10px;
    cursor: pointer;
    flex: none;
    box-shadow: 0 0 0 1px var(--line2), 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
}

input[type="color"].color-input:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--cyan), 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="color"].color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"].color-input::-webkit-color-swatch {
    border: none;
    border-radius: 10px;
}

input[type="color"].color-input::-moz-color-swatch {
    border: none;
    border-radius: 10px;
}

.hex-input {
    width: 96px;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.74rem;
    padding: 0.55rem 0.7rem;
    outline: none;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.hex-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* ═══ ODDS TOTAL CHIP ═══ */
.odds-chip {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid;
    letter-spacing: 0.08em;
}

.odds-chip.ok {
    color: var(--teal);
    border-color: rgba(46, 230, 168, 0.4);
    background: rgba(46, 230, 168, 0.08);
}

.odds-chip.bad {
    color: var(--red);
    border-color: rgba(255, 84, 112, 0.4);
    background: rgba(255, 84, 112, 0.08);
}

/* ===========================
   CHAT WIDGET (right side, above back-to-top)
   =========================== */
.chat-fab {
    position: fixed;
    bottom: 6.2rem;
    right: 2rem;
    /* above the ↑ arrow */
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 1.35rem;
    border: none;
    box-shadow: 0 10px 28px rgba(124, 92, 255, 0.45);
    z-index: 95;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.chat-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 34px rgba(0, 212, 255, 0.4);
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(255, 84, 112, .6);
}

.chat-panel {
    position: fixed;
    bottom: calc(6.2rem + 66px);
    right: 2rem;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 520px;
    max-height: calc(100vh - 13rem);
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 96;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(.95);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .9, .3, 1.25);
}

.chat-panel.open {
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(124, 92, 255, .06);
}

.chat-head strong {
    font-family: var(--disp);
    font-size: .78rem;
    text-transform: uppercase;
    display: block;
}

.chat-status {
    font-family: var(--mono);
    font-size: .6rem;
    color: var(--teal);
}

.chat-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    transition: .2s;
}

.chat-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.chat-bubble {
    max-width: 85%;
    padding: .6rem .8rem;
    border-radius: 12px;
    font-size: .84rem;
    line-height: 1.5;
    word-break: break-word;
    animation: bubbleIn .3s ease;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.chat-bubble.mine {
    align-self: flex-end;
    background: rgba(0, 212, 255, .1);
    border: 1px solid rgba(0, 212, 255, .25);
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.chat-bubble a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* highlighted links */
.chat-sender {
    font-size: .62rem;
    font-family: var(--mono);
    color: var(--violet);
    margin-bottom: .25rem;
}

.chat-time {
    font-size: .58rem;
    color: var(--muted);
    font-family: var(--mono);
    margin-top: .3rem;
    text-align: right;
}

.chat-file {
    display: inline-block;
    margin-top: .4rem;
    font-size: .74rem;
    color: var(--amber);
}

.chat-img-thumb {
    display: block;
    margin-top: .4rem;
    max-width: 180px;
    border-radius: 10px;
    border: 1px solid var(--line2);
    cursor: zoom-in;
    transition: transform .2s;
}

.chat-img-thumb:hover {
    transform: scale(1.03);
}

.chat-empty {
    align-self: center;
    color: var(--muted);
    font-size: .78rem;
    padding: 1.5rem 0;
}

.chat-load-more {
    align-self: center;
    margin: .2rem 0 .4rem;
    background: var(--panel);
    border: 1px solid var(--line2);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .45rem .9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s;
}

.chat-load-more:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.chat-load-more[hidden] {
    display: none;
}

.chat-new-chip {
    position: absolute;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .68rem;
    font-family: var(--mono);
    padding: .4rem .9rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(124, 92, 255, .4);
    animation: bubbleIn .3s ease;
    z-index: 5;
}

.chat-new-chip[hidden] {
    display: none;
}

.chat-attach {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    border-top: 1px solid var(--line);
    font-size: .7rem;
    color: var(--cyan);
    font-family: var(--mono);
}

.chat-attach[hidden] {
    display: none;
}

.chat-attach button {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
}

.chat-form {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    padding: .8rem;
    border-top: 1px solid var(--line);
}

.chat-attach-btn {
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line2);
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: .2s;
}

.chat-attach-btn:hover {
    border-color: var(--cyan);
    transform: translateY(-1px);
}

.chat-form textarea {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--text);
    padding: .6rem .8rem;
    font-family: var(--body);
    font-size: .86rem;
    outline: none;
    resize: none;
    max-height: 96px;
    transition: border-color .2s, box-shadow .2s;
}

.chat-form textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}

.chat-send {
    flex: none;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s;
}

.chat-send:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.chat-send:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 92, 255, .4);
}

/* ── Lightbox gallery ── */
.chat-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 15, .93);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.chat-lightbox.open {
    display: flex;
    animation: lbFade .25s ease;
}

@keyframes lbFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.chat-lightbox img {
    max-width: min(92vw, 900px);
    max-height: 78vh;
    border-radius: 14px;
    border: 1px solid var(--line2);
    box-shadow: var(--shadow-lg);
    animation: lbZoom .25s ease;
}

@keyframes lbZoom {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-lb-btn {
    position: absolute;
    background: rgba(16, 19, 31, .85);
    border: 1px solid var(--line2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .2s;
    z-index: 2;
}

.chat-lb-btn:hover {
    border-color: var(--cyan);
    transform: scale(1.08);
}

.lb-close {
    top: 1.2rem;
    right: 1.2rem;
}

.lb-prev {
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lb-prev:hover,
.lb-next:hover {
    transform: translateY(-50%) scale(1.08);
}

.lb-count {
    position: absolute;
    bottom: 1.2rem;
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--muted);
}

@media (max-width: 560px) {
    .chat-fab {
        right: 1rem;
        bottom: 5.8rem;
    }

    .chat-panel {
        right: .75rem;
        left: .75rem;
        width: auto;
        bottom: 10rem;
        height: 58vh;
    }

    .lb-prev {
        left: .5rem;
    }

    .lb-next {
        right: .5rem;
    }
}

/* ===========================
   MESSENGER (ADMIN MAILBOX)
   =========================== */
.msgr {
    display: grid;
    grid-template-columns: 330px 1fr 300px;
    height: calc(100vh - 150px);
    min-height: 520px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

.msgr-left {
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.msgr-left-head {
    padding: 0.9rem;
    border-bottom: 1px solid var(--line);
}

.msgr-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.msgr-tabs .tab {
    font-size: 0.6rem;
    padding: 0.45rem 0.8rem;
}

.msgr-src-tabs {
    display: flex;
    gap: 0.4rem;
}

.msgr-src-tab {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    background: var(--panel2);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    transition: 0.2s;
}

.msgr-src-tab:hover {
    color: var(--text);
    border-color: var(--line2);
}

.msgr-src-tab.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

.msgr-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

.msgr-item {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid var(--table-border);
    border-left: 3px solid transparent;
    transition: 0.15s;
    text-decoration: none;
}

.msgr-item:hover {
    background: var(--hover-bg);
}

.msgr-item.active {
    background: rgba(124, 92, 255, 0.08);
    border-left-color: var(--violet);
}

.msgr-item.has-unread {
    background: rgba(0, 212, 255, 0.05);
}

.msgr-item.has-unread .msgr-item-preview {
    color: var(--text);
    font-weight: 600;
}

.msgr-src {
    font-size: 0.85rem;
    flex: none;
}

.msgr-item-body {
    flex: 1;
    min-width: 0;
}

.msgr-item-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.msgr-item-top strong {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msgr-time {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
    flex: none;
}

.msgr-item-preview {
    font-size: 0.72rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msgr-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(255, 84, 112, 0.5);
    flex: none;
    align-self: center;
}

.msgr-mid {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.msgr-thread-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.msgr-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    scrollbar-width: thin;
}

.msgr-composer {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    padding: 0.8rem;
    border-top: 1px solid var(--line);
}

.msgr-composer textarea {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--text);
    padding: 0.6rem 0.8rem;
    font-family: var(--body);
    font-size: 0.86rem;
    outline: none;
    resize: none;
    max-height: 110px;
    transition: border-color .2s, box-shadow .2s;
}

.msgr-composer textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.msgr-right {
    border-left: 1px solid var(--line);
    overflow-y: auto;
    padding: 1.1rem;
    scrollbar-width: thin;
}

/* Player widget agent header */
.chat-agent-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: none;
    background: var(--panel2);
    border: 1px solid var(--line2);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
}

.chat-agent-ava.human {
    background: var(--grad);
    border: none;
    color: #fff;
    font-family: var(--disp);
    font-size: 0.66rem;
    font-weight: 700;
}

.chat-head strong {
    font-family: var(--disp);
    font-size: 0.78rem;
    text-transform: uppercase;
    display: block;
}

.chat-agent-meta {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--teal);
    display: block;
}

@media (max-width: 1200px) {
    .msgr {
        grid-template-columns: 290px 1fr;
    }

    .msgr-right {
        display: none;
    }
}

@media (max-width: 760px) {
    .msgr {
        grid-template-columns: 1fr;
        height: auto;
    }

    .msgr-left {
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .msgr-thread {
        min-height: 55vh;
    }
}

/* ===========================
   CHAT WIDGET — POLISH v2
   =========================== */
.chat-panel {
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 92, 255, 0.15);
    backdrop-filter: blur(16px);
}

.chat-head {
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.16), rgba(0, 212, 255, 0.10));
    border-bottom: 1px solid var(--line);
}

.chat-agent-ava {
    transition: transform .25s;
}

.chat-panel.open .chat-agent-ava {
    animation: avaPop .35s cubic-bezier(.2, .9, .3, 1.3);
}

@keyframes avaPop {
    from {
        transform: scale(.6);
    }

    to {
        transform: scale(1);
    }
}

.chat-unread-chip {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 700;
    background: rgba(255, 84, 112, 0.12);
    border: 1px solid rgba(255, 84, 112, 0.4);
    color: var(--red);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.chat-body {
    scrollbar-width: thin;
    scrollbar-color: var(--line2) transparent;
}

.chat-body::-webkit-scrollbar {
    width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--line2);
    border-radius: 4px;
}

.chat-bubble {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.chat-bubble.mine {
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.28), rgba(0, 212, 255, 0.16));
    border-color: rgba(124, 92, 255, 0.35);
}

.chat-bubble.theirs {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.chat-bubble a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-bubble a:hover {
    color: var(--teal);
}

.chat-divider {
    align-self: center;
    margin: 0.4rem 0;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    animation: bubbleIn .35s ease;
}

.chat-send svg {
    transition: transform .2s;
}

.chat-send:not(:disabled):hover svg {
    transform: translateX(2px) translateY(-2px);
}

.chat-send.sending {
    opacity: .6;
    pointer-events: none;
}

.chat-send.sending svg {
    animation: sendSpin 0.9s linear infinite;
}

@keyframes sendSpin {
    to {
        transform: rotate(360deg);
    }
}

.chat-fab {
    transition: transform .25s, box-shadow .25s;
}

.chat-fab:hover {
    transform: translateY(-3px) scale(1.06);
}

.chat-fab.unread-pulse {
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 10px 28px rgba(124, 92, 255, .45), 0 0 0 0 rgba(255, 84, 112, 0.55);
    }

    70% {
        box-shadow: 0 10px 28px rgba(124, 92, 255, .45), 0 0 0 16px rgba(255, 84, 112, 0);
    }

    100% {
        box-shadow: 0 10px 28px rgba(124, 92, 255, .45), 0 0 0 0 rgba(255, 84, 112, 0);
    }
}

/* ── Mobile: bottom-sheet style ── */
@media (max-width: 560px) {
    .chat-fab {
        right: 1rem;
        bottom: 5.8rem;
    }

    .chat-panel {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 88vh;
        max-height: none;
        border-radius: 22px 22px 0 0;
        border-bottom: none;
        transform: translateY(100%);
        opacity: 1;
    }

    .chat-panel.open {
        transform: translateY(0);
    }

    .chat-form textarea {
        font-size: 16px;
    }

    /* prevent iOS zoom */
}

/* ===========================
   TICKETS MAILBOX — BEAUTIFUL v2
   =========================== */
.tk-page {
    display: grid;
    grid-template-columns: 340px 1fr 300px;
    height: calc(100vh - 165px);
    min-height: 560px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}

/* ── Left ── */
.tk-left {
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(255, 255, 255, 0.015);
}

.tk-left-head {
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid var(--line);
}

.tk-filters {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.tk-select-wrap {
    position: relative;
}

.tk-select-wrap::after {
    content: "▾";
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    pointer-events: none;
    font-size: 0.7rem;
}

.tk-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.6rem 2rem 0.6rem 0.9rem;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

.tk-select:hover,
.tk-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.tk-select option {
    background: var(--panel2);
    color: var(--text);
}

.tk-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--panel2);
    border: 1px solid var(--line2);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    transition: 0.2s;
    color: var(--muted);
}

.tk-search:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
    color: var(--cyan);
}

.tk-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--body);
    font-size: 0.82rem;
    min-width: 0;
}

.tk-search input::placeholder {
    color: rgba(139, 145, 173, 0.55);
}

.tk-search-clear {
    color: var(--muted);
    font-size: 0.7rem;
    transition: 0.2s;
}

.tk-search-clear:hover {
    color: var(--red);
}

.tk-empty-small {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--muted);
}

.tk-empty-small span {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.6rem;
    opacity: 0.6;
}

.tk-empty-small p {
    font-size: 0.78rem;
}

/* ── Middle / Right ── */
.tk-mid {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tk-right {
    border-left: 1px solid var(--line);
    overflow-y: auto;
    padding: 1.1rem;
    scrollbar-width: thin;
    background: rgba(255, 255, 255, 0.015);
}

.tk-empty {
    flex: 1;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    padding: 2rem;
}

/* conversation item polish */
.msgr-item {
    text-decoration: none;
}

.msgr-item .ava {
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25);
}

.msgr-item.active .ava {
    box-shadow: 0 0 0 2px var(--violet);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .tk-page {
        grid-template-columns: 300px 1fr;
    }

    .tk-right {
        display: none;
    }
}

@media (max-width: 760px) {
    .tk-page {
        grid-template-columns: 1fr;
        height: auto;
    }

    .tk-left {
        max-height: 320px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .tk-mid .msgr-thread {
        min-height: 55vh;
    }
}

/* ===========================
   CHAT WIDGET v3 — FAB hide + composer polish + auto-grow
   =========================== */
/* Hide the bubble while the panel is open */
.chat-fab {
    transition: transform .28s cubic-bezier(.2, .9, .3, 1.2), opacity .22s, box-shadow .25s;
}

#chatWidgetRoot.panel-open .chat-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(.6);
}

/* Composer polish */
.chat-form {
    background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.06));
}

.chat-form textarea {
    min-height: 44px;
    line-height: 1.45;
    overflow-y: hidden;
    /* JS switches to auto when capped */
    transition: height .18s ease, border-color .2s, box-shadow .2s;
}

.chat-form textarea::placeholder {
    color: rgba(139, 145, 173, 0.65);
    font-style: italic;
    letter-spacing: 0.01em;
}

.chat-form textarea:focus::placeholder {
    color: rgba(0, 212, 255, 0.45);
}

.chat-form textarea.scrollable {
    overflow-y: auto;
    /* 5th line+ → internal scroll */
    scrollbar-width: thin;
    scrollbar-color: var(--line2) transparent;
}

.chat-form textarea.scrollable::-webkit-scrollbar {
    width: 4px;
}

.chat-form textarea.scrollable::-webkit-scrollbar-thumb {
    background: var(--line2);
    border-radius: 4px;
}

/* Prettier attach + send */
.chat-attach-btn:hover {
    color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.chat-send {
    box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}

/* Header shimmer line */
.chat-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.chat-head {
    position: relative;
}

/* ═══ TICKETS: flex-height fix — composer always visible ═══ */
.tk-page {
    height: calc(100vh - 165px);
    min-height: 560px;
}

.tk-left,
.tk-right {
    min-height: 0;
}

.tk-mid {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.msgr-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.msgr-composer {
    flex: none;
}

@media (max-width: 760px) {
    .tk-page {
        height: auto;
    }

    .msgr-thread {
        min-height: 55vh;
    }
}

/* ═══ TAGS / LABELS ═══ */
.tk-tag-chip {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.15);
    color: var(--violet);
    border: 1px solid rgba(124, 92, 255, 0.35);
    margin-right: 0.3rem;
    vertical-align: 1px;
}

.tk-tag-vip {
    background: rgba(255, 181, 77, 0.12);
    color: var(--amber);
    border-color: rgba(255, 181, 77, 0.4);
}

.tk-tag-follow_up {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border-color: rgba(0, 212, 255, 0.35);
}

.tk-tag-restricted {
    background: rgba(255, 107, 157, 0.1);
    color: var(--pink);
    border-color: rgba(255, 107, 157, 0.4);
}

.tk-tag-blocked {
    background: rgba(255, 84, 112, 0.12);
    color: var(--red);
    border-color: rgba(255, 84, 112, 0.45);
}

.tk-tag-spam {
    background: rgba(139, 145, 173, 0.12);
    color: var(--muted);
    border-color: rgba(139, 145, 173, 0.4);
}

/* ═══ JUMP-TO-LATEST ═══ */
.tk-jump-latest {
    position: absolute;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.45);
    animation: bubbleIn .3s ease;
    z-index: 6;
}

.tk-jump-latest[hidden] {
    display: none;
}

/* ═══ FOCUS FLASH (oldest unread landing) ═══ */
.focus-flash {
    animation: focusFlash 1.6s ease 2;
}

@keyframes focusFlash {

    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.55);
    }
}

/* ═══ LOCKED COMPOSER ═══ */
.tk-locked {
    border-top: 1px solid var(--line);
    padding: 1rem 1.2rem;
    font-size: 0.8rem;
    color: var(--amber);
    background: rgba(255, 181, 77, 0.06);
}

.msgr-item.new-item {
    animation: rowIn .5s ease;
    border-left-color: var(--teal);
}