/* =====================================================
   TOOLGAMEAI — Light Mode Design System
   Clean · Minimal · Fast
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ===== CSS VARIABLES ===== */
:root {
    --green:       #16a34a;
    --green-light: #22c55e;
    --green-bg:    #f0fdf4;
    --green-border:#bbf7d0;
    --blue:        #0369a1;
    --blue-light:  #38bdf8;
    --blue-bg:     #f0f9ff;
    --purple:      #7c3aed;
    --purple-bg:   #faf5ff;
    --orange:      #ea580c;
    --red:         #dc2626;

    --white:  #ffffff;
    --bg:     #f1f5f9;
    --bg-card:#ffffff;
    --text:   #1e293b;
    --text-2: #475569;
    --muted:  #94a3b8;
    --border: #e2e8f0;
    --border2:#cbd5e1;

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-green: 0 4px 14px rgba(22,163,74,0.25);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl:24px;
    --r-pill:999px;

    --t: 0.18s ease;
    --t-spring: 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

/* ===== BACKGROUND ===== */
.bg-hex, .bg-orb-tl, .bg-orb-br { display: none !important; }

/* ===== BODY PADDING ===== */
body { padding-bottom: 0; }

/* =====================================================
   PC TOP NAVIGATION
   ===================================================== */
.pc-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
}

.pc-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.pc-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
}

.pc-nav-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.pc-nav-logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.pc-nav-logo-text span { color: var(--green); }

/* Nav links */
.pc-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.pc-nav-item {
    position: relative;
}

.pc-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
}

.pc-nav-link:hover,
.pc-nav-link.active {
    background: var(--green-bg);
    color: var(--green);
}

.pc-nav-link i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.2s;
}

.pc-nav-item:hover .pc-nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.pc-nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.pc-nav-item:hover .pc-nav-dropdown,
.pc-nav-item:focus-within .pc-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-nav-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    text-decoration: none;
    transition: var(--t);
}

.pc-nav-dd-item:hover {
    background: var(--green-bg);
    color: var(--green);
}

.pc-nav-dd-item i {
    width: 18px;
    text-align: center;
    color: var(--green);
    font-size: 13px;
}

.pc-nav-dd-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Right side: user */
.pc-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.pc-nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: var(--t);
    background: var(--white);
}

.pc-nav-user:hover {
    border-color: var(--green);
    background: var(--green-bg);
}

.pc-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--green);
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.pc-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-nav-user-info { line-height: 1.25; }

.pc-nav-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-nav-balance {
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
}

.pc-nav-btn {
    padding: 7px 18px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    border: none;
    font-family: 'Inter', sans-serif;
}

.pc-nav-btn-login {
    background: transparent;
    border: 1.5px solid var(--border2);
    color: var(--text-2);
}

.pc-nav-btn-login:hover {
    border-color: var(--green);
    color: var(--green);
}

.pc-nav-btn-register {
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.pc-nav-btn-register:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* ===== SHOW PC NAV on desktop ===== */
@media (min-width: 769px) {
    .pc-nav { display: block; }
    .hdr-pmg { display: none !important; }
    .mbotnav { display: none !important; }
}

/* =====================================================
   MOBILE HEADER (compact, no hamburger)
   ===================================================== */
.hdr-pmg {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: 500;
}

.hdr-pmg-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 0 14px !important;
    height: 52px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.hdr-user-box {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--white);
    transition: var(--t);
}

.hdr-user-box:hover {
    border-color: var(--green);
    background: var(--green-bg);
}

.hdr-avatar-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--green);
    overflow: hidden;
    background: var(--bg);
    flex-shrink: 0;
}

.hdr-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hdr-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    border: 1.5px solid var(--white);
}

.hdr-user-info { line-height: 1.2; }

.hdr-username {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdr-balance {
    font-size: 10px;
    font-weight: 600;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 3px;
}

.hdr-logo-box {
    grid-column: 2;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    gap: 1px;
}

.hdr-logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.hdr-logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hdr-hamburger {
    grid-column: 3;
    justify-self: end;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    transition: var(--t);
    color: var(--text-2);
}

.hdr-hamburger:hover { background: var(--bg); }
.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--t);
}

