/* ===================================================
   GAMESHOP PRO - GAMING DARK NEON STYLE
   =================================================== */

:root {
    /* ===== LIGHT GAMING THEME (đồng bộ với game.css) ===== */
    --primary: #ff6a00;
    --primary-dark: #e85d00;
    --secondary: #ffb020;
    --accent: #ff8a00;
    --success: #1f9d55;
    --warning: #d98300;
    --danger: #e23d3d;
    --info: #2a8fff;

    --bg-dark: #fff7ef;        /* nền trang - kem sáng */
    --bg-card: #ffffff;        /* card trắng */
    --bg-card-2: #fffaf3;
    --bg-input: #ffffff;
    --border-color: #f0e2d0;
    --border-glow: rgba(255, 106, 0, 0.35);

    --text-light: #2a2118;     /* chữ chính - tối, đọc rõ */
    --text-muted: #6b5d4d;     /* chữ phụ */
    --text-dim: #a08a72;

    --shadow-card: 0 10px 30px rgba(180, 140, 90, 0.12);
    --shadow-glow: 0 8px 22px rgba(255, 106, 0, 0.22);
    --shadow-glow-pink: 0 8px 22px rgba(255, 176, 32, 0.30);

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 14px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 0%, rgba(255, 176, 32, 0.10) 0%, transparent 38%),
        radial-gradient(circle at 85% 100%, rgba(255, 106, 0, 0.07) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; }

/* ============ TOP BAR ============ */
.top-bar {
    background: linear-gradient(90deg, #fff3e6, #fffaf3, #fff3e6);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.top-link {
    color: var(--text-muted);
    margin-left: 15px;
    transition: var(--transition);
}
.top-link:hover { color: var(--primary); }

/* ============ HEADER ============ */
.main-header {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}
.main-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    color: var(--text-light);
}
.logo:hover { color: var(--primary); }
.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    box-shadow: var(--shadow-glow);
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.7); }
}
.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ SEARCH ============ */
.search-box {
    position: relative;
}
.search-box input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 12px 50px 12px 18px;
    border-radius: 50px;
    width: 100%;
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-glow);
    background: var(--bg-input);
    color: var(--text-light);
}
.search-box button {
    position: absolute;
    right: 5px; top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.search-box button:hover { transform: translateY(-50%) scale(1.05); }

.search-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}
.search-results.show { display: block; }
.search-result-item {
    display: flex; gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-card-2); }
.search-result-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.search-result-item .title { color: var(--text-light); font-size: 14px; font-weight: 500; }
.search-result-item .price { color: var(--accent); font-size: 13px; font-weight: 700; }

/* ============ USER BALANCE ============ */
.user-balance {
    background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--accent);
}
.user-balance i { color: var(--accent); margin-right: 6px; }

/* ============ NAVIGATION ============ */
.main-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}
.nav-menu li a {
    display: block;
    padding: 14px 20px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.nav-menu li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}
.nav-menu li a i { margin-right: 6px; }

/* ============ MOBILE MENU ============ */
.mobile-menu {
    background: var(--bg-card);
    color: var(--text-light);
}
.mobile-menu .offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}
.mobile-user {
    padding: 15px;
    background: var(--bg-card-2);
    border-radius: var(--radius);
}
.mobile-user .balance { color: var(--accent); font-weight: 700; font-size: 18px; margin-top: 4px; }
.mobile-nav {
    list-style: none;
    padding: 0;
}
.mobile-nav li a {
    display: block;
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav li a i { width: 24px; }

/* ============ MAIN CONTENT ============ */
.main-content {
    min-height: 60vh;
    padding: 24px 0;
}

/* ============ HERO SLIDER ============ */
.hero-slider {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000; /* nền đen cho phần dư */
}

@media (max-width: 768px) {

    .hero-slider .carousel-item img {
        height: 220px;
        object-fit: cover;
        object-position: center;
    }

}

.hero-slider .carousel-caption {
    background: linear-gradient(90deg, rgba(255,247,239,0.9), transparent);
    left: 0; right: auto;
    text-align: left;
    padding: 30px 40px;
    bottom: 0; top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 50%;
}
.hero-slider .carousel-caption h3 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5); 
}
@media (max-width: 768px) {
    .hero-slider .carousel-item img { height: 200px; }
    .hero-slider .carousel-caption { padding: 15px; max-width: 100%; }
    .hero-slider .carousel-caption h3 { font-size: 20px; }
    .hero-slider .carousel-caption p { font-size: 14px; }
}

