:root {
            --lonestar: #64c4f4;
            --valkyra: #c73d3d;
            --manticore: #08a20e;
            --gold: #ffb300;
            --gold-glow: rgba(255, 179, 0, 0.4);
            --panel-glass: rgba(18, 22, 34, 0.7);
            --panel-border: rgba(255, 255, 255, 0.08);
            --text-main: #ffffff;
            --text-muted: #8c9ba5;
            --text-dim: #717d96;
            --primary: #64c4f4;
            --success: #38ef7d;
            --danger: #ff5252;
        }

        body {
            background-color: #0b0e14;
            background-image: 
                radial-gradient(circle at 15% 10%, rgba(100, 196, 244, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 85% 15%, rgba(199, 61, 61, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 50% 60%, rgba(255, 179, 0, 0.03) 0%, transparent 50%);
            color: #d1d7e0;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            margin: 0;
            padding: 0;
        }

        .profile-container {
            max-width: 1400px;
            margin: 20px auto 10px auto;
            padding: 0 20px;
        }

        /* Dossier Breadcrumb */
        .profile-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #717d96;
            margin-bottom: 0;
        }

        .profile-breadcrumb a {
            color: var(--gold);
            text-decoration: none;
            transition: color 0.2s;
        }

        .profile-breadcrumb a:hover {
            color: #fff;
        }

        /* Profile Top Bar & Global Timeframe Filters */
        .profile-top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }

        .profile-top-bar .profile-breadcrumb {
            margin-bottom: 0;
        }

        .global-time-filters {
            display: inline-flex;
            gap: 6px;
            align-items: center;
        }

        .global-tf-btn {
            font-family: 'Rajdhani', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #8c9ba5;
            background: rgba(18, 24, 36, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 4px;
            padding: 5px 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
            line-height: 1.2;
            outline: none;
            white-space: nowrap;
        }

        .global-tf-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .global-tf-btn.active {
            color: #0b0e14;
            background: var(--gold);
            font-weight: 800;
            border-color: var(--gold);
            border-radius: 4px;
            box-shadow: 0 0 14px rgba(255, 179, 0, 0.45);
        }

        @media (max-width: 768px) {
            .profile-top-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .global-time-filters {
                width: 100%;
                overflow-x: auto;
                padding-bottom: 4px;
                -webkit-overflow-scrolling: touch;
            }
        }

        /* Hero Card (Top Card - Gold Header Accent) */
        .hero-card {
            background: rgba(14, 18, 28, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: none;
            border-radius: 0 !important;
            padding: 24px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            margin-bottom: 22px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
            position: relative;
        }

        /* Гарний бордер зверху шапки з золотим градієнтом без округлення */
        .hero-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, rgba(196, 164, 88, 0.2) 0%, #c4a458 20%, #ffd700 50%, #c4a458 80%, rgba(196, 164, 88, 0.2) 100%);
            box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
        }

        .hero-left-wrapper {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
        }

        .avatar-lg {
            width: 96px;
            height: 96px;
            border-radius: 0;
            border: 2px solid rgba(255, 179, 0, 0.45);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 179, 0, 0.2);
            object-fit: cover;
            flex-shrink: 0;
        }

        .hero-info h1 {
            margin: 0 0 8px 0;
            font-family: 'Rajdhani', sans-serif;
            font-size: 32px;
            font-weight: 800;
            letter-spacing: 1.2px;
            color: #ffffff;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .hero-info .steamid {
            color: #94a3b8;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            display: inline-flex;
            gap: 8px;
            align-items: center;
            background: rgba(10, 14, 22, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 0;
            padding: 4px 10px;
            letter-spacing: 0.5px;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .hero-info .steamid:hover {
            border-color: rgba(255, 179, 0, 0.45);
            background: rgba(255, 179, 0, 0.08);
            color: #ffb300;
        }

        .hero-info .steamid:hover .steam-external-icon {
            color: #ffb300;
            transform: translate(1px, -1px);
        }

        .steam-external-icon {
            color: #8c9ba5;
            transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
            display: inline-block;
            vertical-align: middle;
            margin-left: 2px;
        }

        .live-badge {
            background: rgba(255, 68, 68, 0.15);
            color: #ff5252;
            border: 1px solid rgba(255, 68, 68, 0.4);
            padding: 3px 10px;
            border-radius: 0;
            font-family: 'Rajdhani', sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 0 12px rgba(255, 68, 68, 0.25);
            animation: pulse 2s infinite;
        }

        .hero-profit {
            text-align: right;
            min-width: 230px;
            background: transparent;
            border: none !important;
            border-radius: 0 !important;
            padding: 8px 0;
            box-shadow: none !important;
            position: relative;
        }

        .hero-profit::before {
            display: none;
        }

        .hero-profit-meta {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin-bottom: 6px;
        }

        .hero-profit-label {
            font-family: 'Rajdhani', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #94a3b8;
            text-transform: uppercase;
        }

        .hero-profit-label .since-time {
            font-size: 11px;
            opacity: 0.7;
            font-weight: 500;
        }

        .global-rank-pill {
            font-family: 'Rajdhani', sans-serif;
            font-weight: 800;
            font-size: 11px;
            color: var(--gold);
            padding: 2px 8px;
            border: 1px solid rgba(255, 179, 0, 0.45);
            background: rgba(255, 179, 0, 0.12);
            border-radius: 0;
            box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
            line-height: 1.2;
        }

        .lifetime-profit {
            font-family: 'JetBrains Mono', monospace;
            font-size: 30px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.5px;
        }

        .text-success { color: #38ef7d !important; text-shadow: 0 0 15px rgba(56, 239, 125, 0.25); }
        .text-danger { color: #ff5252 !important; text-shadow: 0 0 15px rgba(255, 82, 82, 0.25); }
        .text-neutral { color: #8c9ba5 !important; }
        @keyframes pulse-warning {
            0% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.9); border-color: #ff4444; background: rgba(255, 68, 68, 0.2); }
            50% { box-shadow: 0 0 14px 4px rgba(255, 68, 68, 0.6); border-color: #ff7777; background: #c00; }
            100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.9); border-color: #ff4444; background: rgba(255, 68, 68, 0.2); }
        }
        .btn-pulse {
            animation: pulse-warning 1.6s infinite ease-in-out !important;
            border: 1px solid #ff4444 !important;
            color: #fff !important;
            font-weight: 700 !important;
        }

        .profile-update-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 179, 0, 0.1);
            border: 1px solid rgba(255, 179, 0, 0.45);
            color: var(--gold);
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            padding: 4px 12px;
            border-radius: 0;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: 0 0 8px rgba(255, 179, 0, 0.15);
        }
        .profile-update-btn:hover {
            background: var(--gold);
            color: #111;
            box-shadow: 0 0 16px rgba(255, 179, 0, 0.5);
            transform: translateY(-1px);
        }
        .profile-not-in-game-note {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 6px;
            font-size: 12px;
            color: #94a3b8;
            background: rgba(10, 14, 22, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-left: 2px solid #64c4f4;
            padding: 3px 8px;
        }
        .profile-not-in-game-note strong {
            color: #fff;
        }
        .profile-not-in-game-note.has-error {
            border-left-color: #ff4444;
            color: #ff9999;
            background: rgba(255, 68, 68, 0.08);
        }
        .profile-not-in-game-note.has-error strong {
            color: #ffcccc;
        }

        .profile-sync-alert {
            background: rgba(255, 68, 68, 0.1);
            border: 1px solid rgba(255, 68, 68, 0.4);
            border-left: 4px solid #ff4444;
            padding: 14px 20px;
            margin-bottom: 20px;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }
        .sync-alert-left {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            line-height: 1.4;
            color: #e2e8f0;
        }
        .sync-alert-icon {
            font-size: 22px;
            flex-shrink: 0;
        }
        .profile-sync-alert-btn {
            padding: 8px 18px;
            text-decoration: none;
            font-family: 'Rajdhani', sans-serif;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        /* Profile Metrics Bar (Subtle Frosted Panel) */
        .profile-metrics-bar {
            position: relative;
            background: rgba(18, 22, 34, 0.7);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 18px 20px 14px 20px;
            margin-top: 14px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        }

        .profile-metrics-panel {
            position: relative;
        }

        .profile-metrics-badge {
            position: absolute;
            top: -11px;
            left: 18px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 1px 10px;
            background: #0f141d;
            border-radius: 3px;
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            z-index: 2;
            line-height: 18px;
        }

        .profile-metrics-badge.badge-s2 {
            border: 1px solid rgba(224, 171, 46, 0.7);
            color: #E0AB2E;
            box-shadow: 0 0 12px rgba(224, 171, 46, 0.25);
        }

        .profile-metrics-badge.badge-s1 {
            border: 1px solid rgba(100, 196, 244, 0.6);
            color: #64c4f4;
            box-shadow: 0 0 12px rgba(100, 196, 244, 0.2);
        }

        .profile-metrics-badge .badge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 0 6px currentColor;
            display: inline-block;
        }

        .profile-metrics-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 0 16px;
            flex: 0 0 auto;
        }

        .profile-metrics-action .profile-update-btn {
            padding: 6px 18px;
            font-size: 13px;
        }

        .profile-metrics-action .profile-not-in-game-note {
            margin-top: 0;
            font-size: 11px;
            white-space: nowrap;
        }

        .profile-metrics-stats {
            display: flex;
            gap: 24px;
            align-items: center;
        }

        .profile-metric-stat {
            text-align: center;
        }

        .profile-metric-stat .stat-label {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            color: #8c9ba5;
            font-weight: 700;
            margin-bottom: 4px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .profile-metric-stat .stat-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 17px;
            font-weight: 800;
            line-height: 1;
        }

        .profile-metric-stat .level-value {
            font-size: 18px;
            color: #fff;
        }

        .profile-metric-stat .money-value {
            color: #38ef7d;
            text-shadow: 0 0 12px rgba(56, 239, 125, 0.25);
        }

        .profile-metric-stat .gold-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
            justify-content: center;
        }

        .profile-metric-stat .gold-icon {
            width: 18px;
            height: 18px;
            filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.4));
        }

        .profile-metric-stat .gold-value {
            color: #ffb300;
            text-shadow: 0 0 12px rgba(255, 179, 0, 0.25);
        }

        .profile-classes-grid {
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .profile-class-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 66px;
            text-align: center;
        }

        .profile-class-ring {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .profile-class-inner {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #0f131c;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-class-inner .class-icon-img {
            width: 22px;
            height: 22px;
            object-fit: contain;
        }

        .profile-class-inner .class-fallback-initial {
            font-family: 'Rajdhani', sans-serif;
            font-size: 16px;
            font-weight: 800;
        }

        .profile-class-lvl {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 800;
            margin-top: 5px;
            line-height: 1.1;
        }

        .profile-class-name {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            color: #8c9ba5;
            font-weight: 700;
            letter-spacing: 0.8px;
            margin-top: 3px;
            line-height: 1.1;
            text-transform: uppercase;
            text-align: center;
            white-space: nowrap;
        }

        /* Section Header Title (Matching factions.php) */
        .section-header-title {
            font-family: 'Rajdhani', sans-serif;
            font-size: 17px;
            font-weight: 800;
            letter-spacing: 1px;
            color: #ffffff;
            text-transform: uppercase;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-header-title::before {
            content: '//';
            color: var(--gold);
            font-weight: 800;
        }

        /* 12-Stat KPI Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-bottom: 22px;
        }

        .stat-card {
            background: rgba(14, 18, 28, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 0 !important;
            padding: 13px 15px;
            text-align: left;
            position: relative;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        }

        .stat-card:hover {
            border-color: rgba(255, 255, 255, 0.18);
            background: rgba(18, 22, 34, 0.55);
        }

        .stat-card .label {
            font-family: 'Rajdhani', sans-serif;
            color: #8c9ba5;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 6px;
            letter-spacing: 0.8px;
            padding: 0;
            line-height: 1.2;
            text-transform: uppercase;
            padding-right: 45px;
        }

        .stat-card .value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 20px !important;
            font-weight: 800;
            color: #ffffff;
            line-height: 1.1;
        }

        .global-rank-badge {
            position: absolute;
            top: 9px;
            right: 9px;
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.6px;
            background: rgba(10, 14, 24, 0.88);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 0;
            padding: 2px 7px;
            text-decoration: none;
            transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
            line-height: 1.2;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        }

        .global-rank-badge:hover {
            background: rgba(255, 255, 255, 0.12) !important;
            border-color: rgba(255, 179, 0, 0.5);
            transform: translateY(-1px) scale(1.06);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 179, 0, 0.2);
        }

        /* Timeframe Leaderboard Positions Panel */
        .ranks-panel {
            margin-bottom: 22px;
            background: rgba(18, 22, 34, 0.7);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        }

        .ranks-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }

        /* Filter buttons - STRICTLY border-radius: 4px; */
        .rank-filters {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .time-toggle-btn {
            font-family: 'Rajdhani', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #8c9ba5;
            background: rgba(18, 24, 36, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 4px;
            padding: 5px 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            outline: none;
        }

        .time-toggle-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .time-toggle-btn.active {
            color: #0b0e14;
            background: var(--gold);
            font-weight: 800;
            border-color: var(--gold);
            border-radius: 4px;
            box-shadow: 0 0 12px rgba(255, 179, 0, 0.4);
        }

        .ranks-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .rank-badge {
            position: relative;
            overflow: hidden;
            text-decoration: none;
            background: rgba(14, 18, 28, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 4px;
            padding: 10px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s ease;
        }

        .rank-badge:hover {
            border-color: rgba(255, 179, 0, 0.35);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
        }

        .rank-badge-info {
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 2;
        }

        .rank-badge-title {
            color: #8c9ba5;
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .rank-badge-val {
            color: #ffffff;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            font-size: 12px;
            margin-top: 3px;
        }

        .rank-badge-num {
            font-family: 'Rajdhani', sans-serif;
            font-weight: 800;
            font-size: 16px;
            position: relative;
            z-index: 2;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
            line-height: 1;
        }

        /* Middle Section: Chart & Faction Loyalty */
        .middle-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 18px;
            margin-bottom: 22px;
        }

        .chart-container, .faction-stats {
            background: rgba(14, 18, 28, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 0 !important;
            padding: 22px 24px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        }

        .chart-container.full-width {
            margin-bottom: 22px;
            width: 100%;
            box-sizing: border-box;
        }

        .chart-container .section-header-title,
        .faction-stats .section-header-title {
            margin-bottom: 0;
        }

        .panel-sub {
            font-size: 12px;
            color: #79869a;
            margin-top: 3px;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .chart-header-badges {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .panel-badge {
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.8px;
            padding: 4px 10px;
            border-radius: 0 !important;
            line-height: 1.2;
        }

        .badge-gold {
            color: #ffd700;
            background: rgba(255, 179, 0, 0.08);
            border: 1px solid rgba(255, 179, 0, 0.3);
            box-shadow: 0 0 10px rgba(255, 179, 0, 0.15);
        }

        .badge-green {
            color: #38ef7d;
            background: rgba(56, 239, 125, 0.08);
            border: 1px solid rgba(56, 239, 125, 0.3);
            box-shadow: 0 0 10px rgba(56, 239, 125, 0.15);
        }

        .faction-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .faction-row:last-child {
            border-bottom: none;
            padding-bottom: 4px;
        }

        .faction-row-left {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .faction-meta-sub {
            font-size: 11px;
            color: #79869a;
            font-weight: 600;
        }

        .faction-profit-val {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 800;
            font-size: 16px;
        }

        /* Detailed 1-Row Faction Loyalty Infographics Section */
        .faction-loyalty-section {
            background: rgba(18, 22, 34, 0.7);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
            margin-bottom: 22px;
        }

        .faction-loyalty-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .fl-header-subtitle {
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.8px;
            color: #79869a;
            text-transform: uppercase;
        }

        .faction-cards-grid {
            display: grid;
            gap: 16px;
        }

        .faction-loyalty-card {
            background: rgba(14, 18, 28, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: all 0.2s ease;
            position: relative;
        }

        .faction-loyalty-card:hover {
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }

        .faction-loyalty-card.lonestar {
            border-top: 3px solid var(--lonestar);
        }
        .faction-loyalty-card.valkyra {
            border-top: 3px solid var(--valkyra);
        }
        .faction-loyalty-card.manticore {
            border-top: 3px solid var(--manticore);
        }

        .faction-loyalty-card.is-primary {
            background: linear-gradient(180deg, rgba(255, 179, 0, 0.04) 0%, rgba(14, 18, 28, 0.75) 100%);
            box-shadow: 0 4px 20px rgba(255, 179, 0, 0.08);
        }

        .fl-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .fl-badge-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fl-primary-pill {
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 800;
            color: var(--gold);
            background: rgba(255, 179, 0, 0.12);
            border: 1px solid rgba(255, 179, 0, 0.35);
            border-radius: 4px;
            padding: 2px 7px;
            letter-spacing: 0.5px;
            box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
        }

        .fl-rank-pill {
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: #79869a;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            padding: 2px 7px;
            letter-spacing: 0.5px;
        }

        .fl-metric-block {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .fl-metric-label-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 11px;
        }

        .fl-metric-title-group {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .fl-metric-rank-badge {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            font-weight: 800;
            padding: 1px 5px;
            border-radius: 3px;
            letter-spacing: 0.3px;
            line-height: 12px;
            display: inline-flex;
            align-items: center;
        }

        .fl-metric-rank-badge.rank-gold {
            background: rgba(255, 215, 0, 0.2);
            border: 1px solid #ffd700;
            color: #ffd700;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
        }

        .fl-metric-rank-badge.rank-amber {
            background: rgba(255, 179, 0, 0.12);
            border: 1px solid rgba(255, 179, 0, 0.4);
            color: #ffb300;
        }

        .fl-metric-rank-badge.rank-muted {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #8c9ba5;
        }

        .fl-metric-name {
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            color: #8c9ba5;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .fl-metric-val {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            font-size: 12px;
            color: #ffffff;
        }

        .fl-pct {
            color: #79869a;
            font-size: 11px;
        }

        .fl-bar-track {
            height: 7px;
            background: rgba(0, 0, 0, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 0 !important;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
        }

        .fl-bar-fill {
            height: 100%;
            border-radius: 0 !important;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        /* Повністю біліша верхня половина (суцільний білий колір, не градієнт) без округлення */
        .fl-bar-fill::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: rgba(255, 255, 255, 0.22);
            border-radius: 0 !important;
            pointer-events: none;
        }

        .fl-bar-fill-deployment { background: linear-gradient(90deg, #6c757d 0%, #c4a458 50%, #ffd700 100%); box-shadow: 0 0 10px rgba(212, 175, 55, 0.35); }
        .faction-fill-lonestar { background: linear-gradient(90deg, rgba(100, 196, 244, 0.5), #64c4f4); box-shadow: 0 0 10px rgba(100, 196, 244, 0.4); }
        .faction-fill-valkyra { background: linear-gradient(90deg, rgba(199, 61, 61, 0.5), #c73d3d); box-shadow: 0 0 10px rgba(199, 61, 61, 0.4); }
        .faction-fill-manticore { background: linear-gradient(90deg, rgba(8, 162, 14, 0.5), #08a20e); box-shadow: 0 0 10px rgba(8, 162, 14, 0.4); }

        .fill-success { background: linear-gradient(90deg, rgba(56, 239, 125, 0.6), #38ef7d); box-shadow: 0 0 10px rgba(56, 239, 125, 0.3); }
        .fill-danger { background: linear-gradient(90deg, rgba(255, 82, 82, 0.6), #ff5252); box-shadow: 0 0 10px rgba(255, 82, 82, 0.3); }

        /* Waiting / Standby Empty State Styles */
        .tracker-waiting-banner {
            display: flex;
            align-items: center;
            gap: 20px;
            background: linear-gradient(135deg, rgba(255, 179, 0, 0.08) 0%, rgba(14, 18, 28, 0.8) 100%);
            border: 1px solid rgba(255, 179, 0, 0.3);
            border-radius: 6px;
            padding: 16px 20px;
            margin-bottom: 22px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 179, 0, 0.05);
            backdrop-filter: blur(12px);
        }

        .tw-radar-wrap {
            position: relative;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255, 179, 0, 0.06);
            border: 1px solid rgba(255, 179, 0, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 0 15px rgba(255, 179, 0, 0.2);
        }

        .tw-radar-spinner {
            width: 28px;
            height: 28px;
            border: 2px solid rgba(255, 179, 0, 0.2);
            border-top: 2px solid var(--gold);
            border-radius: 50%;
            animation: radarSpin 1.4s linear infinite;
        }

        .tw-radar-blip {
            position: absolute;
            width: 6px;
            height: 6px;
            background: #ffb300;
            border-radius: 50%;
            box-shadow: 0 0 8px #ffb300;
            animation: radarPulse 1.8s ease-in-out infinite;
        }

        .tw-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .tw-badge {
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 1px;
            color: var(--gold);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-transform: uppercase;
        }

        .tw-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #38ef7d;
            box-shadow: 0 0 8px #38ef7d;
            animation: radarPulse 1.5s infinite;
        }

        .tw-title {
            font-family: 'Rajdhani', sans-serif;
            font-size: 16px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 0.8px;
        }

        .tw-desc {
            font-size: 13px;
            color: #8c9ba5;
            line-height: 1.4;
        }

        .hero-standby-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 179, 0, 0.1);
            border: 1px solid rgba(255, 179, 0, 0.35);
            border-radius: 4px;
            padding: 6px 14px;
            color: var(--gold);
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            box-shadow: 0 0 15px rgba(255, 179, 0, 0.15);
        }

        .standby-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 179, 0, 0.3);
            border-top: 2px solid var(--gold);
            border-radius: 50%;
            animation: radarSpin 1.2s linear infinite;
            display: inline-block;
        }

        .value-waiting {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #79869a !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            letter-spacing: 0.5px;
        }

        .waiting-spinner-mini {
            width: 10px;
            height: 10px;
            border: 1.5px solid rgba(121, 134, 154, 0.3);
            border-top: 1.5px solid var(--gold);
            border-radius: 50%;
            animation: radarSpin 1.2s linear infinite;
            display: inline-block;
        }

        .chart-empty-standby, .table-empty-standby, .fl-empty-standby {
            background: rgba(14, 18, 28, 0.5);
            border: 1px dashed rgba(255, 255, 255, 0.12);
            border-radius: 6px;
            padding: 35px 20px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .chart-empty-standby {
            min-height: 200px;
        }

        .chart-standby-title, .table-standby-title, .fl-standby-title {
            font-family: 'Rajdhani', sans-serif;
            font-size: 15px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .chart-standby-sub, .table-standby-sub, .fl-standby-sub {
            font-size: 12px;
            color: #79869a;
            max-width: 480px;
            line-height: 1.4;
        }

        .fl-syndicate-previews {
            display: flex;
            gap: 12px;
            margin-bottom: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .fl-preview-pill {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 4px;
            padding: 6px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
        }

        .fl-preview-status {
            color: #38ef7d;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .fl-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #38ef7d;
            box-shadow: 0 0 6px #38ef7d;
            animation: radarPulse 1.5s infinite;
        }

        .fl-standby-spinner {
            width: 24px;
            height: 24px;
            border: 2px solid rgba(255, 179, 0, 0.2);
            border-top: 2px solid var(--gold);
            border-radius: 50%;
            animation: radarSpin 1.2s linear infinite;
        }

        @keyframes radarSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes radarPulse {
            0%, 100% { opacity: 0.4; transform: scale(0.9); }
            50% { opacity: 1; transform: scale(1.1); }
        }

        .fl-stat-boxes {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 4px;
        }

        .fl-stat-box {
            background: rgba(10, 14, 22, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .fl-box-label {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            font-weight: 700;
            color: #79869a;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .fl-box-val {
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.1;
        }

        /* Faction Pill Badges */
        .faction {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 8px;
            border-radius: 4px;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 800;
            font-size: 12px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            width: fit-content;
        }

        .faction.lonestar {
            background: rgba(100, 196, 244, 0.15);
            color: var(--lonestar);
            border: 1px solid rgba(100, 196, 244, 0.35);
            box-shadow: 0 0 10px rgba(100, 196, 244, 0.15);
        }

        .faction.valkyra {
            background: rgba(199, 61, 61, 0.15);
            color: var(--valkyra);
            border: 1px solid rgba(199, 61, 61, 0.35);
            box-shadow: 0 0 10px rgba(199, 61, 61, 0.15);
        }

        .faction.manticore {
            background: rgba(8, 162, 14, 0.15);
            color: var(--manticore);
            border: 1px solid rgba(8, 162, 14, 0.35);
            box-shadow: 0 0 10px rgba(8, 162, 14, 0.15);
        }

        /* Recent Operations Table */
        .recent-table-wrapper {
            background: rgba(18, 22, 34, 0.7);
            border: 1px solid var(--panel-border);
            border-radius: 4px;
            padding: 20px;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
            margin-bottom: 10px;
        }

        .recent-table-wrapper .section-header-title {
            margin-bottom: 16px;
        }

        .table-container {
            width: 100%;
            overflow-x: auto;
        }

        .table-container table {
            width: 100%;
            border-collapse: collapse;
        }

        .table-container th {
            font-family: 'Rajdhani', sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #79869a;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            text-align: left;
        }

        .table-container th.val-col {
            text-align: right;
        }

        .table-container th.faction-col {
            text-align: left;
        }

        .table-container td {
            padding: 12px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            font-size: 13px;
        }

        .table-container td.val-cell {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            text-align: right;
        }

        .table-container td.faction-cell {
            text-align: left;
        }

        .expandable-row {
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .expandable-row:hover {
            background-color: rgba(255, 255, 255, 0.04) !important;
        }

        .expand-icon {
            display: inline-block;
            font-size: 10px;
            margin-right: 8px;
            color: #8c9ba5;
            transition: transform 0.2s ease, color 0.2s ease;
        }

        .btn-gold {
            background: var(--gold);
            color: #0b0e14;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 800;
            font-size: 13px;
            letter-spacing: 1px;
            text-transform: uppercase;
            border: none;
            border-radius: 4px;
            padding: 8px 20px;
            cursor: pointer;
            box-shadow: 0 0 16px rgba(255, 179, 0, 0.35);
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }

        .btn-gold:hover {
            background: #ffc233;
            box-shadow: 0 0 22px rgba(255, 179, 0, 0.55);
            transform: translateY(-1px);
        }

        /* Mobile Responsiveness */
        @media (max-width: 900px) {
            .middle-section {
                grid-template-columns: 1fr;
            }
            .faction-cards-grid {
                grid-template-columns: 1fr !important;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .ranks-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .profile-metrics-bar {
                flex-direction: column;
                align-items: stretch;
                padding: 16px 14px;
                gap: 16px;
            }
            .profile-metrics-stats {
                justify-content: space-around;
                width: 100%;
                gap: 15px;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                padding-bottom: 14px;
            }
            .profile-metrics-action {
                width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 2px 0 14px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                gap: 6px;
            }
            .profile-metrics-action .profile-update-btn {
                width: 100%;
                max-width: 280px;
                justify-content: center;
                padding: 9px 16px;
                font-size: 13.5px;
            }
            .profile-metrics-action .profile-not-in-game-note {
                font-size: 11.5px;
                text-align: center;
                justify-content: center;
                white-space: normal;
            }
            .profile-classes-grid {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 16px 8px !important;
                width: 100% !important;
                justify-items: center;
            }
            .profile-class-item {
                width: 100% !important;
                max-width: 110px;
            }
            .hero-card {
                flex-direction: column;
                text-align: center;
                gap: 18px;
            }
            .hero-left-wrapper {
                flex-direction: column;
                justify-content: center;
            }
            .hero-info h1 {
                justify-content: center;
            }
            .hero-profit {
                text-align: center !important;
                margin-top: 10px;
            }
            .hero-profit-meta {
                justify-content: center;
            }
            .hero-info .steamid {
                justify-content: center;
            }
        }

        @media (max-width: 600px) {
            .profile-container {
                padding: 0 10px;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }
            .stat-card {
                padding: 10px 10px !important;
                position: relative !important;
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                min-height: 62px;
            }
            .stat-card .label {
                padding-right: 32px !important;
                font-size: 10px !important;
                letter-spacing: 0.5px !important;
                line-height: 1.2 !important;
                margin-bottom: 4px !important;
                white-space: normal;
            }
            .stat-card .value {
                font-size: 16px !important;
                line-height: 1.1 !important;
            }
            .global-rank-badge {
                position: absolute !important;
                top: 7px !important;
                right: 7px !important;
                margin: 0 !important;
                padding: 1px 5px !important;
                font-size: 10px !important;
            }
            .ranks-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }
            .lifetime-profit {
                font-size: 24px;
            }
        }

        /* Time Analytics Section & Calendar */
        .time-analytics-section {
            margin-bottom: 25px;
        }

        .time-analytics-header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
        }

        .time-metric-switcher {
            display: inline-flex;
            gap: 6px;
            align-items: center;
        }

        .time-switch-btn {
            font-family: 'Rajdhani', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1px;
            color: #8c9ba5;
            background: rgba(18, 24, 36, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 4px;
            padding: 5px 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-transform: uppercase;
            line-height: 1.2;
            outline: none;
            white-space: nowrap;
        }

        .time-switch-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .time-switch-btn.active {
            color: #0b0e14;
            background: var(--gold);
            font-weight: 800;
            border-color: var(--gold);
            border-radius: 4px;
            box-shadow: 0 0 14px rgba(255, 179, 0, 0.45);
        }

        .user-tz-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #ffb300;
            background: rgba(255, 179, 0, 0.08);
            border: 1px solid rgba(255, 179, 0, 0.25);
            padding: 6px 14px;
            border-radius: 0 !important;
        }

        .tz-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #ffb300;
            box-shadow: 0 0 8px #ffb300;
            display: inline-block;
        }

        .time-charts-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
            gap: 16px;
            margin-bottom: 22px;
        }

        .time-chart-card {
            background: rgba(14, 18, 28, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: 2px solid rgba(255, 179, 0, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 0 !important;
            padding: 16px 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .time-chart-card.calendar-card {
            width: max-content;
            max-width: 100%;
            box-sizing: border-box;
        }

        .time-card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .time-card-title {
            font-family: 'Rajdhani', sans-serif;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.8px;
            color: #ffffff;
            text-transform: uppercase;
        }

        .time-card-sub {
            font-size: 11px;
            color: #8c9ba5;
            margin-top: 2px;
        }

        .time-metric-pill {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 7px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #ffb300;
            border-radius: 0;
            white-space: nowrap;
        }

        .time-canvas-wrap {
            height: 195px;
            position: relative;
            width: 100%;
        }

        /* Mini 35-Day Calendar Card */
        .cal-mini-legend {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cal-legend-dot {
            width: 8px;
            height: 8px;
            display: inline-block;
            border-radius: 0;
        }
        .cal-legend-dot.dot-gain { background: #38ef7d; box-shadow: 0 0 6px rgba(56, 239, 125, 0.5); }
        .cal-legend-dot.dot-loss { background: #ff5252; box-shadow: 0 0 6px rgba(255, 82, 82, 0.5); }
        .cal-legend-dot.dot-idle { background: rgba(255, 255, 255, 0.15); }

        .cal-mini-table-wrap {
            width: 100%;
        }

        .cal-mini-weekdays-row {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 4px;
            text-align: center;
        }

        .cal-mini-weekdays-row div {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: #717d96;
            padding: 2px 0;
        }

        .cal-mini-days-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .cal-mini-cell {
            height: 42px;
            padding: 3px 5px;
            box-sizing: border-box;
            border-radius: 0 !important;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
            position: relative;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(255, 255, 255, 0.02);
            min-width: 48px;
        }

        .cal-mini-cell:hover {
            transform: scale(1.06);
            z-index: 5;
            box-shadow: 0 0 10px rgba(255, 179, 0, 0.35);
        }

        .cal-mini-cell.is-future {
            opacity: 0.15;
            pointer-events: none;
            background: rgba(255, 255, 255, 0.01);
            border: 1px dashed rgba(255, 255, 255, 0.04);
        }

        .cal-mini-cell.is-today {
            outline: 1px solid #ffb300;
            outline-offset: -1px;
        }

        .cal-mini-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            line-height: 1;
        }

        .cal-mini-date {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 700;
            color: #a0aec0;
        }

        .cal-mini-raids {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            font-weight: 800;
            color: #ffffff;
            text-transform: lowercase;
        }

        .cal-mini-weeks-header {
            display: none;
        }

        .cal-day-label {
            display: none;
        }

        .cal-mini-profit {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: -0.2px;
            line-height: 1;
            text-align: right;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 1100px) {
            .time-charts-grid {
                grid-template-columns: 1fr;
            }
            .time-chart-card.calendar-card {
                width: 100%;
            }
        }

        @media (max-width: 650px) {
            .time-analytics-section {
                width: 100%;
                overflow: hidden;
            }
            .time-chart-card {
                padding: 12px 10px;
                box-sizing: border-box;
            }
            .cal-mini-weekdays-row {
                display: none;
            }
            .cal-mini-weeks-header {
                display: grid;
                grid-template-columns: repeat(4, 1fr);
                gap: 4px;
                text-align: center;
                margin-bottom: 6px;
            }
            .cal-mini-weeks-header div {
                font-family: 'Rajdhani', sans-serif;
                font-size: 11px;
                font-weight: 700;
                color: #8c9ba5;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            .cal-mini-days-grid {
                grid-template-columns: repeat(4, 1fr);
                grid-template-rows: repeat(7, auto);
                grid-auto-flow: column;
                gap: 4px;
                width: 100%;
                box-sizing: border-box;
            }
            .cal-mini-cell {
                height: 42px;
                padding: 3px 4px;
                box-sizing: border-box;
                min-width: 0;
            }
            .cal-day-label {
                display: inline;
                color: #717d96;
                font-size: 10px;
                margin-right: 2px;
            }
        }
