
/* ===== GLOBAL TOKENS ===== */
:root,
[data-theme="light"] {
    --nc-yellow: #fff8f0;
    --nc-yellow-deep: #fde68a;
    --nc-black: #000;
    --nc-white: #fff;
    --nc-navy: #1e3a5f;
    --nc-gold: #d97706;
    --nc-ink: #0c1222;
    --nc-purple: #1e3a5f;
    --nc-purple-deep: #152a45;
    --nc-amber: #d97706;
    --nc-green: #22c55e;
    --nc-pink: #ec4899;
    --nc-cyan: #06b6d4;
    --nc-red: #ef4444;
    --nc-blue: #3b82f6;
    --nc-bg: #fff8f0;
    --nc-bg-surface: #ffffff;
    --nc-bg-alt: #fff4e6;
    --nc-text: #000000;
    --nc-text-mute: #475569;
    --nc-border: #000000;
    --nc-shadow: rgba(0, 0, 0, 1);
}

[data-theme="dark"] {
    --nc-bg: #05060a;
    --nc-bg-surface: #0e1116;
    --nc-bg-alt: #14181f;
    --nc-text: #f4fff8;
    --nc-text-mute: rgba(220, 255, 236, 0.62);
    --nc-border: rgba(163, 230, 53, 0.42);
    --nc-shadow: rgba(163, 230, 53, 0.75);
    --nc-lime: #a3e635;
    --nc-cyan: #06b6d4;
    --nc-green: #a3e635;
    --ads-glass-bg: #0e1116;
    --ads-glass-blur: none;
    --ads-bg-card: #0e1116;
    --ads-bg-input: #10141b;
    --ads-bg-primary: #05060a;
    --ads-bg-secondary: #05060a;
    --ads-bg-tertiary: #0e1116;
}

/* ===== RESET / BODY ===== */
html[data-theme], body {
    background: var(--nc-bg) !important;
    color: var(--nc-text);
    transition: none !important;
}
html, body {
    transition: none !important;
}
html, body {
    font-family: 'IBM Plex Sans Thai', 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
    margin: 0; padding: 0;
}
html {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: auto !important;
}
html, body, .dashboard-wrapper, .main-wrapper, .main-content, .sidebar, .sidebar-nav {
    scroll-behavior: auto !important;
}
html[data-theme="light"],
html[data-theme="dark"] {
    color-scheme: normal;
}

body.nc-body {
    min-height: 100vh;
}

/* ===== LANDING NAV (Guest) ===== */
.landing-nav {
    position: sticky;
    top: 12px;
    z-index: 1000;
    margin: 12px 16px 0;
}
.landing-nav .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    background: var(--nc-bg-surface);
    border: 3px solid var(--nc-border);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--nc-border);
}

.landing-nav .nav-logo {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    text-decoration: none !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--nc-text) !important;
    flex-shrink: 0;
}
.landing-nav .nav-logo-img {
    height: 28px;
    display: none; /* ซ่อน img โลโก้เก่า ใช้ text แทน */
}
.landing-nav .nav-logo::before {
    content: "BlazySmm";
    color: var(--nc-text);
}
html[data-theme="light"] .landing-nav .nav-logo::before,
html[data-theme="light"] .sidebar-logo-expanded::before,
html[data-theme="light"] .mobile-header-logo::before {
    color: #0c1222 !important;
    -webkit-text-fill-color: #0c1222 !important;
    background: none !important;
}
.landing-nav .nav-logo::after {
    content: ".com";
    background: var(--nc-purple);
    color: #fff;
    padding: 1px 7px;
    border: 2px solid var(--nc-border);
    border-radius: 5px;
    display: inline-block;
    transform: rotate(-3deg);
    font-size: 14px;
    margin-left: 4px;
}

.landing-nav .nav-links {
    display: flex;
    gap: 18px;
    flex: 1;
    justify-content: center;
    align-items: flex-end;
}
.landing-nav .nav-link {
    text-decoration: none !important;
    color: var(--nc-text) !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
}
.landing-nav .nav-link:where(html.pp-desktop-hover *):hover {
    background: var(--nc-yellow-deep);
}
.landing-nav .nav-link.active {
    background: var(--nc-black);
    color: #fff !important;
}
.landing-nav .nav-link-app {
    background: var(--nc-green);
    color: #fff !important;
    border: 2px solid var(--nc-border);
    padding: 5px 10px;
    font-weight: 700;
}

.landing-nav .nav-cta {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.btn-ghost {
    padding: 8px 14px !important;
    background: var(--nc-bg-surface) !important;
    color: var(--nc-text) !important;
    border: 2px solid var(--nc-border) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-ghost:where(html.pp-desktop-hover *):hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--nc-border);
}

.btn-primary-landing {
    padding: 8px 14px !important;
    background: var(--nc-black) !important;
    color: #fff !important;
    border: 2px solid var(--nc-border) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 3px 3px 0 var(--nc-purple) !important;
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary-landing:where(html.pp-desktop-hover *):hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--nc-purple) !important;
    color: #fff !important;
}

/* Theme Toggle */
.guest-theme-toggle, .theme-toggle {
    width: 42px; height: 26px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}
.guest-theme-toggle .toggle-track {
    position: relative;
    width: 100%; height: 100%;
}
.guest-theme-toggle .toggle-thumb {
    position: absolute;
    top: 1px; left: 1px;
    width: 20px; height: 20px;
    background: var(--nc-purple);
    border: 1.5px solid var(--nc-border);
    border-radius: 50%;
    transition: transform 0.2s;
}
[data-theme="light"] .guest-theme-toggle .toggle-thumb {
    transform: translateX(16px);
    background: var(--nc-amber);
}
.guest-theme-toggle .toggle-icon-dark,
.guest-theme-toggle .toggle-icon-light {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--nc-text);
    pointer-events: none;
}
.guest-theme-toggle .toggle-icon-dark { left: 6px; }
.guest-theme-toggle .toggle-icon-light { right: 6px; }

.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--nc-text);
}

/* Language Selector */
.gtranslate-wrapper { position: relative; }
.custom-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--nc-text);
    cursor: pointer;
    white-space: nowrap;
}
.custom-lang-btn .lang-icon { font-size: 14px; }
.custom-lang-btn .lang-arrow { font-size: 14px; transition: transform 0.2s; }
.custom-lang-btn.open .lang-arrow { transform: rotate(180deg); }

