/* ==========================================================================
   GORN MIDDLEWARE — COMPLETE STOREFRONT STYLESHEET
   Dark theme · Lemon-green accent · Fully responsive
   ========================================================================== */

/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    --bg-main: #0f0f0f;
    --bg-card: #1c1c1c;
    --bg-nav: #161616;
    --bg-input: #202020;
    --bg-hover: #262626;

    --border-color: #2d2d2d;
    --border-hover: #404040;

    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-muted: #707070;

    --accent: #ccff00;
    --accent-dark: #99cc00;
    --accent-bg: rgba(204, 255, 0, 0.08);

    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --purple: #9c27b0;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);

    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    margin-top: 80px;
    flex: 1;
    padding-bottom: 120px; /* room for fixed bottom nav */
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navContent {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 80px;
}

.logo { flex-shrink: 0; }
.logo a { display: block; }
.logo-img { height: 48px; width: auto; max-width: 160px; object-fit: contain; }

/* ==========================================================================
   4. SEARCH BAR
   ========================================================================== */
.search-bar { flex: 1; max-width: 520px; }

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

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

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #191919;
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}

/* ==========================================================================
   5. HEADER AUTH BUTTONS
   ========================================================================== */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-links { display: flex; gap: 8px; align-items: center; }

.btn-login,
.btn-logout,
.btn-user,
.btn-admin,
.btn-super-admin,
.btn-django-admin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    border: 1px solid transparent;
    line-height: 1;
}

.btn-login {
    background: var(--accent);
    color: #0f0f0f;
}
.btn-login:hover {
    background: #d9ff4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(204, 255, 0, 0.3);
}

.btn-user       { background: rgba(76, 175, 80, 0.15);   color: var(--success); border-color: rgba(76, 175, 80, 0.3); }
.btn-admin      { background: rgba(33, 150, 243, 0.15);  color: var(--info);    border-color: rgba(33, 150, 243, 0.3); }
.btn-super-admin{ background: rgba(255, 215, 0, 0.15);   color: #ffd700;        border-color: rgba(255, 215, 0, 0.3); }
.btn-django-admin { background: rgba(255, 152, 0, 0.15); color: var(--warning); border-color: rgba(255, 152, 0, 0.3); }

.btn-user:hover, .btn-admin:hover, .btn-super-admin:hover, .btn-django-admin:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}
.btn-logout:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(244, 67, 54, 0.08);
}

/* ==========================================================================
   6. MOBILE MENU BUTTON
   ========================================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn:hover { background: var(--bg-input); }

/* ==========================================================================
   7. MOBILE MENU (SLIDE-IN)
   ========================================================================== */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active { display: block; opacity: 1; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    z-index: 1001;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { left: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-nav);
}
.menu-logo { height: 32px; width: auto; }
.menu-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.menu-close:hover { background: var(--bg-input); color: var(--accent); transform: rotate(90deg); }

.mobile-menu-inner { padding: 12px 0; }
.mobile-nav-section, .mobile-auth-section { padding: 0 14px; }
.nav-label, .auth-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    padding: 10px 12px 6px;
}

.mobile-nav-section a,
.mobile-auth-section a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}
.mobile-nav-section a:hover,
.mobile-auth-section a:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}
.mobile-nav-section a i,
.mobile-auth-section a i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
}
.mobile-nav-section a:hover i,
.mobile-auth-section a:hover i { color: var(--accent); }

