/* ============================================
   Black & White Tea
   Monochrome Minimal — Elegant Tea Dashboard
   ============================================ */

:root {
    --clr-bg:            #060608;
    --clr-bg-sidebar:    #0a0a0e;
    --clr-surface:       #101016;
    --clr-surface-alt:   #16161e;
    --clr-surface-hover: #1c1c26;
    --clr-surface-raised:#1a1a22;
    --clr-surface-glass: rgba(16,16,22,0.8);
    --clr-border:        rgba(255,255,255,0.10);
    --clr-border-light:  rgba(255,255,255,0.18);
    --clr-border-subtle: rgba(255,255,255,0.06);
    --clr-border-accent: rgba(255,255,255,0.22);
    --clr-border-gold:   rgba(255,255,255,0.16);
    --clr-border-bright: rgba(255,255,255,0.25);
    --clr-gold:          #ffffff;
    --clr-gold-dim:      #aaaaaa;
    --clr-gold-bright:   #ffffff;
    --clr-gold-glow:     rgba(255,255,255,0.08);
    --clr-gold-ultra:    #f5f5f5;
    --clr-amber:         #c0c0c0;
    --clr-ember:         #999999;
    --clr-text:          #ccc9c4;
    --clr-text-dim:      #8e8a85;
    --clr-text-bright:   #f5f4f2;
    --clr-text-muted:    #65625e;
    --clr-success:       #7ed8a0;
    --clr-success-bg:    rgba(126,216,160,0.08);
    --clr-warning:       #e8c860;
    --clr-warning-bg:    rgba(232,200,96,0.08);
    --clr-danger:        #f07070;
    --clr-danger-bg:     rgba(240,112,112,0.08);
    --clr-info:          #80b8f0;
    --clr-info-bg:       rgba(128,184,240,0.08);
    --font-display:      'Outfit', sans-serif;
    --font-body:         'Plus Jakarta Sans', sans-serif;
    --font-mono:         'JetBrains Mono', monospace;
    --sidebar-width:     256px;
    --radius:            10px;
    --radius-lg:         16px;
    --radius-xl:         22px;
    --shadow-xs:         0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm:         0 1px 4px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md:         0 4px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.25);
    --shadow-lg:         0 16px 64px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.25);
    --shadow-gold:       0 4px 28px rgba(255,255,255,0.05), 0 0 0 1px rgba(255,255,255,0.08);
    --shadow-inset:      inset 0 1px 0 rgba(255,255,255,0.03);
    --shadow-ring:       0 0 0 1px rgba(255,255,255,0.04);
    --ease-out:          cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth:       cubic-bezier(0.4, 0, 0.2, 1);
    --dur:               0.25s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15.5px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 420;
    color: var(--clr-text);
    background: var(--clr-bg);
    min-height: 100vh;
    display: flex;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: -25%; right: -10%;
    width: 60vw; height: 60vw;
    max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.012) 0%, rgba(255,255,255,0.004) 35%, transparent 65%);
    pointer-events: none; z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%; left: -10%;
    width: 50vw; height: 50vw;
    max-width: 700px; max-height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.006) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
}

