﻿/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  Glowing — Design System CSS                                        ║
   ║  Khớp với Glowing_UXUI.html & Glowing_ux_ui_design.html           ║
   ║  Palette: rose / navy / gold / sage / purple · Playfair + DM Sans     ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

:root {
    --rose: #E8526A;
    --rose-l: #FDEEF1;
    --rose-d: #B03452;
    --rose-ll: #FFF5F7;
    --navy: #1C2B4A;
    --navy-m: #2D4070;
    --navy-l: #EEF2FA;
    --gold: #C9922A;
    --gold-l: #FDF4E7;
    --gold-d: #9B6E1A;
    --sage: #3D7A5E;
    --sage-l: #EBF5F0;
    --purple: #7B4FBF;
    --purple-l: #F0EBF9;
    --ink: #1A1A2E;
    --muted: #6B7280;
    --light: #F8F7F5;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --border-s: #D8DAE0;
    --danger: #DC2626;
    --danger-l: #FEE2E2;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --r: 12px;
    --r-sm: 8px;
    --r-pill: 999px;
    --shadow: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 6px 18px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
}

body.glow-body {
    font-family: var(--font-body);
    background: var(--light);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Footer không co lại, giữ kích thước tự nhiên của nó */
.glow-footer {
    flex-shrink: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-s);
    border-radius: 4px;
}

/* ── CONTAINERS ──────────────────────────────────────────────────────── */
.gq-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gq-section {
    padding: 32px 24px;
}

.gq-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}

.section-sub {
    font-size: 13px;
    color: var(--muted);
}

.section-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--rose);
    font-weight: 500;
    cursor: pointer;
}

    .section-more:hover {
        text-decoration: underline;
    }

/* ── TOP NAV ─────────────────────────────────────────────────────────── */
.glow-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--rose);
    letter-spacing: -.5px;
    margin-right: 28px;
    flex-shrink: 0;
}

    .nav-logo span {
        color: var(--navy);
    }

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .15s;
    border: none;
    background: none;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .nav-link:hover, .nav-link.active {
        color: var(--ink);
        background: var(--light);
    }

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--white);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 15px;
    transition: background .15s;
    text-decoration: none;
    color: var(--ink);
}

    .nav-icon-btn:hover {
        background: var(--light);
    }

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--rose);
    color: var(--white);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.level-badge {
    background: var(--gold-l);
    color: var(--gold-d);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    border: 1px solid #F0D9A0;
    white-space: nowrap;
}

/* ── NOTIFICATION BELL ──────────────────────────────────────────────── */
.nav-notif-wrap {
    position: relative;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    max-height: 420px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 12px 32px rgba(20,20,30,.16);
    z-index: 1200;
    overflow: hidden;
    flex-direction: column;
}

    .notif-dropdown.open {
        display: flex;
    }

.notif-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    background: var(--light);
    flex-shrink: 0;
}

    .notif-dropdown-head button {
        border: none;
        background: none;
        font-size: 11px;
        font-weight: 600;
        color: var(--rose);
        cursor: pointer;
        padding: 0;
    }

        .notif-dropdown-head button:hover {
            text-decoration: underline;
        }

.notif-list {
    overflow-y: auto;
    flex: 1;
}

.notif-empty {
    padding: 32px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .12s;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: var(--light);
    }

    .notif-item.unread {
        background: var(--rose-l);
    }

        .notif-item.unread:hover {
            background: #fbdfe5;
        }

        .notif-item.unread .notif-item-title::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--rose);
            margin-right: 6px;
        }

.notif-item-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.notif-item-body {
    min-width: 0;
    flex: 1;
}

.notif-item-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-time {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── FLOATING MASCOT — Avatar thật của khách hàng, không khung, chỉ đổ bóng ── */
.glow-mascot {
    position: fixed;
    right: 26px;
    bottom: 22px;
    width: 100px;
    height: 140px;
    z-index: 1500;
    cursor: pointer;
    animation: glow-mascot-float 3.2s ease-in-out infinite;
    transition: transform .2s;
}

    .glow-mascot:hover {
        transform: scale(1.06);
    }

.glow-mascot-pedestal {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 56px;
    height: 12px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(20,20,30,.32), rgba(20,20,30,0) 72%);
    border-radius: 50%;
    animation: glow-mascot-shadow 3.2s ease-in-out infinite;
}

