@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --nx-bg: #060304;
    --nx-bg-deep: #030202;
    --nx-surface: rgba(18, 6, 8, 0.92);
    --nx-surface2: rgba(28, 10, 14, 0.95);
    --nx-border: rgba(212, 175, 55, 0.28);
    --nx-border-red: rgba(180, 40, 40, 0.45);
    --nx-gold: #d4af37;
    --nx-gold-light: #f5e6a8;
    --nx-gold-dim: #8b6914;
    --nx-red: #8b0000;
    --nx-red-bright: #c0392b;
    --nx-red-glow: rgba(192, 57, 43, 0.45);
    --nx-gold-glow: rgba(212, 175, 55, 0.25);
    --nx-text: #f5ebe8;
    --nx-muted: #a89090;
    --nx-radius: 14px;
    --nx-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 40px rgba(80, 0, 0, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }

.nx-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--nx-bg-deep);
    color: var(--nx-text);
    position: relative;
    overflow-x: hidden;
}

/* ── Atmospheric background ── */
.nx-aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% -20%, rgba(120, 15, 15, 0.55), transparent 55%),
        radial-gradient(ellipse 80% 50% at 0% 40%, rgba(80, 0, 0, 0.35), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 70%, rgba(60, 0, 0, 0.4), transparent 45%),
        linear-gradient(180deg, #1a0508 0%, #060304 40%, #030202 100%);
}

.nx-aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background: url('../assets/images/parchment-bg.png') center/cover;
}

.nx-home-embers {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.nx-page-smoke {
    position: absolute;
    border-radius: 999px;
    background:
        radial-gradient(ellipse at 42% 52%, rgba(244, 244, 244, 0.42) 0%, rgba(214, 214, 214, 0.22) 34%, rgba(128, 128, 128, 0.1) 60%, rgba(40, 40, 40, 0) 100%);
    filter: blur(13px);
    animation-name: nx-page-smoke-float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}

.nx-page-smoke::before,
.nx-page-smoke::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.nx-page-smoke::before {
    inset: 8% 10%;
    background: radial-gradient(ellipse at 50% 56%, rgba(250, 250, 250, 0.34), rgba(210, 210, 210, 0.14) 48%, rgba(90, 90, 90, 0) 100%);
    filter: blur(6px);
}

.nx-page-smoke::after {
    inset: 20% 16%;
    background: radial-gradient(ellipse at 40% 50%, rgba(236, 236, 236, 0.26), rgba(175, 175, 175, 0.1) 52%, rgba(80, 80, 80, 0) 100%);
    filter: blur(10px);
}

@keyframes nx-page-smoke-float {
    0% {
        transform: translate3d(0, 0, 0) scale(0.92);
        opacity: 0;
    }
    10% {
        opacity: 0.55;
    }
    30% {
        transform: translate3d(calc(-20px + 50px * var(--nx-drift, 0.5) + 26px * var(--nx-sway, 0)), calc(-26px - 36px * var(--nx-drift-y, 0.5)), 0) scale(1.02);
        opacity: 0.65;
    }
    58% {
        transform: translate3d(calc(-52px + 104px * var(--nx-drift, 0.5) - 22px * var(--nx-sway, 0)), calc(-56px - 58px * var(--nx-drift-y, 0.5)), 0) scale(1.08);
        opacity: 0.56;
    }
    78% {
        transform: translate3d(calc(-34px + 86px * var(--nx-drift, 0.5) + 20px * var(--nx-sway, 0)), calc(-84px - 78px * var(--nx-drift-y, 0.5)), 0) scale(1.14);
        opacity: 0.4;
    }
    100% {
        transform: translate3d(calc(-68px + 136px * var(--nx-drift, 0.5) - 18px * var(--nx-sway, 0)), calc(-122px - 104px * var(--nx-drift-y, 0.5)), 0) scale(1.18);
        opacity: 0;
    }
}

/* ── Header ── */
.nx-topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--nx-border-red);
    background: linear-gradient(180deg, rgba(30, 5, 8, 0.97) 0%, rgba(8, 3, 4, 0.92) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(120, 0, 0, 0.15);
}

.nx-topbar::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nx-gold), var(--nx-red-bright), var(--nx-gold), transparent);
}

.nx-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nx-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: var(--nx-gold-light) !important;
    flex-shrink: 0;
}

.nx-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 0 16px var(--nx-gold-glow));
    transition: transform 0.3s, filter 0.3s;
}

.nx-brand:hover .nx-brand-logo {
    transform: scale(1.06);
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.55));
}

.nx-brand-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }

.nx-brand-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: var(--nx-gold-light);
}

.nx-brand-sub {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nx-red-bright);
    font-weight: 600;
}

.nx-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nx-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--nx-muted) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.nx-nav a:hover {
    color: var(--nx-gold-light) !important;
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.nx-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ── Buttons ── */
.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.nx-btn-gold {
    background: linear-gradient(135deg, #f0d060 0%, #c9a227 45%, #8b6914 100%);
    color: #1a0800 !important;
    border-color: var(--nx-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nx-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
    color: #0a0400 !important;
}

.nx-btn-red {
    background: linear-gradient(135deg, #e74c3c 0%, #8b0000 100%);
    color: #fff !important;
    border-color: rgba(192, 57, 43, 0.6);
    box-shadow: 0 4px 20px var(--nx-red-glow);
}

.nx-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(192, 57, 43, 0.5);
}

.nx-btn-enable {
    background: linear-gradient(135deg, #5de38f 0%, #1f9d55 50%, #0b5d35 100%);
    color: #04170c !important;
    border-color: rgba(93, 227, 143, 0.75);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nx-btn-enable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.45);
    color: #031108 !important;
}

.nx-btn-discord {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 52%, #3f49b5 100%);
    color: #f5f7ff !important;
    border-color: rgba(163, 178, 255, 0.7);
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nx-btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5);
    color: #ffffff !important;
}

.nx-btn-outline {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--nx-border);
    color: var(--nx-gold-light) !important;
}

.nx-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--nx-gold);
}