/* =====================================================
   MARQUEE STRIP
   ===================================================== */
.mstrip {
    width: 100%;
    height: 36px;
    background: var(--green);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.mstrip-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    background: rgba(0,0,0,0.15);
    flex-shrink: 0;
    z-index: 2;
}

.mstrip-badge-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fef9c3;
}

.mstrip-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.mstrip-track { flex: 1; overflow: hidden; white-space: nowrap; }

.mstrip-inner {
    display: inline-flex;
    gap: 40px;
    animation: marqueeScroll 22s linear infinite;
    will-change: transform;
}

.mstrip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
}

.mstrip-sep { color: rgba(255,255,255,0.4); margin-left: 6px; }
.mstrip-gif { width: 15px; height: 15px; border-radius: 3px; object-fit: contain; }

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mstrip-fade-l, .mstrip-fade-r {
    position: absolute; top: 0; bottom: 0;
    width: 30px; pointer-events: none; z-index: 1;
}

.mstrip-fade-l { left: 0; background: linear-gradient(90deg, var(--green), transparent); }
.mstrip-fade-r { right: 0; background: linear-gradient(270deg, var(--green), transparent); }

/* =====================================================
   LAYOUT
   ===================================================== */
.main-layout-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.app-left-content { width: 100%; }

/* =====================================================
   MAIN PAGE / MPAGE
   ===================================================== */
.mpage {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    .mpage {
        max-width: 1100px;
        padding-bottom: 40px;
    }
}

/* =====================================================
   BANNER SLIDER
   ===================================================== */
.mban-out {
    position: relative;
    margin: 14px 12px 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--green);
    box-shadow: var(--shadow-md);
}

.mban-track { display: flex; transition: transform 0.42s ease; }

.mbslide {
    width: 100%;
    flex-shrink: 0;
    height: 165px;
    position: relative;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

.mbslide-featured {
    background: linear-gradient(135deg, #15803d 0%, #0f4c2a 60%, #0c3320 100%);
}

.mbs1-content {
    position: absolute;
    inset: 20px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mbs1-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: var(--r-pill);
    width: fit-content;
    margin-bottom: 8px;
}

.mbs1-cdot {
    width: 6px; height: 6px;
    background: #86efac;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.mbs1-ctxt { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.05em; text-transform: uppercase; }

.mbs1-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 6px;
}

.mbs1-title span { color: #bbf7d0; }
.mbs1-cursor { animation: blink 1s infinite; }

.mbs1-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.mbs1-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    color: var(--green);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--r-sm);
    border: none;
    width: fit-content;
    cursor: pointer;
    transition: var(--t-spring);
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mbs1-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

.mbs1-stats {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.25);
    padding: 5px 10px;
    border-radius: var(--r-pill);
}

.mbs1-sbox { display: flex; gap: 4px; align-items: baseline; }
.mbs1-sval { font-weight: 800; font-size: 13px; color: #fde68a; }
.mbs1-slbl { font-size: 9px; color: rgba(255,255,255,0.6); }
.mbs1-live { display: flex; align-items: center; gap: 5px; }
.mbs1-ldot { width: 6px; height: 6px; background: #f87171; border-radius: 50%; animation: blink 1.4s infinite; }
.mbs1-ltxt { font-size: 9px; font-weight: 800; color: #f87171; }

.mbdots {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
    z-index: 10;
}

.mbd { width: 20px; height: 3px; background: rgba(255,255,255,0.35); border-radius: 3px; cursor: pointer; transition: var(--t); }
.mbd.on { background: var(--white); width: 32px; }
.mbdots-counter { position: absolute; right: 12px; bottom: 6px; font-size: 9px; color: rgba(255,255,255,0.5); font-family: monospace; }

/* =====================================================
   TABS
   ===================================================== */
.mtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 12px 10px;
    scrollbar-width: none;
}

.mtabs::-webkit-scrollbar { display: none; }

.mtab {
    padding: 7px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--t);
    user-select: none;
    box-shadow: var(--shadow-xs);
}

.mtab:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-bg);
}