.glow-mascot-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 10px rgba(20,20,30,.25));
}

    .glow-mascot-avatar svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.glow-mascot-bubble {
    position: absolute;
    bottom: 100%;
    right: 4px;
    margin-bottom: 10px;
    background: var(--white);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(20,20,30,.18);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: all .2s;
    z-index: 1;
}

    .glow-mascot-bubble::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 18px;
        border: 6px solid transparent;
        border-top-color: var(--white);
    }

    .glow-mascot-bubble.show {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes glow-mascot-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes glow-mascot-shadow {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: .5;
        transform: translateX(-50%) scale(.7);
    }
}

@media (max-width: 600px) {
    .glow-mascot {
        width: 74px;
        height: 100px;
        right: 14px;
        bottom: 16px;
    }
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.nav-name-block {
    display: none;
}

.nav-user-dd {
    position: relative;
}

.nav-dd-menu {
    position: absolute;
    top: 46px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-md);
    min-width: 190px;
    padding: 6px;
    z-index: 1100;
    display: none;
    flex-direction: column;
    gap: 1px;
}

    .nav-dd-menu.open {
        display: flex;
    }

.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
}

    .nav-dd-item:hover {
        background: var(--light);
    }

    .nav-dd-item.danger {
        color: var(--danger);
    }

.nav-dd-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 2px;
}

/* ── XP MICRO BAR (dưới nav, KH đăng nhập) ─────────────────────────────── */
.glow-xp-bar {
    background: var(--navy);
}

.glow-xp-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glow-xp-bar .xpb-lvl {
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.glow-xp-bar .xpb-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,.18);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.glow-xp-bar .xpb-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--purple));
    border-radius: var(--r-pill);
    transition: width .6s ease;
}

.glow-xp-bar .xpb-text {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    white-space: nowrap;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn-primary {
    background: var(--rose);
    color: var(--white);
    border: none;
    border-radius: var(--r-sm);
    padding: 11px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-primary:hover {
        background: var(--rose-d);
    }

    .btn-primary:disabled {
        opacity: .6;
        cursor: default;
    }

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-secondary:hover {
        border-color: var(--rose);
        color: var(--rose);
    }

.btn-danger {
    background: var(--danger-l);
    color: var(--danger);
    border: 1px solid #FCA5A5;
    border-radius: var(--r-sm);
    padding: 9px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-danger:hover {
        background: #FECACA;
    }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 4px 9px;
    font-size: 11px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-body);
}

    .btn-ghost:hover {
        color: var(--ink);
    }

/* ── CARDS (gốc) ─────────────────────────────────────────────────────── */
.glow-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.glow-card-pad {
    padding: 18px;
}

/* ── FORMS ───────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}

input.gq-input, select.gq-input, textarea.gq-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    background: var(--white);
    color: var(--ink);
    transition: border-color .12s;
}

    input.gq-input:focus, select.gq-input:focus, textarea.gq-input:focus {
        border-color: var(--rose);
    }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

    .input-with-btn input {
        flex: 1;
    }

/* ── ADDRESS AUTOCOMPLETE ───────────────────────── */
.address-wrapper {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.address-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f2f2f2;
}

    .address-item:hover {
        background: #f7f7f7;
    }


/* ── HERO (Homepage) ─────────────────────────────────────────────────── */
.hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 48px 24px 40px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.eyebrow-pill {
    background: var(--rose-l);
    color: var(--rose-d);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    letter-spacing: .5px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1.18;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

    .hero-title em {
        color: var(--rose);
        font-style: italic;
    }

.hero-sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 26px;
    max-width: 460px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-n {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
}

.hero-stat-l {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.hero-game-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

    .hero-game-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--rose), var(--purple), var(--gold));
    }