/* ============ SECTION ============ */
.section {
    margin-bottom: 40px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text-light);
    margin: 0;
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}
.section-title i { color: var(--primary); margin-right: 8px; }
.section-link {
    color: var(--text-muted);
    font-size: 14px;
}
.section-link:hover { color: var(--primary); }

/* ============ CATEGORY GRID ============ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s;
}
.category-card:hover::before { left: 100%; }
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.2);
}
.category-card .icon {
    width: 60px; height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
    color: #fff;
}
.category-card h5 { font-size: 14px; margin: 0; color: var(--text-light); }

/* ============ PRODUCT CARD ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.25);
}
.product-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.product-card .product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-image img { transform: scale(1.1); }

.product-card .badges {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    gap: 4px;
    flex-direction: column;
}
.product-badge {
    background: var(--secondary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.product-badge.hot { background: linear-gradient(135deg, var(--secondary), var(--danger)); }
.product-badge.new { background: var(--success); color: #fff; }
.product-badge.sale { background: var(--accent); color: #fff; }

.product-card .product-code {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(255, 106, 0, 0.92);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-display);
}

.product-card .product-body {
    padding: 14px;
}
.product-card .product-title {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.product-card .product-title a { color: var(--text-light); }
.product-card .product-title a:hover { color: var(--primary); }

.product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.product-info span {
    background: var(--bg-input);
    padding: 3px 8px;
    border-radius: 4px;
}
.product-info i { color: var(--primary); margin-right: 3px; }

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-card .price-current {
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
    font-family: var(--font-display);
}
.product-card .price-old {
    color: var(--text-dim);
    text-decoration: line-through;
    font-size: 13px;
}

.product-card .product-actions {
    margin-top: 12px;
    display: flex;
    gap: 6px;
}
.product-card .btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 10px;
}

/* ============ BUTTONS ============ */
.btn { 
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: none;
    padding: 10px 20px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    color: #fff;
}
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #c9006a);
    color: #fff;
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4);
    color: #fff;
}
.btn-warning {
    background: linear-gradient(135deg, var(--accent), #ffa500);
    color: #fff;
}
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); }
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}
.btn-outline-light {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
}
.btn-outline-light:hover {
    background: var(--bg-card-2);
    color: var(--text-light);
}

.btn-buy {
    background: linear-gradient(135deg, var(--success), #00cc6f);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-buy:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* ============ FORMS ============ */
.form-control, .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background: var(--bg-input);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-glow);
}
.form-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}
.form-control::placeholder { color: var(--text-dim); }

/* ============ AUTH PAGES ============ */
.auth-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}
.auth-card h2 {
    font-family: var(--font-display);
    text-align: center;
    color: var(--primary);
    margin-bottom: 6px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ============ PROFILE / DASHBOARD ============ */
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 992px) { .profile-layout { grid-template-columns: 1fr; } }

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}
.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid var(--primary);
    display: block;
    object-fit: cover;
}
.profile-name {
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}
.profile-email {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}
.profile-balance {
    background: var(--bg-input);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 20px;
}
.profile-balance .label { color: var(--text-muted); font-size: 12px; }
.profile-balance .value { color: var(--accent); font-weight: 800; font-size: 22px; font-family: var(--font-display); }

.profile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
}
.profile-nav li a:hover, .profile-nav li a.active {
    background: var(--bg-input);
    color: var(--primary);
}
.profile-nav li a i { width: 20px; }

.profile-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
}