.mtab.on {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: var(--shadow-green);
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.mslbl {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 6px;
}

.msbar {
    width: 3px;
    height: 18px;
    border-radius: 3px;
    background: var(--green);
    flex-shrink: 0;
}

.mstit {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.badge-live {
    font-size: 9px;
    font-weight: 800;
    background: #ef4444;
    color: white;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}

/* =====================================================
   LIVE BACCARAT CARDS
   ===================================================== */
.mlive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 12px 18px;
}

.mlcard {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 10px 12px;
    cursor: pointer;
    transition: var(--t);
    overflow: hidden;
    min-height: 185px;
    box-shadow: var(--shadow-xs);
    will-change: transform;
}

.mlcard:hover {
    border-color: var(--green);
    box-shadow: 0 6px 20px rgba(22,163,74,0.15);
    transform: translateY(-4px);
}

.mlcard:active { transform: translateY(-2px) scale(0.98); }

.mlcard-bg { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-xl); }
.mlcard-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.06; }
.mlcard-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.5) 60%, transparent 100%); }

.mlcard-hot {
    position: absolute;
    top: 7px; left: 7px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    padding: 2px 8px;
    border-radius: var(--r-pill);
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    z-index: 3;
}

.mlcard-live {
    position: absolute;
    top: 7px; right: 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.2);
    padding: 2px 7px;
    border-radius: var(--r-pill);
    z-index: 3;
}

.mlcard-ldot {
    width: 5px; height: 5px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1.4s infinite;
}

.mlcard-ltxt { font-size: 9px; font-weight: 800; color: #ef4444; }

.mlcard-logo-wrap {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.mlcard-logo-img {
    max-width: 110px;
    max-height: 60px;
    width: 100%;
    object-fit: contain;
    transition: var(--t-spring);
}

.mlcard:hover .mlcard-logo-img { transform: scale(1.1); }

.mlcard-bot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.mlcard-name {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.mlcard-name-gold  { color: #d97706; }
.mlcard-name-blue  { color: var(--blue); }
.mlcard-name-green { color: var(--green); }

.mlcard-sub { font-size: 9px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.mlcard-beads { display: flex; gap: 3px; margin-bottom: 5px; flex-wrap: wrap; justify-content: center; }

.mbead {
    width: 20px; height: 20px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 9px;
    background: var(--bg); border: 1px solid var(--border);
}

.mbead-b { color: var(--blue); }
.mbead-r { color: #dc2626; }
.mbead-t { color: var(--green); }

.mlcard-choose { font-size: 9px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 3px; }

/* =====================================================
   GAME CARDS (Tài Xỉu / Sicbo)
   ===================================================== */
.mggrid, .sb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 4px 12px 18px;
}

@media (max-width: 360px) { .mggrid { grid-template-columns: repeat(2, 1fr); } }

.mgcard, .sb-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px 12px;
    cursor: pointer;
    transition: var(--t);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-xs);
    will-change: transform;
}

.mgcard:hover {
    border-color: var(--green);
    box-shadow: 0 6px 20px rgba(22,163,74,0.15);
    transform: translateY(-4px);
}

.sb-card:hover {
    border-color: var(--purple);
    box-shadow: 0 6px 20px rgba(124,58,237,0.12);
    transform: translateY(-4px);
}

.mgcard:active, .sb-card:active { transform: translateY(-2px) scale(0.97); }

.mgcard__badge {
    position: absolute; top: 6px; left: 6px;
    width: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    z-index: 3;
}

.mgcard__vip {
    position: absolute; top: 6px; right: 7px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    font-size: 8px; font-weight: 800;
    padding: 1px 6px; border-radius: var(--r-pill);
    color: #1a1100; z-index: 3;
}

.mgcard__inner { display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; z-index: 2; }

.mgcard__logo-wrap { width: 52px; height: 52px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }

.mgcard__logo, .sb-card__img {
    width: 50px; height: 50px;
    object-fit: contain;
    transition: var(--t-spring);
}

.mgcard:hover .mgcard__logo,
.sb-card:hover .sb-card__img { transform: scale(1.15) rotate(3deg); }

.mgcard__name, .sb-card__name {
    font-family: 'Oswald', sans-serif;
    font-size: 12px; font-weight: 700;
    color: var(--text);
    text-transform: uppercase; letter-spacing: 0.04em;
    line-height: 1.2;
}

.mgcard__players {
    font-size: 10px; color: var(--muted);
    margin-top: 3px;
    display: flex; align-items: center; gap: 3px;
}

.sb-card__label { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }

.sb-card__live {
    display: inline-flex;
    align-items: center; gap: 4px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    padding: 2px 8px; border-radius: var(--r-pill);
    font-size: 9px; font-weight: 800; color: var(--green);
}

.sb-card__ldot {
    width: 5px; height: 5px;
    background: var(--green-light);
    border-radius: 50%;
    animation: breathingGlow 2s infinite;
}

@keyframes breathingGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* =====================================================
   MOBILE BOTTOM NAV
   ===================================================== */
.mbotnav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 600;
    padding: 4px 0 env(safe-area-inset-bottom, 4px);
}

.mbotnav-inner {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 4px;
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    padding: 6px 4px;
    cursor: pointer;
    transition: var(--t);
    border: none;
    background: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    border-radius: var(--r-sm);
}

.mbn-item:active { background: var(--bg); }

.mbn-icon {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--muted);
    transition: var(--t);
    position: relative;
}

.mbn-item.active .mbn-icon,
.mbn-item:hover .mbn-icon {
    color: var(--green);
}

.mbn-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    transition: var(--t);
}