.hgc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hgc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid var(--border);
    color: var(--white);
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.hgc-info {
    flex: 1;
    min-width: 0;
}

.hgc-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.hgc-level {
    font-size: 11px;
    color: var(--rose);
    font-weight: 600;
    margin-top: 2px;
}

.xp-bar-wrap {
    margin-bottom: 4px;
}

.xp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px;
}

.xp-bar-track {
    height: 8px;
    background: var(--light);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--purple));
    border-radius: var(--r-pill);
    transition: width .6s ease;
}

.hgc-quests {
    margin-top: 14px;
}

.hgc-quest-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--light);
    border-radius: var(--r-sm);
    margin-bottom: 6px;
}

.quest-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: var(--rose-l);
}

.quest-info {
    flex: 1;
    min-width: 0;
}

.quest-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
}

.quest-prog {
    font-size: 10px;
    color: var(--muted);
}

.quest-prog-bar {
    height: 3px;
    background: var(--border);
    border-radius: var(--r-pill);
    margin-top: 4px;
    overflow: hidden;
}

.quest-prog-fill {
    height: 100%;
    background: var(--rose);
    border-radius: var(--r-pill);
}

.quest-xp {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold-d);
    white-space: nowrap;
}

.hero-guest-card {
    background: var(--navy-l);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

    .hero-guest-card .hgg-ico {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .hero-guest-card .hgg-title {
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 6px;
    }

    .hero-guest-card .hgg-sub {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 16px;
    }

/* ── CATEGORY GRID ───────────────────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px 14px;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

    .cat-card:hover {
        border-color: var(--rose);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.cat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.cat-count {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* ── PRODUCT GRID / CARD ─────────────────────────────────────────────── */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.prod-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    flex-direction: column;
}

    .prod-card:hover {
        border-color: var(--rose);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.prod-img {
    height: 140px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    flex-shrink: 0;
}

.prod-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--rose);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--r-pill);
}

.prod-xp-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gold-l);
    color: var(--gold-d);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: var(--r-pill);
    border: 1px solid #F0D9A0;
}

.prod-otc-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--navy);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    letter-spacing: .04em;
}

.prod-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-brand {
    font-size: 10px;
    font-weight: 600;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.prod-cat-mini {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
}

.prod-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin: 3px 0 6px;
    line-height: 1.4;
    flex-grow: 1;
}

.prod-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.prod-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.prod-price-orig {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    gap: 8px;
}

.prod-rating {
    font-size: 11px;
    color: var(--gold-d);
    white-space: nowrap;
}

.add-cart-btn {
    background: var(--rose-l);
    color: var(--rose-d);
    border: none;
    border-radius: var(--r-sm);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
}

    .add-cart-btn:hover {
        background: var(--rose);
        color: var(--white);
    }

.prod-skeleton {
    background: linear-gradient(90deg, var(--light) 25%, var(--border) 37%, var(--light) 63%);
    background-size: 400% 100%;
    animation: gq-shimmer 1.4s ease infinite;
}

@keyframes gq-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ── LEADERBOARD STRIP ───────────────────────────────────────────────── */
.lb-strip {
    background: var(--navy);
    padding: 28px 24px;
}

.lb-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.lb-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.lb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.lb-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,.6);
    font-size: 13px;
    padding: 24px 0;
}

.lb-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r);
    padding: 14px 10px 12px;
    text-align: center;
    transition: transform .15s, background .15s;
}

    .lb-card:hover {
        background: rgba(255,255,255,.12);
        transform: translateY(-3px);
    }

    .lb-card.me {
        border-color: var(--rose);
        background: rgba(232,82,106,.15);
    }

    .lb-card.top1 {
        border-color: var(--gold);
        background: linear-gradient(180deg, rgba(240,200,80,.22), rgba(255,255,255,.06));
    }

    .lb-card.top2 {
        border-color: rgba(210,215,225,.65);
    }

    .lb-card.top3 {
        border-color: rgba(205,140,90,.6);
    }

