/* --- Self-hosted Inter font family ---
 * Loaded locally so we don't depend on fonts.googleapis.com, which under certain
 * User-Agents returned relative woff2 URLs that resolved against this origin and
 * produced repeated 404s for /assets/fonts/Inter-*.woff2.
 */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/Inter-ExtraBold.woff2') format('woff2');
}

:root {
    --bg-base: #0e0e12;
    --bg-surface: #141419;
    --bg-surface-glass: rgba(20, 20, 25, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a3a6aa;
    --accent-cyan: #00e5ff;
    --accent-purple: #9d00ff;
    --accent-red: #eb455f;
    --accent-blue: #5865F2;
    --font-primary: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ── Utilities ── */
.text-cyan {
    color: var(--accent-cyan);
}

.text-purple {
    color: var(--accent-purple);
}

.text-red {
    color: var(--accent-red);
}

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

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ── Background & Animations ── */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ambient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
    z-index: 2;
}

.sphere-cyan {
    top: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.sphere-purple {
    top: 30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 80px) scale(1.1);
    }
}

/* ── Layout ── */
.dashboard-layout {
    display: flex;
    width: 100%;
    position: relative;
}

/* ── Sidebar ── */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 40px;
    padding-left: 10px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin: 14px 0 6px;
    padding-left: 10px;
    letter-spacing: 1.2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: rgba(157, 0, 255, 0.12);
    color: var(--accent-purple);
    box-shadow: inset 3px 0 0 var(--accent-purple);
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* ── Top Header ── */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}