.mbn-item.active .mbn-label,
.mbn-item:hover .mbn-label { color: var(--green); }

/* Active indicator bar at top */
.mbn-item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--green);
    border-radius: 0 0 var(--r-pill) var(--r-pill);
}

/* Center highlight item */
.mbn-item.mbn-center .mbn-icon {
    background: var(--green);
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-green);
    margin-top: -4px;
}

.mbn-item.mbn-center:hover .mbn-icon { background: #15803d; }
.mbn-item.mbn-center .mbn-label { color: var(--green); }

/* Badge on icon */
.mbn-badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 16px; height: 16px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 800;
    border-radius: var(--r-pill);
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--white);
}

@media (min-width: 769px) {
    .mbotnav { display: none !important; }
    .mpage { padding-bottom: 40px; }
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal, .deposit-modal, .modal {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    width: 100%;
    max-width: 400px;
    padding: 24px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .auth-modal,
.modal-overlay.active .deposit-modal,
.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-close, .auth-close, .notif-close-btn {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t);
    z-index: 10;
}

.modal-close:hover, .auth-close:hover, .notif-close-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Auth modal */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }

.auth-tab {
    flex: 1;
    background: var(--bg);
    border: 1.5px solid var(--border);
    padding: 9px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    transition: var(--t);
    font-family: 'Inter', sans-serif;
}

.auth-tab.active {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: var(--shadow-green);
}

.auth-field {
    margin-bottom: 12px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px 12px;
    display: flex;
    align-items: center;
    transition: var(--t);
}

.auth-field:focus-within {
    border-color: var(--green);
    background: var(--green-bg);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.auth-field-icon { color: var(--green); margin-right: 8px; font-size: 14px; }

.auth-input {
    background: none; border: none;
    padding: 10px 0;
    color: var(--text); width: 100%; outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.auth-input::placeholder { color: var(--muted); }

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--r-md);
    font-weight: 700;
    margin-top: 12px;
    cursor: pointer;
    transition: var(--t);
    font-size: 14px;
    letter-spacing: 0.04em;
    font-family: 'Inter', sans-serif;
    border: none;
}

