/* 
 * Agentic Call Center CRM - Style Sheet
 * High-End Glassmorphism, Neon Accents, Vibrant Gamification & Dark/Light Themes
 */

/* Custom Google Fonts & Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    /* Font Families */
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains+Mono', monospace;

    /* Theme Variables - Default Dark Mode (Vibrant Cyberpunk) */
    --bg-app: #080710;
    --bg-glass: rgba(18, 16, 35, 0.65);
    --bg-glass-hover: rgba(30, 26, 56, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-glow: rgba(147, 51, 234, 0.4);
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #0f172a;

    /* Vibrant Gradients & Accents */
    --accent-purple: #a855f7;
    --accent-pink: #8b5cf6; /* shifted from pink (#8b5cf6) into the violet family, app-wide */
    --accent-blue: #3b82f6;
    --accent-teal: #14b8a6;
    
    /* Brand gradient — violet-forward (was purple→pink). Drives sidebar, nav, buttons,
       avatars, progress bars, headers and chart accents across the whole app. */
    --grad-primary: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
    --grad-violet: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
    --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --grad-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    /* Leaderboard Medals */
    --grad-gold: linear-gradient(135deg, #ffe066 0%, #f59e0b 100%);
    --grad-silver: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    --grad-bronze: linear-gradient(135deg, #fda4af 0%, #e11d48 100%);

    --shadow-neon: 0 0 20px rgba(168, 85, 247, 0.25);
    --shadow-success: 0 0 20px rgba(16, 185, 129, 0.25);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Layout */
    --sidebar-width: 280px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme Overrides (Neon Glass Sweetheart) */
[data-theme="light"] {
    --bg-app: #f4f6fc;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(99, 102, 241, 0.12);
    --border-glass-glow: rgba(99, 102, 241, 0.3);
    
    --text-primary: #1e1b4b;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --grad-primary: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --grad-violet: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    --shadow-neon: 0 10px 30px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 10px 30px 0 rgba(99, 102, 241, 0.08);
}

/* Base resets & animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Animated Neon Background Orbs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatBlob 25s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: var(--accent-purple);
}

.blob-2 {
    bottom: -10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: #7c3aed; /* violet ambient orb (was pink) */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 35%;
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 40px) scale(0.9); }
}

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

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-glass);
    border-right: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    z-index: 100;
    transition: width var(--transition-normal), background var(--transition-normal), border var(--transition-normal);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.logo-container {
    background: var(--grad-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
}

.logo-container span {
    color: var(--text-inverse);
    font-size: 24px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.menu-section {
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-item span {
    font-size: 20px;
}

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

.nav-item.active {
    background: var(--grad-primary);
    color: var(--text-inverse);
    font-weight: 600;
    box-shadow: var(--shadow-neon);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

/* Active Agent Profile display */
.agent-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-inverse);
    font-size: 1rem;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.agent-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2rem 2.5rem;
    min-height: 100vh;
    /* Let the column shrink and clip page-level horizontal overflow so a single
       wide element (e.g. an import log line) can't stretch the whole app.
       Wide tables scroll inside their own .table-wrapper, not the page. */
    min-width: 0;
    overflow-x: hidden;
}

/* Top bar with user selector & controls */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.controls-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Select, Buttons, Inputs (Glassmorphism Styled) */
.glass-select, .glass-input {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 0.65rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 500;
    outline: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.glass-select:focus, .glass-input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--border-radius-md);
    padding: 0.65rem 1.25rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}

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

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
}

/* Glass Dashboard Cards */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    border-color: var(--border-glass-glow);
}