.nx-btn-ghost {
    color: var(--nx-muted) !important;
    border-color: rgba(140, 40, 40, 0.35);
    background: transparent;
}

.nx-btn-ghost:hover { color: var(--nx-text) !important; background: rgba(255,255,255,0.04); }

.nx-btn-play {
    padding: 0;
    background: transparent;
    border: none;
    line-height: 0;
}

.nx-btn-play img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.4));
    transition: transform 0.25s, filter 0.25s;
}

.nx-btn-play:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 24px rgba(212, 175, 55, 0.6));
}

/* gold primary button (alias) */
.nx-btn-accent {
    background: linear-gradient(135deg, #f0d060 0%, #c9a227 45%, #8b6914 100%);
    color: #1a0800 !important;
    border-color: var(--nx-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.nx-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45); }

/* ── Main layout ── */
.nx-main {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 72px;
}

.nx-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--nx-border-red);
    padding: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--nx-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.4);
}

.nx-footer img { height: 28px; opacity: 0.6; }
.nx-footer a { color: var(--nx-gold-dim) !important; transition: color 0.2s; }
.nx-footer a:hover { color: var(--nx-gold-light) !important; }

.nx-flash {
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--nx-border);
    color: var(--nx-gold-light);
    font-size: 0.9rem;
    box-shadow: inset 0 0 30px rgba(80, 0, 0, 0.1);
}

/* ── Hero banner ── */
.nx-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
    padding: 40px 36px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(40, 8, 12, 0.95) 0%, rgba(12, 4, 6, 0.98) 60%, rgba(20, 8, 4, 0.95) 100%);
    border: 1px solid var(--nx-border-red);
    border-radius: 20px;
    box-shadow: var(--nx-shadow), inset 0 0 80px rgba(120, 0, 0, 0.12);
    overflow: hidden;
}

.nx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/bg-block.jpg') center/cover;
    opacity: 0.08;
    pointer-events: none;
}

.nx-hero-glow {
    position: absolute;
    top: -40%;
    left: 20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.nx-hero-visual {
    position: relative;
    text-align: center;
    z-index: 1;
}

.nx-hero-logo {
    width: min(220px, 80%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 80px rgba(192, 57, 43, 0.25));
    animation: nx-pulse-logo 4s ease-in-out infinite;
}

@keyframes nx-pulse-logo {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.4)); }
    50% { filter: drop-shadow(0 0 60px rgba(212, 175, 55, 0.65)); }
}

.nx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(139, 0, 0, 0.35);
    border: 1px solid var(--nx-border-red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nx-gold-light);
}

.nx-hero-body { position: relative; z-index: 1; }

.nx-hero-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--nx-red-bright);
    margin: 0 0 10px;
}

.nx-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff8e0 0%, var(--nx-gold) 50%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.nx-hero-desc {
    color: var(--nx-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 480px;
}

.nx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Decorative divider (replaces duplicate quick-link row) */
.nx-deco-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 32px;
    opacity: 0.55;
}

.nx-deco-divider img {
    max-width: 420px;
    width: 80%;
    height: auto;
    filter: sepia(0.4) saturate(1.2) brightness(0.9);
}

.nx-footer-deco {
    height: 28px;
    width: auto;
    opacity: 0.45;
    filter: drop-shadow(0 0 8px var(--nx-gold-glow));
}

/* FontAwesome icon boxes (no legacy UI sprites) */
.nx-fa-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--nx-border);
    color: var(--nx-gold);
}

.nx-fa-icon-box-lg {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.nx-drive-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

.nx-drive-icon-lg {
    width: 30px;
    height: 30px;
}

.nx-drive-icon-btn {
    margin-right: 8px;
}

.nx-drive-icon-inline {
    margin-right: 6px;
}

.nx-vault-fa {
    width: 62px;
    height: 62px;
    font-size: 1.55rem;
    margin: 0 auto 8px;
}

.nx-vault-item-icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* Quick row removed — kept for reference if needed later */
.nx-quick-row { display: none; }

/* Section headers */
.nx-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.nx-section-head h2 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--nx-gold-light);
    margin: 0;
    white-space: nowrap;
}

.nx-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--nx-gold), transparent);
}

/* Cards / grid */
.nx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.nx-card {
    position: relative;
    background: linear-gradient(145deg, rgba(22, 8, 10, 0.98) 0%, rgba(10, 4, 6, 0.98) 100%);
    border: 1px solid rgba(140, 40, 40, 0.3);
    border-radius: var(--nx-radius);
    padding: 22px;
    transition: all 0.25s;
    overflow: hidden;
}

.nx-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nx-gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.nx-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(120, 0, 0, 0.15);
}

.nx-card:hover::before { opacity: 1; }

.nx-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    margin: 0 0 8px;
    color: var(--nx-gold-light);
}

.nx-card-meta { font-size: 0.72rem; color: var(--nx-muted); margin-bottom: 10px; }

.nx-card p { font-size: 0.86rem; color: var(--nx-muted); line-height: 1.55; margin: 0; }

.nx-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(192, 57, 43, 0.2);
    color: #ff8a80;
    border: 1px solid rgba(192, 57, 43, 0.4);
    margin-bottom: 8px;
}

/* Features strip */
.nx-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 20px;
    margin-bottom: 36px;
    border: 1px solid rgba(140, 40, 40, 0.25);
    border-radius: var(--nx-radius);
    background: rgba(0, 0, 0, 0.25);
}

.nx-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nx-muted);
}

.nx-feature i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--nx-border);
    color: var(--nx-gold);
    font-size: 1rem;
}

/* Modal overlay */
.nx-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nx-dialog {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, #1a0a0c 0%, #0c0406 100%);
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 60px var(--nx-gold-glow);
    position: relative;
    overflow: hidden;
}

.nx-dialog::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--nx-red-bright), var(--nx-gold), var(--nx-red-bright));
}

.nx-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px 0;
}

.nx-dialog-header img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--nx-gold-glow));
}

.nx-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--nx-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--nx-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.nx-dialog-close:hover {
    background: var(--nx-red-bright);
    border-color: #e74c3c;
    color: #fff;
}