a { color: var(--clr-text-bright); text-decoration: none; transition: color var(--dur) var(--ease-out); }
a:hover { color: #fff; }
::selection { background: rgba(255,255,255,0.15); color: #fff; }

/* === Sidebar === */
.sidebar {
    width: var(--sidebar-width); height: 100vh; height: 100dvh;
    background: var(--clr-bg-sidebar);
    border-right: 1px solid var(--clr-border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; z-index: 100;
    overflow: hidden;
}
.sidebar::after {
    content: ''; position: absolute; top: 6%; right: -1px; bottom: 6%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08) 50%, transparent);
    pointer-events: none;
}
.sidebar-header {
    padding: 1.6rem 1.2rem 1.3rem; text-align: center;
    border-bottom: 1px solid var(--clr-border); position: relative; flex-shrink: 0;
}
.sidebar-header::after {
    content: ''; position: absolute; bottom: -1px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.logo-icon {
    font-size: 1.8rem; margin-bottom: 0.35rem; display: inline-block;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.15));
    animation: logoGlow 5s ease-in-out infinite alternate;
}
@keyframes logoGlow {
    from { filter: drop-shadow(0 0 12px rgba(255,255,255,0.1)); }
    to   { filter: drop-shadow(0 0 22px rgba(255,255,255,0.2)); }
}
.logo-text {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    color: #ffffff; letter-spacing: 0.04em; line-height: 1.3; text-transform: uppercase;
}
.logo-sub {
    display: block; font-family: var(--font-body); font-size: 0.56rem;
    color: var(--clr-text-dim); letter-spacing: 0.2em;
    text-transform: uppercase; margin-top: 0.35rem; font-weight: 600;
}
.nav-menu { list-style: none; padding: 0.5rem 0; flex: 1 1 0%; min-height: 0; overflow-y: auto; }
.nav-menu li a {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.52rem 1rem; margin: 1px 0.45rem;
    color: var(--clr-text); text-decoration: none;
    font-size: 0.84rem; font-weight: 500;
    transition: all var(--dur) var(--ease-out);
    border-radius: var(--radius); position: relative;
}
.nav-menu li a:hover { color: var(--clr-text-bright); background: rgba(255,255,255,0.035); }
.nav-menu li a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}
.nav-menu li a.active::before {
    content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
    background: linear-gradient(180deg, #fff, #888);
    border-radius: 0 3px 3px 0; box-shadow: 0 0 18px rgba(255,255,255,0.2);
}
.nav-icon { width: 20px; text-align: center; font-size: 0.9rem; opacity: 0.5; flex-shrink: 0; transition: all var(--dur) var(--ease-out); }
.nav-menu li a.active .nav-icon { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,0.2)); }
.nav-menu li a:hover .nav-icon  { opacity: 0.7; }
.nav-divider { height: 1px; background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.08) 50%, transparent 95%); margin: 0.35rem 1.2rem; }
.nav-menu::-webkit-scrollbar { width: 2px; }
.nav-menu::-webkit-scrollbar-track { background: transparent; }
.nav-menu::-webkit-scrollbar-thumb { background: var(--clr-border-light); border-radius: 2px; }
.sidebar-footer { padding: 0.75rem 0.9rem; border-top: 1px solid var(--clr-border); background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, transparent 100%); flex-shrink: 0; }
.sidebar-user { text-align: center; padding: 0.4rem 0; margin-bottom: 0.4rem; }
.sidebar-user-name { font-weight: 600; color: var(--clr-text-bright); font-size: 0.86rem; font-family: var(--font-display); }
.sidebar-user-rolle { font-size: 0.6rem; color: var(--clr-text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-top: 0.15rem; }
.logout-btn { display: block; text-align: center; padding: 0.42rem; color: var(--clr-text-dim); text-decoration: none; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--clr-border); border-radius: var(--radius); transition: all var(--dur) var(--ease-out); }
.logout-btn:hover { color: var(--clr-danger); border-color: rgba(232,112,112,0.2); background: var(--clr-danger-bg); }

/* === Content === */
.content { margin-left: var(--sidebar-width); flex: 1; padding: 2rem 2.75rem; min-height: 100vh; position: relative; z-index: 1; }

/* === Page Header === */
.page-header { margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--clr-border); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; position: relative; }
.page-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 120px; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent); border-radius: 2px; }
.page-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--clr-text-bright); letter-spacing: -0.025em; }
.page-header p { color: var(--clr-text); font-size: 0.87rem; margin-top: 0.25rem; }
.page-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* === Stat Cards === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; margin-bottom: 1.75rem; }
.stat-card { background: linear-gradient(145deg, rgba(22,22,30,0.95) 0%, rgba(16,16,22,0.98) 100%); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 1.15rem 1.2rem; position: relative; overflow: hidden; transition: all 0.35s var(--ease-out); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.07) 50%, transparent 90%); }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 80%); opacity: 0; transition: opacity 0.35s var(--ease-out); border-radius: 0 0 3px 0; }
.stat-card:hover { border-color: var(--clr-border-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { opacity: 1; }
.stat-label { font-size: 0.68rem; color: var(--clr-text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.45rem; font-weight: 700; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--clr-text-bright); letter-spacing: -0.03em; line-height: 1.1; }
.stat-detail { font-size: 0.76rem; color: var(--clr-text-dim); margin-top: 0.25rem; line-height: 1.5; }
.stat-icon { position: absolute; top: 0.85rem; right: 1rem; font-size: 1.5rem; opacity: 0.12; transition: opacity 0.35s var(--ease-out); }
.stat-card:hover .stat-icon { opacity: 0.18; }

/* === Cards === */
.card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); margin-bottom: 1rem; overflow: hidden; transition: all var(--dur) var(--ease-out); box-shadow: var(--shadow-sm), var(--shadow-ring), 0 0 0 1px rgba(255,255,255,0.03); position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.06) 50%, transparent 95%); z-index: 1; pointer-events: none; }
.card:hover { border-color: var(--clr-border-light); }
.card-header { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%); }
.card-header h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--clr-text-bright); letter-spacing: -0.01em; }
.card-body { padding: 1.25rem; }
.card-body.no-padding { padding: 0; }