.lb-rank {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    margin-bottom: 8px;
}

    .lb-rank.gold {
        color: var(--gold);
        font-size: 18px;
    }

.lb-avatar-mini {
    width: 76px;
    height: 96px;
    border-radius: 14px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,.18);
    overflow: hidden;
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

.lb-card.top1 .lb-avatar-mini {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240,200,80,.35), 0 4px 10px rgba(0,0,0,.18);
}

.lb-avatar-mini svg {
    width: 100%;
    height: 100%;
}

.lb-avatar-mini.lb-avatar-sm {
    width: 42px;
    height: 52px;
    border-radius: 10px;
    margin: 0;
    flex-shrink: 0;
}

.lb-username {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-level-txt {
    font-size: 10.5px;
    color: rgba(255,255,255,.55);
}

.lb-xp {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 5px;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────── */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hiw-card {
    text-align: center;
    padding: 8px;
}

.hiw-ico {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.hiw-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.hiw-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.glow-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 36px 24px 20px;
    margin-top: 24px;
}

.gf-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
}

.gf-logo {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--rose);
    margin-bottom: 8px;
}

    .gf-logo span {
        color: var(--navy);
    }

.gf-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.gf-h {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.gf-link {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

    .gf-link:hover {
        color: var(--rose);
    }

.gf-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

/* ── TOAST (custom, không phụ thuộc Bootstrap) ──────────────────────────── */
.gq-toast-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gq-toast {
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 16px;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(8px);
    transition: all .25s ease;
}

    .gq-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .gq-toast.success {
        background: var(--sage);
    }

    .gq-toast.danger {
        background: var(--danger);
    }

.gq-toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: .7;
    font-size: 14px;
}

    .gq-toast-close:hover {
        opacity: 1;
    }

/* ── BADGES / STATUS TAGS ────────────────────────────────────────────── */
.status-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.st-pending {
    background: var(--gold-l);
    color: var(--gold-d);
}

.st-confirmed {
    background: var(--navy-l);
    color: var(--navy-m);
}

.st-shipped, .st-shipping {
    background: var(--purple-l);
    color: var(--purple);
}

.st-completed, .st-done {
    background: var(--sage-l);
    color: var(--sage);
}

.st-cancelled, .st-cancel {
    background: var(--danger-l);
    color: var(--danger);
}

/* ── EMPTY / LOADING STATES ─────────────────────────────────────────── */
.gq-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.gq-empty-ico {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: .6;
}

.gq-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: gq-spin .7s linear infinite;
    display: inline-block;
}

@keyframes gq-spin {
    to {
        transform: rotate(360deg);
    }
}

.gq-loading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
}

/* ── PRICE / XP TYPOGRAPHY HELPERS ──────────────────────────────────── */
.gq-text-gold {
    color: var(--gold-d);
}

.gq-text-sage {
    color: var(--sage);
}

.gq-text-rose {
    color: var(--rose);
}

/* ════════════════════════════════════════════════════════════════════
   SHOP PAGE — filter sidebar + product grid
   ════════════════════════════════════════════════════════════════════ */
.shop-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    align-items: start;
}

.filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    position: sticky;
    top: 76px;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.filter-group {
    margin-bottom: 16px;
}

    .filter-group:last-child {
        margin-bottom: 0;
    }

.radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
}

    .radio-row input {
        accent-color: var(--rose);
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-result-count {
    font-size: 13px;
    color: var(--muted);
}

.shop-prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gq-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-pill {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

    .page-pill:hover {
        border-color: var(--rose);
        color: var(--rose);
    }

    .page-pill.active {
        background: var(--navy);
        border-color: var(--navy);
        color: var(--white);
    }

    .page-pill.dots {
        border: none;
        cursor: default;
        color: var(--muted);
    }

/* ════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════════════════ */
.login-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 56px 24px 60px;
}

.login-head {
    text-align: center;
    margin-bottom: 28px;
}

    .login-head .li-ico {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .login-head h1 {
        font-family: var(--font-display);
        font-size: 26px;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 6px;
    }

    .login-head p {
        font-size: 13px;
        color: var(--muted);
    }

.login-tabs {
    display: flex;
    gap: 4px;
    background: var(--light);
    padding: 4px;
    border-radius: var(--r-sm);
    margin-bottom: 22px;
}

.login-tab {
    flex: 1;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted);
    border: none;
    background: none;
    font-family: var(--font-body);
    transition: all .15s;
}

    .login-tab.active {
        background: var(--white);
        color: var(--ink);
        box-shadow: var(--shadow);
    }

.login-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
}

