/* ============================================================
   QUATA — Dark Glitch Aesthetic
   Pure Black · Monospace · No Color
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Bebas+Neue&family=Share+Tech+Mono&display=swap');

:root {
    --black:      #000000;
    --deep:       #080808;
    --surface:    #0e0e0e;
    --card:       #141414;
    --border:     #1e1e1e;
    --border-hi:  #2a2a2a;
    --white:      #f0f0f0;
    --white-dim:  #666666;
    --white-mid:  #999999;
    --green:      #00ff6a;
    --red:        #ff2828;
    --mono:       'Share Tech Mono', monospace;
    --display:    'Bebas Neue', sans-serif;
    --body:       'Space Mono', monospace;
    --header-height: 64px;
    --sidebar-width: 260px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: crosshair;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { display: block; max-width: 100%; }
button { cursor: crosshair; font-family: var(--mono); border: none; }
input, select, textarea { cursor: crosshair; }

/* ── SCANLINES ── */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.12) 2px,
        rgba(0,0,0,0.12) 4px
    );
}

/* ── NOISE ── */
.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
}

/* ── GLITCH LOGO ── */
.glitch-img:hover {
    animation: glitch 0.4s steps(1) infinite;
}
@keyframes glitch {
    0%   { clip-path: inset(30% 0 40% 0); transform: translate(-3px,0); filter: hue-rotate(90deg); }
    25%  { clip-path: inset(60% 0 10% 0); transform: translate(3px,0); }
    50%  { clip-path: inset(10% 0 70% 0); transform: translate(-2px,1px); filter: hue-rotate(0deg); }
    75%  { clip-path: inset(80% 0  5% 0); transform: translate(2px,-1px); }
    100% { clip-path: inset(0); transform: translate(0); }
}

/* ── NAVBAR ── */
.top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; }

/* Search */
.search-form { flex: 1; max-width: 480px; }
.search-group { display: flex; }
.search-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    outline: none;
    width: 100%;
    border-radius: 0;
    transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--white-dim); }
.search-input:focus { border-color: var(--white-dim); background: var(--deep); }
.btn-search {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    padding: 0 14px;
    font-size: 0.85rem;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-search:hover { background: var(--white-mid); border-color: var(--white-mid); color: var(--black); }

/* Top Icons */
.top-icon {
    color: var(--white-dim) !important;
    transition: color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}
.top-icon:hover { color: var(--white) !important; }
.top-icon small { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 1.5px; text-transform: uppercase; }
.top-icon .bi { font-size: 1.1rem; }

.cart-badge {
    position: absolute;
    top: -4px; right: -8px;
    background: var(--white);
    color: var(--black);
    border-radius: 0;
    font-size: 0.55rem;
    font-weight: 800;
    font-family: var(--mono);
    min-width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
}

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
    background: var(--white);
    color: var(--black);
    padding: 7px 16px;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: sticky;
    top: var(--header-height);
    z-index: 990;
    text-align: center;
}

/* ── CATEGORY NAV ── */
.category-nav {
    background: var(--deep);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 980;
}
.nav-scroll { overflow-x: auto; white-space: nowrap; scrollbar-width: none; display: flex; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--white-dim);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.nav-cat-link:hover { color: var(--white); }
.nav-cat-link.active { color: var(--white); border-bottom-color: var(--white); }

/* ── MAIN ── */
main { padding-top: var(--header-height); }

/* ── TICKER ── */
.ticker-wrap {
    overflow: hidden;
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 28s linear infinite;
}
.ticker span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--black);
    padding: 0 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── HERO BANNER ── */