/* === Tables === */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; color: var(--clr-text-dim); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.8rem 1.2rem; text-align: left; border-bottom: 1px solid var(--clr-border-light); background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%); white-space: nowrap; position: sticky; top: 0; z-index: 2; }
tbody td { padding: 0.78rem 1.2rem; border-bottom: 1px solid var(--clr-border-subtle); font-size: 0.87rem; vertical-align: middle; line-height: 1.55; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
tbody tr:last-child td { border-bottom: none; }

/* === Badges === */
.badge { display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 100px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; border: 1px solid transparent; transition: all 0.2s var(--ease-out); }
.badge-gold    { background: rgba(255,255,255,0.08); color: #ffffff; border-color: rgba(255,255,255,0.15); }
.badge-success { background: rgba(126,216,160,0.10); color: var(--clr-success); border-color: rgba(126,216,160,0.18); }
.badge-danger  { background: rgba(240,112,112,0.10); color: var(--clr-danger); border-color: rgba(240,112,112,0.18); }
.badge-warning { background: rgba(232,200,96,0.10); color: var(--clr-warning); border-color: rgba(232,200,96,0.18); }
.badge-info    { background: rgba(128,184,240,0.10); color: var(--clr-info); border-color: rgba(128,184,240,0.18); }
.badge-dim     { background: rgba(100,100,100,0.10); color: var(--clr-text-dim); border-color: rgba(100,100,100,0.15); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem 1.15rem; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: all var(--dur) var(--ease-out); white-space: nowrap; position: relative; overflow: hidden; }
.btn:active { transform: scale(0.96); transition-duration: 0.1s; }
.btn-primary { background: #ffffff; color: #050505; border-color: rgba(255,255,255,0.85); box-shadow: 0 2px 14px rgba(255,255,255,0.10), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { background: #e8e8e8; border-color: #ffffff; box-shadow: 0 4px 28px rgba(255,255,255,0.15); color: #050505; transform: translateY(-1px); }
.btn-outline { background: rgba(255,255,255,0.03); color: var(--clr-text); border-color: rgba(255,255,255,0.12); box-shadow: var(--shadow-inset); }
.btn-outline:hover { color: var(--clr-text-bright); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); box-shadow: var(--shadow-xs); }
.btn-sm { padding: 0.32rem 0.75rem; font-size: 0.74rem; border-radius: 8px; }
.btn-danger { background: transparent; color: var(--clr-danger); border-color: rgba(232,112,112,0.15); }
.btn-danger:hover { background: linear-gradient(135deg, var(--clr-danger) 0%, #c04040 100%); border-color: var(--clr-danger); color: #fff; box-shadow: 0 4px 18px rgba(232,112,112,0.18); }

/* === Forms === */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--clr-text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 0.58rem 0.9rem; font-family: var(--font-body); font-size: 0.88rem; color: var(--clr-text-bright); background: rgba(8,8,12,0.8); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); transition: all var(--dur) var(--ease-out); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.form-control:focus { outline: none; border-color: rgba(255,255,255,0.30); box-shadow: 0 0 0 3px rgba(255,255,255,0.06), inset 0 2px 4px rgba(0,0,0,0.12); color: var(--clr-text-bright); background: rgba(8,8,12,0.95); }
.form-control:hover:not(:focus) { border-color: rgba(255,255,255,0.18); }
.form-control::placeholder { color: var(--clr-text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a5a5a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.25rem; }
textarea.form-control { resize: vertical; min-height: 85px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* === Flash Messages === */
.flash { padding: 0.85rem 1.2rem; border-radius: var(--radius-lg); margin-bottom: 1.25rem; font-size: 0.87rem; font-weight: 500; display: flex; align-items: center; justify-content: space-between; animation: flashIn 0.45s var(--ease-spring); border: 1px solid transparent; box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.flash-success { background: rgba(126,216,160,0.10); border-color: rgba(126,216,160,0.22); color: var(--clr-success); }
.flash-danger, .flash-error { background: rgba(240,112,112,0.10); border-color: rgba(240,112,112,0.22); color: var(--clr-danger); }
.flash-warning { background: rgba(232,200,96,0.10); border-color: rgba(232,200,96,0.22); color: var(--clr-warning); }
.flash-close { background: none; border: none; color: inherit; font-size: 1.15rem; cursor: pointer; opacity: 0.35; transition: all 0.2s; padding: 0.2rem; border-radius: 6px; }
.flash-close:hover { opacity: 1; background: rgba(255,255,255,0.06); }

/* === Modals === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
.modal-overlay.open { display: flex; }
.modal { background: linear-gradient(180deg, var(--clr-surface-alt) 0%, var(--clr-surface) 100%); border: 1px solid var(--clr-border-light); border-radius: var(--radius-xl); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; animation: modalIn 0.4s var(--ease-spring); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(255,255,255,0.012) 0%, transparent 100%); }
.modal-header h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--clr-text-bright); }
.modal-close { background: none; border: 1px solid transparent; color: var(--clr-text-dim); font-size: 1.15rem; cursor: pointer; transition: all 0.2s; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.modal-close:hover { color: var(--clr-text); background: rgba(255,255,255,0.05); border-color: var(--clr-border); }
.modal-body { padding: 1.35rem; }
.modal-footer { padding: 0.85rem 1.35rem; border-top: 1px solid var(--clr-border); display: flex; gap: 0.6rem; justify-content: flex-end; background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 100%); }

/* === Mitteilungen === */
.mitteilung-card { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin-bottom: 0.65rem; border-left: 3px solid var(--clr-border); transition: all var(--dur) var(--ease-out); box-shadow: var(--shadow-xs); }
.mitteilung-card:hover { background: var(--clr-surface-alt); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.mitteilung-card[data-typ="regel"]   { border-left-color: rgba(255,255,255,0.35); }
.mitteilung-card[data-typ="wichtig"] { border-left-color: var(--clr-danger); }
.mitteilung-card[data-typ="info"]    { border-left-color: var(--clr-info); }
.mitteilung-card[data-typ="todo"]    { border-left-color: var(--clr-success); }
.mitteilung-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.mitteilung-header h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--clr-text-bright); }
.mitteilung-body { font-size: 0.88rem; color: var(--clr-text); line-height: 1.75; }

/* === Status Dots === */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.4rem; vertical-align: middle; }
.status-dot.online  { background: var(--clr-success); box-shadow: 0 0 8px rgba(128,212,160,0.5); }
.status-dot.offline { background: var(--clr-text-muted); }
.status-dot.absent  { background: var(--clr-warning); box-shadow: 0 0 8px rgba(224,192,96,0.4); }

/* === Empty State === */
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--clr-text-dim); }
.empty-state-icon { font-size: 2.2rem; opacity: 0.12; margin-bottom: 0.6rem; }
.empty-state p { font-size: 0.88rem; line-height: 1.6; }

/* === Grid === */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1rem; }

/* === Produkt Grid === */
.produkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 0.65rem; }
.produkt-card { background: linear-gradient(150deg, var(--clr-surface-alt) 0%, var(--clr-surface) 100%); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-lg); padding: 0.95rem; text-align: center; transition: all 0.3s var(--ease-out); position: relative; overflow: hidden; }
.produkt-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent); opacity: 0; transition: opacity 0.3s var(--ease-out); pointer-events: none; }
.produkt-card:not(.ausverkauft):hover { border-color: rgba(255,255,255,0.22); transform: translateY(-4px); box-shadow: var(--shadow-gold); background: linear-gradient(150deg, var(--clr-surface-hover) 0%, var(--clr-surface-alt) 100%); }
.produkt-card:not(.ausverkauft):hover::before { opacity: 1; }
.produkt-card:not(.ausverkauft):active { transform: scale(0.97) translateY(0); transition-duration: 0.1s; }
.produkt-card.ausverkauft { opacity: 0.25; filter: grayscale(0.6); }
.produkt-card-name { font-weight: 600; font-family: var(--font-display); color: var(--clr-text-bright); font-size: 0.86rem; margin-bottom: 0.15rem; line-height: 1.3; }
.produkt-card-preis { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #ffffff; margin: 0.15rem 0; letter-spacing: -0.02em; }
.produkt-card-bestand { font-size: 0.72rem; margin-bottom: 0.1rem; font-weight: 500; }
.produkt-card-gewinn { font-size: 0.7rem; color: var(--clr-success); font-weight: 600; }

/* === Utilities === */
.table-actions { display: flex; gap: 0.3rem; }
.telegramm-nr { font-family: var(--font-mono); font-size: 0.78rem; color: var(--clr-text); background: rgba(255,255,255,0.025); padding: 0.18rem 0.5rem; border-radius: 6px; border: 1px solid var(--clr-border-subtle); }
.row-notfall td { background: rgba(232,112,112,0.025); }

/* === Login === */
.login-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; width: 100vw; background: var(--clr-bg); padding: 2rem; position: relative; }
.login-wrapper::before { content: ''; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 60%); pointer-events: none; }
.login-box { background: linear-gradient(180deg, var(--clr-surface-alt) 0%, var(--clr-surface) 100%); border: 1px solid var(--clr-border-light); border-radius: var(--radius-xl); padding: 2.5rem 2.25rem; width: 100%; max-width: 380px; text-align: center; position: relative; box-shadow: var(--shadow-lg); }
.login-box::before { content: ''; position: absolute; top: -1px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); border-radius: 2px; }
.login-icon { font-size: 2.5rem; margin-bottom: 0.8rem; display: inline-block; filter: drop-shadow(0 0 20px rgba(255,255,255,0.12)); }
.login-box h1 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--clr-text-bright); margin-bottom: 0.15rem; letter-spacing: 0.03em; text-transform: uppercase; }
.login-box .subtitle { font-size: 0.66rem; color: var(--clr-text-dim); margin-bottom: 1.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.login-box .form-group { text-align: left; }
.login-box .btn-primary { width: 100%; justify-content: center; padding: 0.65rem; margin-top: 0.5rem; font-size: 0.88rem; }
.login-error { background: var(--clr-danger-bg); border: 1px solid rgba(232,112,112,0.18); color: var(--clr-danger); padding: 0.55rem 0.9rem; border-radius: var(--radius); font-size: 0.8rem; font-weight: 500; margin-bottom: 1rem; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.07) transparent; }