/* ============ TABLE ============ */
.table-custom {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
}
.table-custom th {
    background: var(--bg-card-2);
    padding: 12px;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.table-custom td {
    padding: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}
.table-custom tr:hover td { background: var(--bg-card-2); }
.table-responsive { overflow-x: auto; }

/* ============ BADGES ============ */
.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.bg-success { background: var(--success) !important; color: #fff; }
.bg-warning { background: var(--warning) !important; color: #fff; }
.bg-danger { background: var(--danger) !important; }
.bg-info { background: var(--info) !important; }
.bg-secondary { background: var(--border-color) !important; }
.bg-dark { background: #2a2118 !important; color:#fff; }

/* ============ PRODUCT DETAIL ============ */
.product-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
}
.product-gallery {
    position: relative;
}
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4/3;
    background: var(--bg-input);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
}
.gallery-thumbs img:hover, .gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.product-detail-info h1 {
    color: var(--text-light);
    font-size: 24px;
    margin-bottom: 12px;
}
.product-detail-info .code {
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
}
.product-detail-info .price-box {
    background: var(--bg-input);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}
.product-detail-info .price-current {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
}
.product-detail-info .price-old {
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 12px;
}
.product-detail-info .price-discount {
    background: var(--secondary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 700;
}

.product-attrs {
    margin: 20px 0;
}
.product-attr {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.product-attr .label { width: 35%; color: var(--text-muted); }
.product-attr .value { flex: 1; color: var(--text-light); font-weight: 600; }

/* ============ STATS ============ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}
.stat-card .icon {
    width: 50px; height: 50px;
    background: var(--bg-input);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 12px;
}
.stat-card .value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-light);
}
.stat-card .label { color: var(--text-muted); font-size: 13px; }

/* ============ FOOTER ============ */
.main-footer {
    background: linear-gradient(180deg, #fff3e6, #fff8f0);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 60px;
    position: relative;
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}
.main-footer h5 {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 700;
}
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-contact li {
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--primary); }
.footer-contact i { color: var(--primary); margin-right: 8px; width: 18px; }
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-card-2);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* ============ FLOATING BUTTONS ============ */
.floating-buttons {
    position: fixed;
    bottom: 20px; right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.float-zalo { background: #0068ff; }
.float-telegram { background: #29a9eb; color: #fff; }
.float-top { background: var(--bg-card-2); color: var(--text-light); border: 1px solid var(--border-color); }
.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ============ TOAST ============ */
.toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-msg {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    min-width: 280px;
    box-shadow: var(--shadow-card);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.4s, fadeOut 0.4s 4s forwards;
}
.toast-msg.success { border-left-color: var(--success); }
.toast-msg.success i { color: var(--success); }
.toast-msg.error { border-left-color: var(--danger); }
.toast-msg.error i { color: var(--danger); }
.toast-msg.warning { border-left-color: var(--warning); }
.toast-msg.warning i { color: var(--warning); }
@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateX(120%); }
}

/* ============ MODAL ============ */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-light);
}
.modal-header, .modal-footer {
    border-color: var(--border-color);
}
.modal-title {
    font-family: var(--font-display);
    color: var(--primary);
}
.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

/* ============ ALERT ============ */
.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    border: 1px solid;
}
.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success);
    color: var(--success);
}
.alert-danger {
    background: rgba(255, 56, 96, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}
.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}
.alert-info {
    background: rgba(50, 115, 220, 0.1);
    border-color: var(--info);
    color: var(--info);
}

/* ============ PAGINATION ============ */
.pagination-wrap { margin: 30px 0; display: flex; justify-content: center; }
.pagination {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.pagination li a {
    display: block;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.pagination li a:hover, .pagination li.active a {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination li.dots {
    padding: 8px;
    color: var(--text-muted);
}

/* ============ FILTERS ============ */
.filter-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 20px;
}
.filter-group { margin-bottom: 20px; }
.filter-group h6 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
}
.filter-group .form-check {
    margin-bottom: 6px;
}
.filter-group label { color: var(--text-light); cursor: pointer; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 60px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h4 { color: var(--text-light); margin-bottom: 8px; }

/* ============ POST CARD ============ */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}
.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.post-card .body {
    padding: 16px;
}
.post-card h5 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
}
.post-card h5 a { color: var(--text-light); }
.post-card h5 a:hover { color: var(--primary); }
.post-card .post-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}
.post-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ LOADING ============ */
.loader {
    border: 3px solid var(--bg-input);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .section-title { font-size: 18px; }
    .auth-card { padding: 24px; }
    .product-detail { padding: 20px; }
    .product-detail-info .price-current { font-size: 28px; }
}