.login-error {
    background: var(--danger-l);
    color: var(--danger);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: 12px;
    margin-bottom: 14px;
    display: none;
}

    .login-error.show {
        display: block;
    }

.pw-row {
    position: relative;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: none;
    font-family: var(--font-body);
}

.login-divider {
    border-top: 1px solid var(--border);
    margin: 18px 0 14px;
}

.login-foot {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.login-demo {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--navy-l);
}

.login-demo-h {
    font-size: 11px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.login-demo div {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════
   PROFILE / GAMIFICATION PAGE
   ════════════════════════════════════════════════════════════════════ */
.profile-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.profile-banner {
    height: 70px;
    background: linear-gradient(135deg, var(--rose), var(--purple));
    position: relative;
}

.profile-avatar-wrap {
    position: relative;
    margin: -34px 0 0 20px;
    width: fit-content;
}

.profile-av {
    width: 76px;
    height: 104px;
    border-radius: 14px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

    .profile-av svg {
        width: 100%;
        height: 100%;
    }

.profile-body {
    padding: 10px 18px 18px;
}

.profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.profile-email {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.profile-level-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.level-badge-big {
    background: var(--purple-l);
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--r-pill);
}

.streak-badge {
    background: var(--gold-l);
    color: var(--gold-d);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--r-pill);
}

.xp-section {
    margin-bottom: 14px;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
    gap: 8px;
}

.xp-label {
    color: var(--muted);
}

.xp-val {
    font-weight: 700;
    color: var(--purple);
    white-space: nowrap;
}

.xp-track {
    height: 10px;
    background: var(--light);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rose), var(--purple));
    border-radius: var(--r-pill);
    transition: width .6s ease;
}

.xp-next {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    margin-top: 4px;
}

.stat-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.stat-mini {
    background: var(--light);
    border-radius: var(--r-sm);
    padding: 10px;
    text-align: center;
}

.stat-mini-n {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-display);
}

.stat-mini-l {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.voucher-item {
    background: var(--rose-l);
    border: 1px dashed var(--rose);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voucher-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--rose-d);
    font-family: monospace;
}

.voucher-disc {
    font-size: 11px;
    color: var(--rose-d);
}

.voucher-exp {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.avatar-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.ap-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ap-title .ap-count {
        background: var(--rose-l);
        color: var(--rose-d);
        font-size: 11px;
        padding: 2px 7px;
        border-radius: var(--r-pill);
        margin-left: 4px;
        font-weight: 600;
    }

.slot-label-row {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 14px 0 8px;
}

    .slot-label-row:first-child {
        margin-top: 0;
    }

.item-slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.item-slot {
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    overflow: hidden;
    background: var(--white);
    padding: 4px;
}

    .item-slot:hover {
        border-color: var(--rose);
    }

    .item-slot.equipped {
        border-color: var(--rose);
        border-width: 2px;
        background: var(--rose-l);
    }

    .item-slot svg {
        width: 100%;
        height: 100%;
    }

    .item-slot.locked {
        opacity: .45;
        cursor: not-allowed;
        background: var(--light);
    }

.item-slot-lbl {
    font-size: 9px;
    color: var(--muted);
}

.quest-board {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.qb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.qb-head-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}

.qb-head-sub {
    font-size: 12px;
    color: var(--muted);
}

.qb-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    background: var(--light);
    padding: 3px;
    border-radius: var(--r-sm);
}