/* Grid Layouts */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-glow-purple { border-left: 4px solid var(--accent-purple); }
.stat-glow-pink { border-left: 4px solid var(--accent-pink); }
.stat-glow-green { border-left: 4px solid #10b981; }
.stat-glow-blue { border-left: 4px solid var(--accent-blue); }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stat-card footer: label ↔ value rows (no more jammed "9022.00Zaključeno") */
.stat-card-footer {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.stat-row strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.trend-up { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.trend-down { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Competitive / Duel Widgets */
.duel-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid var(--border-glass-glow);
    position: relative;
    overflow: hidden;
}

.duel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.duel-fighter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.fighter.current .fighter-avatar {
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.fighter.rival .fighter-avatar {
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.fighter-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: var(--bg-glass-hover);
}

.fighter-score {
    font-size: 1.15rem;
    font-weight: 800;
}

.duel-vs-badge {
    background: var(--grad-primary);
    color: var(--text-inverse);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-neon);
}

.duel-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin: 1rem 0;
}

.duel-bar-fill {
    height: 100%;
    background: var(--accent-purple);
    width: 50%; /* dynamically computed */
    transition: width 0.5s ease-in-out;
}

.duel-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Tabs Views */
.view-panel {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Client Table & Filters */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    flex-grow: 1;
}

.search-box span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box .glass-input {
    width: 100%;
    padding-left: 2.5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
    white-space: nowrap;
}

.custom-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 0.5rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.custom-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.text-truncate {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Evidenca strank: compact table + click-to-expand truncated cells so it fits the screen */
#customers-table th, #customers-table td { padding: 0.5rem 0.35rem; }
#customers-table .clip-cell {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
#customers-table .clip-cell:hover { text-decoration: underline; color: var(--accent-blue); }
#customers-table .funnel-select { max-width: 108px; }

/* Floating popover that shows a truncated cell's full value on click */
.cell-popover {
    position: fixed;
    z-index: 9000;
    max-width: 340px;
    background: var(--bg-glass-hover);
    border: 1px solid var(--border-glass-glow);
    border-radius: var(--border-radius-sm);
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    white-space: normal;
    word-break: break-word;
}

/* Badge Status Styles */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-canceled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Funnel stage badge colors */
.status-nova     { background: rgba(100, 116, 139, 0.15); color: #64748b; }
.status-obdelava { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-caka     { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.status-poslano  { background: rgba(6, 182, 212, 0.15);  color: #06b6d4; }

/* Funnel status list-tabs (Evidenca strank) */
.funnel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}
.funnel-tabs .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
}
.funnel-tabs .tab-count {
    display: inline-block;
    min-width: 1.4rem;
    padding: 0.05rem 0.4rem;
    margin-left: 0.35rem;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}
.funnel-tab.active .tab-count { background: rgba(255, 255, 255, 0.25); }

/* Inline funnel-stage select inside a customer row */
.funnel-cell { white-space: nowrap; }
.funnel-select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid;
    border-radius: 30px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    background-color: transparent;
}
.funnel-select option {
    color: var(--text-primary);
    background: var(--bg-card, #1a1a2e);
    text-transform: none;
    font-weight: 600;
}
.funnel-prev {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.funnel-prev-none { opacity: 0.45; }

/* Date under a status badge/dropdown */
.funnel-date {
    margin-top: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Customers pagination footer */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}
.pagination-bar:empty { display: none; }
.pagination-info { font-size: 0.85rem; color: var(--text-muted); }
.pagination-controls { display: flex; align-items: center; gap: 0.75rem; }
.pagination-controls .btn { padding: 0.4rem 0.6rem; }
.pagination-controls .btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.pagination-page { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }

/* ---- Reminder bell + panel ---- */
.notif-wrap { position: relative; }
.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.notif-bell:hover { background: rgba(168,85,247,0.15); }
.notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent-pink, #8b5cf6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(139, 92, 246,0.6);
}
.notif-panel {
    position: absolute;
    top: 54px; right: 0;
    width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-card, #14101f);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 1200;
}
.notif-panel-header {
    padding: 0.9rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-glass);
}
.notif-panel-list { padding: 0.5rem; }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.notif-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
}
.notif-item + .notif-item { border-top: 1px solid var(--border-glass); }
.notif-item.notif-clickable { cursor: pointer; transition: background 0.15s ease; }
.notif-item.notif-clickable:hover,
.notif-item.notif-clickable:focus-visible { background: var(--border-glass); outline: none; }
.notif-go-icon { color: var(--text-muted); flex-shrink: 0; font-size: 1.2rem; }
.notif-item-main { flex: 1; min-width: 0; }
.notif-item-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-status { font-size: 0.75rem; font-weight: 600; margin-top: 0.15rem; }
.notif-item-deadline { font-size: 0.72rem; font-weight: 600; margin-top: 0.25rem; white-space: normal; }
.notif-go { padding: 0.35rem 0.7rem; font-size: 0.78rem; white-space: nowrap; }
#reminder-modal-body .notif-item + .notif-item { margin-top: 0.4rem; }

/* Cancel-reason picker */
.cancel-reasons { display: flex; flex-direction: column; gap: 0.4rem; }
.cancel-reason {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.cancel-reason:hover { background: rgba(255,255,255,0.04); }
.cancel-reason input { accent-color: var(--accent-pink, #8b5cf6); width: 16px; height: 16px; }
.cancel-reason:has(input:checked) { border-color: var(--accent-pink, #8b5cf6); background: rgba(139, 92, 246,0.08); }

/* Leaderboard Page Styles */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Scrollable leaderboard widget on the dashboard — shows ~5-6 agents, scroll for the rest. */
.leaderboard-scroll {
    margin-top: 0;
    max-height: 470px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.leaderboard-scroll::-webkit-scrollbar {
    width: 8px;
}
.leaderboard-scroll::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 4px;
}
.leaderboard-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.leaderboard-row:hover {
    transform: translateX(5px);
    border-color: var(--border-glass-glow);
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    margin-right: 1.5rem;
}

.rank-1 .rank-badge { background: var(--grad-gold); color: var(--text-inverse); }
.rank-2 .rank-badge { background: var(--grad-silver); color: var(--text-inverse); }
.rank-3 .rank-badge { background: var(--grad-bronze); color: var(--text-inverse); }
.rank-other .rank-badge { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }

.leaderboard-row.logged-in-agent {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid var(--accent-purple);
    box-shadow: var(--shadow-neon);
}

.leaderboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    margin-right: 1rem;
}

.leaderboard-info {
    flex-grow: 1;
}

.leaderboard-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.leaderboard-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Previous-month final standing, shown on its own line under the agent name. */
.leaderboard-lastmonth {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.leaderboard-lastmonth strong { color: var(--accent-purple); font-weight: 700; }

.leaderboard-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    text-align: right;
}

.leaderboard-stat-item {
    display: flex;
    flex-direction: column;
}

.leaderboard-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.leaderboard-stat-value {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}

/* Badges Achievements Display */
.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    opacity: 0.4;
    transition: all var(--transition-fast);
}

.badge-item.unlocked {
    opacity: 1;
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1);
}

.badge-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 24px;
}

.badge-item.unlocked .badge-icon-wrapper {
    background: var(--grad-primary);
    color: var(--text-inverse);
    animation: pulseGlow 2s infinite;
}

.badge-title {
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px rgba(168, 85, 247, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(168, 85, 247, 0.7); }
}

/* Split layout on dashboard */
.split-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Modals & Dialogs (Premium Glass) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 7, 16, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeInModal var(--transition-fast);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(18, 16, 35, 0.9);
    border: 1px solid var(--border-glass-glow);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    /* Never grow taller than the viewport — scroll inside instead, so the header
       (✕) and footer buttons stay reachable on short screens. */
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    animation: slideInToast var(--transition-fast) forwards;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-info {
    border-left: 4px solid var(--accent-blue);
}

@keyframes slideInToast {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */

/* Mobile menu toggle (hamburger) & drawer backdrop — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 90;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}
.mobile-menu-toggle span { font-size: 26px; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 7, 16, 0.6);
    backdrop-filter: blur(2px);
    z-index: 95;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

/* Tablet */
@media (max-width: 1024px) {
    .split-dashboard {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1.75rem 1.5rem;
    }

    /* Charts: drop the 450px min so they never overflow narrow viewports */
    .analytics-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile: off-canvas drawer navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    /* Sidebar becomes a full-label off-canvas drawer */
    .sidebar {
        width: 260px;
        padding: 1.5rem 1.25rem;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        box-shadow: none;
    }
    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    }
    body.sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
    }
    /* Prevent the page behind the drawer from scrolling */
    body.sidebar-open {
        overflow: hidden;
    }

    .nav-item {
        justify-content: flex-start;
        padding: 0.85rem 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 4.75rem 1.1rem 1.5rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    /* The right-hand controls (bell + agent switcher) span full width */
    .top-bar > div:last-child {
        width: 100%;
        justify-content: space-between;
    }

    .page-title h1 { font-size: 1.5rem; }

    .controls-group {
        width: 100%;
        justify-content: space-between;
    }
    .controls-group .glass-select { flex: 1; min-width: 0; }

    /* Stat cards stack 1-up for readability */
    .grid-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .stat-card-value { font-size: 1.7rem; }

    /* Obračun bonus 2-column grid collapses */
    .obracun-bonus-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Filters & toolbars wrap and go full width */
    .filters-bar {
        gap: 0.75rem;
    }
    .filters-bar .glass-select,
    .filters-bar .btn,
    .filters-bar .search-box {
        width: 100%;
        flex: 1 1 100%;
        margin-left: 0 !important;
    }

    /* Contracts view toolbar */
    #view-contracts .filters-bar > div {
        width: 100%;
        flex-wrap: wrap;
    }
    #view-contracts .filters-bar .btn { flex: 1 1 auto; }

    /* Obračun ID search bar / header rows wrap */
    #view-obracun .filters-bar { flex-wrap: wrap; }
    #view-obracun .filters-bar .search-box { max-width: 100% !important; }

    /* Agent add form full-width */
    #form-add-agent .form-group { min-width: 100% !important; }
    #form-add-agent .btn { width: 100%; }

    /* Funnel tabs scroll horizontally instead of stacking tall */
    .funnel-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .funnel-tabs .btn { flex: 0 0 auto; }

    /* Leaderboard rows reflow */
    .leaderboard-row {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
    }
    .rank-badge { margin-right: 0.75rem; }
    .leaderboard-info { flex: 1 1 auto; min-width: 0; }
    .leaderboard-stats {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
        padding-left: calc(32px + 0.75rem);
    }

    /* Duel widget tightens up */
    .duel-fighter-row { gap: 0.75rem; }
    .fighter-avatar { width: 42px; height: 42px; }
    .fighter-score { font-size: 1rem; }

    /* Modals fill most of the screen and scroll if tall */
    .modal-overlay { padding: 0.75rem; }
    .modal-content {
        padding: 1.5rem;
        max-width: 100%;
        max-height: 92vh;
        overflow-y: auto;
    }
    .modal-header h3 { font-size: 1.15rem; }

    /* Toasts span the bottom of the screen */
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    .toast { width: 100%; }

    /* Login box fits small screens */
    .login-box { padding: 2rem 1.5rem; }
}

/* Small phones */
@media (max-width: 480px) {
    .main-content { padding: 4.5rem 0.75rem 1.25rem; }

    .glass-card { padding: 1.1rem; border-radius: var(--border-radius-md); }

    .page-title h1 { font-size: 1.3rem; }
    .page-title p { font-size: 0.82rem; }

    /* Stack form rows that use fixed 2-col grids inside modals */
    .modal-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Inner bonus grids go single column on very small screens */
    #obracun-weekly-bonuses,
    #obracun-daily-bonuses {
        grid-template-columns: 1fr !important;
    }

    /* Obračun bonus header buttons wrap */
    #view-obracun .glass-card > div:first-child {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .stat-card-value { font-size: 1.55rem; }

    /* Slightly smaller dense table text */
    .custom-table { font-size: 0.74rem; }

    /* Modal footer buttons go full width and stack */
    .modal-footer {
        flex-direction: column-reverse;
    }
    .modal-footer .btn { width: 100%; }

    .leaderboard-stats { gap: 0.5rem; }
    .leaderboard-stat-value { font-size: 1rem; }
}

/* Confetti Overlay elements */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #f00;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Upload Zone Styles */
.upload-zone {
    border: 2px dashed var(--border-glass-glow);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-zone:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: var(--accent-purple);
}

.upload-zone p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- 15. LOGIN & AGENT MANAGEMENT --- */
#login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0e1a;
    background-image: radial-gradient(circle at 30% 20%, rgba(168,85,247,0.15), transparent 50%),
                      radial-gradient(circle at 70% 80%, rgba(139, 92, 246,0.12), transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-box {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-glow);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 2rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.login-box .form-group {
    text-align: left;
}

.login-error {
    color: var(--accent-pink);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.agent-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.agent-card:hover {
    border-color: var(--border-glass-glow);
    background: rgba(255, 255, 255, 0.05);
}

.agent-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}

.agent-card-title {
    font-weight: 600;
    color: white;
}

.agent-card-role {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(14, 165, 233, 0.2);
    color: var(--accent-blue);
    border-radius: 12px;
}

.agent-card-role.admin {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

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

/* Contracts Evidence Table Specifics */
#table-contracts-monthly th, #table-contracts-monthly td,
#table-contracts-weekly th, #table-contracts-weekly td,
#table-contracts-daily th, #table-contracts-daily td {
    text-align: center;
    vertical-align: middle;
}

#table-contracts-monthly th:first-child, #table-contracts-monthly td:first-child,
#table-contracts-weekly th:first-child, #table-contracts-weekly td:first-child,
#table-contracts-daily th:first-child, #table-contracts-daily td:first-child {
    text-align: center;
}

.bg-fix-shade {
    background: rgba(14, 165, 233, 0.05) !important;
}

.bg-mob-shade {
    background: rgba(244, 63, 94, 0.05) !important;
}

.bg-total-shade {
    background: rgba(168, 85, 247, 0.08) !important;
    font-weight: 700;
    color: var(--accent-pink);
}

.holiday-row td {
    background: rgba(255, 255, 255, 0.02) !important;
    opacity: 0.6;
}

.weekly-subtotal-row td {
    background: rgba(168, 85, 247, 0.1) !important;
    border-top: 2px solid var(--accent-purple) !important;
}

/* Monthly Archive — month group headers + rows */
#table-archive td { white-space: nowrap; }

.archive-month-row td {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.16), rgba(139, 92, 246, 0.05));
    border-top: 2px solid var(--accent-purple);
    padding: 0.7rem 0.75rem;
}
.archive-month-row:first-child td { border-top: none; }