.auth-btn-login {
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.auth-btn-login:hover { background: #15803d; transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.auth-brand-name { font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: 0.05em; }

/* =====================================================
   TOAST
   ===================================================== */
#toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--green-border);
    border-radius: var(--r-lg);
    padding: 10px 14px;
    min-width: 220px;
    max-width: 320px;
    pointer-events: auto;
    box-shadow: var(--shadow-md);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
}

@keyframes toastIn { to { transform: translateY(0) scale(1); opacity: 1; } }

.toast-out { animation: toastOut 0.2s ease forwards !important; }
@keyframes toastOut { to { transform: translateY(-10px) scale(0.96); opacity: 0; } }

.toast::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--green);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

.toast-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--green-bg);
    color: var(--green);
}

.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 12px; color: var(--green); margin-bottom: 1px; }
.toast-msg { font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* =====================================================
   NOTIFICATION OVERLAY
   ===================================================== */
#notification-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 19998;
    display: none;
}

#notification-overlay.active { display: block; }

#notification {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: min(92%, 400px);
    background: var(--white);
    border: 1px solid var(--green-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--r-2xl);
    overflow: hidden;
    z-index: 19999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#notification.active {
    display: block; opacity: 1; visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.notif-hdr {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: var(--green-bg);
    border-bottom: 1px solid var(--green-border);
}

.notif-title {
    font-family: 'Oswald', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--green);
    display: flex; align-items: center; gap: 8px;
}

.notif-close-btn { position: static; }

.notif-icon-wrap { display: flex; justify-content: center; padding: 16px 0 6px; }

.notif-icon-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 2px solid var(--green-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--green);
}

.notif-body { color: var(--text-2); font-size: 13px; line-height: 1.6; padding: 12px 20px 16px; text-align: center; }
.notif-body b, .notif-body strong { color: var(--green); }

.announce-link { color: var(--green); text-decoration: none; font-weight: 700; border-bottom: 1px dashed var(--green-border); }

.notif-actions { display: flex; gap: 8px; padding: 12px 16px 16px; }

.notif-btn-ok {
    flex: 1; padding: 11px 0;
    border-radius: var(--r-pill);
    background: var(--green);
    border: none; color: var(--white);
    font-weight: 700; font-size: 13px;
    cursor: pointer; transition: var(--t);
    box-shadow: var(--shadow-green);
}

.notif-btn-ok:hover { background: #15803d; transform: translateY(-1px); }

.notif-btn-snooze {
    flex: 1; padding: 11px 0;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1.5px solid var(--border2);
    color: var(--muted);
    font-weight: 600; font-size: 12px;
    cursor: pointer; transition: var(--t);
}

.notif-btn-snooze:hover { background: var(--bg); color: var(--text); }

/* =====================================================
   SETTINGS TOGGLE
   ===================================================== */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: var(--border2); border-radius: 22px;
    transition: 0.3s;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    height: 14px; width: 14px;
    left: 4px; bottom: 4px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider { background: var(--green); }
input:checked + .toggle-slider:before { transform: translateX(18px); }

/* =====================================================
   RANKING VIEW
   ===================================================== */
.rank-page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px; font-weight: 700;
    text-align: center;
    margin: 14px 0;
    color: var(--text);
}

.vip-panel {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.vip-panel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.vip-panel-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    object-fit: contain;
    background: var(--bg);
    padding: 4px;
}

.vip-panel-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.vip-panel-name { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; color: #d97706; }
.vip-panel-deposit { font-size: 12px; color: var(--muted); margin-top: 2px; }

.progress-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.progress-track { height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), #22c55e); border-radius: 10px; transition: width 0.5s ease; }

.not-logged-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--r-lg);
    padding: 18px;
    text-align: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--text-2);
}

.not-logged-notice i { font-size: 28px; margin-bottom: 8px; display: block; color: #f59e0b; }
.not-logged-notice a { color: var(--green); font-weight: 600; }

.rank-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.rank-box-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px; font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    background: var(--bg);
}

.rank-table-header {
    display: flex; align-items: center;
    padding: 8px 16px;
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.guide-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

.guide-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px; font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    background: var(--bg);
}

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding: 12px; }

