/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root {
    /* True-Life "Dark/Yellow" Color Scheme */
    --primary: #ffcc00;
    --primary-glow: rgba(255, 204, 0, 0.3);
    --secondary: #ffffff;
    --secondary-glow: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.85);
    --bg-dark: #050505;
    --bg-mesh: radial-gradient(at 0% 0%, #0a0a0a 0, transparent 50%),
        radial-gradient(at 50% 0%, #151000 0, transparent 50%),
        radial-gradient(at 100% 0%, #0a0a0a 0, transparent 50%),
        linear-gradient(rgba(255, 204, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 0, 0.015) 1px, transparent 1px);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Sidebar specific */
    --sidebar-bg: rgba(5, 5, 5, 0.98);
    --sidebar-border: rgba(255, 204, 0, 0.05);
    --nav-hover: rgba(255, 204, 0, 0.03);
    --nav-active: linear-gradient(90deg, rgba(255, 204, 0, 0.08), transparent);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-mesh);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
    opacity: 0.8;
}

/* --- Layout Grid --- */
.grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--sidebar-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    /* Scrollbar Styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* User Mini Profile */
.user-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 1rem;
}

.user-mini img {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.user-mini:hover img {
    transform: scale(1.05);
    border-color: #fff !important;
}

/* Nav Links */
.nav-link,
.nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-dim);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link i,
.nav-group-toggle i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    transition: 0.3s;
}

.nav-link:hover,
.nav-group-toggle:hover {
    background: var(--nav-hover);
    color: #fff;
    transform: translateX(4px);
}

.nav-link:hover i,
.nav-group-toggle:hover i {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link.active,
.nav-group-toggle.active {
    background: var(--nav-active);
    color: #fff;
    border-left-color: var(--primary);
    box-shadow: inset 0 0 20px var(--primary-glow);
}

.nav-link.active i,
.nav-group-toggle.active i {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(10, 122, 255, 0.6);
}

/* Special Case for Changelog Sidebar Link */
.nav-changelog.active {
    background: var(--primary-glow);
    border-left: 4px solid var(--primary) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 20px var(--primary-glow);
}

/* Submenu */
.nav-group-toggle {
    justify-content: space-between;
}

.nav-group-toggle .toggle-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-group-toggle .chevron {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.nav-group-toggle.open .chevron {
    transform: rotate(90deg);
    opacity: 1;
}

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0.5rem;
    margin-top: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    margin-left: 1.4rem;
}

.nav-submenu.open {
    max-height: 800px;
    padding-bottom: 0.5rem;
}

.nav-submenu .nav-link {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: var(--text-dim);
    border: none;
}

.nav-submenu .nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(3px);
}

.nav-submenu .nav-link.active {
    background: rgba(10, 122, 255, 0.1);
    color: var(--primary);
    box-shadow: none;
}

.nav-submenu .nav-link i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* --- Bento Layout System --- */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Ensure bento works on smaller screens */
@media (max-width: 1400px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-container {
        grid-template-columns: 1fr;
    }

    .bento-item-2x2,
    .bento-item-2x1,
    .bento-item-1x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Hero Banner (Full Width) */
.hero-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(5, 5, 5, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
}

.hero-content h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bento Item Sizing */
.bento-item-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-item-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Stat Cards (Inside Bento) */
.stats-grid {
    display: contents;
    /* Let items participate in bento grid */
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-glow);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

/* Stat Colors */
.stat-card[data-type="money"] .stat-icon {
    color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.1);
}

.stat-card[data-type="bank"] .stat-icon {
    color: #00ccff;
    background: rgba(0, 204, 255, 0.05);
    border-color: rgba(0, 204, 255, 0.1);
}

.stat-card[data-type="job"] .stat-icon {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.05);
    border-color: rgba(255, 170, 0, 0.1);
}

.stat-card[data-type="vehicles"] .stat-icon {
    color: #ff4466;
    background: rgba(255, 68, 102, 0.05);
    border-color: rgba(255, 68, 102, 0.1);
}