.qb-tab {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted);
    border: none;
    background: none;
    font-family: var(--font-body);
    transition: all .15s;
}

    .qb-tab.active {
        background: var(--white);
        color: var(--ink);
        box-shadow: var(--shadow);
    }

.qb-panel {
    display: none;
}

    .qb-panel.active {
        display: block;
    }

.quest-card {
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: center;
}

    .quest-card:last-child {
        margin-bottom: 0;
    }

    .quest-card.done {
        background: var(--sage-l);
        border-color: #B0D9C6;
    }

.quest-ico-big {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--rose-l);
}

    .quest-ico-big.done {
        background: var(--sage-l);
    }

.quest-card-info {
    flex: 1;
    min-width: 0;
}

.qc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.qc-desc {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.qc-prog-bar {
    height: 6px;
    background: var(--border);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.qc-fill {
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--rose);
}

    .qc-fill.full {
        background: var(--sage);
    }

.qc-prog-txt {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.quest-reward {
    text-align: right;
    flex-shrink: 0;
}

.qr-xp {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-d);
    font-family: var(--font-display);
}

.qr-xp-label {
    font-size: 9px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.done-tag {
    background: var(--sage);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--r-pill);
    margin-top: 4px;
    display: inline-block;
}

.level-progress-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.lp-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.lp-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 8px;
}

.lp-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.lp-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--border);
    background: var(--border);
    color: var(--muted);
}

    .lp-dot.done {
        background: var(--navy);
        border-color: var(--navy);
        color: var(--white);
    }

    .lp-dot.curr {
        background: var(--rose);
        border-color: var(--rose-d);
        color: var(--white);
    }

.lp-name {
    font-size: 9px;
    color: var(--muted);
    white-space: nowrap;
    max-width: 56px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .lp-name.done {
        color: var(--ink);
        font-weight: 600;
    }

    .lp-name.curr {
        color: var(--rose);
        font-weight: 600;
    }

.lp-line {
    width: 20px;
    height: 2px;
    background: var(--border);
    margin-bottom: 22px;
    flex-shrink: 0;
}

    .lp-line.done {
        background: var(--navy);
    }

.lp-milestone {
    margin-top: 16px;
    padding: 12px;
    background: var(--purple-l);
    border-radius: var(--r-sm);
    border: 1px solid #D4B8F0;
}

.lp-milestone-t {
    font-size: 13px;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 4px;
}

.lp-milestone-d {
    font-size: 12px;
    color: var(--purple);
}

.xp-history-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
}

.xph-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

    .xph-row:last-child {
        border-bottom: none;
    }

.xph-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-l);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.xph-info {
    flex: 1;
    min-width: 0;
}

.xph-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

.xph-date {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

.xph-amt {
    font-weight: 700;
    color: var(--gold-d);
    font-size: 13px;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ════════════════════════════════════════════════════════════════════ */
.admin-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.admin-sub {
    font-size: 13px;
    color: var(--muted);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 18px;
}

.kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon {
    font-size: 18px;
    opacity: .7;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;
    color: var(--navy);
}

.kpi-change {
    font-size: 12px;
    margin-top: 4px;
}

    .kpi-change.up {
        color: var(--sage);
    }

    .kpi-change.down {
        color: var(--rose);
    }

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
}

.cb-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.cb-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

.top-prod-list {
    margin-top: 4px;
}

.tp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

    .tp-item:last-child {
        border-bottom: none;
    }

.tp-rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    width: 18px;
    flex-shrink: 0;
}

.tp-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-bar-wrap {
    width: 70px;
    height: 6px;
    background: var(--light);
    border-radius: var(--r-pill);
    overflow: hidden;
    flex-shrink: 0;
}

.tp-bar-fill {
    height: 100%;
    background: var(--rose);
    border-radius: var(--r-pill);
}

.tp-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    width: 56px;
    text-align: right;
    flex-shrink: 0;
}

.orders-table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 20px;
}

.ot-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ot-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.gq-table-scroll {
    overflow-x: auto;
}

