/* ==========================================
   SUPER CONTROL – Natural Premium Design System
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================
   DESIGN TOKENS (Premium Dark Mode)
   ============================ */
:root {
    /* Background palette */
    --bg-main:    #F8F9FA;
    --bg-white:   #FFFFFF;
    --bg-subtle:  #F1F3F5;
    --bg-hover:   #E9ECEF;

    /* Border */
    --border-color:   #DEE2E6;
    --border-darker:  #CED4DA;

    /* Accent – Premium Indigo/Violet for Light Mode */
    --accent:          #6366F1;
    --accent-dark:     #4F46E5;
    --accent-glow:     rgba(99, 102, 241, 0.25);
    --accent-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);

    /* Status colours */
    --success:      #10B981;
    --success-bg:   rgba(16, 185, 129, 0.1);
    --success-border: rgba(16, 185, 129, 0.2);
    --danger:       #EF4444;
    --danger-bg:    rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.2);
    --warning:      #F59E0B;
    --warning-bg:   rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.2);
    --info:         #3B82F6;
    --info-bg:      rgba(59, 130, 246, 0.1);
    --info-border:  rgba(59, 130, 246, 0.2);

    /* Typography */
    --text-main:   #212529;
    --text-muted:  #6C757D;
    --text-light:  #ADB5BD;
    --text-on-accent: #FFFFFF;

    /* Shape */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs:  0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm:  0 1px 6px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lg:  0 8px 32px rgba(0, 240, 255, 0.15), 0 2px 6px rgba(0,0,0,0.4);
    --shadow-xl:  0 20px 60px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.6);

    /* Transitions */
    --transition-fast:   all 0.15s ease;
    --transition:        all 0.22s cubic-bezier(0.4,0,0.2,1);
    --transition-slow:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ============================
   BASE RESET
   ============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-darker); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================
   LAYOUT UTILITIES
   ============================ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

main.page-content {
    flex: 1;
    padding: 2.5rem 0 4rem;
}

/* ============================
   HEADER / NAVIGATION
   ============================ */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Top utility bar */
.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover { opacity: 0.85; }