.hero-banner {
    min-height: 420px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.default-hero { background: var(--black); }

/* animated grid bg */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes gridShift {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}
.hero-banner > * { position: relative; z-index: 1; }

.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--white-dim);
    text-transform: uppercase;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-hi);
    padding-bottom: 6px;
}
.hero-title {
    font-family: var(--display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.hero-subtitle {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--white-dim);
    text-transform: uppercase;
    margin-bottom: 28px;
}
.btn-hero {
    display: inline-block;
    padding: 13px 40px;
    border: 1px solid var(--white);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    transition: background 0.2s, color 0.2s;
}
.btn-hero:hover { background: var(--white); color: var(--black); }

.carousel-item { transition: opacity 0.6s ease-in-out !important; }

/* ── SECTION ── */
.section-block { padding: 60px 0; }
.section-title {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.sale-section { background: var(--deep); }
.sale-title-badge {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.05em;
    color: var(--white);
}

/* ── CATEGORY TILES ── */
.category-tile {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 22px 12px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    gap: 10px;
    aspect-ratio: 1;
    text-decoration: none;
}
.category-tile:hover {
    border-color: var(--white);
    background: var(--surface);
}
.cat-icon-wrap {
    width: 48px; height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.cat-icon { font-size: 1.3rem; color: var(--white-mid); }
.cat-name {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--white-mid);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.category-tile:hover .cat-name { color: var(--white); }
.category-tile:hover .cat-icon { color: var(--white); }

/* ── PRODUCT CARDS ── */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--white);
    transform: translateY(-3px);
}
.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: var(--surface);
}
.product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--border-hi);
    background: repeating-linear-gradient(
        45deg,
        var(--surface),
        var(--surface) 10px,
        var(--card) 10px,
        var(--card) 20px
    );
}

/* Badges */
.sale-badge {
    position: absolute;
    top: 0; left: 0;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
}
.out-of-stock-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
}
.out-of-stock-overlay span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-dim);
    background: #1a1a1a;
    border: 1px solid var(--border-hi);
    padding: 6px 14px;
}

.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-category-tag {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.product-name {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}
.product-desc {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--white-dim);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.6;
}
.product-price-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: auto; gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.product-price {
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 0.03em;
}
.product-original-price {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--white-dim);
    text-decoration: line-through;
    display: block;
}
.btn-cart {
    background: var(--white);
    color: var(--black);
    border: none;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    font-size: 0.95rem; padding: 0;
}
.btn-cart:hover { background: var(--white-mid); }
.btn-cart.disabled { background: var(--surface); color: var(--white-dim); cursor: not-allowed; border: 1px solid var(--border); }

/* ── CATEGORY HERO ── */
.category-hero {
    background: var(--deep);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}
.cat-hero-icon {
    width: 60px; height: 60px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item a { color: var(--white-dim); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.breadcrumb-item.active { color: var(--white); font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--white-dim); }

/* ── FOOTER ── */
.site-footer {
    background: var(--deep);
    border-top: 1px solid var(--border);
    color: var(--white-dim);
}
.footer-heading {
    font-family: var(--mono);
    color: var(--white);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-family: var(--mono);
    color: var(--white-dim);
    font-size: 11px;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-legal-link {
    font-family: var(--mono);
    color: var(--white-dim);
    font-size: 10px;
    margin-left: 16px;
    letter-spacing: 0.5px;
    transition: color 0.15s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-legal-link:hover { color: var(--white); }
.social-icon {
    width: 32px; height: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--white-dim);
    transition: all 0.15s;
    font-size: 0.9rem;
}
.social-icon:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ── TOAST ── */
.toast-container-custom {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.km-toast {
    background: var(--card);
    color: var(--white);
    border: 1px solid var(--border);
    padding: 13px 20px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    display: flex; align-items: center; gap: 10px;
    max-width: 340px;
    animation: toastIn 0.25s ease;
    border-left: 2px solid var(--border-hi);
}
.km-toast.success { border-left-color: var(--green); }
.km-toast.danger  { border-left-color: var(--red); }
.km-toast.warning { border-left-color: #fbbf24; }
.km-toast.info    { border-left-color: var(--white-dim); }
@keyframes toastIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ── LOGIN ── */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--black);
    padding: 20px;
}
.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    width: 100%; max-width: 400px;
}
.login-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 28px 24px 22px;
}
.login-subtitle {
    font-family: var(--mono);
    color: var(--white-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px; margin-bottom: 0;
}
.login-body { padding: 28px 32px; }
.btn-login {
    font-family: var(--mono);
    font-weight: 700;
    padding: 13px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--white);
    color: var(--black);
    border: none;
    width: 100%;
    transition: background 0.15s;
}
.btn-login:hover { background: var(--white-mid); color: var(--black); }