.nx-dialog-body { padding: 20px 24px 24px; }

.nx-panel-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    margin: 0 0 18px;
    color: var(--nx-gold-light);
    letter-spacing: 1px;
}

.nx-field { margin-bottom: 14px; }

.nx-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nx-gold);
    margin-bottom: 6px;
}

.nx-field input,
.nx-field select,
.nx-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    color: var(--nx-text);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.nx-field select {
    cursor: pointer;
    min-height: 44px;
}

.nx-field select option {
    background: #1a0a0c;
    color: var(--nx-text);
}

.nx-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.nx-field input:focus,
.nx-field select:focus,
.nx-field textarea:focus {
    outline: none;
    border-color: var(--nx-gold);
    box-shadow: 0 0 0 3px var(--nx-gold-glow);
}

.nx-note {
    font-size: 0.78rem;
    color: var(--nx-muted);
    padding: 12px 14px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 10px;
    margin-bottom: 14px;
    line-height: 1.55;
}

.nx-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* Download rows */
.nx-build-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(25, 6, 10, 0.95) 0%, rgba(12, 4, 6, 0.98) 100%);
    border: 1px solid rgba(140, 40, 40, 0.35);
    border-radius: 12px;
}

.nx-build-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nx-build-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--nx-border);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
}

/* Vault */
.nx-vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.nx-vault-item {
    background: linear-gradient(180deg, rgba(22, 8, 10, 0.98) 0%, rgba(8, 3, 5, 0.98) 100%);
    border: 1px solid rgba(140, 40, 40, 0.35);
    border-radius: var(--nx-radius);
    padding: 12px 10px;
    text-align: center;
    transition: all 0.25s;
    display: grid;
    grid-template-rows: 66px 14px 38px 68px 44px 30px 36px;
    align-items: start;
}

.nx-vault-item:hover {
    border-color: var(--nx-gold);
    box-shadow: 0 12px 32px rgba(80, 0, 0, 0.3);
    transform: translateY(-3px);
}

.nx-vault-item h4 {
    margin: 0 0 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: var(--nx-gold-light);
    line-height: 1.25;
    height: 2.5em;
    overflow: hidden;
}

.nx-price {
    font-family: 'Cinzel', serif;
    color: var(--nx-gold);
    font-weight: 700;
    font-size: 1rem;
    margin: 4px 0 2px;
    text-shadow: 0 0 20px var(--nx-gold-glow);
}

/* Hub stats */
.nx-page-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--nx-gold-light);
    margin: 0 0 28px;
    letter-spacing: 1px;
}

.nx-hub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.nx-stat {
    background: linear-gradient(180deg, rgba(30, 10, 14, 0.9) 0%, rgba(12, 4, 6, 0.95) 100%);
    border: 1px solid var(--nx-border-red);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: inset 0 0 40px rgba(80, 0, 0, 0.1);
}

.nx-stat-val {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nx-gold);
    text-shadow: 0 0 20px var(--nx-gold-glow);
}

.nx-stat-lbl {
    font-size: 0.72rem;
    color: var(--nx-muted);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nx-daily-top-tabs {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    align-items: stretch;
}

.nx-daily-checkin-tab {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.nx-daily-checkin-state {
    font-family: 'Cinzel', serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.nx-daily-checkin-state.is-ready {
    color: #b7ffcc;
    text-shadow: 0 0 12px rgba(80, 220, 140, 0.4);
}

.nx-daily-checkin-state.is-done {
    color: #ffe6a2;
    text-shadow: 0 0 12px rgba(255, 210, 120, 0.38);
}

.nx-daily-checkin-form {
    margin: 0;
}

.nx-daily-checkin-btn {
    width: 100%;
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.76rem;
}

.nx-hub-card-icon {
    font-size: 1.8rem;
    color: var(--nx-gold);
    margin-bottom: 8px;
    display: block;
}

/* Article page */
.nx-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px;
    background: var(--nx-surface);
    border: 1px solid var(--nx-border-red);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow);
}

.nx-article h1 {
    font-family: 'Cinzel', serif;
    color: var(--nx-gold-light);
    font-size: 1.5rem;
    margin: 12px 0 20px;
}

/* Admin gate */
.nx-gate-panel {
    max-width: 420px;
    margin: 48px auto;
    padding: 32px;
    background: var(--nx-surface2);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow);
    text-align: center;
}

.nx-gate-panel .nx-brand-logo { width: 80px; margin-bottom: 16px; }