.custom-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--nc-bg-surface);
    border: 2.5px solid var(--nc-border);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--nc-border);
    padding: 6px;
    display: none;
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
}
.custom-lang-dropdown.show { display: block; }
.custom-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--nc-text);
    font-weight: 600;
    transition: background 0.12s;
}
.custom-lang-item .lang-name {
    color: inherit;
}
html[data-theme="light"] .custom-lang-item,
html[data-theme="light"] .custom-lang-item .lang-name {
    color: #0c1222 !important;
}
html[data-theme="dark"] .custom-lang-item,
html[data-theme="dark"] .custom-lang-item .lang-name {
    color: #ffffff !important;
}
.custom-lang-item:where(html.pp-desktop-hover *):hover { background: var(--nc-yellow-deep); }
html[data-theme="light"] .custom-lang-item:where(html.pp-desktop-hover *):hover,
html[data-theme="light"] .custom-lang-item:where(html.pp-desktop-hover *):hover .lang-name {
    background: #fff8f0 !important;
    color: #0c1222 !important;
}
.custom-lang-item.active { background: var(--nc-purple); color: #fff; }
html[data-theme="light"] .custom-lang-item.active,
html[data-theme="dark"] .custom-lang-item.active,
html[data-theme="light"] .custom-lang-item.active .lang-name,
html[data-theme="dark"] .custom-lang-item.active .lang-name {
    background: #1e3a5f !important;
    color: #ffffff !important;
}
.custom-lang-item.active .check-icon { display: inline-block; }
.custom-lang-item .check-icon { display: none; margin-left: auto; }
.custom-lang-item .flag-icon { font-size: 16px; border-radius: 2px; }

/* ===== DASHBOARD LAYOUT (Logged In) ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--nc-bg);
    position: relative;
}

/* Background decoration (simple dotted grid) */
.aurora-bg-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}
[data-theme="dark"] .aurora-bg-container {
    background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
}
.aurora-wave, .aurora-glow-orb { display: none; } /* ปิดของเก่า */

/* Sidebar */
/* ===== LIGHT MODE FIXES ===== */
html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar-header,
html[data-theme="light"] .sidebar-footer {
    background: #ffffff !important;
    color: #0c1222 !important;
}
html[data-theme="light"] .sidebar .nav-link,
html[data-theme="light"] .sidebar-user-name,
html[data-theme="light"] .sidebar-logo-expanded,
html[data-theme="light"] .page-title-text {
    color: #0c1222 !important;
}
html[data-theme="light"] .sidebar .nav-link i,
html[data-theme="light"] .sidebar-toggle {
    color: #0c1222 !important;
}
html[data-theme="light"] .sidebar .nav-item.active .nav-link {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 3px 3px 0 #d97706 !important;
}
html[data-theme="light"] .sidebar .nav-item.active .nav-link i {
    color: #ffffff !important;
}
html[data-theme="light"] .top-header {
    background: #ffffff !important;
    color: #0c1222 !important;
}
html[data-theme="light"] .user-dropdown-btn,
html[data-theme="light"] .user-dropdown-menu {
    background: #ffffff !important;
    color: #0c1222 !important;
}
html[data-theme="light"] .user-name,
html[data-theme="light"] .user-email,
html[data-theme="light"] .dropdown-item {
    color: #0c1222 !important;
}
html[data-theme="light"] .sidebar-user-card {
    background: #fff4e6 !important;
    border-color: #000000 !important;
}
html[data-theme="light"] .sidebar-topup-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 4px 4px 0 #d97706 !important;
}
html[data-theme="light"] .sidebar-topup-btn:where(html.pp-desktop-hover *):hover {
    box-shadow: 6px 6px 0 #d97706 !important;
}
html[data-theme="light"] .sidebar-topup-btn i,
html[data-theme="light"] .sidebar-topup-btn span {
    color: #ffffff !important;
}

/* Currency dropdown - light mode */
html[data-theme="light"] .header-balance {
    background: linear-gradient(135deg, #1e3a5f, #d97706) !important;
    background-color: #1e3a5f !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 3px 3px 0 #000000 !important;
}
html[data-theme="light"] .header-balance span,
html[data-theme="light"] .header-balance i {
    color: #ffffff !important;
}
html[data-theme="light"] .dropdown-currencies .dropdown-menu {
    background: #ffffff !important;
    border-color: #0c1222 !important;
}
html[data-theme="light"] .dropdown-currencies .dropdown-menu a,
html[data-theme="light"] .dropdown-currencies .dropdown-menu a span,
html[data-theme="light"] .dropdown-currencies .currency-code,
html[data-theme="light"] .dropdown-currencies .currency-symbol {
    color: #0c1222 !important;
}
html[data-theme="light"] .dropdown-currencies .dropdown-menu a:where(html.pp-desktop-hover *):hover {
    background: #fff8f0 !important;
}

/* Force user dropdown to show when open */
.user-dropdown.open .user-dropdown-menu { 
    display: block !important; 
}

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    box-sizing: border-box;
    background: var(--nc-bg-surface);
    border-right: 3px solid var(--nc-border);
    box-shadow: 6px 0 0 var(--nc-border);
    z-index: 1010;
    transition: transform 0.25s, width 0.25s;
    display: flex;
    flex-direction: column;
}

.sidebar-preload-collapsed .sidebar,
.sidebar.collapsed {
    width: 72px;
}
.sidebar.collapsed .sidebar-logo-expanded,
.sidebar.collapsed .nav-text {
    display: none;
}
.sidebar.collapsed .sidebar-logo-collapsed {
    display: flex !important;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 3px solid var(--nc-border);
    gap: 8px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex: 1;
    min-width: 0;
}
.sidebar-logo-expanded {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--nc-text) !important;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sidebar-logo-expanded::before {
    content: "BlazySmm";
}
.sidebar-logo-expanded::after {
    content: ".com";
    background: var(--nc-purple);
    color: #fff;
    padding: 1px 6px;
    border: 2px solid var(--nc-border);
    border-radius: 5px;
    display: inline-block;
    transform: rotate(-3deg);
    font-size: 12px;
}
.sidebar-logo-expanded img,
.sidebar-logo-collapsed img,
.logo-festival-wrap,
.fv-el {
    display: none !important;
}
.sidebar-logo-collapsed {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.sidebar-logo-collapsed::before {
    content: "B.";
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: var(--nc-purple);
    border: 2px solid var(--nc-border);
    border-radius: 6px;
    padding: 2px 6px;
}

.sidebar-toggle {
    width: 30px; height: 30px;
    border: 2px solid var(--nc-border);
    background: var(--nc-bg-surface);
    color: var(--nc-text);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    padding: 0;
}
.sidebar-toggle:where(html.pp-desktop-hover *):hover { background: var(--nc-yellow-deep); }
.sidebar.collapsed .sidebar-toggle i { transform: rotate(180deg); }
.sidebar-preload-collapsed .sidebar .sidebar-toggle i { transform: rotate(180deg); }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 8px;
    overscroll-behavior: contain;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-item { margin: 0; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none !important;
    color: var(--nc-text) !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden !important;
    position: relative;
    transition: none !important;
}
.dashboard-wrapper .sidebar .nav-link,
.sidebar .nav-link {
    overflow: hidden !important;
    position: relative !important;
    transition: none !important;
    contain: layout;
}
.sidebar .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: none;
    background: linear-gradient(135deg, #fde68a, #fdba74);
}
html[data-theme="dark"] .sidebar .nav-link::before {
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.42), rgba(6, 182, 212, 0.32));
}
.sidebar .nav-link:hover::before,
.sidebar .nav-link:where(html.pp-desktop-hover *):hover::before {
    opacity: 1;
}
.sidebar .nav-item.active .nav-link::before {
    opacity: 0 !important;
}
.sidebar .nav-link::after,
.dashboard-wrapper .sidebar .nav-link::after,
.dashboard-wrapper .nav-link::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    transition: none !important;
}
.nav-link i,
.nav-link .fp-nav-mark,
.nav-link .nav-text,
.nav-link span {
    position: relative;
    z-index: 1;
}
.nav-link i,
.nav-link .fp-nav-mark {
    font-size: 18px;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transform-box: fill-box;
    backface-visibility: hidden;
}
@keyframes sidebarPopSpin {
    0% { transform: scale(1) rotate(0deg); }
    40% { transform: scale(1.14) rotate(-10deg); }
    70% { transform: scale(0.97) rotate(4deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.dashboard-wrapper .sidebar .nav-link:hover i,
.dashboard-wrapper .sidebar .nav-link:hover .fp-nav-mark,
.sidebar .nav-link:hover i,
.sidebar .nav-link:hover .fp-nav-mark {
    animation: sidebarPopSpin 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.nav-link:where(html.pp-desktop-hover *):hover {
    border-color: var(--nc-border);
}
.nav-item.active .nav-link {
    background: var(--nc-black);
    color: #fff !important;
    border-color: var(--nc-border);
    box-shadow: 3px 3px 0 var(--nc-purple);
}

.nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar-footer {
    border-top: 3px solid var(--nc-border);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--nc-bg-surface);
}
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--nc-bg-alt, rgba(30, 58, 95,0.08));
    border: 2px solid var(--nc-border);
    border-radius: 10px;
}
[data-theme="dark"] .sidebar-user-card {
    background: rgba(30, 58, 95,0.15);
}
.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--nc-purple);
    color: #fff;
    border: 2px solid var(--nc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-user-avatar.has-img, .mobile-user-avatar.has-img {
    padding: 0;
    background: #14181f;
}
.sidebar-user-avatar img, .mobile-user-avatar img, .pp-hd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.sidebar-user-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.1px;
}
.sidebar-user-balance {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--nc-green);
    margin-top: 1px;
}
.sidebar-user-balance i { font-size: 13px; }