/* ===== BACK BAR ===== */
.back-bar { margin-bottom: 8px; }

.back-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 7px 14px;
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px;
    transition: var(--t);
}

.back-btn:hover { background: var(--green-bg); border-color: var(--green); color: var(--green); }

/* ===== LOADING ===== */
.loading-spin { text-align: center; padding: 16px; color: var(--muted); font-size: 13px; }

/* ===== PASSWORD STRENGTH ===== */
.pwd-strength-wrap { margin: 4px 0 8px; }
.pwd-strength-bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; }
.pwd-strength-fill { width: 0%; height: 100%; transition: width 0.25s, background 0.25s; border-radius: 4px; }
.pwd-strength-label { font-size: 10px; text-align: center; margin-top: 4px; color: var(--muted); }

/* ===== TOOL INTERFACE ===== */
.tool-interface {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 24px 16px;
    text-align: center;
    display: none;
    margin: 12px;
    box-shadow: var(--shadow-md);
}

.tool-interface.active { display: block; }

.tool-target {
    font-family: 'Oswald', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--text); margin-bottom: 14px;
}

.tool-result-box {
    width: 220px; height: 120px;
    margin: 14px auto;
    background: var(--green-bg);
    border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--green-border);
}

.tool-result-text { font-size: 48px; font-weight: 800; font-family: 'Oswald', sans-serif; color: var(--green); }

.tool-result-rate { font-size: 13px; color: var(--text-2); margin-bottom: 14px; font-weight: 600; }

.btn-predict {
    background: var(--green);
    border: none; padding: 11px 28px;
    border-radius: var(--r-md); font-weight: 700;
    color: var(--white); font-family: 'Oswald', sans-serif;
    font-size: 14px; cursor: pointer;
    transition: var(--t); box-shadow: var(--shadow-green);
    letter-spacing: 0.05em;
}

.btn-predict:hover { background: #15803d; transform: translateY(-1px); }
.btn-predict:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.loader {
    width: 26px; height: 26px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none; margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SIDE MENU (mobile drawer) ===== */
.side-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}

.side-menu-overlay.active { opacity: 1; pointer-events: auto; }

.side-menu-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    padding: 20px 16px;
    display: flex; flex-direction: column; gap: 16px;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.side-menu-drawer.open { transform: translateX(0); }

.side-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.side-menu-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 17px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}

.side-menu-brand span:last-child { color: var(--green); }

.side-menu-close {
    background: var(--bg); border: 1px solid var(--border);
    color: var(--text-2); width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t);
}

.side-menu-close:hover { background: #fee2e2; color: #ef4444; }

.side-menu-header-mobile { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

.side-menu-profile {
    background: var(--green-bg);
    border: 1.5px solid var(--green-border);
    border-radius: var(--r-xl);
    padding: 14px;
    display: flex; align-items: center; gap: 10px;
}

.sm-profile-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--green); overflow: hidden; background: var(--bg); flex-shrink: 0; }
.sm-profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sm-profile-online { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: var(--green-light); border-radius: 50%; border: 2px solid var(--white); }