/* === Animations === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.card, .stat-card, .mitteilung-card { animation: fadeIn 0.4s var(--ease-out) both; }
.stats-grid .stat-card:nth-child(1) { animation-delay: 0.03s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.07s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.11s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.15s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.19s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: 0.23s; }

/* === Mobile === */
.menu-toggle { display: none; position: fixed; top: 0.9rem; left: 0.9rem; z-index: 150; width: 40px; height: 40px; background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius); color: var(--clr-text); cursor: pointer; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: var(--shadow-md); transition: all 0.2s var(--ease-out); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.menu-toggle:hover { background: var(--clr-surface-alt); border-color: rgba(255,255,255,0.2); color: #fff; }

@media (max-width: 768px) {
    :root { --sidebar-width: 0; }
    .menu-toggle { display: flex; }
    .sidebar { width: 270px; transform: translateX(-100%); transition: transform 0.35s var(--ease-out); box-shadow: none; position: fixed; top: 0; left: 0; bottom: 0; display: block; height: 100%; min-height: 0; overflow-y: scroll; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
    .sidebar.open { transform: translateX(0); box-shadow: 8px 0 48px rgba(0,0,0,0.6); }
    .sidebar .nav-menu { overflow: visible; flex: none; }
    .content { margin-left: 0; padding: 1.25rem 1rem; padding-top: 3.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
    .grid-2, .form-row { grid-template-columns: 1fr; }
    .produkt-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header h2 { font-size: 1.3rem; }
    .stat-value { font-size: 1.35rem; }
    .stat-card { padding: 0.95rem 1rem; }
    .modal { margin: 0.75rem; max-height: 88vh; border-radius: var(--radius-lg); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .produkt-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .produkt-card { padding: 0.7rem; }
    .produkt-card-preis { font-size: 1.05rem; }
    .content { padding: 1rem 0.75rem; padding-top: 3.5rem; }
}

/* === Tabs === */
.tab-nav { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--clr-border); margin-bottom: 1.5rem; padding: 0 0.25rem; overflow-x: auto; }
.tab-nav .btn { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 2px solid transparent; padding: 0.55rem 1rem; font-size: 0.8rem; color: var(--clr-text); background: transparent; border-color: transparent; transition: all var(--dur) var(--ease-out); position: relative; }
.tab-nav .btn:hover { color: var(--clr-text-bright); background: rgba(255,255,255,0.02); }
.tab-nav .btn.active, .tab-nav .btn-primary { color: #ffffff; border-bottom-color: #ffffff; background: rgba(255,255,255,0.03); }

/* === Search === */
.search-input { position: relative; max-width: 420px; }
.search-input input { padding-left: 2.4rem; background: rgba(5,5,5,0.6); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); font-size: 0.88rem; transition: all var(--dur) var(--ease-out); }
.search-input input:focus { border-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 3px rgba(255,255,255,0.04); background: rgba(5,5,5,0.85); }
.search-input::before { content: '🔍'; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.85rem; opacity: 0.4; pointer-events: none; }
kbd { background: var(--clr-surface-alt); border: 1px solid var(--clr-border); border-radius: 4px; padding: 0.1rem 0.4rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--clr-text); box-shadow: 0 1px 0 var(--clr-border-light); }

/* === Action Banner === */
.action-banner { background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%); border: 1px solid var(--clr-border-accent); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.25rem; animation: fadeIn 0.4s var(--ease-out); }
.action-banner h4 { font-family: var(--font-display); font-size: 0.88rem; color: #ffffff; margin-bottom: 0.65rem; font-weight: 600; }
.action-banner-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* === Warenkorb === */
.warenkorb-card { border: 1px solid var(--clr-border-accent) !important; box-shadow: var(--shadow-gold) !important; position: sticky; top: 1rem; z-index: 50; }
.warenkorb-card .card-header { background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); }
.warenkorb-card .card-header h3 { color: #ffffff; }

/* === Detail Rows === */
.detail-label { font-size: 0.68rem; color: var(--clr-text-dim); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.detail-value { font-weight: 600; color: var(--clr-text-bright); font-size: 0.9rem; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--clr-border-subtle); transition: background var(--dur) var(--ease-out); }
.info-row:last-child { border-bottom: none; }
.info-row:hover { background: rgba(255,255,255,0.01); border-radius: 6px; }

/* === Low Stock === */
.badge-niedrig { position: absolute; top: 5px; left: 5px; background: var(--clr-warning); color: var(--clr-bg); font-size: 0.56rem; font-weight: 700; padding: 0.12rem 0.4rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; box-shadow: 0 1px 4px rgba(224,192,96,0.3); }

/* === Cart Badge === */
.cart-qty-badge { position: absolute; top: -5px; right: -5px; background: #ffffff; color: #050505; width: 22px; height: 22px; border-radius: 50%; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(255,255,255,0.15); animation: badgePop 0.3s var(--ease-spring); }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* === Money === */
.money { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.02em; }
.money-positive { color: var(--clr-success); }
.money-negative { color: var(--clr-danger); }
.money-gold { color: #ffffff; }

/* === Description Block === */
.desc-block { padding: 0.65rem 0.85rem; background: var(--clr-surface-alt); border-radius: var(--radius); border-left: 3px solid rgba(255,255,255,0.2); margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.65; white-space: pre-line; }

/* === Chargen Tags === */
.chargen-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.5rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; font-size: 0.72rem; font-family: var(--font-mono); color: var(--clr-text-bright); transition: all 0.2s var(--ease-out); }
.chargen-tag:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }

/* === Filter Bar === */
.filter-bar { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; }
.filter-bar .form-group { margin: 0; min-width: 130px; }
.filter-bar .form-group label { font-size: 0.65rem; margin-bottom: 0.25rem; }
.filter-bar .form-control { padding: 0.4rem 0.7rem; font-size: 0.82rem; }

/* === Hover Link === */
.hover-link { text-decoration: none; color: inherit; display: block; padding: 0.55rem 0.5rem; border-radius: 6px; transition: background var(--dur) var(--ease-out); }
.hover-link:hover { background: var(--clr-surface-alt); color: inherit; }

/* === Glass Panel === */
.glass-panel { background: var(--clr-surface-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 1.15rem; box-shadow: var(--shadow-sm); }

/* === Trend === */
.trend-up { color: var(--clr-success); font-size: 0.72rem; font-weight: 600; }
.trend-down { color: var(--clr-danger); font-size: 0.72rem; font-weight: 600; }
.trend-neutral { color: var(--clr-text-dim); font-size: 0.72rem; font-weight: 600; }

/* === Focus === */
.btn:focus-visible, .form-control:focus-visible, a:focus-visible { outline: 2px solid rgba(255,255,255,0.3); outline-offset: 2px; }

/* === Tages-Schnelluebersicht (Top Bar) === */
.topbar {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    padding: 0.5rem 0.75rem; margin: -1.25rem -1.25rem 1rem -1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border-bottom: 1px solid var(--clr-border-subtle);
    font-size: 0.75rem;
}
.topbar-item {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.2rem 0.5rem; border-radius: var(--radius);
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
}
.topbar-link { text-decoration: none; color: inherit; transition: background var(--dur); }
.topbar-link:hover { background: rgba(255,255,255,0.05); }
.topbar-label { color: var(--clr-text-dim); font-weight: 600; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.topbar-value { font-weight: 700; font-family: var(--font-mono); font-size: 0.74rem; color: var(--clr-text-bright); }
.topbar-success { color: var(--clr-success); }
.topbar-danger { color: var(--clr-danger); }
.topbar-warning { color: var(--clr-warning); }
.topbar-spacer { flex: 1; }
.topbar-btn {
    background: none; border: 1px solid var(--clr-border); border-radius: var(--radius);
    color: var(--clr-text-muted); cursor: pointer; padding: 0.2rem 0.45rem;
    font-size: 0.85rem; transition: all var(--dur);
}
.topbar-btn:hover { border-color: var(--clr-gold); color: var(--clr-gold); background: rgba(255,215,100,0.05); }

/* === Sidebar Favoriten === */
.sidebar-favs {
    padding: 0.25rem 0.65rem 0.35rem; border-bottom: 1px solid var(--clr-border);
    flex-shrink: 0;
}
.sidebar-favs-label {
    font-size: 0.5rem; font-weight: 700; color: var(--clr-text-muted);
    text-transform: uppercase; letter-spacing: 0.12em; padding: 0.2rem 0.35rem;
}
.sidebar-fav-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.32rem 0.35rem; border-radius: var(--radius);
    color: var(--clr-text); text-decoration: none; font-size: 0.82rem; font-weight: 500;
    transition: all var(--dur);
}
.sidebar-fav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.sidebar-fav-item.active { color: var(--clr-gold); background: rgba(255,215,100,0.06); }
.sidebar-fav-item .nav-icon { font-size: 0.75rem; width: 1.2rem; text-align: center; opacity: 0.5; }

/* === Schnellnotizen Panel === */
.notes-panel {
    position: fixed; top: 0; right: -360px; width: 340px; height: 100vh; height: 100dvh;
    background: var(--clr-bg-sidebar); border-left: 1px solid var(--clr-border);
    z-index: 1500; display: flex; flex-direction: column;
    transition: right 0.3s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.notes-panel.open { right: 0; }
.notes-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--clr-border);
}
.notes-panel-header h4 { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--clr-text-bright); }
.notes-panel-close { background: none; border: none; color: var(--clr-text-muted); font-size: 1.3rem; cursor: pointer; padding: 0; line-height: 1; }
.notes-panel-close:hover { color: #fff; }
.notes-panel-add {
    display: flex; gap: 0.4rem; padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--clr-border-subtle);
}
.notes-panel-add input {
    flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--clr-border);
    border-radius: var(--radius); padding: 0.4rem 0.6rem;
    color: var(--clr-text-bright); font-size: 0.82rem; font-family: var(--font-body);
}
.notes-panel-add input:focus { outline: none; border-color: var(--clr-gold); }
.notes-list { flex: 1; overflow-y: auto; padding: 0.4rem 0.5rem; }
.note-item {
    display: flex; align-items: flex-start; gap: 0.4rem;
    padding: 0.45rem 0.35rem; border-radius: var(--radius);
    border-bottom: 1px solid var(--clr-border-subtle);
    transition: background var(--dur);
}
.note-item:hover { background: rgba(255,255,255,0.02); }
.note-check { background: none; border: none; color: var(--clr-text-muted); cursor: pointer; font-size: 0.9rem; padding: 0; flex-shrink: 0; }
.note-check:hover { color: var(--clr-gold); }
.note-text { flex: 1; font-size: 0.82rem; color: var(--clr-text); line-height: 1.45; word-break: break-word; }
.note-done .note-text { text-decoration: line-through; opacity: 0.4; }
.note-delete { background: none; border: none; color: transparent; cursor: pointer; font-size: 0.9rem; padding: 0; flex-shrink: 0; transition: color var(--dur); }
.note-item:hover .note-delete { color: var(--clr-text-muted); }
.note-delete:hover { color: var(--clr-danger) !important; }
.notes-empty { text-align: center; padding: 2rem 1rem; color: var(--clr-text-muted); font-size: 0.82rem; }