.sidebar-topup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--nc-green);
    color: #fff !important;
    border: 2px solid var(--nc-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 3px 3px 0 var(--nc-border);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sidebar-topup-btn:where(html.pp-desktop-hover *):hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--nc-border);
}
.sidebar-topup-btn i { font-size: 18px; }

/* Collapsed sidebar - hide text, center icons */
.sidebar.collapsed .sidebar-footer { padding: 8px; }
.sidebar.collapsed .sidebar-user-card {
    padding: 6px;
    justify-content: center;
}
.sidebar.collapsed .sidebar-user-info { display: none; }
.sidebar.collapsed .sidebar-topup-btn {
    padding: 10px;
}
.sidebar.collapsed .sidebar-topup-btn .nav-text { display: none; }

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    transition: margin-left 0.25s;
    max-width: calc(100% - 240px);
    overflow-x: clip;
    overflow-y: visible;
}
.sidebar.collapsed ~ .main-wrapper,
.sidebar-preload-collapsed .main-wrapper {
    margin-left: 72px;
    max-width: calc(100% - 72px);
}

/* Prevent stray elements from creating horizontal scroll */
html, body, .dashboard-wrapper {
    overflow-x: hidden !important;
    max-width: 100%;
    box-sizing: border-box;
}
body, body.nc-body, .dashboard-wrapper {
    overflow-y: visible !important;
    scrollbar-gutter: auto;
}
.dashboard-wrapper iframe[style*="block"],
body > iframe,
body > div[style*="position: fixed"][style*="right: 0"]:not([id]):not([class]) {
    display: none !important;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: var(--nc-bg-surface);
    border-bottom: 3px solid var(--nc-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--nc-border);
    background: var(--nc-bg-surface);
    color: var(--nc-text);
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ===== BREADCRUMBS (replaces plain page title) ===== */
.header-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 4px;
}

/* Home icon — Brutalist navy-gold gradient button */
.breadcrumb-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #1e3a5f 0%, #d97706 100%);
    color: #ffffff;
    border: 2px solid var(--nc-border);
    border-radius: 8px;
    box-shadow: 2.5px 2.5px 0 var(--nc-border);
    text-decoration: none !important;
    transition: transform .12s ease, box-shadow .12s ease;
    flex-shrink: 0;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}
.breadcrumb-home i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 17px;
    font-style: normal;
}
.breadcrumb-home:where(html.pp-desktop-hover *):hover {
    transform: translate(-1px, -1px);
    box-shadow: 3.5px 3.5px 0 #fbbf24;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="dark"] .breadcrumb-home {
    border: 1.5px solid #ffffff;
    box-shadow: 2.5px 2.5px 0 rgba(30, 58, 95,0.55);
}
html[data-theme="dark"] .breadcrumb-home:where(html.pp-desktop-hover *):hover {
    box-shadow: 3.5px 3.5px 0 rgba(251,191,36,0.7);
}

/* Separator chevron */
.breadcrumb-sep {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-size: 20px;
    font-style: normal;
    flex-shrink: 0;
    opacity: 0.7;
}
html[data-theme="dark"] .breadcrumb-sep {
    color: rgba(255,255,255,0.4) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.4) !important;
}

/* Parent link (for nested pages) */
.breadcrumb-parent {
    font-family: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    padding: 3px 4px;
    border-radius: 5px;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}
.breadcrumb-parent:where(html.pp-desktop-hover *):hover {
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f !important;
    background: rgba(30, 58, 95,0.08);
}
html[data-theme="dark"] .breadcrumb-parent {
    color: rgba(255,255,255,0.6) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.6) !important;
}
html[data-theme="dark"] .breadcrumb-parent:where(html.pp-desktop-hover *):hover {
    color: #fde68a !important;
    -webkit-text-fill-color: #fde68a !important;
    background: rgba(30, 58, 95,0.2);
}

/* Current page — bold + pulsing amber dot */
.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: var(--nc-text);
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1;
}
.breadcrumb-current::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251,191,36,0.25), 0 0 10px rgba(251,191,36,0.6);
    animation: bcPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
html[data-theme="light"] .breadcrumb-current,
html:not([data-theme="dark"]) .breadcrumb-current {
    color: #0c1222 !important;
    -webkit-text-fill-color: #0c1222 !important;
}
html[data-theme="dark"] .breadcrumb-current {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
@keyframes bcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.85; }
}

/* Legacy fallback — preserve for pages still using plain page-title-text */
.page-title-text {
    font-size: 15px;
    font-weight: 900;
    color: var(--nc-text);
    letter-spacing: -0.01em;
    font-family: 'Space Grotesk', 'IBM Plex Sans Thai', sans-serif;
}
@media (max-width: 768px) {
    .header-page-title { display: none; }
}

.header-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--nc-green);
    color: #fff !important;
    border: 2px solid var(--nc-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 3px 3px 0 var(--nc-border);
    cursor: pointer;
    font-family: inherit;
}
.header-balance i { font-size: 16px; }