@media (max-width: 900px) {
    .nx-hero { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .nx-hero-desc { margin-left: auto; margin-right: auto; }
    .nx-hero-actions { justify-content: center; }
    .nx-nav { display: none; }
}

@media (max-width: 480px) {
    .nx-topbar-inner { padding: 0 14px; height: 64px; }
    .nx-brand-sub { display: none; }
}

/* Vault ward tabs */
.nx-vault-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.nx-vault-intro {
    color: var(--nx-muted);
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.nx-vault-balance {
    font-family: 'Cinzel', serif;
    color: var(--nx-gold);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 8px 16px;
    border: 1px solid var(--nx-border-red);
    border-radius: 10px;
    background: rgba(30, 10, 14, 0.8);
}

.nx-ward-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(140, 40, 40, 0.25);
}

.nx-ward-tab {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid rgba(140, 40, 40, 0.4);
    border-radius: 8px;
    background: rgba(12, 4, 6, 0.9);
    color: var(--nx-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.nx-ward-tab:hover,
.nx-ward-tab.is-active {
    border-color: var(--nx-gold);
    color: var(--nx-gold-light);
    background: rgba(60, 20, 10, 0.95);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

.nx-vault-ward-tag {
    display: inline-block;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--nx-gold);
    opacity: 0.75;
    margin-bottom: 4px;
}

.nx-vault-desc-box {
    height: 64px;
    max-height: 64px;
    padding: 5px 7px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: rgba(0, 0, 0, 0.22);
    overflow-y: auto;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) rgba(0, 0, 0, 0.12);
}

.nx-vault-desc-box::-webkit-scrollbar {
    width: 5px;
}

.nx-vault-desc-box::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 999px;
}

.nx-vault-desc-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.nx-vault-item-desc {
    font-size: 0.74rem;
    color: var(--nx-muted);
    line-height: 1.45;
    margin: 0;
    min-height: 100%;
}

.nx-vault-meta {
    margin-top: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.nx-vault-actions {
    margin-top: 0;
    display: contents;
}

.nx-vault-preview-slot {
    min-height: 30px;
    margin-bottom: 0;
}

.nx-vault-preview-btn,
.nx-vault-buy-btn {
    width: 100%;
    margin: 0;
}

.nx-vault-preview-btn {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 8px 10px;
    color: var(--nx-gold-light) !important;
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(18, 8, 6, 0.9);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12) inset;
}

.nx-vault-preview-btn:hover {
    border-color: var(--nx-gold);
    background: rgba(58, 22, 8, 0.92);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.nx-vault-buy-btn {
    font-size: 0.76rem;
    padding: 8px 10px;
}

.nx-price-was {
    font-size: 0.75rem;
    color: var(--nx-muted);
    text-decoration: line-through;
    opacity: 0.7;
    min-height: 1.2em;
}

.nx-price-was.is-empty {
    visibility: hidden;
}

.nx-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nx-preview-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.nx-preview-dialog img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    border: 2px solid var(--nx-gold);
}

/* Admin operations */
.nx-admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.nx-admin-card {
    display: block;
    padding: 22px 18px;
    border-radius: 14px;
    border: 1px solid var(--nx-border-red);
    background: linear-gradient(180deg, rgba(30, 10, 14, 0.9) 0%, rgba(12, 4, 6, 0.95) 100%);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s;
}

.nx-admin-card:hover {
    border-color: var(--nx-gold);
    transform: translateY(-2px);
}

.nx-admin-card i {
    font-size: 1.5rem;
    color: var(--nx-gold);
    margin-bottom: 10px;
}

.nx-admin-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--nx-gold-light);
    margin: 0 0 6px;
}

.nx-admin-card p {
    font-size: 0.78rem;
    color: var(--nx-muted);
    margin: 0;
    line-height: 1.45;
}

.nx-admin-card-feature {
    display: block;
    width: 100%;
    padding: 26px 22px;
    border-color: rgba(212, 175, 55, 0.55);
    background: linear-gradient(120deg, rgba(50, 18, 24, 0.95) 0%, rgba(22, 8, 10, 0.95) 45%, rgba(12, 4, 6, 0.96) 100%);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(212, 175, 55, 0.16);
}

.nx-admin-card-feature i {
    font-size: 1.8rem;
}

.nx-admin-card-feature h3 {
    font-size: 1.08rem;
    letter-spacing: 0.4px;
}

.nx-admin-card-feature p {
    font-size: 0.86rem;
    max-width: 920px;
}

.nx-admin-section { margin-top: 8px; }

.nx-admin-heading {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--nx-gold-light);
    margin: 0 0 12px;
}

.nx-admin-note {
    font-size: 0.82rem;
    color: var(--nx-muted);
    line-height: 1.6;
    margin: 12px 0;
    max-width: 720px;
}

.nx-admin-note code {
    color: var(--nx-gold);
    font-size: 0.78rem;
}

.nx-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.nx-admin-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nx-admin-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(140, 40, 40, 0.35);
    border-radius: 12px;
}

.nx-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.nx-admin-table th,
.nx-admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(140, 40, 40, 0.2);
    vertical-align: middle;
}

.nx-admin-table th {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nx-gold);
    background: rgba(20, 6, 8, 0.95);
}

.nx-admin-table tr:hover td { background: rgba(40, 12, 16, 0.5); }

.nx-row-muted td { opacity: 0.55; }

.nx-admin-sub {
    font-size: 0.75rem;
    color: var(--nx-muted);
    margin-top: 2px;
}

.nx-admin-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--nx-border);
    background: rgba(0, 0, 0, 0.4);
}

.nx-admin-actions {
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nx-btn-xs {
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
}

.nx-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nx-badge-live {
    background: rgba(40, 120, 60, 0.3);
    color: #7dcea0;
    border: 1px solid rgba(80, 180, 100, 0.4);
}

.nx-badge-muted {
    background: rgba(80, 80, 80, 0.3);
    color: var(--nx-muted);
    border: 1px solid rgba(120, 120, 120, 0.3);
}

.nx-badge-info {
    background: rgba(38, 98, 155, 0.28);
    color: #8ec5ff;
    border: 1px solid rgba(94, 161, 227, 0.45);
}

.nx-badge-warning {
    background: rgba(146, 107, 31, 0.3);
    color: #f6cf82;
    border: 1px solid rgba(196, 150, 57, 0.45);
}

.nx-admin-form-panel {
    background: linear-gradient(180deg, rgba(22, 8, 10, 0.98) 0%, rgba(8, 3, 5, 0.98) 100%);
    border: 1px solid rgba(140, 40, 40, 0.35);
    border-radius: var(--nx-radius);
    padding: 28px 24px;
    max-width: 900px;
}

.nx-tool-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nx-tool-actions .nx-btn {
    flex: 1;
}

.nx-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.nx-field-full { grid-column: 1 / -1; }

.nx-admin-input {
    width: 100%;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--nx-border);
    border-radius: 6px;
    color: var(--nx-text);
    font-size: 0.85rem;
}

.nx-admin-input-sm { max-width: 70px; }

.nx-admin-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.nx-shop-upload-panel {
    margin-top: 18px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(8, 3, 5, 0.6);
}

.nx-shop-upload-head h3 {
    margin: 0 0 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--nx-gold-light);
}

.nx-shop-upload-head p {
    margin: 0 0 10px;
    color: var(--nx-muted);
    font-size: 0.8rem;
}