/* ── ADMIN ── */
.admin-body { background: var(--deep); }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--black);
    color: var(--white);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0;
    height: 100vh; z-index: 1030;
    transition: width 0.25s ease; overflow: hidden;
    border-right: 1px solid var(--border);
}
.admin-sidebar.collapsed { width: 64px; }
.admin-sidebar.collapsed .sidebar-label,
.admin-sidebar.collapsed .sidebar-section-label,
.admin-sidebar.collapsed .sidebar-link span,
.admin-sidebar.collapsed .sidebar-footer .admin-name,
.admin-sidebar.collapsed .sidebar-footer .admin-role { display: none; }
.admin-sidebar.collapsed .sidebar-nav .input-group { display: none !important; }

.sidebar-header {
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0; height: var(--header-height);
}
.sidebar-logo { text-decoration: none; display: flex; align-items: center; }
.sidebar-logo-img { height: 38px; width: auto; }
.sidebar-label {
    font-family: var(--mono);
    font-size: 9px; color: var(--white-dim);
    text-transform: uppercase; letter-spacing: 2.5px;
    white-space: nowrap; font-weight: 700;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.sidebar-section-label {
    font-family: var(--mono);
    font-size: 9px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--white-dim); padding: 10px 18px 4px; white-space: nowrap;
}
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 18px;
    font-family: var(--mono);
    color: var(--white-dim);
    text-decoration: none;
    font-size: 11px;
    transition: all 0.12s;
    border-left: 2px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sidebar-link i { font-size: 0.95rem; flex-shrink: 0; width: 18px; text-align: center; }
.sidebar-link:hover { color: var(--white); background: var(--surface); border-left-color: var(--border-hi); }
.sidebar-link.active { color: var(--white); background: var(--surface); border-left-color: var(--white); }
.sidebar-footer { padding: 14px 18px; border-top: 1px solid var(--border); flex-shrink: 0; }
.admin-avatar {
    width: 32px; height: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--white-mid); flex-shrink: 0;
    font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.admin-name { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--white); white-space: nowrap; }
.admin-role { font-family: var(--mono); font-size: 9px; color: var(--white-dim); text-transform: uppercase; letter-spacing: 1px; }

.admin-content {
    margin-left: var(--sidebar-width);
    flex: 1; display: flex; flex-direction: column;
    min-height: 100vh; transition: margin-left 0.25s ease;
}
.admin-header {
    height: var(--header-height);
    background: var(--black);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 24px; position: sticky; top: 0; z-index: 100;
    gap: 12px;
}
.sidebar-toggle { color: var(--white-dim); padding: 6px; background: none; border: none; }
.sidebar-toggle:hover { color: var(--white); }
.admin-header-title {
    font-family: var(--mono);
    font-weight: 700; font-size: 11px; color: var(--white);
    text-transform: uppercase; letter-spacing: 2px;
}
.admin-page-content { padding: 24px; flex: 1; }

.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
}
.admin-card-header {
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--mono);
    font-size: 10px; font-weight: 700;
    color: var(--white-mid);
    text-transform: uppercase; letter-spacing: 2px;
}
.admin-card-body { padding: 20px; }

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex; gap: 16px; align-items: center;
    transition: border-color 0.15s;
}
.stat-card:hover { border-color: var(--white-dim); }
.stat-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white-mid);
}
.stat-number { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--white); }
.stat-label { font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--white-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }
.stat-sub { font-family: var(--mono); font-size: 9px; color: var(--white-dim); margin-top: 2px; }