.dropdown-currencies { position: relative; }
.dropdown-currencies .dropdown-menu {
    display: none;
    background: var(--nc-bg-surface);
    border: 2.5px solid var(--nc-border);
    border-radius: 10px;
    box-shadow: 5px 5px 0 var(--nc-border);
    padding: 6px;
    min-width: 160px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1001;
    list-style: none;
}
.dropdown-currencies.open .dropdown-menu { display: block !important; }
.dropdown-currencies .dropdown-menu a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--nc-text) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.dropdown-currencies .dropdown-menu a:where(html.pp-desktop-hover *):hover { background: var(--nc-yellow-deep); }

/* User Dropdown */
.user-dropdown { position: relative; }
.user-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 4px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--nc-text);
}
.user-avatar {
    width: 28px; height: 28px;
    background: var(--nc-purple);
    color: #fff;
    border: 2px solid var(--nc-border);
    border-radius: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--nc-bg-surface);
    border: 2.5px solid var(--nc-border);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--nc-border);
    padding: 6px;
    display: none;
    z-index: 1001;
}
.user-dropdown.open .user-dropdown-menu { display: block !important; }
.dropdown-header {
    padding: 10px 12px;
    border-bottom: 2px dashed rgba(0,0,0,0.2);
    margin-bottom: 6px;
}
.dropdown-header .user-name {
    display: block;
    font-weight: 700;
    color: var(--nc-text);
    font-size: 14px;
}
.dropdown-header .user-email {
    display: block;
    font-size: 11px;
    color: var(--nc-text-mute);
}
.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: var(--nc-text) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
}
.dropdown-item:where(html.pp-desktop-hover *):hover { background: var(--nc-yellow-deep); }

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 28px 28px 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.main-wrapper {
    min-width: 0;
}

.main-footer {
    padding: 16px 20px;
    border-top: 3px solid var(--nc-border);
    text-align: center;
    font-size: 12px;
    color: var(--nc-text-mute);
    background: var(--nc-bg-surface);
    font-weight: 600;
}
.footer-version-mini {
    background: var(--nc-black);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1005;
    display: none;
}
.sidebar-overlay.active { display: block; }

/* ===== MOBILE HEADER + BOTTOM NAV ===== */
.mobile-header-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1020;
    background: var(--nc-bg-surface);
    border-bottom: 3px solid var(--nc-border);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
html[data-theme="light"] .mobile-header-bar {
    background: #fff8f0 !important;
    border-bottom-color: #0c1222 !important;
}
html[data-theme="dark"] .mobile-header-bar {
    background: #0c1222 !important;
    border-bottom-color: #ffffff !important;
}
.mobile-header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--nc-text) !important;
    position: relative;
    z-index: 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
}
.mobile-header-logo::before {
    content: "BlazySmm";
}
.mobile-header-logo::after {
    content: ".com";
    background: var(--nc-purple);
    color: #fff;
    padding: 0 4px;
    border: 1.5px solid var(--nc-border);
    border-radius: 4px;
    margin-left: -1px;
    transform: none;
    display: inline-block;
    font-size: 9px;
    line-height: 1.35;
    flex-shrink: 0;
}

/* Light theme: BlazySmm = ink, .com = gold */
html[data-theme="light"] .mobile-header-logo {
    color: #0c1222 !important;
}
html[data-theme="light"] .mobile-header-logo::before {
    color: #0c1222 !important;
}
html[data-theme="light"] .mobile-header-logo::after {
    background: #d97706 !important;
    color: #fff !important;
    border-color: #0c1222 !important;
}

/* Dark theme: BlazySmm = white, .com = purple vivid */
html[data-theme="dark"] .mobile-header-logo,
html[data-theme="dark"] .mobile-header-logo::before {
    color: #ffffff !important;
}
html[data-theme="dark"] .mobile-header-logo::after {
    background: #1e3a5f !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.mobile-logo-icon, .mobile-header-logo .logo-festival-wrap { display: none !important; }

.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-header-balance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #22c55e !important;
    color: #fff !important;
    border: 2px solid #0c1222 !important;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}
.mobile-header-balance span,
.mobile-header-balance i {
    color: #fff !important;
}
html[data-theme="light"] .mobile-header-balance,
html[data-theme="dark"] .mobile-header-balance {
    background: #22c55e !important;
    color: #fff !important;
    border-color: #0c1222 !important;
}
html[data-theme="light"] .mobile-header-balance span,
html[data-theme="light"] .mobile-header-balance i,
html[data-theme="dark"] .mobile-header-balance span,
html[data-theme="dark"] .mobile-header-balance i {
    color: #fff !important;
}
.mobile-hamburger-btn {
    width: 36px; height: 36px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 7px;
    color: var(--nc-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}
html[data-theme="light"] .mobile-hamburger-btn {
    background: #ffffff !important;
    border-color: #0c1222 !important;
    color: #0c1222 !important;
}
html[data-theme="light"] .mobile-hamburger-btn i {
    color: #0c1222 !important;
}
html[data-theme="dark"] .mobile-hamburger-btn {
    background: #0c1222 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
html[data-theme="dark"] .mobile-hamburger-btn i {
    color: #ffffff !important;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--nc-bg-surface);
    border-top: 3px solid var(--nc-border);
    padding: 6px 10px;
    align-items: center;
    justify-content: space-around;
}
html[data-theme="light"] .mobile-bottom-nav {
    background: #fff8f0 !important;
    border-top-color: #0c1222 !important;
}
html[data-theme="dark"] .mobile-bottom-nav {
    background: #0c1222 !important;
    border-top-color: #ffffff !important;
}
html[data-theme="light"] .mobile-nav-item,
html[data-theme="light"] .mobile-nav-item i {
    color: #0c1222 !important;
}
html[data-theme="light"] .mobile-nav-item.active {
    background: #1e3a5f !important;
    box-shadow: 2px 2px 0 #d97706 !important;
}
html[data-theme="light"] .mobile-nav-item.active,
html[data-theme="light"] .mobile-nav-item.active i,
html[data-theme="light"] .mobile-nav-item.active span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-theme="dark"] .mobile-nav-item,
html[data-theme="dark"] .mobile-nav-item i {
    color: #ffffff !important;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    text-decoration: none !important;
    color: var(--nc-text) !important;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
}
.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item.active {
    background: var(--nc-black);
    color: #fff !important;
}
.mobile-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transform: translateY(-14px);
    font-size: 10px;
    font-weight: 600;
    color: var(--nc-text);
}
.mobile-nav-center-btn {
    width: 48px; height: 48px;
    background: #1e3a5f;
    color: #fff !important;
    border: 3px solid var(--nc-border);
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 3px 3px 0 #d97706;
}

/* Mobile Slide Menu */
.mobile-slide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1100;
}
.mobile-slide-overlay.active { display: block; }