.nx-shop-dropzone {
    border: 1px dashed rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nx-shop-dropzone.is-dragging {
    border-color: var(--nx-gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.nx-shop-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--nx-muted);
    font-size: 0.85rem;
}

.nx-shop-dropzone-inner i {
    color: var(--nx-gold);
    font-size: 1.2rem;
}

.nx-shop-upload-results {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.nx-shop-upload-card {
    display: flex;
    gap: 8px;
    border: 1px solid rgba(140, 40, 40, 0.28);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
}

.nx-shop-upload-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--nx-border);
    background: #12090b;
}

.nx-shop-upload-meta {
    min-width: 0;
    flex: 1;
}

.nx-shop-upload-name {
    font-size: 0.74rem;
    color: var(--nx-gold-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.nx-shop-upload-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Compact create/edit shop form */
.nx-admin-form-panel.nx-shop-form-compact {
    max-width: 760px;
    padding: 12px 12px 10px;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-form-grid {
    gap: 8px 10px;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-field {
    margin-bottom: 2px;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-field label {
    margin-bottom: 3px;
    font-size: 0.64rem;
    letter-spacing: 0.5px;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-field input,
.nx-admin-form-panel.nx-shop-form-compact .nx-field select,
.nx-admin-form-panel.nx-shop-form-compact .nx-field textarea {
    padding: 7px 9px;
    font-size: 0.8rem;
    border-radius: 7px;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-field select {
    min-height: 34px;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-field textarea {
    min-height: 58px;
    line-height: 1.25;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-form-actions {
    margin-top: 8px !important;
}

.nx-admin-form-panel.nx-shop-form-compact .nx-shop-upload-panel {
    margin-top: 8px;
    padding: 8px;
}

.nx-shop-upload-collapsible {
    border-radius: 10px;
}

.nx-shop-upload-summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    color: var(--nx-gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nx-shop-upload-summary::-webkit-details-marker {
    display: none;
}

/* Compact lucky spin admin desk */
.nx-spin-desk-compact .nx-admin-note {
    margin-bottom: 6px;
    padding: 6px 8px;
    font-size: 0.7rem;
    line-height: 1.3;
}

.nx-spin-desk-compact .nx-admin-form-panel {
    max-width: none;
    width: 100%;
    padding: 10px 10px 8px;
}

.nx-spin-desk-compact .nx-form-grid {
    gap: 6px 8px;
}

.nx-spin-desk-compact .nx-field {
    margin-bottom: 0;
}

.nx-spin-desk-compact .nx-field label {
    margin-bottom: 2px;
    font-size: 0.62rem;
    letter-spacing: 0.4px;
}

.nx-spin-desk-compact .nx-field input,
.nx-spin-desk-compact .nx-field select {
    padding: 5px 8px;
    min-height: 30px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.nx-spin-desk-compact .nx-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
}

.nx-spin-desk-compact .nx-admin-table-wrap {
    margin-top: 4px;
}

.nx-spin-table-wrap {
    overflow-x: auto;
}

.nx-spin-table-compact th,
.nx-spin-table-compact td {
    padding: 5px 6px;
    font-size: 0.76rem;
    vertical-align: middle;
}

.nx-spin-table-compact .nx-admin-input {
    padding: 4px 6px;
    font-size: 0.74rem;
    min-height: 28px;
}

.nx-spin-table-compact .nx-admin-input-sm {
    max-width: 64px;
}

.nx-spin-table-compact .nx-admin-thumb {
    width: 28px;
    height: 28px;
    border-radius: 5px;
}

.nx-spin-table-compact .nx-admin-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nx-spin-table-compact .nx-admin-actions .nx-btn-xs {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
}

.nx-spin-credit-grid,
.nx-spin-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-spin-credit-action {
    display: flex;
    flex-direction: column;
}

.nx-spin-check-box {
    min-height: 30px;
    border: 1px solid var(--nx-border);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nx-spin-credit-action .nx-spin-check-box {
    justify-content: space-between;
    align-items: center;
}

.nx-spin-credit-action .nx-btn-enable {
    margin-left: auto;
}

.nx-spin-enabled-field .nx-spin-check-box {
    min-height: 30px;
    justify-content: flex-start;
}

.nx-spin-enabled-field .nx-spin-check-box span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--nx-gold);
}

.nx-spin-desk-compact .nx-admin-heading {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.nx-spin-compact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.nx-spin-inline-check {
    margin: 0;
    font-size: 0.7rem;
    color: var(--nx-gold);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nx-spin-inline-check input {
    margin-right: 5px;
}

@media (max-width: 900px) {
    .nx-spin-credit-grid,
    .nx-spin-reward-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared admin frame (applies to all staff pages) */
.nx-admin-frame {
    border: 1px solid rgba(140, 40, 40, 0.38);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 7, 10, 0.92), rgba(9, 3, 5, 0.96));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 18px;
}

.nx-admin-frame-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.nx-admin-frame-head h2 {
    margin: 0 0 4px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--nx-gold-light);
}

.nx-admin-frame-head p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--nx-muted);
}

.nx-admin-frame-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.nx-admin-frame-nav a {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--nx-gold-light) !important;
    text-decoration: none !important;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: rgba(212, 175, 55, 0.06);
}

.nx-admin-frame-nav a:hover {
    border-color: var(--nx-gold);
    background: rgba(212, 175, 55, 0.12);
}

.nx-admin-frame-note {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: var(--nx-muted);
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
}

.nx-translate-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.nx-translate-lang-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: linear-gradient(180deg, rgba(30, 10, 14, 0.88), rgba(10, 4, 6, 0.92));
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.06);
}

.nx-translate-lang-label {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--nx-gold-light);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nx-translate-lang-select {
    min-width: 200px;
    height: 34px;
    padding: 6px 30px 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    border-color: rgba(212, 175, 55, 0.32);
    background-color: rgba(0, 0, 0, 0.45);
}

.nx-translate-btn {
    color: var(--nx-gold-light) !important;
    border-color: rgba(212, 175, 55, 0.28) !important;
    background: rgba(212, 175, 55, 0.08) !important;
}

.nx-translate-btn:hover {
    color: #fff6d6 !important;
    border-color: var(--nx-gold) !important;
    background: rgba(212, 175, 55, 0.16) !important;
}

.nx-translate-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 640px) {
    .nx-form-grid { grid-template-columns: 1fr; }
    .nx-ward-tabs { gap: 6px; }
    .nx-ward-tab { padding: 6px 10px; font-size: 0.65rem; }
    .nx-translate-lang-box { width: 100%; }
    .nx-translate-lang-select { min-width: 0; width: 100%; }
    .nx-wheel-wrap { grid-template-columns: 1fr; }
    .nx-wheel-disc { width: 290px; height: 290px; }
}

/* Member services */
.nx-service-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    text-align: center;
}

.nx-daily-card {
    cursor: default;
}

.nx-daily-card .nx-btn {
    position: relative;
    z-index: 2;
}

.nx-wheel-wrap {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(420px, 540px) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

.nx-wheel-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.nx-wheel-disc-wrap {
    position: relative;
    width: 520px;
    height: 520px;
    overflow: visible;
}

.nx-wheel-pointer {
    --nx-wheel-pointer-color: #f2c230;
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 56px;
    height: 100px;
    pointer-events: none;
}

.nx-wheel-pointer-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 14px rgba(255, 214, 92, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.nx-wheel-pointer-cap {
    fill: #fff4c5;
    stroke: var(--nx-wheel-pointer-color);
    stroke-width: 5;
}

.nx-wheel-pointer-tip {
    fill: var(--nx-wheel-pointer-color);
    stroke: rgba(255, 245, 192, 0.9);
    stroke-width: 2;
}

.nx-wheel-disc {
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 9px solid rgba(242, 194, 48, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 235, 166, 0.42), 0 0 24px rgba(242, 194, 48, 0.35), 0 14px 36px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
    transition: transform 4.2s cubic-bezier(0.15, 0.78, 0.17, 1);
}

.nx-wheel-disc::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
}

.nx-wheel-disc::after {
    content: "";
    position: absolute;
    inset: 44%;
    border-radius: 50%;
    background: #f0f0f0;
    border: 2px solid rgba(120, 120, 120, 0.65);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.nx-wheel-slot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: center center;
    z-index: 2;
}

.nx-wheel-label-inner {
    --nx-wheel-label-radius: -178px;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 124px;
    max-width: 124px;
    min-height: 50px;
    padding: 2px 4px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.nx-wheel-label-inner span {
    display: block;
    max-width: 116px;
    margin: 0 auto;
    line-height: 1.06;
    font-size: 1.04rem;
    font-weight: 900;
    letter-spacing: 0.15px;
    color: #fffdfa;
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 -1px 0 rgba(0, 0, 0, 0.42),
        1px 0 0 rgba(0, 0, 0, 0.42),
        -1px 0 0 rgba(0, 0, 0, 0.42),
        0 0 6px rgba(255, 238, 160, 0.32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-wheel-line1 {
    font-weight: 800;
}

.nx-wheel-line2 {
    opacity: 0.95;
}

@media (max-width: 1100px) {
    .nx-wheel-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nx-wheel-side {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nx-daily-top-tabs {
        grid-template-columns: 1fr;
    }

    .nx-wheel-disc-wrap {
        width: 350px;
        height: 350px;
    }

    .nx-wheel-disc {
        width: 350px;
        height: 350px;
    }

    .nx-wheel-pointer {
        top: 6px;
        width: 46px;
        height: 84px;
    }

    .nx-wheel-label-inner {
        --nx-wheel-label-radius: -120px;
        min-width: 88px;
        max-width: 88px;
        min-height: 32px;
    }

    .nx-wheel-label-inner span {
        max-width: 82px;
        font-size: 0.78rem;
    }
}

.nx-wheel-spin-btn {
    min-width: 180px;
}

.nx-wheel-side .nx-note {
    margin-bottom: 10px;
}

.nx-wheel-side .nx-admin-table {
    font-size: 0.75rem !important;
}

.nx-wheel-side .nx-admin-table th,
.nx-wheel-side .nx-admin-table td {
    padding: 8px 10px;
}

.nx-wheel-side .nx-admin-thumb {
    width: 28px;
    height: 28px;
}

.nx-spin-status {
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(180deg, rgba(22, 8, 10, 0.92), rgba(10, 4, 6, 0.92));
}

.nx-spin-status .nx-spin-title {
    font-family: 'Cinzel', serif;
    font-size: 1.08rem;
    letter-spacing: 1px;
    color: var(--nx-gold-light);
}

.nx-spin-status .nx-spin-reward {
    font-family: 'Cinzel', serif;
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 6px 0 4px;
    color: #ffe083;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.65), 0 0 34px rgba(240, 210, 120, 0.35);
    animation: nx-spin-pulse 1s ease-in-out infinite;
}

.nx-spin-status .nx-spin-sub {
    font-size: 0.8rem;
    color: var(--nx-muted);
}

.nx-spin-status.is-spinning .nx-spin-title {
    color: #7fd8ff;
    text-shadow: 0 0 14px rgba(80, 180, 255, 0.45);
    animation: nx-spin-fade 0.9s ease-in-out infinite;
}

.nx-spin-status.is-win {
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), inset 0 0 0 1px rgba(255, 236, 170, 0.18);
}

.nx-spin-status.is-win .nx-spin-title {
    font-size: 1.25rem;
    color: #fff3ba;
    text-shadow: 0 0 14px rgba(255, 215, 115, 0.9), 0 0 30px rgba(255, 172, 66, 0.65);
}

.nx-spin-status.is-win .nx-spin-reward {
    font-size: 2rem;
    font-weight: 900;
    color: #fff7d4;
    text-shadow: 0 0 12px rgba(255, 232, 160, 0.95), 0 0 28px rgba(255, 196, 82, 0.9), 0 0 52px rgba(255, 142, 39, 0.75);
    animation: nx-spin-win-flash 0.62s ease-in-out infinite;
}

.nx-spin-status.is-error .nx-spin-title {
    color: #ff9688;
    text-shadow: 0 0 14px rgba(231, 76, 60, 0.45);
}

@keyframes nx-spin-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes nx-spin-fade {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes nx-spin-win-flash {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.06);
        filter: brightness(1.35);
        opacity: 0.9;
    }
}

.nx-wheel-side .nx-admin-table tbody td {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: #f4e8d8;
    text-shadow: 0 0 5px rgba(255, 214, 120, 0.18);
}

.nx-wheel-side .nx-admin-table tbody tr td:first-child {
    color: #f8edd6;
    text-shadow: 0 0 6px rgba(255, 214, 120, 0.24);
}

.nx-wheel-side .nx-admin-table tbody tr td:last-child {
    color: #ffe4a0;
    text-shadow: 0 0 7px rgba(255, 196, 82, 0.28);
}

.nx-clan-preview {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 1.4em;
}

.nx-table-ranking td strong {
    font-weight: 700;
}

.nx-alert {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.nx-alert i { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }

.nx-alert-warn {
    background: rgba(80, 50, 0, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--nx-gold-light);
}

.nx-alert-danger {
    background: rgba(80, 10, 10, 0.35);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #f5b7b1;
}

.nx-topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.nx-topup-card {
    background: linear-gradient(180deg, rgba(22, 8, 10, 0.98) 0%, rgba(8, 3, 5, 0.98) 100%);
    border: 1px solid rgba(140, 40, 40, 0.35);
    border-radius: var(--nx-radius);
    padding: 22px 18px;
}

.nx-topup-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--nx-gold-light);
    margin: 0 0 10px;
    font-size: 1rem;
}

.nx-topup-price {
    font-family: 'Cinzel', serif;
    color: #93c5fd;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.nx-topup-coins {
    color: var(--nx-gold);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.nx-topup-form .nx-field { margin-bottom: 12px; text-align: left; }

.nx-field-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--nx-muted);
    margin-top: 4px;
}

.nx-req { color: #e74c3c; }

.nx-check-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--nx-muted);
    margin: 12px 0 16px;
    line-height: 1.45;
    cursor: pointer;
}

.nx-check-line input { margin-top: 3px; flex-shrink: 0; }

.nx-check-line strong {
    color: #ffe08a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-shadow: 0 0 10px rgba(255, 208, 90, 0.45), 0 0 3px rgba(255, 208, 90, 0.65);
}

/* Styled on/off toggle for admin forms */
.nx-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.nx-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nx-toggle-pill {
    min-width: 140px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 40, 40, 0.45);
    background: linear-gradient(180deg, rgba(22, 8, 10, 0.95), rgba(10, 4, 6, 0.95));
    color: var(--nx-muted);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.06);
}