.mobile-user       { color: var(--success) !important; }
.mobile-admin      { color: var(--info) !important; }
.mobile-super-admin{ color: #ffd700 !important; }
.mobile-django-admin { color: var(--warning) !important; }

.mobile-divider {
    border-top: 1px solid var(--border-color);
    margin: 12px 18px;
}

/* ==========================================================================
   8. ALERTS / MESSAGES
   ========================================================================== */
.messages-container {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 1100;
    max-width: 380px;
    width: calc(100% - 48px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    color: var(--text-primary);
    pointer-events: auto;
    animation: slideInRight 0.35s ease;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.alert-success { border-left-color: var(--success); }
.alert-error   { border-left-color: var(--danger); }
.alert-info    { border-left-color: var(--info); }
.alert-warning { border-left-color: var(--warning); }

.alert-success i { color: var(--success); }
.alert-error i   { color: var(--danger); }
.alert-info i    { color: var(--info); }
.alert-warning i { color: var(--warning); }

.alert-close {
    background: none; border: none;
    color: var(--text-muted);
    font-size: 20px; line-height: 1;
    cursor: pointer; padding: 0 4px;
    transition: var(--transition);
}
.alert-close:hover { color: var(--text-primary); }

/* ==========================================================================
   9. HERO
   ========================================================================== */
.hero {
    background: radial-gradient(ellipse at top, #191919 0%, var(--bg-main) 60%);
    padding: 100px 0 70px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.hero-content { max-width: 900px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 16px;
    line-height: 1.15;
}
.hero p {
    font-size: clamp(14px, 1.6vw, 17px);
    color: var(--text-secondary);
    margin: 0 0 40px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}
.hero-stats .stat {
    flex: 1 1 140px;
    max-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    transition: var(--transition);
}
.hero-stats .stat:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(204, 255, 0, 0.08);
}
.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==========================================================================
   10. FEATURED SECTIONS (HOME)
   ========================================================================== */
.featured {
    background: #121212;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.container-scroll::-webkit-scrollbar { height: 6px; }
.container-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.items-grid {
    display: flex;
    gap: 16px;
    min-height: 380px;
}

/* ==========================================================================
   11. ITEM CARD (SHARED)
   ========================================================================== */
.item-card {
    flex: 0 0 280px;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}
.item-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.item-image {
    height: 170px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}
.item-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}
.no-image {
    font-size: 46px;
    color: #333;
}

.item-info,
.item-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.item-info h3,
.item-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 40px;
}
.item-synopsis {
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-muted);
}
.item-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--bg-input);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 10.5px;
}
.item-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 11px;
}
.item-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--text-muted);
}
.item-stats i { color: #555; margin-right: 3px; }

.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition);
    width: 100%;
}
.btn-view:hover {
    background: var(--accent);
    color: #0f0f0f;
    border-color: var(--accent);
}

/* Category-specific badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.version-badge  { background: rgba(33, 150, 243, 0.15);  color: var(--info); }
.downloads-badge{ background: rgba(76, 175, 80, 0.15);   color: var(--success); }
.price-badge    { background: rgba(204, 255, 0, 0.12);   color: var(--accent); }
.stock-badge    { background: rgba(158, 158, 158, 0.15); color: #9e9e9e; }
.stock-badge.in-stock { background: rgba(76, 175, 80, 0.15); color: var(--success); }
.location-badge { background: rgba(244, 67, 54, 0.15);   color: var(--danger); }
.phone-badge    { background: rgba(156, 39, 176, 0.15);  color: var(--purple); }
.website-badge  { background: rgba(255, 152, 0, 0.15);   color: var(--warning); }
.views-badge    { background: rgba(33, 150, 243, 0.15);  color: var(--info); }
.badge-stack    { display: flex; gap: 6px; flex-wrap: wrap; }

/* View All button */
.view-all { text-align: center; margin-top: 24px; }
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-view-all:hover {
    background: var(--accent);
    color: #0f0f0f;
    transform: translateY(-2px);
}