.mobile-slide-menu {
    position: fixed;
    top: 0; right: -320px; bottom: 0;
    width: 300px;
    background: var(--nc-bg-surface);
    border-left: 3px solid var(--nc-border);
    z-index: 1110;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 90px;
    pointer-events: none;
}
.mobile-slide-menu.active {
    right: 0;
    pointer-events: auto;
}
.mobile-slide-header {
    padding: 16px;
    border-bottom: 3px solid var(--nc-border);
    position: relative;
}
.mobile-slide-close {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--nc-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.mobile-slide-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
}
.mobile-user-avatar {
    width: 40px; height: 40px;
    background: var(--nc-purple);
    color: #fff;
    border: 2.5px solid var(--nc-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
}
.mobile-user-name {
    font-weight: 700;
    color: var(--nc-text);
    font-size: 14px;
}
.mobile-user-email {
    font-size: 11px;
    color: var(--nc-text-mute);
}
.mobile-slide-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}
.mobile-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 2.5px solid var(--nc-border);
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 3px 3px 0 var(--nc-border);
}
.mobile-quick-btn-primary {
    background: var(--nc-black);
    color: #fff !important;
}
.mobile-quick-btn-success {
    background: var(--nc-green);
    color: #fff !important;
}
.mobile-slide-nav { padding: 12px; }
.mobile-menu-label {
    font-size: 10px;
    color: var(--nc-text-mute);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 4px;
    margin-top: 4px;
}
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none !important;
    color: var(--nc-text) !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}
.mobile-menu-item:where(html.pp-desktop-hover *):hover { background: var(--nc-yellow-deep); }
.mobile-menu-item.active {
    background: var(--nc-black);
    color: #fff !important;
}
.mobile-menu-item i { font-size: 18px; }
.mobile-menu-divider {
    height: 2px;
    background: var(--nc-border);
    margin: 8px 0;
    opacity: 0.3;
}
.mobile-lang-selector-logged .mobile-lang-btn-logged {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nc-text);
    cursor: pointer;
}

/* Mobile Lang/Currency Bottom Sheets */
.mobile-lang-overlay, .mobile-currency-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
}
.mobile-lang-overlay.active,
.mobile-currency-overlay.active { display: block; }

.mobile-lang-dropdown, .mobile-currency-sheet {
    display: none;
    position: fixed;
    left: 12px; right: 12px; bottom: 90px;
    background: var(--nc-bg-surface);
    border: 3px solid var(--nc-border);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--nc-border);
    z-index: 1210;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 16px;
}
.mobile-lang-dropdown.active,
.mobile-currency-sheet.active { display: block; }
.mobile-lang-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 12px;
    border-bottom: 2px dashed rgba(0,0,0,0.2);
    margin-bottom: 8px;
}
.mobile-lang-dropdown-title {
    font-weight: 700;
    color: var(--nc-text);
    font-size: 15px;
}
.mobile-lang-close {
    width: 32px; height: 32px;
    background: var(--nc-bg-surface);
    border: 2px solid var(--nc-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--nc-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
html[data-theme="light"] .mobile-lang-close,
html[data-theme="light"] .mobile-lang-close i {
    background: #ffffff !important;
    border-color: #0c1222 !important;
    color: #0c1222 !important;
    -webkit-text-fill-color: #0c1222 !important;
}
html[data-theme="dark"] .mobile-lang-close,
html[data-theme="dark"] .mobile-lang-close i {
    background: #0c1222 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--nc-text) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.lang-option .lang-name {
    color: inherit !important;
}

/* Light mode override for lang-option (including gtranslate variant) */
html[data-theme="light"] .lang-option,
html[data-theme="light"] .lang-option .lang-name,
html[data-theme="light"] .lang-option .lang-info,
html[data-theme="light"] .gtranslate-mobile-option,
html[data-theme="light"] .gtranslate-mobile-option .lang-name,
html[data-theme="light"] .gtranslate-mobile-option .lang-info {
    color: #0c1222 !important;
    -webkit-text-fill-color: #0c1222 !important;
}

/* Dark mode */
html[data-theme="dark"] .lang-option,
html[data-theme="dark"] .lang-option .lang-name,
html[data-theme="dark"] .lang-option .lang-info,
html[data-theme="dark"] .gtranslate-mobile-option,
html[data-theme="dark"] .gtranslate-mobile-option .lang-name,
html[data-theme="dark"] .gtranslate-mobile-option .lang-info {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.lang-option:where(html.pp-desktop-hover *):hover { background: var(--nc-yellow-deep); }
html[data-theme="light"] .lang-option:where(html.pp-desktop-hover *):hover,
html[data-theme="light"] .gtranslate-mobile-option:where(html.pp-desktop-hover *):hover {
    background: #fff8f0 !important;
}
html[data-theme="light"] .lang-option:where(html.pp-desktop-hover *):hover .lang-name,
html[data-theme="light"] .gtranslate-mobile-option:where(html.pp-desktop-hover *):hover .lang-name {
    color: #0c1222 !important;
    -webkit-text-fill-color: #0c1222 !important;
}

.lang-option.active {
    background: var(--nc-purple);
    color: #fff !important;
}
html[data-theme="light"] .lang-option.active,
html[data-theme="light"] .gtranslate-mobile-option.active,
html[data-theme="dark"] .lang-option.active,
html[data-theme="dark"] .gtranslate-mobile-option.active {
    background: #1e3a5f !important;
    color: #ffffff !important;
}
html[data-theme="light"] .lang-option.active .lang-name,
html[data-theme="light"] .gtranslate-mobile-option.active .lang-name,
html[data-theme="dark"] .lang-option.active .lang-name,
html[data-theme="dark"] .gtranslate-mobile-option.active .lang-name {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.lang-option.active .lang-check { display: inline-block; }
.lang-option .lang-check { display: none; margin-left: auto; }
.lang-option .lang-flag {
    border-radius: 3px;
    font-size: 16px;
}
.lang-option .lang-info { flex: 1; }

.mobile-currency-sheet-handle {
    width: 40px; height: 4px;
    background: var(--nc-border);
    border-radius: 100px;
    margin: 0 auto 12px;
    opacity: 0.3;
}
.mobile-currency-sheet::before {
    content: "เลือกสกุลเงิน";
    display: block;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--nc-text);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px dashed rgba(30, 58, 95, 0.25);
}
.mobile-currency-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.mobile-currency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    background: var(--nc-bg);
    border: 2.5px solid var(--nc-border);
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--nc-border);
    cursor: pointer;
    font-weight: 700;
    color: var(--nc-text);
    text-decoration: none !important;
    transition: transform 0.12s, box-shadow 0.12s;
}
.mobile-currency-item:where(html.pp-desktop-hover *):hover,
.mobile-currency-item:active {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--nc-purple);
}
.mobile-currency-item.active {
    background: var(--nc-purple);
    color: #fff;
    box-shadow: 2px 2px 0 var(--nc-yellow);
}
.mobile-currency-item .currency-code {
    font-size: 13px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
}
.mobile-currency-item .currency-symbol {
    font-size: 20px;
    font-weight: 800;
    opacity: 0.85;
}