.sm-profile-info { flex: 1; min-width: 0; }
.sm-profile-username { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-profile-balance { font-size: 12px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 4px; margin-top: 2px; }

.sm-profile-guest { display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.sm-profile-login-btn { font-size: 11px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.side-menu-section-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; padding-left: 4px; }

.side-menu-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.side-menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    color: var(--text-2);
    text-decoration: none;
    font-weight: 600; font-size: 14px;
    transition: var(--t);
    cursor: pointer;
}

.side-menu-item:hover {
    background: var(--green-bg);
    border-color: var(--green-border);
    color: var(--green);
    transform: translateX(4px);
}

.sm-item-icon {
    width: 28px; height: 28px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}

.sm-home-icon    { background: var(--green-bg); color: var(--green); }
.sm-rank-icon    { background: #fef9c3; color: #d97706; }
.sm-deposit-icon { background: #fff7ed; color: #f59e0b; }
.sm-key-icon     { background: var(--green-bg); color: #16a34a; }
.sm-login-icon   { background: var(--blue-bg); color: var(--blue); }
.sm-tg-icon      { background: #e0f2fe; color: #0284c7; }
.sm-notif-icon   { background: var(--purple-bg); color: var(--purple); }

.side-menu-settings {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 14px;
}

.sm-setting-row { display: flex; justify-content: space-between; align-items: center; }

.sm-setting-label { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.sm-setting-label i { width: 16px; text-align: center; color: var(--green); }

.sm-settings-btn {
    width: 100%; padding: 10px;
    border-radius: var(--r-md); border: 1.5px solid transparent;
    font-size: 12px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--t);
    font-family: 'Inter', sans-serif;
}

.sm-btn-pwd { background: #fff7ed; border-color: #fed7aa; color: #d97706; }
.sm-btn-pwd:hover { background: #ffedd5; transform: translateY(-1px); }
.sm-btn-logout { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.sm-btn-logout:hover { background: #fecaca; transform: translateY(-1px); }

/* ===== PC SIDEBAR (1025px+) ===== */
@media (min-width: 1025px) {
    .side-menu-drawer {
        position: fixed !important;
        top: 0 !important; left: 0 !important; bottom: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        transform: none !important;
        border-right: 1px solid var(--border) !important;
        border-radius: 0 !important;
        box-shadow: var(--shadow-sm) !important;
        z-index: 200 !important;
        overflow-y: auto !important;
        padding: 20px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--white) !important;
    }

    .side-menu-close { display: none !important; }

    main { margin-left: 260px !important; padding-top: 0 !important; }

    .mbotnav { display: none !important; }

    .main-layout-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
}

/* ===== PLAN CARDS ===== */
.plan-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--green) !important;
    background: var(--green-bg) !important;
    transform: translateY(-2px);
}

.plan-card.selected,
.plan-card.active {
    background: var(--green-bg) !important;
    border: 2px solid var(--green) !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1) !important;
}

/* ===== NICEPAY CONTAINER ===== */
.nicepay-container {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-2xl);
    overflow: hidden;
    margin: 8px 0;
    box-shadow: var(--shadow-sm);
}

.nicepay-tabs {
    display: flex;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.nicepay-tabs::-webkit-scrollbar { display: none; }

.np-tab {
    background: transparent; border: none;
    padding: 13px 18px;
    color: var(--muted);
    font-size: 13px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: var(--t);
    border-right: 1px solid var(--border);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.np-tab.active { background: var(--white); color: var(--green); border-bottom: 2px solid var(--green); }
.np-tab.disabled { opacity: 0.4; cursor: not-allowed; }

.np-close { background: transparent; border: none; color: #ef4444; padding: 0 16px; font-size: 18px; cursor: pointer; margin-left: auto; transition: var(--t); }
.np-close:hover { color: #dc2626; }

.nicepay-content { padding: 20px; }

.nicepay-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) { .nicepay-grid { grid-template-columns: 1fr; gap: 16px; } }

.np-col-left { border-right: 1px solid var(--border); padding-right: 16px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) { .np-col-left { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; padding-right: 0; } }
.np-col-right { display: flex; flex-direction: column; gap: 14px; align-items: center; }

.np-form-group { display: flex; align-items: center; gap: 10px; }
.np-label { width: 90px; font-size: 13px; color: var(--text-2); font-weight: 600; }

.np-select-wrapper { flex: 1; position: relative; }

.np-select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    color: var(--text);
    font-size: 13px; font-weight: 600;
    outline: none; appearance: none; cursor: pointer;
}

.np-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }

.np-select-wrapper::after {
    content: '\f0dd';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-60%);
    color: var(--green); pointer-events: none;
}

.np-readonly-val {
    flex: 1;
    background: var(--bg);
    border: 1px dashed var(--border2);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    color: var(--text-2); font-size: 13px;
}

.np-footer-left { margin-top: auto; display: flex; align-items: center; gap: 10px; }

.np-hist-icon-btn, .np-help-icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-2);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: var(--t);
}

.np-hist-icon-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.np-help-icon-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }

.np-banner {
    width: 100%;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
}

.np-banner-title { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 700; color: var(--green); margin-top: 4px; }

.bank-badge {
    display: inline-block;
    background: var(--green);
    color: white;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-pill);
}

