@import 'https://cdn.jsdelivr.net/gh/lazywasabi/thai-web-fonts@7/fonts/Anuphan/var/Anuphan[wght].css';
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Anuphan', sans-serif;
}

/* ===== Design Tokens (storefront control-center theme) ===== */
:root {
    --bg:            #020b20;
    --bg-deep:       #020817;
    --bg-card:       #061633;
    --bg-card-raised:#0b234c;
    --bg-muted:      #071a3d;
    --border:        rgba(116, 177, 255, 0.18);
    --border-strong: rgba(56, 189, 248, 0.34);
    --text:          #eef7ff;
    --text-soft:     #c9d9ec;
    --text-muted:    #8fa8c7;
    --text-faint:    #587594;
    --primary:       #12baf5;
    --primary-dark:  #0284d6;
    --primary-pale:  rgba(18, 186, 245, 0.11);
    --primary-mid:   rgba(18, 186, 245, 0.18);
    --shadow-sm:     0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-md:     0 18px 44px rgba(0, 0, 0, 0.3);
    --shadow-lg:     0 28px 70px rgba(0, 0, 0, 0.4);
}

body {
    color: var(--text);
    min-height: 100vh;
    font-family: 'Anuphan', sans-serif;
    color-scheme: dark;
}

/* ===== Navbar glass ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Game Card ===== */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-sm);
}
.game-card:hover {
    border-color: rgba(2,132,214,0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

/* ===== Banner glow ===== */
.banner-glow {
    box-shadow: 0 0 0 1px rgba(2,132,214,0.15), 0 8px 40px rgba(2,132,214,0.1);
}

/* ===== Primary glow button ===== */
.orange-glow {
    box-shadow: 0 4px 20px rgba(2,132,214,0.4);
}
.orange-glow:hover {
    box-shadow: 0 6px 28px rgba(2,132,214,0.55);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: rgba(2,132,214,0.4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== Payment Page Styles ===== */
body.payment-page {
    background-color: #020617;
    color: white;
    overflow-x: hidden;
}

.bg-mesh {
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 214, 0.12) 0%, transparent 50%);
}

.method-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.method-card:hover {
    transform: translateY(-5px);
    border-color: #0284D6;
    background: rgba(2, 132, 214, 0.05);
}
.method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: bold;
    text-transform: uppercase;
}
.status-online { background: rgba(2, 132, 214, 0.2); color: #0284D6; border: 1px solid rgba(2, 132, 214, 0.3); }
.status-offline { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Modal Animation */
.modal-backdrop {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}
.modal-active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.input-dark {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.2s;
}
.input-dark:focus {
    border-color: #0284D6;
    box-shadow: 0 0 10px rgba(2, 132, 214, 0.2);
}

/* ============================================================
   NEXTPLAY ADMIN — dark navy / cyan system shared with main/
   This layer intentionally normalizes legacy Tailwind utilities
   so every existing admin page receives the redesign at once.
   ============================================================ */

body.admin-ui {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 92% -10%, rgba(7, 78, 160, 0.34), transparent 34rem),
        radial-gradient(circle at -8% 14%, rgba(11, 95, 176, 0.17), transparent 29rem),
        linear-gradient(rgba(41, 155, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 155, 255, 0.035) 1px, transparent 1px),
        linear-gradient(145deg, #020817 0%, #020b20 50%, #03112c 100%);
    background-size: auto, auto, 52px 52px, 52px 52px, auto;
    background-attachment: fixed;
}

.admin-ui .topbar {
    background: rgba(1, 9, 29, 0.88);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

.admin-ui .sidebar {
    background:
        radial-gradient(circle at 0 0, rgba(10, 76, 145, 0.19), transparent 38%),
        linear-gradient(180deg, #04122d 0%, #020a1e 100%);
    border-right-color: var(--border);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.14);
}

.admin-ui .admin-brand-logo {
    background: rgba(7, 26, 61, 0.86);
    border: 1px solid var(--border);
    box-shadow: 0 0 22px rgba(18, 186, 245, 0.12);
}

.admin-ui .admin-avatar {
    color: #00182b;
    background: linear-gradient(135deg, #55e6ff, #0999ed);
    box-shadow: 0 0 0 2px #071a3d, 0 0 20px rgba(18, 186, 245, 0.32);
}

.admin-ui .admin-storefront-link {
    color: #b8cbe3;
    background: rgba(7, 26, 61, 0.82);
    border: 1px solid var(--border);
}

.admin-ui .admin-storefront-link:hover {
    color: #fff;
    border-color: var(--border-strong);
    background: rgba(11, 47, 102, 0.88);
}

.admin-ui .nav-label {
    color: #4e6c91;
    letter-spacing: .12em;
}

.admin-ui .menu-item {
    color: #91a8c4;
    border: 1px solid transparent;
}

.admin-ui .menu-item svg { color: #587594; }

.admin-ui .menu-item:hover {
    color: #e8f5ff;
    background: rgba(15, 54, 102, 0.55);
    border-color: rgba(66, 144, 218, 0.15);
}

.admin-ui .menu-item:hover svg { color: #3bd3ff; }

.admin-ui .menu-item.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(8, 112, 183, 0.38), rgba(8, 42, 86, 0.58));
    border-color: rgba(44, 188, 242, 0.28);
    box-shadow: inset 3px 0 #25c9f8, 0 8px 22px rgba(0, 0, 0, 0.14);
}

.admin-ui .menu-item.is-active::before { display: none; }
.admin-ui .menu-item.is-active svg {
    color: #55dcff;
    filter: drop-shadow(0 0 5px rgba(29, 197, 247, 0.5));
}

/* Surfaces */
.admin-ui .bg-white,
.admin-ui .bg-white\/90 {
    background-color: rgba(6, 22, 51, 0.94) !important;
}

.admin-ui main .bg-gray-50,
.admin-ui main .bg-gray-50\/50,
.admin-ui main .bg-gray-50\/80,
.admin-ui #user-dropdown .bg-gray-50\/80 {
    background-color: rgba(10, 35, 76, 0.62) !important;
}

.admin-ui main .bg-gray-100,
.admin-ui .bg-gray-100 {
    background-color: rgba(16, 47, 94, 0.72) !important;
}

.admin-ui main .bg-gray-200 { background-color: rgba(34, 73, 119, 0.62) !important; }
.admin-ui main .hover\:bg-gray-50:hover { background-color: rgba(18, 61, 112, 0.5) !important; }
.admin-ui .hover\:bg-gray-100:hover { background-color: rgba(18, 61, 112, 0.58) !important; }
.admin-ui .hover\:bg-gray-200\/80:hover { background-color: rgba(26, 74, 126, 0.66) !important; }

.admin-ui .card,
.admin-ui .stat-card,
.admin-ui main .bg-white,
.admin-ui #user-dropdown {
    border-color: var(--border) !important;
    box-shadow: var(--shadow-sm);
}

.admin-ui main .bg-white {
    background-image: linear-gradient(145deg, rgba(10, 36, 78, 0.2), rgba(2, 11, 32, 0.06));
}

.admin-ui main .bg-white:hover {
    border-color: rgba(116, 177, 255, 0.25) !important;
}

/* Typography */
.admin-ui .text-gray-900,
.admin-ui .text-gray-800 { color: #eef7ff !important; }
.admin-ui .text-gray-700 { color: #c9d9ec !important; }
.admin-ui .text-gray-600 { color: #a9bdd5 !important; }
.admin-ui .text-gray-500 { color: #8fa8c7 !important; }
.admin-ui .text-gray-400 { color: #6f89aa !important; }
.admin-ui .text-gray-300 { color: #587594 !important; }

/* Hairlines and dividers */
.admin-ui .border-gray-50,
.admin-ui .border-gray-100,
.admin-ui .border-gray-200,
.admin-ui .border-gray-300 {
    border-color: var(--border) !important;
}

.admin-ui main thead th {
    color: #6f89aa !important;
    border-bottom-color: var(--border) !important;
}

.admin-ui main tbody tr { border-color: rgba(116, 177, 255, 0.11) !important; }
.admin-ui main tbody tr:hover { background-color: rgba(12, 50, 99, 0.46) !important; }

/* Forms */
.admin-ui input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.admin-ui select,
.admin-ui textarea,
.admin-ui [contenteditable="true"] {
    color: #e9f4ff !important;
    background-color: rgba(2, 13, 39, 0.72) !important;
    border-color: var(--border) !important;
    caret-color: #55dcff;
}

.admin-ui input::placeholder,
.admin-ui textarea::placeholder { color: #587594 !important; }

.admin-ui input:focus,
.admin-ui textarea:focus,
.admin-ui select:focus,
.admin-ui [contenteditable="true"]:focus {
    border-color: #25c9f8 !important;
    box-shadow: 0 0 0 3px rgba(37, 201, 248, 0.15), 0 0 18px rgba(18, 186, 245, 0.1) !important;
}

.admin-ui select option {
    color: #e9f4ff;
    background: #061633;
}

/* Primary actions preserve the storefront cyan gradient. */
.admin-ui .bg-orange-500,
.admin-ui .bg-orange-600,
.admin-ui button.bg-orange-500,
.admin-ui button.bg-orange-600 {
    color: #00182b !important;
    background-image: linear-gradient(135deg, #55e6ff, #0999ed) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(0, 171, 235, 0.22);
}

.admin-ui .hover\:bg-orange-600:hover,
.admin-ui .hover\:bg-orange-700:hover {
    filter: brightness(1.1);
    box-shadow: 0 11px 28px rgba(0, 171, 235, 0.3);
}

.admin-ui .bg-orange-50,
.admin-ui .bg-orange-50\/40,
.admin-ui .bg-orange-100 {
    background-color: rgba(18, 186, 245, 0.11) !important;
}

.admin-ui .border-orange-100,
.admin-ui .border-orange-200,
.admin-ui .border-orange-400,
.admin-ui .border-orange-500 {
    border-color: rgba(37, 201, 248, 0.34) !important;
}

.admin-ui .text-orange-500,
.admin-ui .text-orange-600,
.admin-ui .text-orange-700 { color: #55dcff !important; }

/* Semantic colors stay distinct, with dark translucent fills. */
.admin-ui .bg-green-50,
.admin-ui .bg-green-100,
.admin-ui .bg-emerald-50,
.admin-ui .bg-emerald-100 { background-color: rgba(16, 185, 129, 0.13) !important; }
.admin-ui .bg-red-50,
.admin-ui .bg-red-100 { background-color: rgba(239, 68, 68, 0.13) !important; }
.admin-ui .bg-yellow-100,
.admin-ui .bg-amber-50,
.admin-ui .bg-amber-100 { background-color: rgba(245, 158, 11, 0.14) !important; }
.admin-ui .bg-blue-50,
.admin-ui .bg-blue-100,
.admin-ui .bg-sky-50,
.admin-ui .bg-sky-100,
.admin-ui .bg-cyan-50 { background-color: rgba(56, 189, 248, 0.13) !important; }
.admin-ui .bg-purple-50,
.admin-ui .bg-purple-100 { background-color: rgba(139, 92, 246, 0.14) !important; }

.admin-ui .text-green-600,
.admin-ui .text-green-700,
.admin-ui .text-emerald-600,
.admin-ui .text-emerald-700 { color: #4ade80 !important; }
.admin-ui .text-red-500,
.admin-ui .text-red-600,
.admin-ui .text-red-700 { color: #fb7185 !important; }
.admin-ui .text-yellow-600,
.admin-ui .text-yellow-700,
.admin-ui .text-amber-600,
.admin-ui .text-amber-700 { color: #fbbf24 !important; }
.admin-ui .text-blue-500,
.admin-ui .text-blue-600,
.admin-ui .text-blue-700,
.admin-ui .text-sky-600,
.admin-ui .text-sky-700,
.admin-ui .text-cyan-600,
.admin-ui .text-cyan-700 { color: #55dcff !important; }
.admin-ui .text-purple-600,
.admin-ui .text-purple-700 { color: #c4b5fd !important; }

/* Dropdowns, modals and editor surfaces */
.admin-ui #user-dropdown {
    background: linear-gradient(155deg, #0b234c, #04122d) !important;
}

.admin-ui [class*="fixed inset-0"][class*="bg-black"],
.admin-ui #overlay,
.admin-ui #sidebar-overlay {
    background-color: rgba(0, 5, 18, 0.76) !important;
    backdrop-filter: blur(7px);
}

.admin-ui .blog-editor,
.admin-ui .rte-toolbar {
    color: #ffffff !important;
    background: rgba(2, 13, 39, 0.72) !important;
    border-color: var(--border) !important;
}

.admin-ui .blog-editor p,
.admin-ui .blog-editor li,
.admin-ui .blog-editor h1,
.admin-ui .blog-editor h2,
.admin-ui .blog-editor h3,
.admin-ui .blog-editor h4,
.admin-ui .blog-editor strong,
.admin-ui .blog-editor em,
.admin-ui .blog-editor blockquote {
    color: #ffffff !important;
}

.admin-ui .rte-btn { color: #91a8c4 !important; }
.admin-ui .rte-btn:hover { color: #55dcff !important; background: rgba(18, 186, 245, 0.11) !important; }

/* Homepage Hero editor mirrors the storefront presentation. */
.admin-ui .admin-hero-card {
    overflow: hidden;
    border-radius: 18px !important;
}

.admin-ui .admin-hero-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.admin-ui .admin-hero-card-head p {
    margin-bottom: 5px;
    color: #3bd3ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.admin-ui .admin-hero-card-head h3 {
    color: #eef7ff;
    font-size: 18px;
    font-weight: 800;
}

.admin-ui .admin-hero-card-head > div > span {
    display: block;
    margin-top: 4px;
    color: #7890ad;
    font-size: 11px;
}

.admin-ui .admin-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #69e4b6;
    background: rgba(20, 171, 114, .1);
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    white-space: nowrap;
}

.admin-ui .admin-hero-live i {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .1);
}

.admin-ui .admin-hero-preview {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    margin-bottom: 22px;
    color: #eef7ff;
    background:
        radial-gradient(circle at 75% 44%, #073b82 0, rgba(3, 22, 59, .75) 27%, transparent 55%),
        linear-gradient(110deg, #020817 0%, #03112c 48%, #02091c 100%);
    border: 1px solid rgba(91, 160, 229, .25);
    border-radius: 15px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 20px 45px rgba(0, 0, 0, .25);
}

.admin-ui .admin-hero-preview::after {
    content: "";
    position: absolute;
    top: 41%;
    right: -10%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1bc7ff, transparent);
    box-shadow: 0 0 18px #0da8ff;
    transform: rotate(-9deg);
    opacity: .55;
}

.admin-ui .admin-hero-preview-grid {
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(41, 155, 255, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 155, 255, .16) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to right, transparent, black 55%, transparent);
    transform: perspective(500px) rotateX(55deg) scale(1.5) translateY(28%);
}

.admin-ui .admin-hero-preview-inner {
    position: relative;
    z-index: 2;
    min-height: 360px;
    padding: 38px 42px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 28px;
}

.admin-ui .admin-hero-preview-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #76d9ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
}

.admin-ui .admin-hero-preview-badge i {
    width: 23px;
    height: 2px;
    flex: 0 0 auto;
    background: #16c5ff;
    box-shadow: 0 0 9px #16c5ff;
}

.admin-ui .admin-hero-preview-copy h4 {
    max-width: 440px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -.045em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.admin-ui .admin-hero-preview-copy > p {
    margin-top: 13px;
    color: #b8cbe3;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.admin-ui .admin-hero-preview-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #8fa5c0;
    font-size: 9px;
}

.admin-ui .admin-hero-preview-trust b {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #64d9ff;
    border: 1px solid #3ecdf8;
    border-radius: 7px 7px 10px 10px;
}

.admin-ui .admin-hero-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.admin-ui .admin-hero-preview-actions span {
    min-height: 40px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00152a;
    background: linear-gradient(135deg, #55e6ff, #0999ed);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 8px 25px rgba(0, 181, 255, .22);
}

.admin-ui .admin-hero-preview-actions .is-secondary {
    color: #cfe6fb;
    background: rgba(4, 25, 60, .65);
    border: 1px solid rgba(152, 199, 255, .28);
    box-shadow: none;
}

.admin-ui .admin-hero-preview-visual {
    position: relative;
    height: 250px;
    display: grid;
    place-items: center;
}

.admin-ui .admin-hero-preview-orbit {
    position: absolute;
    width: 250px;
    height: 170px;
    border: 1px solid rgba(68, 185, 255, .38);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 154, 255, .15);
    transform: rotate(-16deg);
}

.admin-ui .admin-hero-preview-shield {
    position: relative;
    z-index: 2;
    width: 145px;
    height: 180px;
    display: grid;
    place-content: center;
    text-align: center;
    background: linear-gradient(145deg, #0a397b, #03132d 55%, #0875be);
    border: 3px solid #58d5ff;
    clip-path: polygon(50% 0, 93% 17%, 88% 70%, 75% 88%, 50% 100%, 25% 88%, 12% 70%, 7% 17%);
    filter: drop-shadow(0 0 18px rgba(32, 182, 255, .48));
}

.admin-ui .admin-hero-preview-shield strong {
    color: #fff;
    font-size: 33px;
    line-height: 1;
    font-style: italic;
}

.admin-ui .admin-hero-preview-shield strong span {
    color: #5ddcff;
    font-size: 17px;
}

.admin-ui .admin-hero-preview-shield small {
    margin-top: 8px;
    color: #7fbde3;
    font-size: 7px;
    letter-spacing: .16em;
}

.admin-ui .admin-hero-fields {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.admin-ui .admin-hero-field {
    grid-column: span 2;
    min-width: 0;
}

.admin-ui .admin-hero-field-wide {
    grid-column: span 3;
}

.admin-ui .admin-hero-field label {
    display: block;
    margin-bottom: 7px;
    color: #c9d9ec;
    font-size: 11px;
    font-weight: 800;
}

.admin-ui .admin-hero-field input,
.admin-ui .admin-hero-field textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 12px;
}

.admin-ui .admin-hero-field textarea {
    min-height: 82px;
    resize: vertical;
}

.admin-ui .admin-hero-field p {
    margin-top: 6px;
    color: #627d9e;
    font-size: 9px;
}

/* Homepage stats editor and storefront-like live preview. */
.admin-ui .admin-stats-card {
    overflow: hidden;
    border-radius: 18px !important;
}

.admin-ui .admin-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.admin-ui .admin-stats-head > div > p {
    margin-bottom: 5px;
    color: #3bd3ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.admin-ui .admin-stats-head h3 {
    color: #eef7ff;
    font-size: 18px;
    font-weight: 800;
}

.admin-ui .admin-stats-head > div > span {
    display: block;
    margin-top: 4px;
    color: #7890ad;
    font-size: 11px;
}

.admin-ui .admin-stats-mode {
    min-width: 220px;
    padding: 11px 12px 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    background: rgba(7, 30, 62, .7);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-ui .admin-stats-mode span {
    display: grid;
    gap: 2px;
}

.admin-ui .admin-stats-mode b {
    color: #d8e8f8;
    font-size: 11px;
}

.admin-ui .admin-stats-mode small {
    color: #6f87a4;
    font-size: 8px;
}

.admin-ui .admin-stats-mode i {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
    background: #263d58;
    border-radius: 999px;
    transition: background .2s ease;
}

.admin-ui .admin-stats-mode i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #d8e8f8;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.admin-ui .admin-stats-mode input:checked + i {
    background: linear-gradient(135deg, #32ddff, #078eea);
    box-shadow: 0 0 18px rgba(18, 186, 245, .24);
}

.admin-ui .admin-stats-mode input:checked + i::after {
    transform: translateX(18px);
}

.admin-ui .admin-stats-preview {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    color: #eef7ff;
    background: linear-gradient(110deg, #03112a, #082553);
    border: 1px solid rgba(72, 154, 238, .32);
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

.admin-ui .admin-stats-preview-item {
    min-width: 0;
    padding: 5px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid rgba(102, 167, 231, .22);
}

.admin-ui .admin-stats-preview-item:last-child {
    border-right: 0;
}

.admin-ui .admin-stats-number {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #65dbff;
    background: rgba(24, 110, 208, .25);
    border: 1px solid rgba(92, 184, 255, .3);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
}

.admin-ui .admin-stats-preview-item div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.admin-ui .admin-stats-preview-item strong {
    overflow: hidden;
    color: #fff;
    font-size: clamp(17px, 2.2vw, 26px);
    line-height: 1.15;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ui .admin-stats-preview-item small {
    color: #8098b6;
    font-size: 9px;
}

.admin-ui .admin-stats-fields {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    transition: opacity .2s ease;
}

.admin-ui .admin-stats-fields .admin-hero-field {
    grid-column: auto;
}

.admin-ui .admin-stats-fields.is-disabled {
    opacity: .42;
}

.admin-ui .admin-stats-fields input:disabled {
    cursor: not-allowed;
}

.admin-ui .admin-stats-note {
    margin-top: 13px;
    color: #6f87a4;
    font-size: 9px;
    line-height: 1.6;
}

/* Login uses the same hero atmosphere as the redesigned storefront. */
.admin-ui > main.min-h-screen {
    background:
        radial-gradient(circle at 72% 35%, rgba(7, 59, 130, 0.8) 0, rgba(3, 22, 59, 0.54) 26%, transparent 52%),
        linear-gradient(110deg, #020817 0%, #03112c 48%, #02091c 100%) !important;
}

.admin-ui > main.min-h-screen > .pointer-events-none {
    opacity: .2 !important;
    background-image:
        linear-gradient(rgba(41, 155, 255, .2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 155, 255, .2) 1px, transparent 1px) !important;
}

.admin-ui > main.min-h-screen .bg-white\/90 {
    border-color: var(--border-strong) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .38), 0 0 45px rgba(18, 186, 245, .08);
}

.admin-ui .fade-in > p:last-child { color: #587594 !important; }

/* Motion and responsive polish */
.admin-ui main > div,
.admin-ui main > .page-section { animation: admin-page-in .4s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes admin-page-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .admin-ui *,
    .admin-ui *::before,
    .admin-ui *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 1023px) {
    .admin-ui .sidebar { box-shadow: 24px 0 60px rgba(0, 0, 0, .44); }
}

@media (max-width: 767px) {
    .admin-ui .admin-hero-card { padding: 18px !important; }
    .admin-ui .admin-hero-card-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .admin-ui .admin-hero-preview { min-height: 330px; }
    .admin-ui .admin-hero-preview-inner { min-height: 330px; padding: 30px 24px; grid-template-columns: 1fr; }
    .admin-ui .admin-hero-preview-visual { display: none; }
    .admin-ui .admin-hero-preview-copy h4 { font-size: 34px; }
    .admin-ui .admin-hero-fields { grid-template-columns: 1fr; }
    .admin-ui .admin-hero-field,
    .admin-ui .admin-hero-field-wide { grid-column: 1; }
    .admin-ui .admin-stats-card { padding: 18px !important; }
    .admin-ui .admin-stats-head { align-items: stretch; flex-direction: column; }
    .admin-ui .admin-stats-mode { min-width: 0; width: 100%; }
    .admin-ui .admin-stats-preview { grid-template-columns: 1fr; padding: 8px 16px; }
    .admin-ui .admin-stats-preview-item {
        padding: 14px 6px;
        border-right: 0;
        border-bottom: 1px solid rgba(102, 167, 231, .22);
    }
    .admin-ui .admin-stats-preview-item:last-child { border-bottom: 0; }
    .admin-ui .admin-stats-fields { grid-template-columns: 1fr; }
}