table.gq-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

    table.gq-table thead th {
        padding: 10px 16px;
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        text-align: left;
        text-transform: uppercase;
        letter-spacing: .5px;
        background: var(--light);
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

    table.gq-table tbody td {
        padding: 12px 16px;
        font-size: 13px;
        border-bottom: 1px solid var(--border);
        color: var(--ink);
        vertical-align: middle;
    }

    table.gq-table tbody tr:last-child td {
        border-bottom: none;
    }

    table.gq-table tbody tr:hover td {
        background: var(--light);
    }

.action-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-body);
}

.gam-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gam-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
}

.gsc-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.gsc-big {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
}

.gsc-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-card {
        position: static;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .gf-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 8px;
        box-shadow: var(--shadow-md);
    }

        .nav-links.open {
            display: flex;
        }

    .nav-toggle {
        display: flex;
    }

    .nav-logo {
        margin-right: auto;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prod-grid, .shop-prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hiw-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gam-stats {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }

    .gf-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cat-grid, .prod-grid, .shop-prod-grid, .lb-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════════════════
   COMPAT LAYER — chỉ giữ lại đúng những gì glow-auth.js / Bootstrap JS
   (Dropdown + Toast) cần để hoạt động, KHÔNG tải Bootstrap CSS đầy đủ.
   ════════════════════════════════════════════════════════════════════ */
.d-none {
    display: none !important;
}

/* Bootstrap Dropdown JS toggles .show trên .dropdown-menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 46px;
    right: 0;
    left: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-md);
    min-width: 190px;
    padding: 6px;
    z-index: 1100;
    margin: 0;
    list-style: none;
    flex-direction: column;
    gap: 1px;
}

    .dropdown-menu.show {
        display: flex;
    }

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
    text-decoration: none;
}

    .dropdown-item:hover {
        background: var(--light);
    }

    .dropdown-item.text-danger {
        color: var(--danger);
    }

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 2px;
    border: none;
}

/* Bootstrap Toast JS toggles .show / .showing trên .toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    display: none;
    background: var(--ink);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 16px;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

    .toast.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .toast.text-bg-success {
        background: var(--sage);
    }

    .toast.text-bg-danger {
        background: var(--danger);
    }

    .toast.text-bg-warning {
        background: var(--gold-d);
    }

.toast-body {
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: auto;
    height: auto;
}

    .btn-close::before {
        content: '\2715';
    }

    .btn-close:hover {
        color: var(--white);
    }

/* ════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ════════════════════════════════════════════════════════════════════ */
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
}

    .breadcrumb a {
        color: var(--muted);
    }

        .breadcrumb a:hover {
            color: var(--rose);
        }

    .breadcrumb span {
        color: var(--rose);
    }

.prod-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 40px;
}

.prod-gallery {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    position: relative;
    overflow: hidden;
}

    .prod-gallery .gallery-badge {
        position: absolute;
        top: 12px;
        left: 12px;
    }

    .prod-gallery .gallery-otc {
        position: absolute;
        bottom: 12px;
        left: 12px;
    }

.prod-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumb {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: border-color .15s;
}

    .thumb:hover {
        border-color: var(--rose);
    }

    .thumb.active {
        border-color: var(--rose);
        border-width: 2px;
    }

.prod-cat-tag {
    background: var(--rose-l);
    color: var(--rose-d);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    display: inline-block;
    margin-bottom: 10px;
}

.prod-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 6px;
}

.prod-brand-txt {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.prod-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 13px;
    color: var(--muted);
}

.prod-price-big {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-display);
}

.prod-price-orig-big {
    font-size: 16px;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.prod-discount-tag {
    background: var(--rose);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--r-pill);
    margin-left: 8px;
}

