/* ============================================================
   new_ui.css — Light mode overrides & additional components
   ============================================================ */

:root {
    --primary:      #16a34a;
    --primary-light:#22c55e;
    --text-muted:   #94a3b8;
    --green:        #16a34a;
    --green-bg:     #f0fdf4;
    --green-border: #bbf7d0;
    --blue:         #0369a1;
    --navy-900:     #f8fafc;
    --navy-800:     #ffffff;
    --border:       #e2e8f0;
    --border-green: #bbf7d0;
    --grad-green:   linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --shadow-green: 0 4px 14px rgba(22,163,74,0.22);
    --bg:           #f1f5f9;
    --bg-card:      #ffffff;
    --text:         #1e293b;
}

/* ===== MARQUEE ===== */
.mstrip { height: 36px; background: var(--green); border-bottom: none; }
.mstrip-lbl { background: rgba(0,0,0,0.15); }
.mstrip-fade-l { background: linear-gradient(90deg, var(--green), transparent); }
.mstrip-fade-r { background: linear-gradient(270deg, var(--green), transparent); }
.mstrip-text { color: white; }
.mstrip-item { color: rgba(255,255,255,0.92); }

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

/* ===== BANNER ===== */
.mban-out { background: var(--green); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.mbslide { background: linear-gradient(135deg, #15803d 0%, #166534 100%); }
.mbslide-featured {
    background:
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.08) 0%, transparent 50%),
        linear-gradient(135deg, #15803d 0%, #0f4c2a 60%, #0c3320 100%);
}
.mbs1-cta { background: white; color: var(--green); }
.mbd.on { background: white; }

/* ===== TABS ===== */
.mtab {
    background: white;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

/* ===== SECTION HEADERS ===== */
.msbar { background: var(--green); box-shadow: none; }
.mstit { color: #1e293b; }
.badge-live { background: #ef4444; }

/* ===== LIVE BACCARAT CARDS ===== */
.mlcard {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

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

.mlcard-name-gold  { color: #d97706; }
.mlcard-name-blue  { color: #0369a1; }
.mlcard-name-green { color: #16a34a; }
.mlcard-sub { color: #94a3b8; }
.mlcard-choose { color: #94a3b8; }

.mlcard-live {
    background: rgba(220,38,38,0.06);
    border: 1px solid rgba(220,38,38,0.18);
}

.mbead { background: #f1f5f9; border: 1px solid #e2e8f0; }
.mbead-b { color: #0369a1; }
.mbead-r { color: #dc2626; }
.mbead-t { color: #16a34a; }

/* ===== GAME CARDS ===== */
.mgcard, .sb-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

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

.sb-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 6px 20px rgba(124,58,237,0.10);
    transform: translateY(-4px);
}

.mgcard__name, .sb-card__name { color: #1e293b; }
.mgcard__players { color: #94a3b8; }

.sb-card__live {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.sb-card__ldot { background: #22c55e; box-shadow: none; }

/* ===== AUTH MODAL ===== */
.auth-modal {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ===== SIDE MENU DRAWER ===== */
.side-menu-drawer {
    background: white;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}

.side-menu-profile {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}

.sm-profile-username { color: #1e293b; }
.sm-profile-balance { color: #16a34a; }
.sm-profile-login-btn { color: #16a34a; }

.side-menu-section-label { color: #94a3b8; }

.side-menu-item { color: #475569; }
.side-menu-item:hover { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }

.side-menu-settings { background: #f8fafc; border-color: #e2e8f0; }
.sm-setting-label { color: #475569; }

/* ===== BUY KEY SECTION ===== */
.bk-page-title { color: #16a34a; text-shadow: none; }
.bk-page-sub { color: #64748b; }

.balance-card {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.balance-label { color: #64748b; }

.bk-tab {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
}

.bk-tab.active {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.bk-card { background: white; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.plan-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
}

.plan-card:hover {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    transform: translateY(-2px);
}

.plan-card.selected {
    background: #f0fdf4 !important;
    border: 2px solid #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1) !important;
}

.plan-name { color: #1e293b; }
.plan-desc { color: #64748b; }
.plan-check { border: 2px solid #e2e8f0; }
.plan-card.selected .plan-check { background: #16a34a; border-color: #16a34a; }

.confirm-btn {
    background: linear-gradient(135deg, #15803d, #16a34a, #15803d);
    color: white;
    box-shadow: 0 6px 20px rgba(22,163,74,0.3);
}

.confirm-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,74,0.4); }

.hist-key { color: #16a34a; }
.hist-status-ok { color: #16a34a; }
.hist-status-exp { color: #ef4444; }

/* ===== DEPOSIT SECTION ===== */
.dp-page-title { color: #d97706; text-shadow: none; }

.dp-card { background: white; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.dp-card-head { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.dp-card-head-title { color: #1e293b; }

.balance-row { background: #fffbeb; border: 1px solid #fde68a; }
.balance-amount { color: #d97706; }

.tab-row { }
.tab-btn { background: #f1f5f9; border: 1px solid #e2e8f0; color: #94a3b8; }
.tab-btn.active { background: #eff6ff; border-color: #93c5fd; color: #0369a1; }

.amount-label { color: #64748b; }
.amount-input { background: #f8fafc; border: 1.5px solid #e2e8f0; color: #1e293b; }
.amount-input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }

.quick-btn { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
.quick-btn:hover { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }
.quick-btn.active { background: #16a34a; border-color: #16a34a; color: white; }

.nap-btn { background: linear-gradient(135deg, #d97706, #b45309); color: white; box-shadow: 0 6px 20px rgba(217,119,6,0.3); }
.nap-btn:hover { transform: translateY(-2px); }

.notes-box { background: #fffbeb; border: 1px solid #fde68a; }
.notes-title { color: #d97706; }
.notes-item { color: #78350f; }
.notes-item span { color: #d97706; }

.qr-row { background: #f8fafc; }
.qr-row-label { color: #64748b; }
.qr-row-val { color: #1e293b; }
.qr-row-val.highlight { color: #0369a1; }
.copy-btn { color: #94a3b8; }
.copy-btn:hover { color: #16a34a; }

.qr-img-wrap { background: white; border: 1px solid #e2e8f0; }

.timer-box { background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; }
.timer-val { color: #d97706; }

.refresh-link { color: #64748b; }
.refresh-link:hover { color: #0369a1; }

.hist-btn { border: 1px solid #e2e8f0; color: #0369a1; }
.hist-btn:hover { background: #eff6ff; }
.hist-status-ok { color: #16a34a; }
.hist-status-pend { color: #f59e0b; }
.hist-status-fail { color: #ef4444; }

/* ===== RANKING ===== */
.rank-page-title { color: #1e293b; text-shadow: none; }

.vip-panel {
    background: white;
    border: 1px solid #fde68a;
}

.vip-panel-name { color: #d97706; }
.vip-panel-label { color: #94a3b8; }
.vip-panel-deposit { color: #64748b; }

.progress-labels { color: #94a3b8; }
.progress-track { background: #f1f5f9; }
.progress-fill { background: linear-gradient(90deg, #15803d, #22c55e); }

.rank-box {
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.rank-box-title { color: #1e293b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.rank-table-header { background: #f8fafc; color: #94a3b8; border-bottom: 1px solid #e2e8f0; }

.rank-row { border-bottom: 1px solid #f1f5f9; }
.rank-row:hover { background: #f8fafc; }
.rank-row.top1 { background: #fffbeb; }
.rank-row.top2 { background: #f8fafc; }
.rank-row.top3 { background: #fff7ed; }
.rank-user { color: #1e293b; }
.rank-amount { color: #d97706; }

.guide-box { background: white; border: 1px solid #e2e8f0; }
.guide-title { color: #1e293b; background: #f8fafc; }
.guide-item { background: #f8fafc; border-radius: 10px; }
.guide-item-name { color: #d97706; }
.guide-item-amount { color: #94a3b8; }

.not-logged-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #78350f;
}

.not-logged-notice i { color: #f59e0b; }
.not-logged-notice a { color: #16a34a; }

.loading-spin { color: #94a3b8; }

/* ===== HAMBURGER ===== */
.hdr-hamburger {
    background: none; border: none; outline: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; cursor: pointer; transition: 0.18s ease;
}

.hdr-hamburger:hover { background: #f1f5f9; }

.hamburger-line { width: 18px; height: 2px; background: #1e293b; border-radius: 2px; }

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

    .mpage { max-width: 1100px; padding-bottom: 40px; }
    .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 (min-width: 1025px) {
    .side-menu-overlay { display: none !important; }
}

/* ===== MISC ===== */
.toggle-slider { background: #cbd5e1; }
input:checked + .toggle-slider { background: #16a34a; }

/* Profile view */
#view-profile .back-btn { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; }
#view-profile .back-btn:hover { background: #f0fdf4; border-color: #bbf7d0; color: #16a34a; }

/* Nicepay light mode fixes */
.nicepay-container { background: white; border: 1.5px solid #e2e8f0; }
.nicepay-tabs { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.np-tab { color: #64748b; border-right: 1px solid #e2e8f0; }
.np-tab.active { color: #16a34a; background: white; border-bottom: 2px solid #16a34a; }
.np-readonly-val { background: #f8fafc; border: 1px dashed #cbd5e1; color: #475569; }
.np-ocb-logo { color: #16a34a; background: #f0fdf4; border: 2px solid #bbf7d0; }
.np-step-wrap { }
.np-banner { background: #f0fdf4; border: 1px solid #bbf7d0; }
.np-banner-title { color: #16a34a; }

/* PC User Dropdown styles */
.pc-nav-user-wrapper {
    position: relative;
    display: inline-block;
}

.pc-nav-user {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
    padding: 4px 8px;
}

.pc-nav-user:hover {
    background: #f1f5f9;
}

.pc-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 8px 0;
    margin-top: 8px;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.pc-nav-user-wrapper:hover .pc-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-user-dd-header {
    padding: 10px 16px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pc-user-dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: #475569;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.pc-user-dd-item:hover:not(.cursor-default) {
    background-color: #f0fdf4;
    color: #16a34a;
}

.pc-user-dd-item i {
    width: 20px;
    margin-right: 8px;
    font-size: 14px;
    color: #64748b;
    transition: color 0.15s ease;
}

.pc-user-dd-item:hover i {
    color: #16a34a;
}

.pc-user-dd-item.logout-btn:hover {
    background-color: #fef2f2;
    color: #ef4444;
}

.pc-user-dd-item.logout-btn:hover i {
    color: #ef4444;
}

.pc-user-dd-item.cursor-default {
    cursor: default;
}

.pc-user-dd-sep {
    height: 1px;
    margin: 6px 0;
    overflow: hidden;
    background-color: #f1f5f9;
}

@media (min-width: 769px) {
    .side-menu-drawer, .side-menu-overlay {
        display: none !important;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 1.5px;
    color: #1e293b;
    margin-bottom: 24px;
    animation: scale-logo 1.5s ease-in-out infinite alternate;
}

.preloader-logo span {
    color: #16a34a;
    background: linear-gradient(135deg, #16a34a 0%, #0ea5e9 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(22, 163, 74, 0.08);
    border-top-color: #16a34a;
    border-right-color: #0ea5e9;
    border-bottom-color: #7c3aed;
    border-radius: 50%;
    animation: spin-preloader 1s linear infinite;
}

.preloader-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.8px;
    animation: pulse-preloader 1.5s ease-in-out infinite;
}

@keyframes spin-preloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-preloader {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes scale-logo {
    0% { transform: scale(0.96); }
    100% { transform: scale(1.04); }
}

/* Color accents & Neon Glows */
:root {
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --blue-light: #38bdf8;
    --cyan: #0ea5e9;
    --grad-rainbow: linear-gradient(135deg, #16a34a 0%, #0ea5e9 50%, #7c3aed 100%);
}

.mstrip {
    background: var(--grad-rainbow) !important;
}

/* Page element fade-in animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glowing effects on hover */
.mlcard:hover {
    border-color: #0ea5e9 !important;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.15), 0 8px 10px -6px rgba(14, 165, 233, 0.1) !important;
}

.mgcard:hover {
    border-color: #16a34a !important;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.15), 0 8px 10px -6px rgba(22, 163, 74, 0.1) !important;
}

.sb-card:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.15), 0 8px 10px -6px rgba(124, 58, 237, 0.1) !important;
}

.confirm-btn, .auth-btn-login, .auth-btn-register {
    background: var(--grad-rainbow) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25) !important;
    transition: all 0.3s ease !important;
}

.confirm-btn:hover, .auth-btn-login:hover, .auth-btn-register:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35) !important;
    filter: brightness(1.1);
}@media (min-width: 769px) {
    main {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    .main-layout-container {
        max-width: 1400px !important;
        width: 95% !important;
        margin: 0 auto !important;
    }
    .mpage {
        max-width: 100% !important;
    }
}

/* Preloader redesign with TK Circuit Board Logo */
#preloader {
    background-color: rgba(6, 10, 20, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.tk-loader-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tk-loader {
    animation: tk-breath 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.8)) 
            drop-shadow(0 0 45px rgba(6, 182, 212, 0.6)) 
            drop-shadow(0 0 75px rgba(99, 102, 241, 0.5));
}

/* Pulse signaling flows */
.pulse-fast, .pulse-medium, .pulse-slow, .pulse-fast-reverse {
    stroke-dasharray: 24 76;
    stroke-linecap: round;
}

.pulse-fast {
    animation: pulse-flow 1s linear infinite;
}

.pulse-medium {
    animation: pulse-flow 1.5s linear infinite;
}

.pulse-slow {
    animation: pulse-flow 2s linear infinite;
}

.pulse-fast-reverse {
    animation: pulse-flow-rev 1s linear infinite;
}

@keyframes pulse-flow {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse-flow-rev {
    0% {
        stroke-dashoffset: -100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes tk-breath {
    0% {
        transform: scale(0.98);
        filter: drop-shadow(0 0 15px rgba(52, 211, 153, 0.6)) 
                drop-shadow(0 0 35px rgba(6, 182, 212, 0.4))
                drop-shadow(0 0 55px rgba(99, 102, 241, 0.3));
    }
    100% {
        transform: scale(1.03);
        filter: drop-shadow(0 0 30px rgba(52, 211, 153, 0.9)) 
                drop-shadow(0 0 60px rgba(6, 182, 212, 0.7))
                drop-shadow(0 0 100px rgba(99, 102, 241, 0.6));
    }
}

.preloader-text {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
    animation: preloader-text-glow 1.2s ease-in-out infinite alternate;
}

@keyframes preloader-text-glow {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 12px rgba(6, 182, 212, 0.6), 0 2px 4px rgba(0,0,0,0.5);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(6, 182, 212, 1), 0 0 30px rgba(52, 211, 153, 0.6), 0 2px 4px rgba(0,0,0,0.5);
    }
}

/* Nicepay Redesign fixes */
.nicepay-container {
    border-radius: 24px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.nicepay-tabs {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px 12px 0 !important;
    gap: 6px !important;
}

.np-tab {
    border-radius: 12px 12px 0 0 !important;
    border: 1px solid transparent !important;
    border-bottom: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
}

.np-tab.active {
    background: #ffffff !important;
    color: #16a34a !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #ffffff !important;
    margin-bottom: -1px !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02) !important;
}

.np-tab:hover:not(.active) {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.np-col-left {
    border-right: 1px solid #f1f5f9 !important;
    padding-right: 20px !important;
}

.np-readonly-val {
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    padding: 10px 14px !important;
}

.np-amount-input {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.np-amount-input:focus {
    border-color: #16a34a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1) !important;
}

.np-quick-btn {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-weight: 700 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

.np-quick-btn:hover {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #16a34a !important;
}

.np-quick-btn.active {
    background: var(--grad-rainbow) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(22,163,74,0.2) !important;
}

.dp-submit-btn, #btn-submit-card {
    background: var(--grad-rainbow) !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 15px rgba(22,163,74,0.25) !important;
    color: #ffffff !important;
    padding: 14px !important;
}

.dp-submit-btn:hover, #btn-submit-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(14,165,233,0.3) !important;
    filter: brightness(1.05) !important;
}

/* Network logo buttons for scratch card selection */
.card-network-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.network-logo-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    gap: 6px !important;
}

.network-logo-btn img {
    height: 24px !important;
    max-width: 80% !important;
    object-fit: contain !important;
}

.network-logo-btn span {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

.network-logo-btn:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    transform: translateY(-2px) !important;
}

.network-logo-btn.active {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    box-shadow: 0 4px 12px rgba(22,163,74,0.1) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

.network-logo-btn.active span {
    color: #16a34a !important;
}

/* Table rates stylings */
#card-rate-table {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

#card-rate-table .rate-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

#card-rate-table .rate-row:last-child {
    border-bottom: none !important;
}

#card-rate-table .rate-row .rate-val {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

.np-bank-logo-wrap {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 16px !important;
    padding: 16px !important;
}

.np-info-row {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 8px 0 !important;
}

.np-info-lbl {
    color: #64748b !important;
    font-size: 12px !important;
}

.np-info-val {
    color: #1e293b !important;
    font-weight: 700 !important;
}

/* Buy Key Redesign Grid Table */
.plan-list-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 1024px) {
    .plan-list-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .plan-list-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .plan-list-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .plan-list-grid .plan-card-grid:nth-child(5) {
        grid-column: 1 / -1 !important;
    }
}

.plan-card-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 12px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
    gap: 8px !important;
}

.plan-card-grid:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    transform: translateY(-4px) !important;
}

.plan-card-grid.selected {
    background: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.15), 0 0 0 2px #16a34a !important;
    transform: translateY(-4px) scale(1.02) !important;
}

.plan-card-grid img {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
}

.plan-name-grid {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    color: #0f172a !important;
}

.plan-desc-grid {
    font-size: 10px !important;
    color: #64748b !important;
    min-height: 28px !important;
}

.plan-price-grid {
    font-size: 24px !important;
    font-weight: 900 !important;
    margin-top: auto !important;
}

.plan-check-grid {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 2px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.plan-card-grid.selected .plan-check-grid {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.plan-check-grid i {
    font-size: 8px !important;
    color: #ffffff !important;
    display: none !important;
}

.plan-card-grid.selected .plan-check-grid i {
    display: block !important;
}

/* Recent transactions widget at home page */
.recent-system-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .recent-system-history {
        grid-template-columns: 1fr;
    }
}
.recent-history-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.recent-history-title {
    font-size: 14px;
    font-weight: 800;
    color: #22c1c3;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}
.recent-history-table-header {
    display: flex;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
}
.recent-history-table-header div {
    flex: 1;
}
.recent-history-table-header .th-user { flex: 1.2; }
.recent-history-table-header .th-desc { flex: 2; }
.recent-history-table-header .th-method { flex: 1.2; }
.recent-history-table-header .th-amount { flex: 1.2; text-align: right; }
.recent-history-table-header .th-time { flex: 1.5; text-align: right; }

.recent-history-list {
    display: flex;
    flex-direction: column;
    max-height: 240px;
    overflow-y: auto;
}
.recent-history-row {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid #f8fafc;
    font-size: 12px;
    color: #334155;
    transition: background-color 0.15s ease;
}
.recent-history-row:hover {
    background-color: #f8fafc;
}
.recent-history-row:last-child {
    border-bottom: none;
}
.recent-history-row .td-user {
    flex: 1.2;
    font-weight: 700;
    color: #1e293b;
}
.recent-history-row .td-desc {
    flex: 2;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-history-row .td-method {
    flex: 1.2;
}
.recent-history-row .badge-method {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}
.recent-history-row .badge-method.acb {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.recent-history-row .badge-method.card {
    background-color: #fef3c7;
    color: #d97706;
}
.recent-history-row .td-amount {
    flex: 1.2;
    text-align: right;
    font-weight: 800;
    color: #16a34a;
}
.recent-history-row .td-time {
    flex: 1.5;
    text-align: right;
    color: #94a3b8;
    font-size: 11px;
}

/* Profile Avatar Upload styles */
.avatar-upload-container {
    position: relative;
}
.avatar-upload-overlay {
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.avatar-upload-overlay:hover {
    transform: scale(1.1) rotate(10deg) !important;
}
.user-avatar-img {
    transition: border-color 0.2s ease;
}
.avatar-upload-container:hover .user-avatar-img {
    border-color: #22c1c3 !important;
}

/* News inbox style */
.news-inbox-item {
    display: flex;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    text-align: left;
}
.news-inbox-item:hover {
    border-color: #22c1c3;
    background: #f8fafc;
    transform: translateY(-2px);
}
.news-inbox-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(34, 193, 195, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c1c3;
    font-size: 16px;
    flex-shrink: 0;
}
.news-inbox-info {
    flex: 1;
    overflow: hidden;
}
.news-inbox-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-inbox-time {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-inbox-chevron {
    color: #cbd5e1;
    font-size: 12px;
}

/* ============================================================
   NEW PREMIUM STYLES (Đợt 4)
   ============================================================ */

/* QR Code Diagonal Sweep Rainbow Animation */
.np-qr-img-wrap {
    position: relative;
    padding: 8px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-qr-img-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 3.5px; /* Border thickness */
    background: linear-gradient(135deg, #ff0055, #7a00ff, #00ffcc, #ffcc00, #ff0055);
    background-size: 400% 400%;
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: rainbow-diagonal-sweep 4s ease infinite alternate;
}

@keyframes rainbow-diagonal-sweep {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Premium Login / Register Auth Modals */
.new-auth-style {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 30px !important;
    max-width: 420px !important;
    width: 90% !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    font-family: 'Inter', sans-serif !important;
}

.auth-header-new {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-new {
    height: 48px;
    margin-bottom: 16px;
    object-fit: contain;
}

.auth-title-new {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.auth-subtitle-new {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.auth-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.new-auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field-icon-new {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
}

.auth-input-new {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input-new:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-username-bg {
    background: #f0f5ff !important;
    border-color: #dbeafe !important;
}

.input-username-bg:focus {
    border-color: #4f46e5 !important;
}

.auth-eye-new {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.new-auth-btn {
    width: 100%;
    padding: 12px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.new-auth-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 10px;
    font-weight: 500;
}

.new-google-btn {
    width: 100%;
    padding: 11px;
    background: #ffffff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.new-google-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.auth-toggle-link {
    text-align: center;
    margin-top: 24px;
    font-size: 13.5px;
    color: #6b7280;
}

.auth-switch-link {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* Card Deposit Upgrades */
.card-banner-purple {
    background: #3b0764 !important;
    border-color: #581c87 !important;
}

.text-yellow-badge {
    background: #fbbf24 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

.text-green-bold {
    color: #22c55e !important;
    font-weight: 800 !important;
}

.card-rate-table-outer {
    background: #180927 !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px !important;
}

.card-rate-table-header {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #f59e0b !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    font-style: italic !important;
}

.card-rate-table-body {
    font-size: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.rate-table-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 6px 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
}

.rate-table-row.rate-table-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 4px !important;
    font-weight: bold !important;
}

.rate-table-row.rate-table-head span {
    color: rgba(255, 255, 255, 0.5) !important;
}

.rate-table-row:not(.rate-table-head) span:first-child {
    text-transform: capitalize !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

.rate-table-row:not(.rate-table-head) span:last-child {
    color: #f87171 !important; /* light red percentage */
    font-weight: 800 !important;
}

/* Calculation Box */
.card-payout-calc-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-size: 12.5px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.calc-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.calc-label {
    color: #4b5563 !important;
    font-weight: 500 !important;
}

.calc-val-red {
    font-weight: 700 !important;
    color: #dc2626 !important;
}

.calc-val-green {
    font-weight: 700 !important;
    color: #16a34a !important;
}

.calc-divider {
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    margin: 4px 0 !important;
}

.calc-payout-row {
    padding-top: 4px !important;
}

.calc-label-payout {
    color: #1e293b !important;
    font-weight: 700 !important;
}

.calc-val-payout {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #d97706 !important; /* large yellow bold payout */
}

/* Premium Bank Details */
.np-new-banking-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    text-align: left;
}

.np-info-row-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.np-info-lbl-new {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
}

.np-info-val-new {
    font-size: 14px;
    font-weight: 700;
}

.font-navy-blue {
    color: #1e3a8a !important; /* Navy blue */
}

.font-dark-green {
    color: #15803d !important; /* Dark green */
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-orange {
    color: #ea580c !important; /* Orange */
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-icon-green {
    color: #16a34a;
    cursor: pointer;
    transition: transform 0.1s;
}

.copy-icon-green:active {
    transform: scale(0.9);
}

.copy-icon-orange {
    color: #ea580c;
    cursor: pointer;
    transition: transform 0.1s;
}

.copy-icon-orange:active {
    transform: scale(0.9);
}

.np-ndck-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.np-ndck-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
}

.np-ndck-box {
    background: #fff5f5 !important; /* Pink container */
    border: 2px dashed #ef4444 !important; /* Red dashed border */
    border-radius: 12px !important;
    padding: 16px !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #dc2626 !important; /* Bold red copy button */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05) !important;
}

.np-ndck-box .dp-copy-btn {
    color: #dc2626 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
}

.np-ndck-box .dp-copy-btn:hover {
    transform: scale(1.1) !important;
}

.np-ndck-box .dp-copy-btn:active {
    transform: scale(0.9) !important;
}

/* Premium Game Card styling */
.mgcard, .sb-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.mgcard img, .sb-card img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mgcard:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25), 0 0 15px rgba(59, 130, 246, 0.15) !important;
}

.mgcard:hover img {
    transform: scale(1.08) !important;
}

.sb-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: rgba(167, 139, 250, 0.6) !important;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25), 0 0 15px rgba(139, 92, 246, 0.15) !important;
}

.sb-card:hover img {
    transform: scale(1.08) !important;
}

/* Recent History Premium styling */
.recent-system-history {
    font-family: 'Inter', sans-serif !important;
}

.recent-history-row {
    font-family: 'Inter', sans-serif !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
}

.recent-history-row:hover {
    background: #ffffff !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

/* Mobile choice sheet */
.mobile-choice-modal-inner {
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    padding: 24px 20px !important;
}

.choice-modal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    outline: none;
}

.choice-modal-btn:hover, .choice-modal-btn:active {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.choice-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.choice-modal-btn:hover .choice-icon-wrap {
    background: #4f46e5;
    color: #ffffff;
}

.choice-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.choice-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.choice-sub {
    font-size: 11.5px;
    color: #64748b;
}

.choice-arrow {
    color: #cbd5e1;
    font-size: 12px;
    transition: transform 0.2s;
}

.choice-modal-btn:hover .choice-arrow {
    color: #16a34a;
    transform: translateX(3px);
}

/* Completely remove/hide mobile hamburger button */
.hdr-hamburger {
    display: none !important;
}

/* ============================================================
   MOBILE PERFORMANCE & RESPONSIVE LAYOUT OPTIMIZATIONS
   ============================================================ */
@media (max-width: 768px) {
    /* Disable performance-heavy backdrop blur on mobile GPUs */
    .mgcard, .sb-card, .nicepay-container, .modal-overlay, .modal, .auth-modal, .mobile-choice-modal-inner {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Solid background fallback to keep content readable and crisp */
    .mgcard, .sb-card {
        background: #ffffff !important;
    }
    
    /* Disable GPU-draining glow animations on touch events */
    .mgcard:hover, .sb-card:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        border-color: #cbd5e1 !important;
    }
    
    .mgcard:hover img, .sb-card:hover img {
        transform: none !important;
    }



    /* Disable moving gradient mask for static premium look */
    .np-qr-img-wrap::before {
        animation: none !important;
        background: linear-gradient(135deg, #ff0055, #7a00ff) !important;
    }
}

@media (max-width: 480px) {
    /* Auto fit text inputs and buttons for small screens */
    .new-auth-style {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }
    .auth-title-new {
        font-size: 19px !important;
    }
    .auth-subtitle-new {
        font-size: 12.5px !important;
    }
    .auth-input-new {
        padding: 10px 12px 10px 38px !important;
        font-size: 13px !important;
    }
    
    /* Fit QR details & content boxes */
    .np-ndck-box {
        font-size: 16px !important;
        padding: 12px !important;
    }
    .calc-val-payout {
        font-size: 18px !important;
    }
    
    /* Fit Mobile modal sheet */
    .mobile-choice-modal-inner {
        padding: 20px 14px !important;
        border-radius: 18px !important;
    }
    .choice-modal-btn {
        padding: 12px !important;
        gap: 12px !important;
    }
    .choice-icon-wrap {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    .choice-title {
        font-size: 13px !important;
    }
    .choice-sub {
        font-size: 11px !important;
    }
}

/* ============================================================
   RESPONSIVE LAYOUT & MODAL SCROLLING ADJUSTMENTS (ALL DEVICES)
   ============================================================ */

/* Prevent modal content cutoff on short/landscape viewports */
.modal, .auth-modal, .deposit-modal, .mobile-choice-modal-inner, #settings-modal .modal, #change-pwd-modal .modal {
    max-height: 85vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

/* Ensure inputs never overflow their container */
.auth-input-new, .np-amount-input, .dp-input, .auth-input, .np-select {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Tablets and iPad Portrait Viewports (max-width: 991px) */
@media (max-width: 991px) {
    .nicepay-grid, .recent-system-history {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .np-col-left, .np-col-right {
        width: 100% !important;
    }
    /* Fix layout margins */
    .mpage {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Small Laptop & iPad Landscape Viewports (min-width: 769px) and (max-width: 1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
    .pc-nav-links {
        gap: 8px !important;
    }
    .pc-nav-link {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
    .pc-nav-logo-text {
        font-size: 17px !important;
    }
    /* Hide username text on tight top menu to prevent overflow */
    .pc-nav-user-info {
        display: none !important;
    }
}

/* Extremely Small/Narrow Viewports (max-width: 360px) like iPhone 5/SE/older phones */
@media (max-width: 360px) {
    .auth-title-new {
        font-size: 17px !important;
    }
    .new-auth-style {
        padding: 16px 12px !important;
    }
    .np-ndck-box {
        font-size: 14px !important;
        padding: 10px !important;
        letter-spacing: 0px !important;
    }
    .calc-val-payout {
        font-size: 16px !important;
    }
    .hdr-logo-text {
        font-size: 15px !important;
    }
    .hdr-user-info {
        max-width: 80px !important;
    }
}

/* ============================================================
   COMPREHENSIVE UI/UX RESPONSIVE OVERHAUL (MOBILE-FIRST)
   ============================================================ */

/* 1. Telegram Wiggle Animation */
@keyframes telegramWiggle {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-6deg); }
    20%, 40%, 60%, 80% { transform: rotate(6deg); }
}

.telegram-wiggle i, .telegram-wiggle-btn {
    display: inline-block !important;
    animation: telegramWiggle 2.5s ease-in-out infinite !important;
    transform-origin: center !important;
}

/* 2. Mobile Header Responsive Fixes */
@media (max-width: 768px) {
    .hdr-pmg {
        height: 48px !important;
    }
    .hdr-pmg-inner {
        height: 48px !important;
        padding: 0 10px !important;
        grid-template-columns: 1.2fr auto 1.2fr !important;
    }
    .hdr-user-box {
        gap: 4px !important;
        padding: 2px 6px 2px 2px !important;
        border-radius: 20px !important;
    }
    .hdr-avatar-wrap {
        width: 24px !important;
        height: 24px !important;
    }
    .hdr-username {
        font-size: 10px !important;
        max-width: 55px !important;
        font-weight: 700 !important;
    }
    .hdr-balance {
        font-size: 9px !important;
    }
    .hdr-logo-img {
        height: 20px !important;
    }
    .hdr-logo-text {
        font-size: 10px !important;
    }
    .hdr-auth-btn {
        padding: 4px 8px !important;
        font-size: 10px !important;
        border-radius: 8px !important;
    }
}

/* 3. Form Nạp Thẻ Responsive & Vertical Layout */
@media (max-width: 768px) {
    .np-form-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .np-label {
        width: 100% !important;
        font-size: 12.5px !important;
        margin-bottom: 2px !important;
        color: #475569 !important;
        text-align: left !important;
    }
    .np-select-wrapper {
        width: 100% !important;
    }
    .np-col-left {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-right: 0 !important;
        padding-bottom: 20px !important;
        gap: 16px !important;
    }
    .np-col-right {
        padding-top: 16px !important;
    }
    .np-amount-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .np-amount-label {
        width: 100% !important;
        font-size: 12.5px !important;
        margin-bottom: 2px !important;
        color: #475569 !important;
        text-align: left !important;
    }
    .np-amount-input {
        width: 100% !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    .card-network-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .network-logo-btn {
        padding: 8px 4px !important;
        border-radius: 12px !important;
        gap: 4px !important;
        height: 64px !important;
    }
    .network-logo-btn img {
        height: 20px !important;
    }
    .network-logo-btn span {
        font-size: 9.5px !important;
    }
}

/* 4. Box Tính Toán Thực Nhận Premium Visual Hierarchy */
.card-payout-calc-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.calc-row {
    margin-bottom: 6px !important;
}
.calc-row:last-child {
    margin-bottom: 0 !important;
}
.calc-divider {
    display: none !important; /* hide standard hr */
}
.calc-payout-row {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    margin-top: 6px !important;
}
.calc-label-payout {
    color: #14532d !important;
    font-weight: 700 !important;
}
.calc-val-payout {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #15803d !important;
}

/* 5. Action Buttons Responsive Height & Tap States */
@media (max-width: 768px) {
    .confirm-btn, #btn-submit-card {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
        height: auto !important;
    }
}
.confirm-btn, #btn-submit-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.confirm-btn:hover, #btn-submit-card:hover {
    transform: translateY(-1.5px) !important;
    filter: brightness(1.08) !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}
.confirm-btn:active, #btn-submit-card:active {
    transform: translateY(1px) !important;
    filter: brightness(0.92) !important;
}

/* 6. Recent Orders List conversion to grid cards on Mobile */
@media (max-width: 768px) {
    .recent-history-table-header {
        display: none !important;
    }
    .recent-history-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-gap: 4px !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .recent-history-row .td-user {
        grid-column: 1 !important;
        font-size: 12.5px !important;
        text-align: left !important;
    }
    .recent-history-row .td-amount {
        grid-column: 2 !important;
        font-size: 12.5px !important;
        text-align: right !important;
    }
    .recent-history-row .td-desc,
    .recent-history-row .td-method {
        grid-column: 1 !important;
        font-size: 11px !important;
        color: #64748b !important;
        text-align: left !important;
        white-space: normal !important;
    }
    .recent-history-row .td-time {
        grid-column: 2 !important;
        font-size: 11px !important;
        color: #94a3b8 !important;
        text-align: right !important;
    }
    .recent-history-list {
        max-height: 280px !important;
        padding: 4px !important;
    }
}

/* 7. Bottom Navigation Redesign & FAB Center Floating button */
.mbotnav {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06) !important;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    padding-top: 4px !important;
}
.mbotnav-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 8px !important;
}
.mbn-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 !important;
    padding: 4px 0 !important;
    text-align: center !important;
    border: none !important;
    background: none !important;
}
.mbn-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}
.mbn-label {
    font-size: 8.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
}
.mbn-item.active .mbn-icon {
    color: #16a34a !important;
    background: #f0fdf4 !important;
    font-size: 15px !important;
}
.mbn-item.active .mbn-label {
    color: #16a34a !important;
    font-weight: 800 !important;
}
.mbn-item.mbn-center .mbn-icon {
    background: #16a34a !important;
    color: #ffffff !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(22,163,74,0.3) !important;
    margin-top: -12px !important;
}
.mbn-item.mbn-center.active .mbn-icon {
    background: #15803d !important;
    color: #ffffff !important;
}
.mbn-item.mbn-center .mbn-label {
    color: #16a34a !important;
}
.mbn-item.active::before {
    display: none !important;
}

/* 8. Light/White Theme Discount Table matching Nicepay */
.card-rate-table-outer {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
.card-rate-table-header {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-style: normal !important;
}
#card-rate-table {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    padding: 10px !important;
}

/* 9. Overall Responsiveness & Spacing (max-width: 480px) */
@media (max-width: 480px) {
    .mggrid, .sb-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .mlive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .mgcard, .sb-card, .mlcard {
        height: 100% !important;
        border-radius: 16px !important;
        padding: 12px 8px !important;
    }
}

/* ============================================================
   10. Source Code Marketplace & Details Section (V4 Additions)
   ============================================================ */

/* Tabs for Source Code Filters */
.sc-filter-tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0 16px;
    flex-wrap: wrap;
}

.sc-tab {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sc-tab:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.sc-tab.active {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
}

/* Product Cards Grid */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 769px) {
    .sc-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Source Code Card Component */
.sc-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.sc-card:hover {
    border-color: #16a34a;
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.12), 0 8px 10px -6px rgba(22, 163, 74, 0.08);
    transform: translateY(-4px);
}

/* Image Wrapper */
.sc-card-media {
    position: relative;
    width: 100%;
    padding-top: 65%; /* aspect ratio 16:10 approx */
    background: #f8fafc;
    overflow: hidden;
}

.sc-card-img, .sc-card-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sc-card:hover .sc-card-img {
    transform: scale(1.05);
}

/* Ribbon */
.sc-card-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

/* Favorite button */
.sc-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.sc-card-fav:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.sc-card-fav.active {
    color: #ef4444;
    background: #fef2f2;
}

/* Author Avatar overlay */
.sc-card-author {
    position: absolute;
    bottom: -16px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: var(--grad-rainbow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 3;
}

/* Card Body content */
.sc-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sc-card-cat {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.sc-card-cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97316;
    margin-right: 6px;
}

.sc-card-rating {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-card-rating i {
    color: #fbbf24;
}

.sc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

/* Card Footer */
.sc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.sc-card-time {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.sc-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #16a34a;
}

/* ============================================================
   PRODUCT DETAIL VIEW PANEL STYLINGS
   ============================================================ */
.pd-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

.pd-bc-item {
    cursor: pointer;
    transition: color 0.15s ease;
}

.pd-bc-item:hover:not(.active) {
    color: #16a34a;
}

.pd-bc-item.active {
    color: #1e293b;
    font-weight: 700;
    cursor: default;
}

.pd-bc-sep {
    font-size: 10px;
    margin: 0 8px;
    color: #cbd5e1;
}

.pd-actions {
    display: flex;
    gap: 8px;
}

.pd-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.pd-action-btn:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}

.pd-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* 2-Column Grid Layout */
.pd-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 769px) {
    .pd-grid-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 28px;
    }
}

/* Left Showcase */
.pd-col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-preview-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: #f8fafc;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.pd-preview-img, .pd-preview-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain;
}

.pd-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-dot.active {
    background: #16a34a;
    width: 16px;
    border-radius: 4px;
}

/* Right Checkout Info */
.pd-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-price-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
}

.pd-price-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pd-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pd-price-new {
    font-size: 26px;
    font-weight: 900;
    color: #16a34a;
}

.pd-price-old {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

/* Feature Checkmarks */
.pd-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
}

.pd-features-list li i {
    color: #16a34a;
    font-size: 14px;
}

/* Pay Button */
.pd-buy-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    background: var(--grad-rainbow);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pd-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
    filter: brightness(1.05);
}

/* Statistics Boxes */
.pd-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pd-stat-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.pd-stat-num {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 2px;
}

.pd-stat-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
}

/* Related Tags */
.pd-tags-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pd-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pd-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* PDU Instructions card */
.pd-instructions-card {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 24px;
    text-align: left;
}

.pd-inst-header {
    font-size: 12px;
    font-weight: 800;
    color: #16a34a;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pd-inst-body {
    font-size: 13px;
    font-weight: 500;
    color: #15803d;
    line-height: 1.5;
}

/* Catalog Card tags and stats enhancements */
.sc-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.sc-tag-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}

.sc-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
}

.sc-card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-card-stats span i {
    color: #94a3b8;
}

/* Mobile side menu submenu style */
.has-submenu {
    display: flex;
    flex-direction: column;
}

.side-submenu {
    border-left: 2px solid #e2e8f0;
    margin-left: 24px !important;
}

.submenu-arrow {
    transition: transform 0.2s ease;
}

/* Purchased Source Codes styling */
.my-sc-history-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.my-sc-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.my-sc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.my-sc-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.my-sc-meta {
    flex: 1;
    min-width: 200px;
}

.my-sc-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 6px;
}

.my-sc-date {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-sc-dl-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.my-sc-dl-btn:hover {
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.my-sc-instructions {
    background: #f0fdf4;
    border: 1px dashed #bbf7d0;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
}

.my-sc-inst-title {
    font-size: 12px;
    font-weight: 800;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-sc-inst-body {
    font-size: 12.5px;
    color: #166534;
    line-height: 1.6;
    font-weight: 500;
}

/* Gen Z Light-Theme Styled Purchased Source Code Table */
.sc-history-filter-card {
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: var(--shadow-sm) !important;
}

.sc-history-input {
    width: 100%;
    background: var(--bg) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    color: var(--text) !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.sc-history-input:focus {
    border-color: var(--green) !important;
    background: var(--white) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

.sc-history-select {
    width: 100%;
    background: var(--bg) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    color: var(--text) !important;
    font-size: 13px !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.sc-history-select:focus {
    border-color: var(--green) !important;
    background: var(--white) !important;
}

.sc-history-btn-search {
    background: var(--green) !important;
    border: none !important;
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    height: 42px !important;
    justify-content: center !important;
}

.sc-history-btn-search:hover {
    background: #15803d !important;
    transform: translateY(-1px);
}

.sc-history-btn-clear {
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    color: var(--text-2) !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sc-history-btn-clear:hover {
    background: var(--bg) !important;
    color: var(--text) !important;
}

.sc-history-table-card {
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 20px !important;
}

#view-my-sourcecodes table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    color: var(--text) !important;
}

#view-my-sourcecodes table thead tr {
    border-bottom: 1.5px solid var(--border) !important;
    background: var(--bg) !important;
}

#view-my-sourcecodes table th {
    padding: 14px 16px !important;
    color: var(--text-2) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#view-my-sourcecodes table tbody tr {
    border-bottom: 1px solid var(--border) !important;
    background: var(--white) !important;
    transition: all 0.2s ease !important;
}

#view-my-sourcecodes table tbody tr:hover {
    background: var(--green-bg) !important;
}

#view-my-sourcecodes table td {
    padding: 14px 16px !important;
    color: var(--text) !important;
    vertical-align: middle !important;
}

.save-note-textarea {
    width: 100%;
    min-width: 140px;
    max-width: 250px;
    height: 38px;
    background: var(--bg) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    color: var(--text) !important;
    font-size: 12px !important;
    resize: none !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.save-note-textarea:focus {
    border-color: var(--green) !important;
    background: var(--white) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

.instruction-row td {
    padding: 0 !important;
    border-bottom: none !important;
}

.instruction-collapse-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg) !important;
    border-bottom: 1.5px solid var(--border) !important;
}

.instruction-collapse-box.open {
    max-height: 500px;
}

.instruction-content-inner {
    padding: 16px 20px !important;
}

.instruction-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--green) !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-action-sm {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.btn-action-sm.view-inst {
    background: var(--green-bg) !important;
    border-color: var(--green-border) !important;
    color: var(--green) !important;
}

.btn-action-sm.view-inst:hover, .btn-action-sm.view-inst.active {
    background: var(--green) !important;
    color: var(--white) !important;
    border-color: transparent !important;
}

.btn-action-sm.download {
    background: var(--blue-bg) !important;
    border-color: var(--blue-light) !important;
    color: var(--blue) !important;
}

.btn-action-sm.download:hover {
    background: var(--blue) !important;
    color: var(--white) !important;
    border-color: transparent !important;
}

.btn-action-sm.delete {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: var(--red) !important;
}

.btn-action-sm.delete:hover {
    background: var(--red) !important;
    color: var(--white) !important;
    border-color: transparent !important;
}

.paginate-btn-custom {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

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

.paginate-btn-custom.active {
    background: var(--green);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.paginate-btn-custom:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.paginate-dots {
    color: var(--muted);
    padding: 0 4px;
    font-weight: bold;
}

/* Responsive Table Layout for Mobile (Gen Z Style Card List) */
@media (max-width: 768px) {
    #view-my-sourcecodes table, 
    #view-my-sourcecodes table tbody {
        display: block !important;
        width: 100% !important;
    }
    
    #view-my-sourcecodes table thead {
        display: none !important;
    }
    
    #view-my-sourcecodes table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: var(--white) !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 20px !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        box-shadow: var(--shadow-sm) !important;
        transition: all 0.2s ease !important;
        gap: 4px !important;
    }
    
    #view-my-sourcecodes table tbody tr:hover {
        border-color: var(--green) !important;
        transform: translateY(-2px) !important;
    }
    
    #view-my-sourcecodes table tbody td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 0 !important;
        border: none !important;
        font-size: 13px !important;
        color: var(--text) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Flexbox Ordering for clean vertical visual hierarchy */
    #view-my-sourcecodes table tbody td:nth-of-type(1) { order: 1; border-bottom: 1px dashed var(--border) !important; padding-bottom: 12px !important; margin-bottom: 8px !important; }
    #view-my-sourcecodes table tbody td:nth-of-type(4) { order: 2; font-size: 15px !important; font-weight: 800 !important; color: var(--green) !important; justify-content: flex-start !important; border-bottom: 1px solid var(--bg) !important; padding-bottom: 8px !important; margin-bottom: 4px !important; }
    #view-my-sourcecodes table tbody td:nth-of-type(3) { order: 3; }
    #view-my-sourcecodes table tbody td:nth-of-type(8) { order: 4; }
    #view-my-sourcecodes table tbody td:nth-of-type(5) { order: 5; }
    #view-my-sourcecodes table tbody td:nth-of-type(6) { order: 6; }
    #view-my-sourcecodes table tbody td:nth-of-type(7) { order: 7; flex-direction: column !important; align-items: stretch !important; margin-top: 6px !important; margin-bottom: 6px !important; }
    #view-my-sourcecodes table tbody td:nth-of-type(2) { order: 8; display: flex !important; flex-direction: row !important; justify-content: flex-end !important; flex-wrap: wrap !important; gap: 8px !important; border-top: 1px dashed var(--border) !important; padding-top: 12px !important; margin-top: 8px !important; }

    /* Custom Labels */
    #view-my-sourcecodes table tbody td:nth-of-type(1)::before {
        content: "CHỌN ĐƠN HÀNG HÀNG LOẠT";
        font-weight: 800;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(4)::before {
        display: none !important;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(3)::before {
        content: "MÃ ĐƠN HÀNG";
        font-weight: 800;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(8)::before {
        content: "THỜI GIAN MUA";
        font-weight: 800;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(5)::before {
        content: "SỐ LƯỢNG SẢN PHẨM";
        font-weight: 800;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(6)::before {
        content: "TỔNG THANH TOÁN";
        font-weight: 800;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(7)::before {
        content: "GHI CHÚ CÁ NHÂN CỦA BẠN";
        font-weight: 800;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: 0.5px;
        display: block !important;
        margin-bottom: 6px !important;
        text-align: left !important;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(7) .save-note-textarea {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 54px !important;
    }
    
    #view-my-sourcecodes table tbody td:nth-of-type(2)::before {
        display: none !important;
    }
    
    /* Instruction Sub-Row formatting on mobile */
    #view-my-sourcecodes table tbody tr.instruction-row {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-top: -12px !important;
        margin-bottom: 12px !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    #view-my-sourcecodes table tbody tr.instruction-row:hover {
        transform: none !important;
    }
    
    #view-my-sourcecodes table tbody tr.instruction-row td {
        padding: 0 !important;
        display: block !important;
    }
    
    #view-my-sourcecodes .instruction-collapse-box {
        border-radius: 12px !important;
        background: var(--bg) !important;
        border: 1.5px solid var(--border) !important;
    }
    
    #view-my-sourcecodes .instruction-content-inner {
        padding: 12px 14px !important;
    }

    /* Footer structure formatting for mobile view */
    #view-my-sourcecodes table tfoot {
        display: block !important;
        width: 100% !important;
    }
    
    #view-my-sourcecodes table tfoot tr {
        display: block !important;
        background: var(--white) !important;
        border: 1.5px solid var(--border) !important;
        border-radius: 20px !important;
        padding: 16px !important;
        box-shadow: var(--shadow-sm) !important;
        margin-top: 16px !important;
    }
    
    #view-my-sourcecodes table tfoot td {
        display: block !important;
        padding: 0 !important;
        border: none !important;
    }
    
    #view-my-sourcecodes table tfoot td div {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    
    #view-my-sourcecodes table tfoot td div div {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        border-top: 1px dashed var(--border) !important;
        padding-top: 12px !important;
        margin-top: 4px !important;
        font-size: 12.5px !important;
    }
    
    #view-my-sourcecodes table tfoot #btn-delete-selected {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important;
        height: 42px !important;
        margin-right: 0 !important;
    }
    
    .mobile-filter-buttons {
        display: flex !important;
        width: 100% !important;
        justify-content: stretch !important;
        gap: 8px !important;
    }
    
    .mobile-filter-buttons button {
        flex: 1 !important;
        justify-content: center !important;
        padding: 10px !important;
        height: 42px !important;
    }
}