/* === Command Palette Data Results === */
.cmd-result-detail { font-size: 0.7rem; color: var(--clr-text-muted); margin-left: auto; padding-left: 0.5rem; font-family: var(--font-mono); white-space: nowrap; }

/* === Kassenbon Print === */
@media print {
    body * { visibility: hidden !important; }
    .kassenbon, .kassenbon * { visibility: visible !important; }
    .kassenbon { position: absolute; left: 0; top: 0; width: 80mm; font-family: monospace; font-size: 10pt; color: #000 !important; background: #fff !important; padding: 5mm; }
    .kassenbon h3 { text-align: center; font-size: 13pt; margin-bottom: 3mm; }
    .kassenbon hr { border: none; border-top: 1px dashed #000; margin: 2mm 0; }
    .kassenbon table { width: 100%; border-collapse: collapse; }
    .kassenbon td { padding: 1mm 0; color: #000 !important; }
    .kassenbon .bon-total { font-weight: bold; font-size: 12pt; border-top: 2px solid #000; padding-top: 2mm; }
    .kassenbon .bon-footer { text-align: center; font-size: 8pt; margin-top: 4mm; }
}

/* === Sidebar Search Trigger === */
.sidebar-search-trigger {
    display: flex; align-items: center; gap: 0.5rem;
    margin: 0.45rem 0.65rem; padding: 0.42rem 0.7rem;
    background: rgba(255,255,255,0.025); border: 1px solid var(--clr-border);
    border-radius: var(--radius); cursor: pointer;
    transition: all var(--dur) var(--ease-out); flex-shrink: 0;
}
.sidebar-search-trigger:hover { background: rgba(255,255,255,0.05); border-color: var(--clr-border-light); }
.sidebar-search-icon { font-size: 0.75rem; opacity: 0.3; }
.sidebar-search-text { flex: 1; font-size: 0.78rem; color: var(--clr-text-muted); font-weight: 500; }
.sidebar-search-kbd { font-size: 0.55rem; padding: 0.1rem 0.3rem; background: rgba(255,255,255,0.04); border: 1px solid var(--clr-border); border-radius: 4px; color: var(--clr-text-muted); font-family: var(--font-mono); }

/* === Command Palette === */
#cmd-palette { display: none; position: fixed; inset: 0; z-index: 2000; align-items: flex-start; justify-content: center; padding-top: 18vh; }
#cmd-palette.open { display: flex; }
#cmd-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cmd-box {
    position: relative; z-index: 1; width: 100%; max-width: 520px;
    background: linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden; animation: modalIn 0.25s var(--ease-spring);
}
.cmd-input-wrap {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--clr-border);
}
.cmd-input-icon { font-size: 1rem; opacity: 0.3; flex-shrink: 0; }
#cmd-input {
    flex: 1; background: none; border: none; outline: none;
    font-family: var(--font-body); font-size: 0.95rem; color: var(--clr-text-bright);
    caret-color: #fff;
}
#cmd-input::placeholder { color: var(--clr-text-muted); }
.cmd-esc { flex-shrink: 0; }
#cmd-results { max-height: 460px; overflow-y: auto; padding: 0.35rem; }
.cmd-group-label {
    font-size: 0.55rem; font-weight: 700; color: var(--clr-text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 0.55rem 0.7rem 0.25rem;
    display: flex; align-items: center; gap: 0.4rem;
}
.cmd-group-count {
    font-size: 0.55rem; padding: 0.05rem 0.35rem; border-radius: 4px;
    background: rgba(255,255,255,0.05); color: var(--clr-text-dim);
    font-weight: 500; letter-spacing: 0; text-transform: none;
    margin-left: auto;
}
.cmd-result {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0.7rem; border-radius: var(--radius);
    color: var(--clr-text); text-decoration: none;
    transition: background 0.1s;
}
.cmd-result:hover, .cmd-result.active { background: rgba(255,255,255,0.06); color: #fff; }
.cmd-result-icon { width: 22px; text-align: center; font-size: 0.9rem; opacity: 0.4; flex-shrink: 0; }
.cmd-result.active .cmd-result-icon { opacity: 0.8; }
.cmd-result-name { flex: 1; font-size: 0.86rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-result-detail {
    font-size: 0.7rem; color: var(--clr-text-muted); margin-left: auto;
    padding-left: 0.5rem; font-family: var(--font-mono); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 50%;
}
.cmd-result-badge {
    font-size: 0.55rem; padding: 0.1rem 0.4rem; border-radius: 4px;
    background: rgba(128,212,160,0.1); color: var(--clr-success);
    border: 1px solid rgba(128,212,160,0.15); font-weight: 600;
}
.cmd-result-hint { font-size: 0.7rem; opacity: 0.2; flex-shrink: 0; }
.cmd-result.active .cmd-result-hint { opacity: 0.5; }
.cmd-recent .cmd-result-name { color: var(--clr-text-dim); }
.cmd-more { padding: 0.4rem 0.7rem; }
.cmd-empty { padding: 1.5rem; text-align: center; color: var(--clr-text-muted); font-size: 0.85rem; }
.cmd-loading {
    padding: 0.65rem 0.9rem; color: var(--clr-text-dim); font-size: 0.75rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.cmd-spinner {
    width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--clr-gold); border-radius: 50%;
    animation: cmd-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes cmd-spin { to { transform: rotate(360deg); } }
.cmd-footer {
    display: flex; gap: 1.2rem; padding: 0.55rem 1rem;
    border-top: 1px solid var(--clr-border);
    font-size: 0.6rem; color: var(--clr-text-muted);
    flex-wrap: wrap;
}
.cmd-footer kbd { font-size: 0.55rem; margin: 0 0.1rem; }
.cmd-footer code {
    font-size: 0.55rem; background: rgba(255,255,255,0.05);
    padding: 0.05rem 0.25rem; border-radius: 3px; color: var(--clr-gold);
}

/* === Shortcuts Overlay === */
.shortcut-section {
    font-size: 0.58rem; font-weight: 700; color: var(--clr-text-muted);
    text-transform: uppercase; letter-spacing: 0.1em;
    padding-bottom: 0.35rem; margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--clr-border-subtle);
}
.shortcut-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.3rem 0; font-size: 0.82rem; color: var(--clr-text);
}
.shortcut-row kbd { margin-left: 0.15rem; }

/* === Scroll-to-Top === */
.scroll-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    color: var(--clr-text-dim); font-size: 0.75rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.scroll-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-to-top:hover { background: var(--clr-surface-alt); border-color: rgba(255,255,255,0.2); color: #fff; }

/* === Flash Countdown Bar === */
.flash { position: relative; overflow: hidden; }
.flash-countdown {
    position: absolute; bottom: 0; left: 0; height: 2px;
    background: currentColor; opacity: 0.25; border-radius: 0 0 8px 8px;
    animation: flashCountdown 5s linear forwards;
}
@keyframes flashCountdown { from { width: 100%; } to { width: 0%; } }

/* === Print === */
@media print {
    .sidebar, .menu-toggle, .flash, .btn, .modal-overlay { display: none !important; }
    .content { margin: 0; padding: 0; }
    body { background: #fff; color: #111; }
    body::before, body::after { display: none; }
    .card { border-color: #ddd; box-shadow: none; break-inside: avoid; }
    .stat-card { border-color: #ddd; box-shadow: none; }
    a { color: #111; }
}