.nx-toggle-pill::before {
    content: attr(data-off);
}

.nx-toggle-input:checked + .nx-toggle-pill {
    border-color: var(--nx-gold);
    background: linear-gradient(135deg, #f0d060 0%, #c9a227 45%, #8b6914 100%);
    color: #1a0800;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nx-toggle-input:checked + .nx-toggle-pill::before {
    content: attr(data-on);
}

.nx-toggle-input:focus + .nx-toggle-pill {
    box-shadow: 0 0 0 3px var(--nx-gold-glow);
}

.nx-rank-cell { text-align: center; min-width: 40px; }
.nx-vip { display: inline-block; font-size: 18px; }
.nx-vip-1 { color: #ffd700; text-shadow: 0 0 8px #ffd700; }
.nx-vip-2 { color: #c0c0c0; text-shadow: 0 0 8px #c0c0c0; }
.nx-vip-3 { color: #cd7f32; text-shadow: 0 0 8px #cd7f32; }

/* ── Rankings page ── */
.nx-rank-page {
    max-width: 960px;
    margin: 0 auto;
}

.nx-rank-panel {
    position: relative;
    border: 2px solid var(--nx-gold-dim);
    border-radius: var(--nx-radius);
    background:
        linear-gradient(180deg, rgba(22, 8, 10, 0.98) 0%, rgba(6, 3, 4, 0.99) 100%);
    box-shadow:
        var(--nx-shadow),
        inset 0 0 60px rgba(80, 0, 0, 0.12),
        0 0 0 1px rgba(212, 175, 55, 0.15);
    overflow: hidden;
}

.nx-rank-panel::before,
.nx-rank-panel::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--nx-gold);
    pointer-events: none;
    z-index: 2;
}

.nx-rank-panel::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-radius: 4px 0 0 0;
}

.nx-rank-panel::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 4px 0;
}