h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 5px;
}

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

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Server Select ── */
.server-select-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.input-dark {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-dark:focus {
    border-color: var(--accent-purple);
}

/* ── Glass Card ── */
.glass-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ── Stat Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 14px;
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 25px rgba(157, 0, 255, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cyan-glow {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
}

.purple-glow {
    background: rgba(157, 0, 255, 0.12);
    color: var(--accent-purple);
}

.red-glow {
    background: rgba(235, 69, 95, 0.12);
    color: var(--accent-red);
}

.stat-data h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    margin-top: 4px;
}

/* ── Quick Actions ── */
.quick-actions-card {
    padding: 28px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.qa-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(157, 0, 255, 0.06);
    border: 1px solid rgba(157, 0, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.qa-btn:hover {
    background: rgba(157, 0, 255, 0.14);
    border-color: rgba(157, 0, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(157, 0, 255, 0.2);
}

.qa-btn i {
    font-size: 1.8rem;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.qa-btn span {
    font-weight: 700;
    font-size: 1rem;
}

.qa-btn small {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ── Filters Bar ── */
.filters-bar {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 20px 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

.search-group {
    flex: 1;
    min-width: 200px;
}

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

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-input-wrapper input {
    width: 100%;
    padding-left: 38px;
}

/* ── Buttons ── */
.btn-primary {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #4752C4;
    transform: translateY(-1px);
}

.btn-purple {
    background: var(--accent-purple);
}

.btn-purple:hover {
    background: #7a00cc;
}

/* ── Table ── */
.table-responsive {
    overflow-x: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th {
    text-align: left;
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.logs-table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.logs-table tr:last-child td {
    border-bottom: none;
}

.logs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-perm {
    background: rgba(235, 69, 95, 0.15);
    color: var(--accent-red);
}

.badge-temp {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
}

.badge-pending {
    background: rgba(240, 192, 64, 0.15);
    color: #f0c040;
}

.badge-action {
    background: rgba(88, 101, 242, 0.1);
    color: #8b95f5;
}

/* ── Search Result ── */
.search-hero {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Names Grid ── */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.name-card {
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.name-card:hover {
    border-color: rgba(157, 0, 255, 0.3);
    box-shadow: 0 4px 20px rgba(157, 0, 255, 0.1);
    transform: translateY(-2px);
}

.name-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    border: 2px solid rgba(157, 0, 255, 0.3);
}

.name-info .display-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.name-info .roblox-name {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.name-info .discord-id {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 2px;
    font-family: monospace;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.page-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.page-btn.active {
    background: rgba(157, 0, 255, 0.2);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

/* ── Section header row ── */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* ── Ban Detail Overlay ── */
.ban-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    overflow-y: auto;
}

.ban-detail-overlay.hidden {
    display: none;
}

.ban-detail-content {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.ban-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.ban-detail-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ban-detail-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ban-detail-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: var(--accent-cyan);
}

.ban-detail-body {
    padding: 5px 0;
}

.ban-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
}

.ban-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 15px;
    flex-wrap: wrap;
}

.ban-detail-row:last-child {
    border-bottom: none;
}

.ban-detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    flex-shrink: 0;
}

/* ── Spinner ── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: #2b2d31;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f4147;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE HAMBURGER BUTTON ===== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(17, 17, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--accent-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--accent-cyan);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 49;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

@media (max-width: 750px) {
    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-surface);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding: 70px 16px 30px 16px;
    }

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        gap: 15px;
    }

    .filters-bar {
        padding: 16px;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .search-group {
        width: 100%;
    }

    .search-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .search-hero button {
        width: 100%;
        justify-content: center;
    }
}

/* --- VIEW SWITCH BUTTONS --- */
.view-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.view-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
}

/* ════════════════════════════════════════════════════════════
   RASTER-ANSICHT — Profil-Karten
   ════════════════════════════════════════════════════════════ */
.logs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.logs-grid-empty {
    grid-column: 1 / -1;
}

.log-user-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 22px 16px;
    background: var(--bg-surface-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    animation: cardFadeIn 0.4s ease both;
    cursor: pointer;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-user-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.log-user-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.log-user-card:hover::before {
    opacity: 1;
}

.log-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.08);
    background: rgba(157, 0, 255, 0.08);
    transition: border-color 0.22s ease, opacity 0.3s ease;
    /* Show a subtle loading indicator while the image loads */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle cx="32" cy="32" r="30" fill="none" stroke="%239d00ff" stroke-opacity="0.2" stroke-width="4"/><circle cx="32" cy="32" r="30" fill="none" stroke="%2300e5ff" stroke-opacity="0.5" stroke-width="4" stroke-dasharray="189" stroke-dashoffset="170"/></svg>');
    background-size: cover;
    background-position: center;
}

.log-card-avatar:not([src]),
.log-card-avatar[src=""],
.log-card-avatar[src="#"] {
    opacity: 0.6;
}

.log-user-card:hover .log-card-avatar {
    border-color: rgba(0, 229, 255, 0.5);
}

.log-card-name {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-main);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-card-id {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Raster: Day-Banner über volle Grid-Breite ── */
.day-banner {
    grid-column: 1 / -1;
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    margin: 16px 0 4px;
    background: linear-gradient(90deg,
            rgba(157, 0, 255, 0.10) 0%,
            rgba(157, 0, 255, 0.03) 40%,
            transparent 75%);
    border-top: 1px solid rgba(157, 0, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.day-banner-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-purple);
}

.day-banner-label i {
    opacity: 0.75;
}

.day-banner-count {
    background: rgba(157, 0, 255, 0.18);
    color: var(--accent-purple);
    padding: 3px 11px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.logs-grid>.day-banner:first-child {
    margin-top: 4px;
}

/* --- SCROLL ANIMATIONS REMOVED --- */

/* --- TEXT GRADIENTS --- */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-purple), #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----- COMPREHENSIVE MOBILE OPTIMIZATIONS ----- */
@media (max-width: 768px) {

    body {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Touch Targets — real class names */
    .btn-modern,
    .btn-primary,
    .submit-btn,
    .modal-close-btn,
    .custom-select-trigger,
    .input-dark,
    .input-modern,
    .nav-item,
    .filter-btn {
        min-height: 44px !important;
    }

    .nav-item,
    .sidebar-nav-item,
    .sidebar-footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .input-dark,
    .input-modern {
        font-size: 16px !important;
    }

    /* Layout Overrides */
    .input-grid,
    .card-grid,
    .cat-input-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* Modals */
    .modal-content,
    .edit-song-modal-card,
    .confirm-modal,
    .user-detail-modal {
        width: 95% !important;
        max-width: none !important;
        margin: 10px auto !important;
        padding: 15px !important;
        max-height: 90dvh !important;
        overflow-y: auto !important;
    }

    /* Padding Reductions */
    .main-content,
    .dashboard-main-content {
        padding: 60px 10px 80px 10px !important;
    }

    .settings-card,
    .glass-card {
        padding: 15px 10px !important;
    }

    /* Table responsive override */
    .main-content table,
    .dashboard-main-content table {
        font-size: 0.85rem !important;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── FOKUS-PANEL / USER MODAL ── */
.transcript-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 24px;
}
.transcript-modal-overlay.visible { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.transcript-modal {
    position: relative; width: min(600px, 100%); background: var(--bg-surface);
    border: 1px solid var(--border-color); border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column;
    overflow: hidden; animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.transcript-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 10; width: 34px; height: 34px;
    border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.transcript-modal-close:hover { background: rgba(235, 69, 95, 0.25); color: #fff; transform: rotate(90deg) scale(1.1); }
.modal-content-wrapper { padding: 30px; display: flex; flex-direction: column; gap: 20px;}
.user-focus-header { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.user-focus-header img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--border-color); }
.user-focus-header div { flex: 1; }
.user-focus-header h2 { margin: 0; font-size: 1.5rem; color: #fff; }
.user-focus-header p { margin: 5px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.user-focus-body { display: flex; flex-direction: column; gap: 15px; }

/* Custom Toggle Switch for Focus Panel */
.toggle-switch-container {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
    padding: 15px 20px; border-radius: 12px; transition: background 0.2s;
}
.toggle-switch-container:hover { background: rgba(255, 255, 255, 0.05); }
.toggle-switch-container > div {
    display: flex; flex-direction: column; gap: 4px;
}
.toggle-switch-container strong { color: #fff; font-size: 1.05rem; }
.toggle-switch-container small { color: var(--text-muted); font-size: 0.85rem; }

.custom-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0;}
.custom-switch input { opacity: 0; width: 0; height: 0; }
.custom-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.1); transition: .4s; border-radius: 34px; border: 1px solid var(--border-color); }
.custom-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: var(--text-muted); transition: .4s; border-radius: 50%; }
.custom-switch input:checked + .custom-slider { background-color: rgba(46, 204, 113, 0.2); border-color: rgba(46, 204, 113, 0.4); }
.custom-switch input:checked + .custom-slider:before { transform: translateX(22px); background-color: #2ecc71; }