.admin-table {
    font-size: 11px; font-family: var(--mono);
    --bs-table-color:        var(--white);
    --bs-table-bg:           var(--card);
    --bs-table-border-color: var(--border);
    --bs-table-hover-color:  var(--white);
    --bs-table-hover-bg:     var(--surface);
    --bs-table-striped-color: var(--white);
    --bs-table-striped-bg:   var(--surface);
    color: var(--white);
}
.admin-table thead th {
    background: var(--surface);
    font-weight: 700; font-size: 9px;
    text-transform: uppercase; letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border);
    border-color: var(--border);
    padding: 10px 14px;
    color: var(--white-mid);
}
.admin-table tbody td { padding: 11px 14px; vertical-align: middle; border-color: var(--border); color: var(--white); }
.admin-table tbody tr { background: var(--card); }
.admin-table tbody tr:hover { background: var(--surface); }

.product-img-mini-placeholder {
    width: 40px; height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--white-dim); font-size: 1rem;
}
.color-swatch { display: inline-block; width: 12px; height: 12px; vertical-align: middle; margin-right: 4px; border: 1px solid var(--border); }
.banner-preview { overflow: hidden; min-height: 120px; }
.user-avatar-sm {
    width: 30px; height: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-family: var(--mono); font-weight: 700; font-size: 11px;
}
.signalr-status { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--white-dim); }

/* ── COOKIE BANNER ── */
#cookieBanner {
    background: var(--deep) !important;
    border-top: 1px solid var(--border) !important;
    font-family: var(--mono);
    font-size: 11px;
}

/* ── BOOTSTRAP OVERRIDES ── */
.btn { font-family: var(--mono) !important; font-size: 11px !important; letter-spacing: 0.5px; border-radius: 0 !important; }
.form-control {
    border-radius: 0 !important;
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--white) !important;
    font-family: var(--mono) !important;
    font-size: 12px !important;
}
.form-control:focus {
    border-color: var(--white-dim) !important;
    box-shadow: none !important;
    background: var(--deep) !important;
    color: var(--white) !important;
}
.form-control::placeholder { color: var(--white-dim) !important; }
.form-select {
    border-radius: 0 !important;
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--white) !important;
    font-family: var(--mono) !important;
    font-size: 11px !important;
}
.form-select:focus { border-color: var(--white-dim) !important; box-shadow: none !important; }
.input-group-text { border-radius: 0 !important; background: var(--surface) !important; border-color: var(--border) !important; color: var(--white-dim) !important; }
.dropdown-menu { border-radius: 0 !important; background: var(--card) !important; border-color: var(--border) !important; }
.dropdown-item { font-family: var(--mono) !important; font-size: 11px !important; color: var(--white-dim) !important; }
.dropdown-item:hover { background: var(--surface) !important; color: var(--white) !important; }
.dropdown-divider { border-color: var(--border) !important; }
.modal-content { border-radius: 0 !important; background: var(--card) !important; border-color: var(--border) !important; }
.modal-header { border-color: var(--border) !important; background: var(--surface) !important; }
.modal-footer { border-color: var(--border) !important; }
.card { border-radius: 0 !important; background: var(--card) !important; border-color: var(--border) !important; }
.alert { border-radius: 0 !important; }
.badge { border-radius: 0 !important; font-family: var(--mono) !important; }
.table { color: var(--white) !important; --bs-table-color: var(--white); --bs-table-border-color: var(--border); }
.table-bordered { border-color: var(--border) !important; }
.breadcrumb { background: transparent !important; }