.nx-rank-panel-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(140, 98, 27, 0.45);
    background: linear-gradient(180deg, rgba(40, 14, 18, 0.85) 0%, rgba(14, 6, 8, 0.6) 100%);
}

.nx-rank-panel-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--nx-gold-dim);
    background: linear-gradient(145deg, rgba(60, 20, 24, 0.9), rgba(20, 8, 10, 0.95));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.nx-rank-panel-badge i {
    font-size: 1.6rem;
    color: var(--nx-gold);
    text-shadow: 0 0 12px var(--nx-gold-glow);
}

.nx-rank-panel-titles { flex: 1; min-width: 0; }

.nx-rank-panel-title {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--nx-gold-light);
    margin: 0 0 4px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px var(--nx-gold-glow);
}

.nx-rank-panel-sub {
    margin: 0;
    font-size: 0.82rem;
    color: var(--nx-muted);
}

.nx-rank-panel-stat {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(140, 98, 27, 0.5);
    background: rgba(0, 0, 0, 0.35);
}

.nx-rank-panel-stat-val {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nx-gold);
    line-height: 1.2;
}

.nx-rank-panel-stat-lbl {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nx-muted);
    margin-top: 2px;
}

.nx-rank-panel-divider,
.nx-rank-panel-foot {
    padding: 0 20px;
    line-height: 0;
    opacity: 0.85;
}

.nx-rank-panel-divider img,
.nx-rank-panel-foot img {
    width: 100%;
    height: auto;
    display: block;
}