/* ===== GUEST LANDING FOOTER ===== */
/* ใช้ !important เพื่อกัน PerfectPanel theme CSS override + hardcode สีไม่ให้หาย */
.landing-footer {
    background: #000 !important;
    color: #fff !important;
    padding: 60px 20px 24px !important;
    margin-top: 60px !important;
    position: relative;
}
.landing-footer * {
    color: inherit;
}
[data-theme="light"] .landing-footer,
[data-theme="dark"] .landing-footer {
    background: #000 !important;
    color: #fff !important;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand { }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.footer-logo img { display: none; } /* hide old logo img */
.footer-logo-text {
    color: transparent !important;
    font-size: 0 !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.footer-logo-text::before {
    content: "BlazySmm" !important;
    font-size: 22px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    display: inline-block !important;
    background: transparent !important;
}
.footer-logo-text::after {
    content: ".com" !important;
    background: #1e3a5f !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    padding: 1px 7px !important;
    border: 2px solid #ffffff !important;
    border-radius: 5px !important;
    margin-left: 4px !important;
    transform: rotate(-3deg) !important;
    display: inline-block !important;
    font-size: 14px !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
}

/* Light theme footer logo — footer is always black, ink fill vanished. */
html[data-theme="light"] .footer-logo-text::before,
html[data-theme="light"] .landing-footer .footer-logo-text::before {
    color: #ffffff !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(135deg, #fbbf24, #22d3ee) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
html[data-theme="light"] .footer-logo-text::after,
html[data-theme="light"] .landing-footer .footer-logo-text::after {
    background: linear-gradient(135deg, #d97706, #06b6d4) !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    border-color: #ffffff !important;
}
.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
    font-weight: 500;
}
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #1e3a5f;
    color: #fff !important;
    border: 2.5px solid #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 4px 4px 0 #fff;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 20px;
}
.footer-cta-btn:where(html.pp-desktop-hover *):hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #fff;
    color: #fff !important;
}
.footer-social-links {
    display: flex;
    gap: 8px;
}
.footer-social-links a {
    width: 36px; height: 36px;
    border: 2px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: background 0.15s;
}
.footer-social-links a:where(html.pp-desktop-hover *):hover {
    background: #1e3a5f;
}

.footer-col-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b !important;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 500;
    transition: color 0.15s;
}
.footer-links a:where(html.pp-desktop-hover *):hover {
    color: #f59e0b !important;
}
.footer-link-highlight {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.footer-quick-links {
    padding: 20px 0;
    border-top: 2px dashed rgba(255,255,255,0.2);
    border-bottom: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.quick-links-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f59e0b;
    color: #000 !important;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.quick-links-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.quick-links-items a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.quick-links-items a:where(html.pp-desktop-hover *):hover { color: #f59e0b !important; }
.quick-links-divider { opacity: 0.4; }

.footer-trust {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 2px dashed rgba(255,255,255,0.2);
    margin-bottom: 20px;
}
.trust-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.payment-strip {
    max-height: 32px;
    filter: none;
}
.security-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.security-badge i { color: #22c55e !important; font-size: 14px; }

.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}
.footer-bottom .footer-copyright {
    margin: 0 0 6px;
    font-weight: 600;
}
.footer-bottom .footer-disclaimer {
    font-size: 10px;
    opacity: 0.7;
    margin: 0;
}
.footer-version {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* ===== LANDING HAMBURGER + MOBILE MENU ===== */
.landing-hamburger {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.landing-hamburger:where(html.pp-desktop-hover *):hover { opacity: 0.8; }

.landing-mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.landing-mobile-overlay.active { display: block; }

.landing-mobile-menu {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100vh;
    background: var(--nc-bg-surface, #fff);
    border-left: 3px solid var(--nc-border, #000);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.landing-mobile-menu.active { right: 0; }

[data-theme="dark"] .landing-mobile-menu {
    background: #0e1116;
    border-left-color: #a3e635;
    color: #f4fff8;
}

.landing-mobile-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid currentColor;
}
.landing-mobile-title {
    font-size: 18px;
    font-weight: 700;
}
.landing-mobile-close {
    width: 36px; height: 36px;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 8px;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.landing-mobile-links {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}
.landing-mobile-link {
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
[data-theme="dark"] .landing-mobile-link {
    border-bottom-color: rgba(255,255,255,0.1);
}
.landing-mobile-link:where(html.pp-desktop-hover *):hover {
    background: rgba(30, 58, 95,0.1);
    color: #1e3a5f;
}
.landing-mobile-cta {
    padding: 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 2px solid currentColor;
}
.landing-mobile-cta .btn-ghost,
.landing-mobile-cta .btn-primary-landing {
    display: flex !important;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: span 3; }
}
/* ===== MOBILE FORCE OVERRIDES (highest specificity) - extends to iPad portrait/landscape ===== */
@media (max-width: 991.98px) {
    html body .dashboard-wrapper .sidebar,
    html body .dashboard-wrapper .sidebar.collapsed,
    html.sidebar-preload-collapsed body .sidebar {
        transform: translateX(-100%) !important;
        width: 280px !important;
        max-width: 280px !important;
        z-index: 1100 !important;
    }
    html body .dashboard-wrapper .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    html body .dashboard-wrapper .main-wrapper,
    html.sidebar-preload-collapsed body .main-wrapper,
    html body .dashboard-wrapper .sidebar.collapsed ~ .main-wrapper {
        margin-left: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    html body .sidebar-toggle { display: none !important; }
    html body .sidebar .nav-text,
    html body .sidebar .sidebar-logo-expanded,
    html body .sidebar .sidebar-user-info,
    html body .sidebar .sidebar-topup-btn .nav-text {
        display: inline-block !important;
        visibility: visible !important;
    }
    html body .sidebar .sidebar-logo-collapsed {
        display: none !important;
    }
    html body .sidebar .sidebar-user-card {
        padding: 10px !important;
        justify-content: flex-start !important;
    }
    html body .mobile-header-bar { display: grid !important; }
    html body .mobile-bottom-nav { display: flex !important; }
}

/* ============================================================
   NIGHT THEME — lime + cyan, as on guest landing
   ============================================================ */
html[data-theme="dark"] body.nc-body,
html[data-theme="dark"] .dashboard-wrapper {
    background: #05060a !important;
    color: #f4fff8 !important;
}
html[data-theme="dark"] .aurora-bg-container {
    background:
        radial-gradient(900px 520px at 6% -8%, rgba(163, 230, 53, 0.2), transparent 58%),
        radial-gradient(820px 480px at 108% 8%, rgba(6, 182, 212, 0.18), transparent 52%),
        radial-gradient(640px 420px at 50% 118%, rgba(163, 230, 53, 0.08), transparent 55%),
        #05060a !important;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sidebar-header,
html[data-theme="dark"] .sidebar-footer,
html[data-theme="dark"] .top-header,
html[data-theme="dark"] .main-footer,
html[data-theme="dark"] .mobile-header-bar,
html[data-theme="dark"] .mobile-slide-menu {
    background: #0e1116 !important;
    color: #f4fff8 !important;
    border-color: rgba(163, 230, 53, 0.35) !important;
    backdrop-filter: none !important;
}
html[data-theme="dark"] .sidebar {
    border-right: 3px solid #a3e635 !important;
    box-shadow: 6px 0 0 #06b6d4 !important;
}
html[data-theme="dark"] .top-header {
    border-bottom: 3px solid transparent !important;
    background:
        linear-gradient(rgba(14, 17, 22, 0.92), rgba(14, 17, 22, 0.92)) padding-box,
        linear-gradient(90deg, #a3e635, #06b6d4) border-box !important;
    border-bottom-width: 3px !important;
    border-bottom-style: solid !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .sidebar .nav-link,
html[data-theme="dark"] .sidebar-user-name,
html[data-theme="dark"] .breadcrumb-current,
html[data-theme="dark"] .sidebar-logo-expanded,
html[data-theme="dark"] .sidebar-logo-expanded::before {
    color: #e8ffef !important;
}
html[data-theme="dark"] .sidebar .nav-link i,
html[data-theme="dark"] .sidebar-toggle {
    color: #a3e635 !important;
}
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link:where(html.pp-desktop-hover *):hover,
html[data-theme="dark"] .dashboard-wrapper .sidebar .nav-link:hover,
html[data-theme="dark"] .dashboard-wrapper .sidebar .nav-link:where(html.pp-desktop-hover *):hover,
html[data-theme="dark"] .sidebar .nav-link:hover,
html[data-theme="dark"] .sidebar .nav-link:where(html.pp-desktop-hover *):hover {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    background-clip: border-box !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .sidebar .nav-link::before,
html[data-theme="dark"] .dashboard-wrapper .sidebar .nav-link::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background: linear-gradient(135deg, rgba(163, 230, 53, 0.42), rgba(6, 182, 212, 0.32)) !important;
    opacity: 0;
    transition: none !important;
}
html[data-theme="dark"] .sidebar .nav-link:hover::before,
html[data-theme="dark"] .dashboard-wrapper .sidebar .nav-link:hover::before {
    opacity: 1 !important;
}
html[data-theme="dark"] .sidebar .nav-item.active .nav-link::before {
    opacity: 0 !important;
}
html[data-theme="dark"] .nav-item.active .nav-link {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: transparent !important;
    box-shadow: 3px 3px 0 rgba(6, 182, 212, 0.45);
}
html[data-theme="dark"] .nav-item.active .nav-link i {
    color: #06110a !important;
}

html[data-theme="dark"] .sidebar-logo-expanded::after,
html[data-theme="dark"] .sidebar-logo-collapsed::before,
html[data-theme="dark"] .mobile-header-logo::after {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: rgba(163, 230, 53, 0.8) !important;
}
html[data-theme="dark"] .mobile-header-logo,
html[data-theme="dark"] .mobile-header-logo::before {
    color: #f4fff8 !important;
}

html[data-theme="dark"] .sidebar-user-card {
    background: linear-gradient(160deg, rgba(163, 230, 53, 0.08), rgba(6, 182, 212, 0.1)) !important;
    border-color: rgba(163, 230, 53, 0.35) !important;
}
html[data-theme="dark"] .sidebar-user-avatar {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: rgba(163, 230, 53, 0.6) !important;
}
html[data-theme="dark"] .sidebar-user-balance,
html[data-theme="dark"] .sidebar-user-balance i {
    color: #a3e635 !important;
}
html[data-theme="dark"] .sidebar-topup-btn {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: transparent !important;
    box-shadow: 3px 3px 0 rgba(6, 182, 212, 0.4);
}
html[data-theme="dark"] .sidebar-topup-btn i,
html[data-theme="dark"] .sidebar-topup-btn span {
    color: #06110a !important;
}

html[data-theme="dark"] .breadcrumb-home {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    border-color: rgba(163, 230, 53, 0.7) !important;
    box-shadow: 2.5px 2.5px 0 rgba(6, 182, 212, 0.45) !important;
}
html[data-theme="dark"] .breadcrumb-home:where(html.pp-desktop-hover *):hover {
    box-shadow: 3.5px 3.5px 0 #a3e635 !important;
}
html[data-theme="dark"] .header-balance {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: transparent !important;
    box-shadow: 3px 3px 0 rgba(6, 182, 212, 0.4);
}
html[data-theme="dark"] .header-balance span,
html[data-theme="dark"] .header-balance i {
    color: #06110a !important;
}
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .mobile-hamburger-btn,
html[data-theme="dark"] .mobile-menu-btn,
html[data-theme="dark"] .sidebar-toggle {
    background: #14181f !important;
    border-color: rgba(163, 230, 53, 0.4) !important;
    color: #a3e635 !important;
}
html[data-theme="dark"] .theme-toggle:where(html.pp-desktop-hover *):hover,
html[data-theme="dark"] .sidebar-toggle:where(html.pp-desktop-hover *):hover {
    background: rgba(163, 230, 53, 0.14) !important;
}

html[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(14, 17, 22, 0.94) !important;
    border-top: 2px solid transparent !important;
    background-image:
        linear-gradient(rgba(14, 17, 22, 0.94), rgba(14, 17, 22, 0.94)),
        linear-gradient(90deg, #a3e635, #06b6d4) !important;
    background-origin: border-box;
    box-shadow: 0 -8px 30px rgba(6, 182, 212, 0.12);
}
html[data-theme="dark"] .mobile-nav-item,
html[data-theme="dark"] .mobile-nav-item span,
html[data-theme="dark"] .mobile-nav-center span {
    color: #d8ffe4 !important;
}
html[data-theme="dark"] .mobile-nav-item i {
    color: #a3e635 !important;
}
html[data-theme="dark"] .mobile-nav-item.active {
    background: rgba(163, 230, 53, 0.18) !important;
    box-shadow: 2px 2px 0 #a3e635 !important;
}
html[data-theme="dark"] .mobile-nav-item.active i,
html[data-theme="dark"] .mobile-nav-item.active span {
    color: #a3e635 !important;
    -webkit-text-fill-color: #a3e635 !important;
}
html[data-theme="dark"] .mobile-nav-center-btn {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: transparent !important;
    box-shadow: 3px 3px 0 #a3e635;
}
html[data-theme="dark"] .mobile-nav-center-btn i {
    color: #06110a !important;
}

html[data-theme="dark"] .mobile-slide-menu .mobile-menu-item {
    color: #e8ffef !important;
}
html[data-theme="dark"] .mobile-slide-menu .mobile-menu-item.active,
html[data-theme="dark"] .mobile-slide-menu .mobile-menu-item:where(html.pp-desktop-hover *):hover {
    background: rgba(163, 230, 53, 0.12) !important;
    color: #a3e635 !important;
}

html[data-theme="dark"] .main-content,
html[data-theme="dark"] .page-header,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .pro-info-card,
html[data-theme="dark"] .nc-svc-ticker-wrap,
html[data-theme="dark"] .order-form-card,
html[data-theme="dark"] .tips-card,
html[data-theme="dark"] .faq-page,
html[data-theme="dark"] .terms-page {
    background: #0e1116 !important;
    background-color: #0e1116 !important;
    border-color: rgba(163, 230, 53, 0.22) !important;
}
html[data-theme="dark"] .main-content {
    background: #05060a !important;
    background-color: #05060a !important;
}
html[data-theme="dark"] input.form-control,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] textarea.form-control,
html[data-theme="dark"] .pp-pretty-select select {
    background: #10141b !important;
    color: #f4fff8 !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
}
html[data-theme="dark"] input.form-control:focus,
html[data-theme="dark"] select.form-control:focus,
html[data-theme="dark"] textarea.form-control:focus {
    border-color: #a3e635 !important;
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.18) !important;
}

html[data-theme="dark"] #pp-sort button.active,
html[data-theme="dark"] #pp-sv-filters button.active[data-sort] {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: transparent !important;
}
html[data-theme="dark"] #pp-svc-drop {
    background: #0e1116 !important;
    border-color: rgba(163, 230, 53, 0.4) !important;
    box-shadow: 6px 6px 0 rgba(6, 182, 212, 0.28) !important;
}
html[data-theme="dark"] .pp-svc-row:where(html.pp-desktop-hover *):hover,
html[data-theme="dark"] .pp-svc-row.on {
    background: rgba(163, 230, 53, 0.1) !important;
}
html[data-theme="dark"] .pp-sel-id {
    background: linear-gradient(135deg, #a3e635, #06b6d4) !important;
    color: #06110a !important;
    border-color: rgba(163, 230, 53, 0.8) !important;
    outline-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 2px 2px 0 rgba(6, 182, 212, 0.35) !important;
}
html[data-theme="dark"] .main-footer {
    border-top: 2px solid transparent !important;
    background:
        linear-gradient(rgba(14, 17, 22, 0.92), rgba(14, 17, 22, 0.92)) padding-box,
        linear-gradient(90deg, #a3e635, #06b6d4) border-box !important;
    color: rgba(232, 255, 239, 0.7) !important;
}

html[data-theme="dark"] .order-real-content,
html[data-theme="dark"] .ann-card,
html[data-theme="dark"] .promo-card,
html[data-theme="dark"] .collapsible-card,
html[data-theme="dark"] .warning-box,
html[data-theme="dark"] .totals-block__card,
html[data-theme="dark"] .sv-table,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .terms-section,
html[data-theme="dark"] .terms-header,
html[data-theme="dark"] .faq-search-box {
    background-color: #0e1116 !important;
    border-color: rgba(163, 230, 53, 0.22) !important;
    color: #f4fff8 !important;
}
html[data-theme="dark"] .landing-mobile-menu {
    background: #0e1116 !important;
    border-left-color: #a3e635 !important;
}

@media (max-width: 991.98px) {
    html body .top-header { display: none !important; }
    html body .main-footer { display: none !important; }
    html body .main-content { padding-top: 70px !important; padding-bottom: 80px !important; }

    /* Landing nav mobile */
    .landing-nav { margin: 8px 10px 0; }
    .landing-nav .nav-container { padding: 8px 12px; }
    .landing-nav .nav-links { display: none !important; }
    .landing-nav .btn-ghost, .landing-nav .btn-primary-landing { display: none !important; }
    .landing-nav .gtranslate-wrapper { display: none !important; }
    .landing-nav .nav-cta { display: flex !important; align-items: flex-end; gap: 8px; }
    .landing-nav .guest-theme-toggle { display: flex !important; }
    .landing-hamburger { display: flex !important; }
    .landing-mobile-cta .btn-ghost, .landing-mobile-cta .btn-primary-landing { display: flex !important; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer-trust { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}

@media (min-width: 992px) {
    html body .dashboard-wrapper .top-header,
    html body .top-header {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 80px !important;
        min-height: 80px !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }
    html body .dashboard-wrapper .main-footer,
    html body .main-footer {
        display: block !important;
        visibility: visible !important;
    }
}


/* ============================================
   FORCE BACKGROUND — ต้องอยู่ท้ายสุดเพื่อ cascade ชนะ PerfectPanel theme CSS
   ใช้ hardcode + selector เจาะจง + !important
   ============================================ */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] body.nc-body,
html[data-theme="light"] .dashboard-wrapper,
html[data-theme="light"] .landing-page,
html[data-theme="light"] .main-content,
html[data-theme="light"] .main-wrapper {
    background: #fff8f0 !important;
    background-color: #fff8f0 !important;
    color: #000000 !important;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body.nc-body,
html[data-theme="dark"] .dashboard-wrapper,
html[data-theme="dark"] .landing-page,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .main-wrapper,
html[data-theme="dark"] .pp-main-slot {
    background: #05060a !important;
    background-color: #05060a !important;
    color: #f4fff8 !important;
}

/* Landing page wrapper ต้องไม่มี background ของตัวเอง */
.landing-page {
    background: transparent;
    min-height: calc(100vh - 80px);
}

/* Aurora/decoration bg ต้องเปลี่ยน pattern ตาม theme ด้วย */
html[data-theme="light"] .aurora-bg-container {
    background-image: radial-gradient(circle, rgba(0,0,0,0.08) 1px, transparent 1px) !important;
}
html[data-theme="dark"] .aurora-bg-container {
    background:
        radial-gradient(900px 520px at 6% -8%, rgba(163, 230, 53, 0.2), transparent 58%),
        radial-gradient(820px 480px at 108% 8%, rgba(6, 182, 212, 0.18), transparent 52%),
        radial-gradient(640px 420px at 50% 118%, rgba(163, 230, 53, 0.08), transparent 55%),
        #05060a !important;
}

/* Theme swap: no interpolation of color/shadow while data-theme flips. */
html.pp-theme-swap,
html.pp-theme-swap *,
html.pp-theme-swap *::before,
html.pp-theme-swap *::after {
    transition: none !important;
    animation: none !important;
    animation-play-state: paused !important;
}
html.pp-theme-swap body .order-real-content #mo-panel-simple .platform-pill .pill-lift,
html.pp-theme-swap body .order-real-content .platform-pill .pill-lift,
html.pp-theme-swap body .order-real-content .platform-pill .pill-icon,
html.pp-theme-swap body #orderRealContent.order-real-content .platform-pill .pill-lift,
html.pp-theme-swap body .order-form-card,
html.pp-theme-swap body .page-header,
html.pp-theme-swap body .sidebar-card,
html.pp-theme-swap body .balance-card,
html.pp-theme-swap body .btn-submit-order,
html.pp-theme-swap body .mo-mode-tab,
html.pp-theme-swap body .quick-link-item,
html.pp-theme-swap body .form-control,
html.pp-theme-swap body .pp-main-slot *,
html.pp-theme-swap body .dashboard-wrapper *,
html.pp-theme-swap body .main-content *,
html.pp-theme-swap body .top-header *,
html.pp-theme-swap body .sidebar *,
html.pp-theme-swap body .mobile-header-bar * {
    transition: none !important;
    animation: none !important;
    animation-play-state: paused !important;
}