.archive-month-name {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.archive-badge-current {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.12rem 0.55rem;
    border-radius: 30px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--grad-primary);
    color: var(--text-inverse);
    vertical-align: middle;
}

.archive-month-sum {
    margin-left: 0.85rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}
.archive-month-sum strong { color: var(--text-primary); font-weight: 700; }

.archive-current-row td { background: rgba(168, 85, 247, 0.05); }

/* ===== IGRE (mini-games) ===== */
/* Dirka na Goro — per-agent mountain */
.mountain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.mountain-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 1rem;
}
.mountain-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.mountain-name { font-weight: 600; font-size: 0.85rem; }
.mountain-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    white-space: nowrap;
}
.mountain {
    position: relative;
    height: 160px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(59,130,246,0.10) 0%, rgba(18,16,35,0.5) 100%);
    border: 1px solid var(--border-glass);
}
.mountain-fill {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: var(--grad-primary);
    transition: height 0.6s ease;
}
.mountain-fill.is-green { background: var(--grad-success); }
/* The 50% line = the target (fixed-pay boundary) */
.mountain-halfline {
    position: absolute;
    left: 0; right: 0; bottom: 50%;
    border-top: 2px dashed rgba(255, 255, 255, 0.35);
}
.mountain-flag {
    position: absolute;
    right: 6px;
    font-size: 1.1rem;
    transition: bottom 0.6s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.mountain-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* --- ZBIRALEC (The Collector) --- */
.collector-card { margin-top: 1.25rem; }
.collector-card.is-complete {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 1px var(--accent-teal), 0 0 24px rgba(20, 184, 166, 0.25);
}
.collector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.collector-progress-badge {
    font-weight: 800;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    white-space: nowrap;
}
.collector-progress-badge.is-complete {
    background: rgba(20, 184, 166, 0.18);
    color: var(--accent-teal);
}
.collector-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}
@media (max-width: 640px) {
    .collector-strip { grid-template-columns: repeat(3, 1fr); }
}
.collector-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.85rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    opacity: 0.55;
    transition: all var(--transition-fast);
}
.collector-box .material-symbols-rounded { font-size: 1.9rem; color: var(--text-muted); }
.collector-box-label { font-size: 0.72rem; font-weight: 700; }
.collector-box-state { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.collector-box.is-collected {
    opacity: 1;
    border: 1px solid var(--accent-teal);
    background: rgba(20, 184, 166, 0.12);
}
.collector-box.is-collected .material-symbols-rounded { color: var(--accent-teal); }
.collector-box.is-collected .collector-box-state { color: var(--accent-teal); }
.collector-claim {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: var(--accent-teal);
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid var(--accent-teal);
}
.collector-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.9rem;
}
.collector-reward-edit { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.35rem; }
.collector-overview { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Lov na zaklad (Treasure Hunt) */
.treasure-card { margin-top: 1.25rem; }
.treasure-card.is-open {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 1px var(--accent-pink), 0 0 24px rgba(139, 92, 246, 0.25);
}
.treasure-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.treasure-list { display: flex; flex-direction: column; gap: 1rem; }
.treasure-chest {
    padding: 1rem;
    border-radius: 0.85rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-fast);
}
.treasure-chest.is-open {
    border: 1px solid var(--accent-pink);
    background: rgba(139, 92, 246, 0.10);
}
.treasure-chest-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.treasure-chest-icon { color: var(--text-muted); }
.treasure-chest.is-open .treasure-chest-icon { color: var(--accent-pink); }
.treasure-chest-name { font-weight: 700; flex: 1; }
.treasure-chest-badge {
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    white-space: nowrap;
}
.treasure-chest-badge.is-open { background: rgba(139, 92, 246, 0.18); color: var(--accent-pink); }
.treasure-reqs { display: flex; flex-direction: column; gap: 0.6rem; }
.treasure-req-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}
.treasure-req-label { font-weight: 600; }
.treasure-req-count { color: var(--text-muted); font-weight: 700; display: inline-flex; align-items: center; gap: 0.2rem; }
.treasure-req-count .material-symbols-rounded { font-size: 1rem; color: var(--accent-teal); }
.treasure-req.is-met .treasure-req-count { color: var(--accent-teal); }
.treasure-req.is-met .progress-fill { background: var(--accent-teal); }
.treasure-open {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: var(--accent-pink);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--accent-pink);
}
.treasure-reward { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: 0.9rem; }
.treasure-admin {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.treasure-admin-title { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--text-muted); }
.treasure-admin-field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.treasure-admin-reqs { display: flex; flex-direction: column; gap: 0.45rem; }
.treasure-admin-req { display: flex; align-items: center; gap: 0.45rem; }
.treasure-admin-req .glass-select { flex: 1; }
.treasure-admin-num { width: 5rem; }
.treasure-icon-btn { padding: 0.4rem; display: inline-flex; align-items: center; justify-content: center; }
.treasure-add-req, .treasure-remove-chest, .treasure-add-chest {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
}
.treasure-add-chest { margin-top: 1rem; }
.treasure-overview { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Telekomunikacijski BINGO */
.bingo-card { margin-top: 1.25rem; }
.bingo-card.is-complete {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 1px var(--accent-purple), 0 0 24px rgba(168, 85, 247, 0.28);
}
.bingo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.bingo-progress-badge {
    font-weight: 800;
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
    white-space: nowrap;
}
.bingo-progress-badge.is-complete { background: var(--grad-violet); color: #fff; }
.bingo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
@media (max-width: 640px) {
    .bingo-grid { grid-template-columns: repeat(2, 1fr); }
}
.bingo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0.4rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    opacity: 0.55;
    transition: all var(--transition-fast);
}
.bingo-cell-icon { font-size: 2rem; color: var(--text-muted); }
.bingo-cell-label { font-size: 0.76rem; font-weight: 700; line-height: 1.15; }
.bingo-cell-state { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bingo-cell.is-done {
    opacity: 1;
    border: 1px solid transparent;
    background: var(--grad-violet);
    color: #fff;
}
.bingo-cell.is-done .bingo-cell-icon,
.bingo-cell.is-done .bingo-cell-state { color: #fff; }
.bingo-claim {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid var(--accent-purple);
}
.bingo-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.9rem;
}
.bingo-podium-wrap { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bingo-podium-title { font-weight: 700; margin-bottom: 0.5rem; font-size: 0.85rem; }
.bingo-podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.bingo-podium-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}
.bingo-podium-row.is-self { background: rgba(168, 85, 247, 0.10); }
.bingo-podium-rank { font-size: 1.05rem; }
.bingo-podium-name { font-weight: 600; flex: 1; }
.bingo-podium-date { color: var(--text-muted); font-size: 0.78rem; }
.bingo-podium-empty { color: var(--text-muted); font-size: 0.82rem; padding: 0.4rem 0.2rem; }
.bingo-admin { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bingo-admin-title { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--text-muted); }
.bingo-admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
@media (max-width: 640px) { .bingo-admin-grid { grid-template-columns: repeat(2, 1fr); } }
.bingo-admin-row { display: flex; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.bingo-admin-cell { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.bingo-admin-cell select, .bingo-admin-cell input { font-size: 0.82rem; }

/* ===== IGRE HUB (grid of game tiles → dedicated stage) ===== */
.games-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
/* The stage (an open game) also needs to clear the panel header above it. */
.game-stage { margin-top: 1.5rem; }
.game-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    /* Buttons don't inherit the page text color — set it so titles aren't dark UA ButtonText. */
    color: var(--text-primary);
    font-family: inherit;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.game-tile:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-glow);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.22);
}
.game-tile-icon { font-size: 2.4rem; line-height: 1; }
.game-tile-title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; color: var(--text-primary); }
.game-tile-sub { font-size: 0.8rem; color: var(--text-muted); min-height: 1.2em; line-height: 1.35; }
.game-tile-open { margin-top: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--accent-purple); }
.game-back { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ===== Liga Točk stage ===== */
.lt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lt-periods { display: flex; gap: 0.4rem; }
.lt-x2 { color: #10b981; font-weight: 800; font-size: 0.8rem; }

/* Podium */
.lt-podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.lt-podium-cell {
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md); padding: 1rem 1.25rem; min-width: 110px;
}
.lt-pod-0 { transform: translateY(-14px); border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 0 20px rgba(255, 215, 0, 0.18); }

/* Clean metallic rank badges (replace the emoji medals) */
.lt-podium-rank {
    display: inline-flex; align-items: center; gap: 0.15rem;
    padding: 0.2rem 0.65rem; border-radius: 999px;
    font-weight: 800; font-size: 1rem; color: #1a1205;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.lt-podium-rank .material-symbols-rounded { font-size: 1.05rem; }
.lt-rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    font-weight: 800; font-size: 0.8rem; color: #1a1205;
}
.lt-rank-1 { background: linear-gradient(135deg, #ffe680 0%, #f5a623 100%); }
.lt-rank-2 { background: linear-gradient(135deg, #eef1f5 0%, #a8b0bd 100%); }
.lt-rank-3 { background: linear-gradient(135deg, #e6b98a 0%, #cd7f32 100%); }
.lt-podium-av {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--text-inverse); background: var(--grad-primary);
}
.lt-podium-name { font-weight: 600; font-size: 0.85rem; }
.lt-podium-pts { font-weight: 800; color: var(--accent-purple); }

/* Standings table */
.lt-table tbody .lt-row { cursor: pointer; transition: background var(--transition-fast); }
.lt-table tbody .lt-row:hover { background: rgba(255, 255, 255, 0.04); }
.lt-row.lt-self { background: rgba(168, 85, 247, 0.08); }
.lt-row.lt-open { background: rgba(168, 85, 247, 0.12); }
.lt-move { font-weight: 700; font-size: 0.78rem; }
.lt-up { color: #10b981; }
.lt-down { color: var(--accent-pink); }
.lt-same { color: var(--text-muted); }
.lt-new { color: var(--accent-blue); font-size: 0.68rem; }
.lt-detail-row td { background: rgba(0, 0, 0, 0.12); }

/* Drill-down */
.lt-drill { padding: 0.75rem 0.25rem; }
.lt-drill-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: 0.75rem; background: var(--border-glass); }
.lt-drill-bar span { display: block; height: 100%; }
.lt-drill-line { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; padding: 0.2rem 0; }
.lt-drill-line span:first-child { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); }
.lt-drill-total { border-top: 1px solid var(--border-glass); margin-top: 0.35rem; padding-top: 0.5rem; }
.lt-drill-total span:first-child { color: var(--text-primary); font-weight: 600; }
.lt-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Legend + tier chips */
.lt-legend { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--border-glass); }
.lt-chip { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }

/* ===== Potapljanje ladjic (Battleship) ===== */
.bs-admin-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.bs-admin-size, .bs-admin-season { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.bs-admin-season strong { color: var(--text-primary); }
.bs-size { padding: 0.3rem 0.5rem; }
.bs-grid { display: grid; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.bs-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border-glass);
    font-size: 0.68rem; font-weight: 700; text-align: center;
    padding: 0.2rem;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.bs-cell .material-symbols-rounded { font-size: 1.5rem; }
.bs-cell-label { line-height: 1.05; }
/* Covered "water" tile */
.bs-cell.covered {
    background: linear-gradient(160deg, rgba(59,130,246,0.22) 0%, rgba(30,58,138,0.35) 100%);
    color: rgba(255,255,255,0.4);
    border-color: rgba(59,130,246,0.3);
}
.bs-cell.covered .bs-wave { font-size: 1.4rem; opacity: 0.5; }
/* Revealed states */
.bs-cell.prize { background: rgba(16,185,129,0.14); border-color: rgba(16,185,129,0.5); color: #10b981; }
.bs-cell.bomb  { background: rgba(236,72,153,0.14); border-color: rgba(236,72,153,0.5); color: var(--accent-pink); }
.bs-cell.empty { background: rgba(255,255,255,0.03); color: var(--text-muted); }
.bs-miss { font-size: 0.7rem; color: var(--text-muted); }
/* Admin design cells */
.bs-cell.bs-admin { cursor: pointer; background: rgba(255,255,255,0.03); }
.bs-cell.bs-admin:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.bs-cell.bs-admin.prize { background: rgba(16,185,129,0.14); }
.bs-cell.bs-admin.bomb { background: rgba(236,72,153,0.14); }
.bs-plus { color: var(--text-muted); font-size: 1.3rem; }
/* Agent stats */
.bs-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.bs-stat { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 0.6rem 0.9rem; border-radius: var(--border-radius-md); background: var(--bg-glass); border: 1px solid var(--border-glass); }
.bs-stat-n { font-size: 1.4rem; font-weight: 800; color: var(--accent-purple); }
.bs-stat-l { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.bs-found-wrap { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border-glass); }
.bs-found-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.5rem; }
.bs-found { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.bs-found li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }
.bs-overview { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border-glass); }
.bs-legend { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border-glass); font-size: 0.75rem; color: var(--text-muted); }
.bs-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.bs-legend .material-symbols-rounded { font-size: 1.05rem; }

/* ===== Liga Prvakov (Divisions) ===== */
.div-admin-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.div-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--border-radius-md); overflow: hidden; }
.div-card-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1rem; border-bottom: 2px solid; font-size: 0.95rem; }
.div-zone-note { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.div-card table { margin: 0; }
.div-releg td { background: rgba(236, 72, 153, 0.08); }
.div-promo td { background: rgba(16, 185, 129, 0.08); }
.div-self td { outline: 1px solid rgba(168, 85, 247, 0.4); }
.div-move { line-height: 1; }
.div-me-banner {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--border-radius-md);
    font-size: 0.95rem; font-weight: 600;
}
.div-me-banner.l1 { background: rgba(255, 215, 0, 0.12); border: 1px solid rgba(255, 215, 0, 0.4); color: #ffd700; }
.div-me-banner.l2 { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.4); color: var(--accent-blue); }