/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #191919, #0f0f0f);
    border-top: 1px solid rgba(204, 255, 0, 0.15);
    border-bottom: 1px solid rgba(204, 255, 0, 0.15);
}
.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-text h2 {
    font-size: 26px;
    margin: 0 0 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cta-text h2 i { color: var(--accent); }
.cta-text p { color: var(--text-secondary); font-size: 15px; max-width: 520px; margin: 0; }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-cta-primary {
    background: var(--accent);
    color: #0f0f0f;
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(204, 255, 0, 0.3);
}
.btn-cta-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-cta-secondary:hover {
    background: rgba(204, 255, 0, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   13. BOTTOM FIXED NAV
   ========================================================================== */
.categories-grid2 {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    background: rgba(22, 22, 22, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    z-index: 999;
}
.category-card2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 6px;
    min-height: 58px;
    background: #232323;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}
.category-card2 i { font-size: 18px; color: #fff; }
.category-card2 h3 { margin: 0; font-size: 11px; font-weight: 600; color: #fff; }
.category-card2:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.category-card2:hover i,
.category-card2:hover h3 { color: #0f0f0f; }

/* ==========================================================================
   14. CATEGORY LIST PAGES
   ========================================================================== */
.category-container { padding: 40px 0 60px; }

.category-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.category-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border: 1px solid rgba(204, 255, 0, 0.25);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 26px;
    flex-shrink: 0;
}
.category-info h1 { margin: 0 0 4px; font-size: 26px; font-weight: 700; }
.category-info p  { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* Filters */
.category-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}
.filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.search-wrapper i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.search-wrapper .search-input {
    border-radius: var(--radius-sm);
    padding: 10px 14px 10px 40px;
}
.filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}
.btn-apply {
    padding: 10px 22px;
    background: var(--accent);
    color: #0f0f0f;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-apply:hover { opacity: 0.85; transform: translateY(-1px); }

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.empty-state i {
    font-size: 48px;
    color: #333;
    margin-bottom: 16px;
    display: block;
}
.empty-state h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 0 0 8px;
}
.empty-state p { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.page-link {
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.page-link:hover {
    background: var(--accent);
    color: #0f0f0f;
    border-color: var(--accent);
}
.current-page {
    color: var(--text-muted);
    font-size: 13px;
    padding: 0 8px;
}

/* ==========================================================================
   15. DETAIL PAGES
   ========================================================================== */
.detail-container { padding: 32px 0 80px; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { font-size: 10px; color: #444; }
.breadcrumb span:last-child { color: var(--text-primary); font-weight: 500; }

.detail-header {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
}

.detail-image-wrapper { flex-shrink: 0; }
.detail-image {
    width: 260px; height: 260px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}
.detail-image img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
.no-image-large {
    font-size: 72px;
    color: #333;
}

.detail-info { min-width: 0; }
.detail-info h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Category badges */
.app-badge, .center-badge, .hardware-badge, .media-badge, .website-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.app-badge      { background: rgba(33, 150, 243, 0.15);  color: var(--info); }
.center-badge   { background: rgba(244, 67, 54, 0.15);   color: var(--danger); }
.hardware-badge { background: rgba(76, 175, 80, 0.15);   color: var(--success); }
.media-badge    { background: rgba(156, 39, 176, 0.15);  color: var(--purple); }
.website-badge  { background: rgba(255, 152, 0, 0.15);   color: var(--warning); }

.meta-spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.detail-spec {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.detail-spec .label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
}
.detail-spec .value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}
.spec-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--accent);
}

.detail-stats {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 13px;
    flex-wrap: wrap;
}
.detail-stats i { color: var(--text-muted); margin-right: 5px; }

.platform-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--text-primary);
}

.detail-actions-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.price-container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-tag {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
}
.price-tag.free { color: var(--success); }
.access-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.access-badge.free-badge {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}
.action-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons on detail pages */
.btn-primary, .btn-secondary, .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-large { padding: 13px 26px; font-size: 15px; }
.btn-primary {
    background: var(--accent);
    color: #0f0f0f;
}
.btn-primary:hover {
    background: #d9ff4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.25);
}
.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--border-hover);
}

/* Section content */
.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.detail-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent);
}
.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 18px 0 8px;
}
.synopsis-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14.5px;
}
.synopsis-content p { margin: 0 0 12px; }

