/* ============================================================
   KundenZähler - Premium Dark Glassmorphism Theme
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Core Palette */
    --bg-primary: #06060e;
    --bg-secondary: #0c0c1a;
    --bg-tertiary: #111128;
    --bg-card: rgba(15, 15, 35, 0.65);
    --bg-card-hover: rgba(20, 20, 45, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Accent Colors */
    --accent-cyan: #00e5ff;
    --accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --accent-purple: #a855f7;
    --accent-purple-dim: rgba(168, 85, 247, 0.15);
    --accent-green: #22d3a7;
    --accent-green-dim: rgba(34, 211, 167, 0.15);
    --accent-amber: #f59e0b;
    --accent-amber-dim: rgba(245, 158, 11, 0.15);
    --accent-red: #ef4444;
    --accent-red-dim: rgba(239, 68, 68, 0.15);
    --accent-pink: #ec4899;
    
    /* Text */
    --text-primary: #e8eaf6;
    --text-secondary: rgba(200, 205, 230, 0.7);
    --text-muted: rgba(160, 165, 190, 0.45);
    --text-bright: #ffffff;
    
    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 229, 255, 0.2);
    
    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
    --shadow-glow-cyan: 0 0 30px rgba(0, 229, 255, 0.15), 0 0 60px rgba(0, 229, 255, 0.05);
    --shadow-glow-purple: 0 0 30px rgba(168, 85, 247, 0.15);
    
    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s var(--ease-out-expo);
    --transition-slow: 0.5s var(--ease-out-expo);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 20%, rgba(0, 229, 255, 0.04), transparent),
        radial-gradient(ellipse 600px 500px at 80% 80%, rgba(168, 85, 247, 0.04), transparent),
        radial-gradient(ellipse 500px 400px at 50% 50%, rgba(34, 211, 167, 0.02), transparent);
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Noise overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--text-bright); }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-bright);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-warm {
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.375rem; }
.text-2xl { font-size: 1.75rem; }
.text-3xl { font-size: 2.25rem; }
.text-muted { color: var(--text-secondary); }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.1);
}

.glass-card--glow {
    box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}

.glass-card--glow:hover {
    box-shadow: var(--shadow-card), 0 0 40px rgba(0, 229, 255, 0.25);
}

/* --- Layout --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    background: rgba(8, 8, 20, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    padding: 24px 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out-expo);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin-bottom: 32px;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

.sidebar-brand-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-bright);
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.1);
}

.nav-item svg { width: 20px; height: 20px; opacity: 0.7; flex-shrink: 0; }
.nav-item.active svg { opacity: 1; }

.sidebar-footer {
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
    margin-top: 16px;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 28px 32px;
    min-height: 100vh;
}

/* --- Page Header --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* --- KPI Cards --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.kpi-card--cyan::before { background: linear-gradient(90deg, var(--accent-cyan), transparent); }
.kpi-card--purple::before { background: linear-gradient(90deg, var(--accent-purple), transparent); }
.kpi-card--green::before { background: linear-gradient(90deg, var(--accent-green), transparent); }
.kpi-card--amber::before { background: linear-gradient(90deg, var(--accent-amber), transparent); }

.kpi-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-value--cyan { color: var(--accent-cyan); }
.kpi-value--purple { color: var(--accent-purple); }
.kpi-value--green { color: var(--accent-green); }
.kpi-value--amber { color: var(--accent-amber); }

.kpi-change {
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
}

.kpi-change--up { color: var(--accent-green); background: var(--accent-green-dim); }
.kpi-change--down { color: var(--accent-red); background: var(--accent-red-dim); }

.kpi-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.08;
}

/* --- Charts Container --- */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    padding: 24px;
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
}

/* --- Heatmap --- */
.heatmap-grid {
    display: grid;
    grid-template-columns: auto repeat(24, 1fr);
    gap: 2px;
    font-size: 0.7rem;
}

.heatmap-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.3);
    z-index: 2;
}

.heatmap-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.heatmap-hour-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* --- Calendar --- */
.calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    gap: 2px;
}

.calendar-day:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glow);
}

.calendar-day.today {
    border-color: var(--accent-cyan);
    box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.1);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-day-count {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

.calendar-day.empty { opacity: 0; pointer-events: none; }

/* --- Ranking --- */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }

.ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: all var(--transition-base);
}

.ranking-item:hover { background: var(--bg-glass-hover); }

.ranking-position {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.ranking-position.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.ranking-position.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #000; }
.ranking-position.bronze { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }
.ranking-position.default { background: var(--bg-tertiary); color: var(--text-secondary); }

.ranking-info { flex: 1; }
.ranking-name { font-weight: 600; font-size: 0.9rem; }
.ranking-city { font-size: 0.75rem; color: var(--text-muted); }

.ranking-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-variant-numeric: tabular-nums;
}

.ranking-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    margin-top: 6px;
    overflow: hidden;
}

.ranking-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transition: width 0.8s var(--ease-out-expo);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    font-family: inherit;
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
    color: #000;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.45);
    color: #000;
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-bright);
}