.stat-card[data-type="env"] .stat-icon {
    color: #a970ff;
    background: rgba(169, 112, 255, 0.05);
    border-color: rgba(169, 112, 255, 0.1);
}

.stat-card[data-type="playtime"] .stat-icon {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.6;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.stat-value.wrap {
    white-space: normal;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.stat-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.5;
}

.env-details {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #fff;
}

.env-details i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--primary) 0%, #ffaa00 100%);
    color: #0c0c12;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
    background: linear-gradient(135deg, #ffaa00 0%, var(--primary) 100%);
    color: #000;
}

.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 1rem;
}

/* Button Variants */
.card,
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.3), 0 0 20px rgba(255, 65, 108, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, #00cc6a 100%);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3), 0 0 20px rgba(0, 255, 136, 0.3);
}

/* --- General Content Cards --- */
.card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
}

/* --- Server Live Card --- */
.server-live-card {
    background: linear-gradient(145deg, var(--primary-glow), rgba(0, 255, 204, 0.05)) !important;
    border: 1px solid var(--glass-border) !important;
    position: relative;
    overflow: hidden;
}

.server-live-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 122, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.live-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 4px var(--primary);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 12px var(--primary);
    }
}

@keyframes pulse-yellow {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 4px var(--primary);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 15px var(--primary);
    }
}

/* --- Server Live Card Upgrade --- */
.server-live-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: #00ff88;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Horizontal Progress Bar */
.server-progress-container {
    margin: 1rem 0;
}

.server-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.server-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.server-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Connect Button */
.btn-connect {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-connect:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
    color: #000;
}

/* Player List Items */
.player-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.player-list-item .player-name {
    color: #fff;
    font-weight: 600;
}

.player-list-item .player-status {
    font-size: 0.65rem;
    font-weight: 800;
    color: #00ff88;
}

/* Notification System */
.notifications-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.5);
    z-index: 10;
    pointer-events: none;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.notifications-list {
    max-height: 380px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(0, 221, 255, 0.02);
}

.notification-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(10, 122, 255, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.notification-msg {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.notification-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 5px;
    display: block;
}

.notifications-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Quick Actions --- */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.quick-action-btn:hover {
    background: rgba(255, 204, 0, 0.05);
    border-color: var(--primary-glow);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quick-action-btn:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* --- Activity Feed (Timeline Style) --- */
.activity-timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-top: 0.5rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-glow) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.2rem;
    transition: 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 204, 0, 0.2);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.timeline-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
}

.timeline-msg {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* --- Status Colors --- */
.timeline-dot.info {
    border-color: #0099ff;
    color: #0099ff;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
}

.timeline-dot.warning {
    border-color: #ffaa00;
    color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.timeline-dot.success {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.timeline-dot.danger {
    border-color: #ff4466;
    color: #ff4466;
    box-shadow: 0 0 10px rgba(255, 68, 102, 0.3);
}

/* --- Missing Utilities & Accents --- */
.header-accent {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.header-accent span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.activity-icon-wrapper {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
}

.notifications-footer a {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
/* ─── Global Cookie Banner ─── */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 40px);
    width: min(520px, 92%);
    z-index: 999999;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 1.8rem;
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cookie-banner.active {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.cookie-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: rgba(255, 204, 0, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: cookie-glow 3s infinite alternate;
}

@keyframes cookie-glow {
    from { box-shadow: 0 0 10px var(--primary-glow); }
    to { box-shadow: 0 0 25px var(--primary-glow); }
}

.cookie-text h4 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.cookie-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cookie-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none !important;
    text-decoration: none;
    min-width: 120px;
}

.cookie-btn.primary {
    background: var(--primary) !important;
    color: #000 !important;
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
}

.cookie-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.cookie-btn.secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cookie-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 550px) {
    .cookie-banner { bottom: 1rem; width: 95%; padding: 1.2rem; }
    .cookie-content { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    .cookie-actions { width: 100%; flex-direction: row; }
    .cookie-btn { flex: 1; }
    .cookie-icon { display: none; }
}