.logo img { height: 38px; object-fit: contain; max-width: 160px; }

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Inline search bar */
.nav-search {
    flex: 1;
    max-width: 540px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 0.6rem 3rem 0.6rem 1.1rem;
    background: var(--bg-subtle);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.nav-search input:focus {
    background: var(--bg-white);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.nav-search input::placeholder { color: var(--text-light); }

.nav-search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-full);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-search button:hover { background: var(--accent-dark); }
.nav-search button svg { width: 14px; height: 14px; }

/* Mobile hamburger - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu-btn svg { width: 20px; height: 20px; }

/* Nav links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover  { color: var(--accent); background: var(--accent-glow); }
.nav-link.active { color: var(--accent); background: var(--accent-glow); font-weight: 600; }

/* Language selector */
.lang-select {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.lang-select:hover { border-color: var(--accent); }

/* ============================
   HERO SECTION
   ============================ */
.hero {
    background: linear-gradient(135deg, #fff8f6 0%, #fdf5ef 40%, #f0f7f3 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4.5rem 1.25rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(238,77,45,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(238,77,45,0.2);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================
   CARDS
   ============================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* Legacy aliases */
.glass-card, .clean-card { 
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:hover, .card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-darker);
    transform: translateY(-1px);
}

/* ============================
   PRODUCT GRID
   ============================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 0.75rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.product-img {
    height: 0;
    padding-top: 100%; /* Force 1:1 Aspect Ratio */
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

/* .product-card:hover .product-img img { transform: scale(1.04); } */

.product-img svg, .product-img i {
    width: 44px;
    height: 44px;
    color: var(--text-light);
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    word-break: break-word;
    line-height: 1.3;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

/* ============================
   SEARCH BAR (Page-level)
   ============================ */
.search-bar-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrap .form-control {
    padding-left: 2.6rem;
    margin: 0;
    background: var(--bg-subtle);
    border-color: transparent;
}

.search-input-wrap .form-control:focus {
    background: var(--bg-white);
    border-color: var(--accent);
}

.search-input-wrap i, .search-input-wrap svg {
    position: absolute;
    left: 0.85rem;
    color: var(--text-light);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid transparent;
    outline: none;
    white-space: nowrap;
    user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-white);
    border-color: var(--border-darker);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: transparent;
}

.btn-danger:hover { background: #b91c1c; }

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: transparent;
}

.btn-success:hover { background: #1f5e38; }

.btn-sm  { padding: 0.4rem 0.85rem; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg  { padding: 0.85rem 2rem;   font-size: 1rem;   border-radius: var(--radius-md); }
.btn-full { width: 100%; }

/* ============================
   FORMS
   ============================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-darker);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    line-height: 1.5;
}

.form-control:hover  { border-color: var(--text-light); }
.form-control:focus  { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--bg-white); }
.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control { appearance: none; cursor: pointer; }

input[type="file"].form-control {
    padding: 0.35rem;
    background: var(--bg-white);
    color: var(--text-main);
}

input[type="file"].form-control::file-selector-button {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.8rem;
    margin-right: 1rem;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

input[type="file"].form-control::file-selector-button:hover {
    background: var(--bg-main);
    border-color: var(--text-muted);
}

.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 0.35rem; }

/* ============================
   BADGES
   ============================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid var(--danger-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid var(--info-border); }
.badge-neutral { background: var(--bg-subtle);  color: var(--text-muted); border: 1px solid var(--border-color); }
.badge-accent  { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(238,77,45,0.2); }

/* ============================
   ALERTS
   ============================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
    line-height: 1.55;
}

.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger-border);  color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border-color: var(--info-border);    color: var(--info); }

/* ============================
   TABLE
   ============================ */
.table-responsive { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-white);
}

thead tr { background: var(--bg-subtle); }

th {
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    vertical-align: middle;
    color: var(--text-main);
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--bg-hover); }

/* ============================
   SECTION HEADERS
   ============================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.25rem;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* ============================
   GACHA / PROMO BANNER
   ============================ */
.promo-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% -10%, rgba(217,119,6,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background: var(--text-main);
    color: rgba(255,255,255,0.75);
    margin-top: auto;
}

.footer-body {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo-footer {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 280px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    transition: var(--transition-fast);
}

.footer-contact-list a:hover { color: #fff; }
.footer-contact-list svg { width: 15px; height: 15px; flex-shrink: 0; }

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    white-space: pre-line;
}

.footer-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.footer-icons-grid img {
    height: 24px;
    object-fit: contain;
    max-width: 80px;
}

.footer-payment-icons {
    display: flex;
    flex-wrap: wrap;
}

.footer-payment-icons img {
    height: 22px;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-xs);
    padding: 2px 6px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============================
   AUTH PAGES (Login / Register)
   ============================ */
.auth-page {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-glow);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
}

.auth-icon svg { width: 26px; height: 26px; }

.auth-header h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 0.3rem;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer-link a {
    color: var(--accent);
    font-weight: 600;
}

/* ============================
   EMPTY STATES
   ============================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
}

.empty-state-icon svg { width: 32px; height: 32px; }

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.empty-state p { font-size: 0.9rem; max-width: 380px; margin: 0 auto; }

/* ============================
   DIVIDER
   ============================ */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* ============================
   STAT / INFO PILL
   ============================ */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================
   DASHBOARD / PANEL PAGE
   ============================ */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 0.3rem;
}

.page-header p { font-size: 0.9rem; color: var(--text-muted); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sidebar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-avatar {
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-hover) 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.avatar-circle {
    width: 72px;
    height: 72px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav-item:last-child { border-bottom: none; }
.sidebar-nav-item:hover { background: var(--bg-subtle); color: var(--text-main); }
.sidebar-nav-item.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.sidebar-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================
   STAR RATING
   ============================ */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 1rem;
}

/* ============================
   TABS
   ============================ */
.tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: transparent;
    font-family: inherit;
}

.tab-btn.active {
    background: var(--bg-white);
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

/* ============================
   MODALS
   ============================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-in 0.25s cubic-bezier(0.4,0,0.2,1);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { font-size: 1.15rem; font-weight: 700; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { padding: 1.25rem 1.5rem 1.5rem; }

/* ============================
   LOADING SPINNER
   ============================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .hero h1 { font-size: 1.85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .auth-card { border-radius: var(--radius-lg); padding: 2rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }
    .product-img { height: 0; padding-top: 100%; position: relative; }
    .product-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .product-info { gap: 0.25rem; }
    .product-title { font-size: 0.75rem; margin-bottom: 0.25rem; line-height: 1.3; }
    .product-price { font-size: 0.85rem; }

    /* Dashboard Mobile Tabs */
    .desktop-tabs { display: none !important; }
    .mobile-tabs-select { display: block !important; }
}

@media (max-width: 992px) {
    .nav-top { flex-wrap: wrap; align-items: center; }
    .nav-search { order: 3; max-width: 100%; flex: 0 0 100%; margin-top: 1rem; }
    .mobile-menu-btn { display: block; order: 2; margin-left: auto; }
    
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        margin-top: 1rem;
        background: var(--bg-subtle);
        padding: 1rem;
        border-radius: var(--radius-md);
        gap: 0.5rem;
    }

    .main-nav.show { display: flex; }
    .main-nav .nav-link, .main-nav .btn { width: 100%; text-align: left; justify-content: flex-start; }

    .hero { padding: 3rem 1.25rem 2.5rem; }
    .hero h1 { font-size: 1.85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .auth-card { border-radius: var(--radius-lg); padding: 2rem; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 0.25rem; }
    .product-img { height: 0; padding-top: 100%; position: relative; }
    .product-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .product-info { gap: 0.25rem; }
    .product-title { font-size: 0.75rem; margin-bottom: 0.25rem; line-height: 1.3; }
    .product-price { font-size: 0.85rem; }

    /* Dashboard Mobile Tabs */
    .desktop-tabs { display: none !important; }
    .mobile-tabs-select { display: block !important; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.5rem; }
    .auth-card { padding: 1.5rem; }
    .tabs { flex-direction: column; }
}

/* Admin Mobile Sidebar */
@media (max-width: 992px) {
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    .sidebar.show { left: 0; }
    .admin-main { padding: 1.5rem; }
    .admin-mobile-header { display: flex !important; }
}

/* ============================
   UTILITY CLASSES
   ============================ */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.78rem; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.mt-auto      { margin-top: auto; }
.mb-0         { margin-bottom: 0; }
.mb-1         { margin-bottom: 0.5rem; }
.mb-2         { margin-bottom: 1rem; }
.mb-3         { margin-bottom: 1.5rem; }
.mb-4         { margin-bottom: 2rem; }
.gap-1        { gap: 0.5rem; }
.gap-2        { gap: 1rem; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1       { flex: 1; }
.w-full       { width: 100%; }
.rounded      { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