.nx-rank-panel-foot {
    padding-bottom: 12px;
    border-top: 1px solid rgba(140, 98, 27, 0.25);
    padding-top: 8px;
}

.nx-rank-table-frame {
    margin: 0 16px 16px;
    border: 2px solid #8c621b;
    border-radius: 8px;
    background: #0a0a0a;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(255, 204, 102, 0.08);
    overflow: hidden;
}

.nx-rank-table-scroll {
    overflow-x: auto;
    max-height: 72vh;
}

.nx-rank-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.88rem;
    color: #ffdc7a;
}

.nx-rank-table thead tr {
    background: linear-gradient(180deg, #1a1510 0%, #0d0a06 100%);
    box-shadow: 0 2px 12px rgba(255, 204, 102, 0.2);
}

.nx-rank-table th {
    padding: 12px 10px;
    border: 1px solid #8c621b;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #ffcc66;
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(180deg, #1a1510 0%, #0d0a06 100%);
}

.nx-rank-table td {
    padding: 10px 12px;
    border: 1px solid #8c621b;
    background-color: #0a0a0a;
    vertical-align: middle;
}

.nx-rank-table tbody tr:nth-child(even) td {
    background-color: #0d0d0a;
}

.nx-rank-table tbody tr:hover td {
    background-color: #151510 !important;
    box-shadow: inset 0 0 12px rgba(255, 204, 102, 0.08);
}

.nx-rank-row-top td {
    font-weight: 600;
}

.nx-rank-row-1 td {
    background: linear-gradient(90deg, rgba(80, 60, 0, 0.35), #0a0a0a 40%, #0a0a0a) !important;
    box-shadow: inset 3px 0 0 #ffd700;
}

.nx-rank-row-2 td {
    background: linear-gradient(90deg, rgba(60, 60, 60, 0.3), #0a0a0a 40%, #0a0a0a) !important;
    box-shadow: inset 3px 0 0 #c0c0c0;
}

.nx-rank-row-3 td {
    background: linear-gradient(90deg, rgba(80, 45, 10, 0.35), #0a0a0a 40%, #0a0a0a) !important;
    box-shadow: inset 3px 0 0 #cd7f32;
}

.nx-rank-col-num { width: 56px; }
.nx-rank-col-title { min-width: 120px; }
.nx-rank-col-name { min-width: 110px; }
.nx-rank-col-clan { min-width: 180px; }
.nx-rank-col-lv { width: 56px; }
.nx-rank-col-pct { width: 64px; }

.nx-rank-cell { text-align: center; font-weight: 700; }
.nx-rank-title-cell { color: #ffcc66; font-family: 'Cinzel', serif; font-size: 0.82rem; }
.nx-rank-name-cell { text-align: center; font-weight: 600; color: #ffe8a8; }
.nx-rank-clan-cell { text-align: center; }
.nx-rank-lv-cell { text-align: center; font-weight: 700; color: #93c5fd; }
.nx-rank-pct-cell { text-align: center; color: #a8d8a8; font-size: 0.82rem; }

.nx-rank-table td strong { font-weight: 700; }

.nx-rank-empty td {
    text-align: center;
    padding: 32px 16px !important;
    color: var(--nx-muted);
    font-style: italic;
}

.nx-rank-page .nx-rank-panel-top9 {
    margin-bottom: 24px;
    border-color: var(--nx-gold);
    box-shadow:
        var(--nx-shadow),
        inset 0 0 40px rgba(212, 175, 55, 0.08),
        0 0 24px rgba(212, 175, 55, 0.15);
}

.nx-rank-panel-top9 .nx-rank-panel-title {
    color: #ffe8a0;
    text-shadow: 0 0 24px rgba(255, 220, 120, 0.45);
}

.nx-rank-table-frame-top9 {
    margin-bottom: 12px;
    border-color: #c9a227;
}

.nx-rank-panel-full { margin-top: 0; }

.nx-rank-limit-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nx-rank-limit-label {
    font-size: 0.78rem;
    color: var(--nx-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nx-rank-limit-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 12px;
    border-radius: 8px;
    border: 1px solid #8c621b;
    background:
        linear-gradient(180deg, #1a1510 0%, #0d0a06 100%)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffcc66' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    color: #ffdc7a;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}

.nx-rank-limit-select:hover,
.nx-rank-limit-select:focus {
    border-color: var(--nx-gold);
    outline: none;
    box-shadow: 0 0 12px rgba(255, 204, 102, 0.25);
}

.nx-rank-row-hidden { display: none !important; }

.nx-rank-row-dragon td {
    background-color: #0f0f0c !important;
}

.nx-rank-row-d4 td { box-shadow: inset 3px 0 0 rgba(255, 204, 102, 0.55); }
.nx-rank-row-d5 td { box-shadow: inset 3px 0 0 rgba(255, 180, 80, 0.5); }
.nx-rank-row-d6 td { box-shadow: inset 3px 0 0 rgba(200, 160, 255, 0.45); }
.nx-rank-row-d7 td { box-shadow: inset 3px 0 0 rgba(120, 200, 255, 0.45); }
.nx-rank-row-d8 td { box-shadow: inset 3px 0 0 rgba(160, 220, 160, 0.4); }
.nx-rank-row-d9 td { box-shadow: inset 3px 0 0 rgba(180, 180, 200, 0.4); }

.nx-rank-foot-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.nx-rank-showing {
    text-align: center;
    font-size: 0.78rem;
    color: var(--nx-muted);
    padding: 0 16px;
}

.nx-rank-collapsed .nx-rank-table-scroll {
    max-height: none;
}

@media (max-width: 640px) {
    .nx-rank-panel-head {
        flex-wrap: wrap;
        padding: 18px 16px 14px;
    }

    .nx-rank-panel-stat {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
    }

    .nx-rank-panel-stat-val,
    .nx-rank-panel-stat-lbl { display: inline; }

    .nx-rank-table-frame { margin: 0 10px 12px; }

    .nx-rank-table { font-size: 0.78rem; }

    .nx-rank-table th,
    .nx-rank-table td { padding: 8px 6px; }
}