.xp-reward-box {
    background: var(--gold-l);
    border: 1px solid #F0D9A0;
    border-radius: var(--r-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.xp-reward-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.xp-reward-text {
    font-size: 13px;
    color: var(--gold-d);
    font-weight: 500;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.qty-label {
    font-size: 13px;
    color: var(--muted);
}

.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light);
    cursor: pointer;
    font-size: 18px;
    font-family: var(--font-body);
    transition: background .1s;
}

    .qty-btn:hover {
        background: var(--border-s);
    }

.qty-num {
    width: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.prod-action-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-add-big {
    flex: 1;
    background: var(--rose);
    color: var(--white);
    border: none;
    border-radius: var(--r-sm);
    padding: 13px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    .btn-add-big:hover {
        background: var(--rose-d);
    }

    .btn-add-big:disabled {
        opacity: .6;
        cursor: default;
    }

.btn-wish {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-wish:hover {
        border-color: var(--rose);
    }

    .btn-wish.wished {
        border-color: var(--rose);
        background: var(--rose-l);
    }

.prod-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.meta-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.meta-key {
    color: var(--muted);
    width: 100px;
    flex-shrink: 0;
}

.meta-val {
    color: var(--ink);
    font-weight: 500;
}

/* OTC warning box */
.otc-warning {
    background: var(--navy-l);
    border: 1px solid var(--border-s);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 12px;
    color: var(--navy-m);
    line-height: 1.6;
}

    .otc-warning strong {
        color: var(--navy);
    }

/* Review section */
.review-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    flex-wrap: wrap;
}

.review-score-big {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.review-stars-big {
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.review-score-sub {
    font-size: 12px;
    color: var(--muted);
}

.rating-bars {
    flex: 1;
    min-width: 200px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--muted);
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--light);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: var(--r-pill);
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--rose),var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.review-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.review-stars {
    color: var(--gold);
    font-size: 12px;
}

.review-date {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}

.review-body {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.6;
}

.review-xp-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-d);
    background: var(--gold-l);
    padding: 2px 8px;
    border-radius: var(--r-pill);
}

.review-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 20px;
}

.review-form-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.star-picker {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.star-pick {
    font-size: 24px;
    cursor: pointer;
    color: var(--border-s);
    transition: color .1s;
}

    .star-pick.lit {
        color: var(--gold);
    }

/* Related products */
.related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Responsive */
@media (max-width:900px) {
    .prod-detail {
        grid-template-columns: 1fr;
    }

    .prod-title {
        font-size: 22px;
    }

    .prod-price-big {
        font-size: 26px;
    }

    .prod-gallery {
        height: 260px;
    }
}

/* ═══════════════════════════════════════════════════════
   Layout patch
   Bổ sung: nav dropdown header, staff bar, xp bar link
═══════════════════════════════════════════════════════ */

/* ── Dropdown header (tên + role) ── */
.nav-dd-header {
    padding: 10px 14px 8px;
}

.nav-dd-uname {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.nav-dd-role {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

/* ── XP bar: thêm link Glow Gami ── */
.glow-xp-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════
   GLOW COMBOBOX — dropdown tìm-kiếm-được, giới hạn 5 dòng hiển thị, cuộn được
   ══════════════════════════════════════════════════════════════════════ */
.glow-combo-wrap {
    position: relative;
}

.glow-combo-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    overflow-y: auto;
}

    .glow-combo-list.open {
        display: block;
    }

.glow-combo-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .glow-combo-item:hover {
        background: var(--light);
    }

.glow-combo-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* Thanh cuộn gọn cho danh sách combobox */
.glow-combo-list::-webkit-scrollbar {
    width: 6px;
}

.glow-combo-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════════════
   RESIZABLE TABLE COLUMNS — kéo-giãn/thu-hẹp cột trên mọi bảng .gq-table
   ══════════════════════════════════════════════════════════════════════ */
table.gq-table thead th {
    cursor: default;
}

.glow-col-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 6px;
    cursor: col-resize;
    z-index: 5;
}

    .glow-col-resize-handle:hover,
    .glow-col-resize-handle.active {
        background: var(--rose);
        opacity: .5;
    }

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pw-toggle:hover {
        color: var(--rose);
    }

    .pw-toggle svg {
        width: 20px;
        height: 20px;
    }