/* ===== Draft / Ekipni spopad (Teams) ===== */
.draft-reward { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.92rem; }
.draft-standings { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.draft-standing { display: flex; gap: 0.9rem; padding: 0.9rem 1rem; border-radius: var(--border-radius-md); background: var(--bg-glass); border: 1px solid var(--border-glass); }
.draft-standing.draft-mine { border-color: var(--accent-teal); box-shadow: 0 0 0 1px rgba(20,184,166,0.35); }
.draft-rank { display: flex; align-items: center; }
.draft-standing-body { flex: 1; min-width: 0; }
.draft-standing-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.draft-standing-head strong { font-size: 1.05rem; }
.draft-total { font-weight: 800; color: var(--accent-purple); white-space: nowrap; }
.draft-members { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.draft-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass); font-size: 0.78rem; }
.draft-chip-pts { font-weight: 800; color: var(--accent-purple); }
.draft-admin { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-glass); }
.draft-admin-controls { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.draft-team-edits { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.draft-team-edit { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; border-radius: var(--border-radius-md); background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); }
.draft-team-name { width: 150px; padding: 0.3rem 0.5rem; }
.draft-roster { margin-top: 1.1rem; }
.draft-assign { padding: 0.3rem 0.5rem; min-width: 130px; }

/* ===== Ura moči (Power Hour) ===== */
.ph-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--border-radius-md); margin: 1rem 0; }
.ph-banner-main { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 220px; }
.ph-banner-main > .material-symbols-rounded { font-size: 2rem; }
.ph-banner-txt { font-weight: 700; font-size: 1rem; }
.ph-reward { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; margin-top: 0.25rem; opacity: 0.9; }
.ph-mult { font-size: 1.8rem; font-weight: 800; }
.ph-timer { font-size: 0.9rem; font-weight: 600; }
.ph-timer span { font-variant-numeric: tabular-nums; font-weight: 800; }
.ph-armed { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); color: #f59e0b; }
.ph-upcoming { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.4); color: var(--accent-blue); }
.ph-live {
    background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(168,85,247,0.25));
    border: 1px solid var(--accent-pink); color: #fff;
    animation: phPulse 1.4s ease-in-out infinite;
}
@keyframes phPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(236,72,153,0.4); } 50% { box-shadow: 0 0 24px 2px rgba(236,72,153,0.5); } }
.ph-admin { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-glass); }
.ph-arm-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.ph-arm-grid label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.ph-arm-grid input { padding: 0.4rem 0.55rem; }
.ph-mult-in { width: 80px; }
.ph-days { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.ph-day { display: flex; gap: 0.5rem; align-items: stretch; }
.ph-day-main { flex: 1; text-align: left; padding: 0.6rem 0.8rem; border-radius: var(--border-radius-md); background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass); color: var(--text-primary); cursor: pointer; font-size: 0.85rem; }
.ph-day.is-active .ph-day-main { border-color: var(--accent-pink); }
.ph-active-tag { margin-left: 0.5rem; font-size: 0.68rem; font-weight: 700; color: var(--accent-pink); text-transform: uppercase; }

/* ===== Skrita Tarča (Mystery Target) ===== */
.mys-card {
    display: flex; align-items: center; gap: 1rem; margin: 1rem 0;
    padding: 1.25rem; border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(236,72,153,0.14), rgba(168,85,247,0.14));
    border: 1px solid rgba(236,72,153,0.4);
}
.mys-icon .material-symbols-rounded { font-size: 2.6rem; color: var(--accent-pink); }
.mys-day { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.mys-challenge { font-size: 1.1rem; font-weight: 600; margin-top: 0.25rem; }
.mys-reward { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; margin-top: 0.5rem; }
.mys-winner { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; color: #ffd700; margin-top: 1rem; }
.mys-progress { font-size: 0.95rem; color: var(--text-muted); margin-top: 1rem; }
.mys-winrow td { background: rgba(255, 215, 0, 0.12); font-weight: 700; }
.mys-admin { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-glass); }
.mys-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.mys-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.mys-form input, .mys-form select { padding: 0.4rem 0.55rem; }
.mys-n { width: 80px; }
.mys-secret-label { flex-direction: row !important; align-items: center; gap: 0.4rem !important; }