.services-section, .hours-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}
.tags-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.tags-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 11.5px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Layout grid for detail pages */
.detail-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.detail-main-column, .detail-side-column { min-width: 0; }

.sidebar-spec-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-spec {
    background: var(--bg-input);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.sidebar-spec .label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
.sidebar-spec .value { font-size: 13.5px; color: var(--text-primary); }

.map-container {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.map-container iframe { width: 100%; height: 240px; border: none; display: block; }
.btn-map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: var(--bg-input);
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}
.btn-map-link:hover { background: var(--accent); color: #0f0f0f; }

/* Specs and pricing */
.spec-details {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.spec-details pre {
    margin: 0;
    color: var(--text-secondary);
    font-family: ui-monospace, monospace;
    font-size: 12.5px;
    white-space: pre-wrap;
    word-break: break-word;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13.5px;
}
.pricing-table th {
    background: var(--bg-input);
    padding: 11px 16px;
    text-align: left;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}
.pricing-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Website preview */
.website-preview {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}
.website-preview iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* Related items */
.related-section .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.related-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-image {
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #444;
    font-size: 20px;
}
.related-image img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.related-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-code {
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    margin: 0;
}
.related-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 11px;
    color: var(--text-muted);
}
.btn-sm {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #0f0f0f;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}
.btn-sm:hover { background: #d9ff4d; }

/* Center page actions */
.center-actions-flex { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-location, .btn-map, .btn-download, .btn-buy, .btn-view-media, .btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.btn-download, .btn-buy, .btn-view-media, .btn-visit {
    background: var(--accent);
    color: #0f0f0f;
    width: 100%;
}
.btn-download:hover, .btn-buy:hover, .btn-view-media:hover, .btn-visit:hover {
    background: #d9ff4d;
    transform: translateY(-1px);
}
.btn-location {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-location:hover { background: var(--border-color); }
.btn-map {
    background: var(--accent);
    color: #0f0f0f;
}
.btn-map:hover { background: #d9ff4d; }

/* ==========================================================================
   16. SEARCH RESULTS
   ========================================================================== */
.search-page-container { padding: 40px 0 60px; }
.page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.page-header p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.page-header strong { color: var(--accent); font-weight: 700; }

.btn-home-redirect {
    display: inline-block;
    padding: 10px 22px;
    background: var(--accent);
    color: #0f0f0f;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-top: 12px;
    transition: var(--transition);
}
.btn-home-redirect:hover { background: #d9ff4d; transform: translateY(-1px); }

/* ==========================================================================
   17. LOGIN / AUTH PAGES
   ========================================================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 240px);
    padding: 60px 20px;
}
.auth-card {
    max-width: 440px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header i {
    font-size: 48px;
    margin-bottom: 14px;
    display: block;
}
.auth-header .htwo {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}
.auth-header .pclass {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Icon colors per role */
.auth-header i.fa-user-circle     { color: var(--text-secondary); }
.auth-header i.fa-user-shield     { color: var(--info); }
.auth-header i.fa-crown           { color: #ffd700; }

.auth-container .form-group { margin-bottom: 18px; }
.auth-container .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.auth-container .form-group label i { color: var(--text-muted); font-size: 13px; }

.auth-container .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}
.auth-container .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.1);
}
.auth-container .form-group input::placeholder { color: var(--text-muted); }

.btn-block {
    display: block;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: 6px;
}
.btn-block i { margin-right: 6px; }

.auth-container .btn-primary {
    background: var(--accent);
    color: #0f0f0f;
}
.auth-container .btn-primary:hover { background: #d9ff4d; transform: translateY(-2px); }

.auth-container .btn-admin {
    background: var(--info);
    color: #fff;
}
.auth-container .btn-admin:hover { background: #1e88e5; transform: translateY(-2px); }

.auth-container .btn-super-admin {
    background: #ffd700;
    color: #1a1a1a;
}
.auth-container .btn-super-admin:hover { background: #e6c200; transform: translateY(-2px); }

.auth-container .alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--danger);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 13.5px;
    margin-bottom: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}
.auth-footer p { margin: 6px 0; }
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.auth-footer a:hover { text-decoration: underline; }

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 120px;
    margin-top: 60px;
    color: var(--text-secondary);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-section h4 {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px;
}
.footer-section p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 300px;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 9px; }
.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: var(--transition);
}
.footer-section ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-logo {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.social-links a {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1c1c1c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f0f0f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 12px; margin: 0; }
.sso-status {
    color: var(--accent) !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   19. USER DASHBOARD (public /login/dashboard/)
   ========================================================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}
.dashboard-header h1 {
    font-size: clamp(22px, 3.5vw, 30px);
    margin: 0 0 8px;
}
.dashboard-header h1 i { color: var(--accent); margin-right: 10px; }
.dashboard-header p { color: var(--text-secondary); font-size: 14px; margin: 0; }

.sso-status-card {
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.08), rgba(15, 15, 15, 0.6));
    border: 1px solid rgba(204, 255, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.sso-status-icon i { font-size: 42px; color: var(--accent); }
.sso-status-text h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.sso-status-text p  { margin: 0; color: var(--text-secondary); font-size: 13.5px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 44px;
}
.stat-card {
    display: flex;
    gap: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.08);
}
.stat-card > i {
    font-size: 34px;
    color: var(--accent);
    flex-shrink: 0;
}
.stat-info h3 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.stat-info p  { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.stat-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}
.stat-link:hover { text-decoration: underline; }

.quick-links { margin-top: 40px; }
.quick-links h3 {
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 22px;
    color: var(--text-secondary);
}
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}
.platform-card i { font-size: 30px; color: var(--accent); margin-bottom: 4px; }
.platform-card span { color: #fff; font-weight: 600; font-size: 14px; }
.platform-card small { color: var(--text-muted); font-size: 11.5px; }
.platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(204, 255, 0, 0.08);
}

/* ==========================================================================
   20. UTILITIES
   ========================================================================== */
.no-items {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    margin: 0;
}

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */

/* Large desktop → desktop */
@media (max-width: 1280px) {
    .hero-stats .stat { flex: 1 1 120px; }
    .detail-header { grid-template-columns: 240px 1fr; gap: 28px; padding: 26px; }
    .detail-image { width: 240px; height: 240px; }
}

/* Tablet */
@media (max-width: 1024px) {
    .container { padding: 0 18px; }
    .detail-layout-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .search-bar { display: none; }
    .mobile-menu-btn { display: flex; }
    .detail-header { grid-template-columns: 200px 1fr; gap: 22px; padding: 22px; }
    .detail-image { width: 200px; height: 200px; }
    .detail-info h1 { font-size: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .header { height: 64px; }
    .main-content { margin-top: 64px; }
    .navContent { height: 64px; gap: 12px; }
    .logo-img { height: 38px; max-width: 110px; }
    .auth-buttons .btn-login,
    .auth-buttons .btn-logout,
    .auth-buttons .btn-user,
    .auth-buttons .btn-admin,
    .auth-buttons .btn-super-admin,
    .auth-buttons .btn-django-admin {
        padding: 8px 11px;
        font-size: 12px;
    }
    .auth-buttons .admin-links { display: none; }
    .mobile-menu-btn { font-size: 20px; padding: 6px 10px; }
    .mobile-menu { width: 290px; left: -290px; }

    /* Hero */
    .hero { padding: 60px 0 40px; }
    .hero-stats { gap: 10px; }
    .hero-stats .stat { flex: 1 1 100px; padding: 14px 12px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 10px; }

    /* Featured */
    .featured { padding: 40px 0; }
    .section-title { font-size: 17px; margin-bottom: 18px; }

    /* Item cards */
    .item-card, .items-grid .item-card { flex: 0 0 220px; width: 220px; }
    .item-image { height: 140px; }
    .item-info h3 { font-size: 14px; }

    /* Category */
    .category-header { flex-direction: column; text-align: center; padding: 22px; }
    .category-info h1 { font-size: 22px; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .search-wrapper { min-width: auto; width: 100%; }
    .filter-options { width: 100%; }
    .filter-select, .btn-apply { flex: 1; }

    /* Detail */
    .detail-container { padding: 22px 0 60px; }
    .detail-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }
    .detail-image-wrapper { margin: 0 auto; }
    .detail-image { width: 180px; height: 180px; margin: 0 auto; }
    .detail-info h1 { font-size: 22px; }
    .meta-spec-list { justify-content: center; }
    .detail-actions-panel { flex-direction: column; align-items: stretch; }
    .action-buttons-group { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
    .detail-section { padding: 20px; }
    .related-grid { grid-template-columns: 1fr; }

    /* CTA */
    .cta-section { padding: 44px 0; }
    .cta-content { flex-direction: column; text-align: center; }
    .cta-text p { max-width: 100%; }
    .cta-buttons { justify-content: center; width: 100%; }
    .btn-cta-primary, .btn-cta-secondary { width: 100%; justify-content: center; }

    /* Bottom nav */
    .categories-grid2 { padding: 6px 8px; gap: 4px; }
    .category-card2 { padding: 8px 4px; min-height: 50px; }
    .category-card2 i { font-size: 15px; }
    .category-card2 h3 { font-size: 9px; }

    /* Footer */
    .footer { padding: 40px 0 100px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-section p { max-width: 100%; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }

    /* Login */
    .auth-card { padding: 28px 22px; }
    .auth-header i { font-size: 38px; }

    /* Alerts */
    .messages-container { top: 76px; right: 12px; left: 12px; width: auto; max-width: none; }

    /* Dashboard */
    .stats-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr 1fr; }

    /* Pagination */
    .page-link, .current-page { padding: 7px 12px; font-size: 12px; }
}

/* Small mobile */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .header { height: 58px; }
    .main-content { margin-top: 58px; }
    .navContent { height: 58px; }
    .logo-img { height: 32px; max-width: 90px; }

    .hero { padding: 44px 0 32px; }
    .hero h1 { font-size: 22px; }
    .hero-stats { gap: 8px; }
    .hero-stats .stat { flex: 1 1 90px; padding: 12px 10px; }
    .stat-number { font-size: 18px; }
    .stat-label { font-size: 9px; letter-spacing: 0.3px; }

    .item-card, .items-grid .item-card { flex: 0 0 180px; width: 180px; }
    .item-image { height: 110px; }
    .item-synopsis { display: none; }
    .item-info h3 { font-size: 13px; min-height: 34px; }

    .section-title { font-size: 15px; }

    .categories-grid2 { padding: 4px; gap: 2px; }
    .category-card2 { min-height: 44px; border-radius: 4px; }
    .category-card2 i { font-size: 13px; }
    .category-card2 h3 { font-size: 8px; }

    .detail-image { width: 140px; height: 140px; }
    .detail-info h1 { font-size: 19px; }
    .price-tag { font-size: 24px; }
    .detail-section { padding: 16px; }
    .detail-section h2 { font-size: 15px; }

    .auth-card { padding: 22px 18px; border-radius: var(--radius-md); }
    .auth-header i { font-size: 34px; }
    .auth-header .htwo { font-size: 20px; }

    .footer-bottom { font-size: 11px; }

    .platform-grid { grid-template-columns: 1fr; }
}

/* Very small screens */
@media (max-width: 360px) {
    .i.btn-disabled {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}tem-card, .items-grid .item-card { flex: 0 0 160px; width: 160px; }
    .category-card2 h3 { font-size: 7px; }
    .category-card2 i { font-size: 11px; }
}