.np-amount-wrapper { }
.np-amount-label { font-size: 12px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }

.np-input-wrapper { position: relative; }

.np-amount-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 40px 12px 14px;
    color: var(--text);
    font-size: 18px; font-family: 'Oswald', sans-serif; font-weight: 700;
    outline: none; transition: var(--t);
    box-sizing: border-box;
}

.np-amount-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }

.np-currency { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 700; }

.np-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }

.np-quick-btn {
    padding: 8px 4px;
    border-radius: var(--r-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: var(--t);
}

.np-quick-btn:hover { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.np-quick-btn.active { background: var(--green); border-color: var(--green); color: white; }

.np-submit-btn {
    width: 100%; padding: 13px;
    border-radius: var(--r-md);
    background: var(--green);
    border: none; color: white;
    font-family: 'Oswald', sans-serif; font-weight: 700;
    letter-spacing: 1px; font-size: 15px;
    cursor: pointer; transition: var(--t);
    box-shadow: var(--shadow-green);
}

.np-submit-btn:hover { background: #15803d; transform: translateY(-1px); }
.np-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.np-footer-right { margin-top: auto; display: flex; justify-content: flex-end; }

.np-bank-logo-wrap { display: flex; justify-content: center; }
.np-ocb-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 22px; font-weight: 900;
    color: var(--green);
    background: var(--green-bg);
    border: 2px solid var(--green-border);
    padding: 8px 20px;
    border-radius: var(--r-lg);
}

.np-info-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.np-info-lbl { font-size: 12px; color: var(--muted); width: 110px; flex-shrink: 0; }
.np-info-val { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.np-copy-inline { color: var(--muted); cursor: pointer; font-size: 13px; transition: var(--t); }
.np-copy-inline:hover { color: var(--green); }

.np-footer-left-msg { display: flex; align-items: center; gap: 10px; }
.np-footer-msg-text { font-size: 11px; color: var(--muted); line-height: 1.4; }

.np-qr-instruction { font-size: 12px; color: var(--text-2); text-align: center; line-height: 1.4; }

.np-qr-img-wrap { background: var(--white); padding: 10px; border-radius: var(--r-lg); border: 1px solid var(--border); width: 190px; height: 190px; }
.np-qr-img-wrap img { width: 100%; height: 100%; object-fit: contain; }

.np-expiry-timer { text-align: center; font-size: 13px; color: var(--text-2); }
.np-refresh-link-wrap { text-align: center; }
.np-refresh-link { color: var(--blue); text-decoration: underline; font-size: 12px; cursor: pointer; }

/* Card network grid */
.card-network-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}

.network-logo-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: var(--r-md); padding: 8px 4px;
    cursor: pointer; transition: var(--t); font-size: 11px; color: var(--text-2); font-weight: 600;
}

.network-logo-btn img { width: 32px; height: 32px; object-fit: contain; }
.network-logo-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.network-logo-btn.active { border-color: var(--green); background: var(--green-bg); color: var(--green); }

/* ===== MISC UTILITY ===== */
img[src=''], img:not([src]) { opacity: 0; }

button, a, .mgcard, .mlcard, .sb-card, .mtab, .hdr-user-box {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
    .mlive-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .mggrid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
    .sb-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .mbslide { height: 230px; }
    .mbs1-title { font-size: 40px; }
}

@media (max-width: 480px) {
    .mlive-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .mggrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* Mobile Header Auth Box and Button */
.hdr-auth-box {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
}

.hdr-auth-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hdr-auth-btn.login {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #ffffff;
}

.hdr-auth-btn.logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}

.hdr-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
    .hdr-auth-btn span {
        display: none;
    }
    .hdr-auth-btn {
        padding: 6px 8px;
    }
}