@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
/* ===== ShopGame - Main Stylesheet ===== */
/* Design inspired by shopbopbop.net */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b6b;
    --secondary: #2d3436;
    --accent: #f39c12;
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-dark: #1a1a2e;
    --bg-footer: #0f0f1a;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --text-white: #ffffff;
    --border: #e1e5e9;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-blue: 0 0 80px rgba(66, 133, 244, 0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Side glow effects like shopbopbop */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    width: 200px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

body::before {
    left: 0;
    background: radial-gradient(ellipse at left center, rgba(66,133,244,0.08) 0%, transparent 70%);
}

body::after {
    right: 0;
    background: radial-gradient(ellipse at right center, rgba(66,133,244,0.08) 0%, transparent 70%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.header {
    background: var(--bg-card);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.header-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary);
    background: rgba(231,76,60,0.06);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    text-transform: none;
}

.dropdown-menu a:hover {
    background: rgba(231,76,60,0.06);
    color: var(--primary);
}

.dropdown-menu a .menu-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(231,76,60,0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary), #ff4757);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(231,76,60,0.2);
    transition: var(--transition);
}

.btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(231,76,60,0.4);
}

.btn-naptien {
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: white;
    border-radius: 25px;
    padding: 9px 22px;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(231,76,60,0.3);
}

.btn-naptien:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(231,76,60,0.4);
}

/* ===== Mobile Menu ===== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 5px;
}

/* ===== Hero / Banner ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    margin: 20px 0;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Category Section ===== */
.section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title .emoji {
    font-size: 1.4rem;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.btn-explore {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-explore:hover {
    background: var(--primary);
    color: white;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ===== Category Grid ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.mobile-only-link {
    display: none !important;
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Product Card ===== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(231,76,60,0.15);
}

.product-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.product-card .card-image .placeholder-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.product-card .card-body {
    padding: 14px;
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .card-stock {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.product-card .card-stock span {
    font-weight: 700;
}

.product-card .card-footer {
    display: flex;
    flex-direction: column;
    padding: 0 16px 16px;
}

.product-card .price-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-card .old-price {
    font-size: 0.9rem;
    color: #a4b0be;
    text-decoration: line-through;
}

.product-card .current-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e74c3c;
}

/* ===== Features Section ===== */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-footer);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about .footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-about .highlight-text {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.footer h4 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links a::before {
    content: '›';
    color: var(--primary);
    font-weight: 700;
}

.footer-contact a {
    color: #f1c40f;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.float-btn.phone { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.float-btn.messenger { background: linear-gradient(135deg, #0084ff, #0066cc); }
.float-btn.zalo { background: linear-gradient(135deg, #03a9f4, #0288d1); }
.float-btn.scroll-top {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    visibility: hidden;
}

.float-btn.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* Base floating button transparency */
.float-btn {
    opacity: 0.85;
}

.float-btn:hover {
    opacity: 1;
}

/* ===== Auth Pages (Login/Register) ===== */
.auth-wrapper {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
}

.auth-card h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(231,76,60,0.1);
}

.auth-card .btn {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 0.95rem;
    margin-top: 5px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== Profile Page ===== */
.profile-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    margin: 30px 0;
}

.profile-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
    border: 1px solid var(--border);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 15px;
    font-weight: 700;
}

.profile-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-role {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 0.78rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 5px 0;
}

.profile-menu {
    list-style: none;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.profile-menu li a:hover,
.profile-menu li a.active {
    background: rgba(231,76,60,0.06);
    color: var(--primary);
}

.profile-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    border: 1px solid var(--border);
}

.profile-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--bg-main);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

table tr:hover {
    background: rgba(231,76,60,0.02);
}

/* ===== Status Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-primary { background: rgba(231,76,60,0.1); color: var(--primary); }

/* ===== Nạp Tiền Page ===== */
.naptien-wrapper {
    max-width: 800px;
    margin: 30px auto;
}

.naptien-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.method-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.method-card:hover,
.method-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.method-card .method-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.method-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.method-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ===== FAQ Page ===== */
.faq-wrapper {
    max-width: 800px;
    margin: 30px auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .faq-toggle {
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 22px 18px;
    max-height: 500px;
}

/* ===== Page Title ===== */
.page-title {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px 30px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.page-title h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.page-title .breadcrumb {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.page-title .breadcrumb a {
    color: var(--primary);
}

/* ===== Admin Panel ===== */
.admin-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    margin: 20px 0;
    min-height: calc(100vh - 130px);
}

.admin-sidebar {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 25px 15px;
    color: white;
}

.admin-sidebar .admin-brand {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
}

.admin-menu {
    list-style: none;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: rgba(231,76,60,0.15);
    color: white;
}

.admin-menu li a .menu-icon {
    width: 20px;
    text-align: center;
}

.admin-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.admin-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* Admin Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.revenue::after { background: var(--primary); }
.stat-card.users::after { background: #3498db; }
.stat-card.orders::after { background: #2ecc71; }
.stat-card.accounts::after { background: #f39c12; }

.stat-card .stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 3px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== User Balance Display ===== */
.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ===== Notification Badge ===== */
.notif-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.notif-btn:hover {
    background: var(--bg-main);
    color: var(--primary);
}

/* ===== Toast Notification ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: #2ecc71; }
.toast.error { border-left-color: #e74c3c; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ===== Select & Input Enhancements ===== */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .product-grid, .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        z-index: 1001;
        border-radius: 0;
        transition: var(--transition);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 58px;
    }

    .header-logo {
        font-size: 1.25rem;
    }

    .header-logo .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .header-nav {
        display: none;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        z-index: 2000;
        overflow-y: auto;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .mobile-only-link {
        display: flex !important;
        align-items: center;
        gap: 10px;
        color: var(--primary) !important;
        font-weight: 700 !important;
    }

    .header-actions .btn {
        display: none !important;
    }

    .user-balance {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .mobile-toggle {
        display: block;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .card-image {
        height: 140px;
    }

    .product-card .card-body {
        padding: 10px;
    }

    .product-card .card-title {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .floating-buttons {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }

    .float-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        opacity: 0.7; /* Higher transparency on mobile */
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card .card-image {
        height: 120px;
    }
    
    .btn-buy {
        padding: 8px;
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Banner aspect ratio fix */
.banner-slider { width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow); position: relative; }
.banner-slider img { width: 100%; display: block; object-fit: cover; aspect-ratio: 21/9;}

/* Category card refinements */
.cat-card { 
    background: var(--bg-card); 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    transition: var(--transition); 
    text-decoration: none; 
    display: block; 
    position: relative; 
    border: 1px solid var(--border);
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cat-image { width: 100%; padding-top: 56.25%; position: relative; }
.cat-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); color: white; text-align: center; }
.cat-overlay h3 { margin: 0; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