.btn-danger, .btn-primary, .btn-dark {
    background: var(--white) !important;
    border-color: var(--white) !important;
    color: var(--black) !important;
}
.btn-danger:hover, .btn-primary:hover, .btn-dark:hover {
    background: var(--white-mid) !important;
    border-color: var(--white-mid) !important;
    color: var(--black) !important;
}
.btn-outline-danger, .btn-outline-primary, .btn-outline-dark {
    background: transparent !important;
    border-color: var(--white) !important;
    color: var(--white) !important;
}
.btn-outline-danger:hover, .btn-outline-primary:hover, .btn-outline-dark:hover {
    background: var(--white) !important;
    color: var(--black) !important;
}
.btn-secondary {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--white-mid) !important;
}
.btn-sm { font-size: 10px !important; padding: 5px 12px !important; }
.text-danger  { color: #ff6b6b !important; }
.text-primary { color: var(--white) !important; }
.text-muted   { color: var(--white-dim) !important; }
.text-success { color: var(--green) !important; }
.text-warning { color: #fbbf24 !important; }
.text-info    { color: #60c8f0 !important; }

.alert-danger  { background: rgba(255,107,107,0.1) !important; border-color: rgba(255,107,107,0.3) !important; color: #ff9999 !important; }
.alert-success { background: rgba(0,255,106,0.08) !important; border-color: rgba(0,255,106,0.25) !important; color: var(--green) !important; }
.alert-light   { background: var(--surface) !important; border-color: var(--border) !important; color: var(--white) !important; }
.alert-warning { background: rgba(251,191,36,0.1) !important; border-color: rgba(251,191,36,0.3) !important; color: #fbbf24 !important; }
.alert-info    { background: rgba(96,200,240,0.1) !important; border-color: rgba(96,200,240,0.3) !important; color: #60c8f0 !important; }

/* Admin-spezifische Tabellen-Fixes */
.admin-page-content .table-light th,
.admin-page-content .table-light td { background: var(--surface) !important; color: var(--white-mid) !important; border-color: var(--border) !important; }
.admin-page-content .bg-light { background: var(--surface) !important; }
.admin-page-content .table-sm td,
.admin-page-content .table-sm th { color: var(--white) !important; border-color: var(--border) !important; }

/* Status-Badges im Admin: farbig bleiben */
.badge.bg-danger    { background: #ff4444 !important; color: #fff !important; }
.badge.bg-success   { background: #00c950 !important; color: #000 !important; }
.badge.bg-warning   { background: #fbbf24 !important; color: #000 !important; }
.badge.bg-info      { background: #38bdf8 !important; color: #000 !important; }
.badge.bg-primary   { background: #818cf8 !important; color: #fff !important; }
.badge.bg-secondary { background: var(--surface) !important; color: var(--white-mid) !important; border: 1px solid var(--border) !important; }

.spinner-border { border-color: var(--white-dim) !important; border-right-color: transparent !important; }
hr { border-color: var(--border) !important; }
label { font-family: var(--mono) !important; font-size: 10px !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; color: var(--white-dim) !important; }
.list-group-item { background-color: var(--card) !important; border-color: var(--border) !important; color: var(--white) !important; }
.list-group-item:hover { background-color: var(--surface) !important; }
.breadcrumb-item.active { color: var(--white-dim) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--white-dim) !important; }
.text-dark { color: var(--white-dim) !important; }
.admin-table tbody tr:hover > td,
.admin-table tbody tr:hover > th { background-color: var(--surface) !important; color: var(--white) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); width: var(--sidebar-width) !important; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0 !important; }
    .hero-banner { min-height: 320px; }
    .top-bar { padding: 0 1rem; gap: 1rem; }
}
@media (max-width: 767.98px) {
    :root { --header-height: 56px; }
    .logo-img { height: 36px; }
    .search-form { display: none; }
    .hero-title { font-size: 2.8rem; }
    .section-block { padding: 40px 0; }
    .admin-page-content { padding: 16px; }
}
@media (max-width: 575.98px) {
    .category-tile { padding: 14px 8px; }
    .cat-icon-wrap { width: 40px; height: 40px; }
    .section-title { font-size: 1.8rem; }
}