.btn-danger {
    background: var(--accent-red-dim);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 12px;
}

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

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-dim);
    background: rgba(255,255,255,0.04);
}

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

.form-select { cursor: pointer; }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--accent-cyan);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* --- Table --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-glass);
}

.data-table tbody td {
    padding: 12px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-base);
}

.data-table tbody tr:hover {
    background: var(--bg-glass);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--cyan { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
.badge--purple { background: var(--accent-purple-dim); color: var(--accent-purple); }
.badge--green { background: var(--accent-green-dim); color: var(--accent-green); }
.badge--amber { background: var(--accent-amber-dim); color: var(--accent-amber); }
.badge--red { background: var(--accent-red-dim); color: var(--accent-red); }

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s var(--ease-out-expo);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.2rem;
}

.modal-close:hover { background: var(--accent-red-dim); color: var(--accent-red); }

.modal-body { padding: 20px 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-glass);
}

/* --- Seller Counter Screen --- */
.seller-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.seller-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(8, 8, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.seller-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 32px;
}

.counter-display {
    text-align: center;
    animation: fadeInUp 0.6s var(--ease-out-expo);
}

.counter-number {
    font-size: 7rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text-bright);
    text-shadow: 0 0 60px rgba(0, 229, 255, 0.3);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.counter-number.pulse {
    animation: counterPulse 0.4s var(--ease-out-expo);
}

@keyframes counterPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.12); text-shadow: 0 0 80px rgba(0, 229, 255, 0.6); }
    100% { transform: scale(1); }
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 4px;
}

.counter-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.counter-stat {
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    min-width: 120px;
}

.counter-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    font-variant-numeric: tabular-nums;
}

.counter-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Giant Plus Button */
.counter-btn-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.counter-btn-plus {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--accent-cyan), #0088aa);
    color: #000;
    font-size: 4.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 8px 40px rgba(0, 229, 255, 0.35),
        inset 0 2px 0 rgba(255,255,255,0.2),
        0 0 0 0 rgba(0, 229, 255, 0);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.counter-btn-plus:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 50px rgba(0, 229, 255, 0.5),
        inset 0 2px 0 rgba(255,255,255,0.2),
        0 0 0 8px rgba(0, 229, 255, 0.1);
}

.counter-btn-plus:active {
    transform: scale(0.95);
    box-shadow: 
        0 4px 20px rgba(0, 229, 255, 0.3),
        inset 0 2px 0 rgba(255,255,255,0.1);
}

.counter-btn-plus.clicked {
    animation: btnRipple 0.5s ease-out;
}

@keyframes btnRipple {
    0% { box-shadow: 0 8px 40px rgba(0, 229, 255, 0.35), 0 0 0 0 rgba(0, 229, 255, 0.4); }
    100% { box-shadow: 0 8px 40px rgba(0, 229, 255, 0.35), 0 0 0 40px rgba(0, 229, 255, 0); }
}

.counter-btn-minus {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: var(--accent-red-dim);
    color: var(--accent-red);
    font-size: 1.75rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.counter-btn-minus:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.counter-btn-minus:active { transform: scale(0.9); }

.counter-btn-undo {
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.counter-btn-undo:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.counter-btn-undo:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Shift */
.shift-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shift-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.shift-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    animation: shiftPulse 2s ease-in-out infinite;
}

.shift-dot.active { background: var(--accent-green); }
.shift-dot.inactive { background: var(--text-muted); animation: none; }

@keyframes shiftPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.filter-bar .form-input,
.filter-bar .form-select {
    width: auto;
    min-width: 160px;
    padding: 8px 12px;
    font-size: 0.8125rem;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    animation: toastIn 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast--success { border-color: rgba(34, 211, 167, 0.3); }
.toast--error { border-color: rgba(239, 68, 68, 0.3); }

@keyframes toastIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* --- Animations --- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-in { animation: fadeInUp 0.5s var(--ease-out-expo) both; }
.animate-in-1 { animation-delay: 0.05s; }
.animate-in-2 { animation-delay: 0.1s; }
.animate-in-3 { animation-delay: 0.15s; }
.animate-in-4 { animation-delay: 0.2s; }
.animate-in-5 { animation-delay: 0.25s; }
.animate-in-6 { animation-delay: 0.3s; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* --- Day Detail Modal --- */
.day-detail-hours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
    margin-bottom: 16px;
}

.day-detail-hour {
    text-align: center;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.day-detail-hour-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.day-detail-hour-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-content { padding: 16px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-btn-plus { width: 140px; height: 140px; font-size: 3.5rem; }
    .counter-number { font-size: 5rem; }
    .page-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .counter-stats { flex-direction: column; align-items: stretch; }
    .counter-btn-plus { width: 120px; height: 120px; font-size: 3rem; }
    .counter-number { font-size: 4rem; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .form-input, .filter-bar .form-select { width: 100%; }
}

/* --- Utility --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.overflow-auto { overflow: auto; }
.relative { position: relative; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
