/* ============================================
   PROFILE PAGE - Modern Design 2025
   Mobile-First Approach
============================================ */

.profile-page {
    min-height: 100vh;
    padding: 80px 16px 40px;
    background: linear-gradient(180deg, 
        #0a0a0a 0%, 
        #121212 50%,
        #0a0a0a 100%
    );
}

.profile-shell {
    max-width: 900px;
    margin: 0 auto;
}

/* Плавное обновление без мигания */
.profile-shell > * {
    transition: opacity 0.2s ease;
}

/* Notice */
.profile-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 140, 66, 0.08);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-notice .refresh-stats-btn {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: inherit;
}

.profile-notice .refresh-stats-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.profile-notice .refresh-stats-btn:active {
    transform: scale(0.95);
}

.profile-notice .refresh-stats-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-notice .refresh-stats-btn.spinning {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notice-icon {
    font-size: 1.1rem;
}

/* Loader */
.profile-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.spinner-loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 140, 66, 0.2);
    border-top-color: #FF8C42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Locked & Error States */
.profile-locked, .profile-error {
    max-width: 420px;
    margin: 40px auto;
    padding: 40px 24px;
    text-align: center;
    background: rgba(255, 140, 66, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.locked-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.profile-locked h2, .profile-error h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #fff;
}

.profile-locked p, .profile-error p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.btn-auth-profile, .btn-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #FF8C42, #FFB347);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3);
}

.btn-auth-profile:active, .btn-retry:active {
    transform: scale(0.96);
}

/* ============================================
   HERO SECTION
============================================ */
.profile-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 140, 66, 0.15);
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 140, 66, 0.1) 0%, 
        transparent 50%,
        rgba(var(--rank-color), 0.05) 100%
    );
    opacity: 0.8;
}

.profile-hero-content {
    position: relative;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Avatar */
.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(255, 140, 66, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.avatar-glow {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: var(--glow-color);
    opacity: 0.15;
    filter: blur(12px);
    z-index: -1;
}

.profile-rank-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Profile Info */
.profile-info {
    text-align: center;
    width: 100%;
}

.profile-nickname {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-uuid {
    margin: 0 0 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

/* Quick Stats */
.profile-quick-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.quick-stat {
    text-align: center;
}

.quick-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FF8C42;
}

.quick-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   TIME CARDS
============================================ */
.profile-times {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.time-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.time-card:active {
    transform: scale(0.98);
}

.time-card.first-join {
    border-left: 3px solid #4CAF50;
}

.time-card.last-seen {
    border-left: 3px solid #2196F3;
}

.time-icon {
    font-size: 1.5rem;
}

.time-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* ============================================
   STATS GRID
============================================ */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    position: relative;
    padding: 20px 16px;
    background: rgba(255, 140, 66, 0.04);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF8C42, #FFB347);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:active {
    transform: scale(0.97);
}

.stat-card:active::before {
    opacity: 1;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.stat-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Stat card variations */
.stat-time .stat-icon { color: #4CAF50; }
.stat-avg .stat-icon { color: #2196F3; }
.stat-kills .stat-icon { color: #FF6D00; }
.stat-deaths .stat-icon { color: #F44336; }
.stat-mobs .stat-icon { color: #9C27B0; }
.stat-sessions .stat-icon { color: #00BCD4; }

/* ============================================
   SECTIONS
============================================ */
.profile-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 18px;
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.section-icon {
    font-size: 1.2rem;
}

/* ============================================
   COMBAT STATS
============================================ */
.combat-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.combat-visual {
    display: flex;
    justify-content: center;
}

.combat-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.combat-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: #FF8C42;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--percent) / 100));
    transition: stroke-dashoffset 1s ease;
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.ring-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.combat-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.combat-bar-item {
    /* Item */
}

.combat-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.combat-bar-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.combat-bar-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.combat-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.combat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* ============================================
   EXTENDED STATS - Beautiful Tiles
============================================ */
.extended-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 500px) {
    .extended-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .extended-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.extended-card {
    position: relative;
    padding: 0;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.9), rgba(20, 20, 25, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.extended-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent);
    opacity: 0.9;
}

.extended-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 60px var(--card-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Card Header */
.extended-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.extended-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--card-accent);
    border-radius: 14px;
    box-shadow: 0 4px 16px var(--card-glow);
}

.extended-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

/* Card Content */
.extended-content {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.extended-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.extended-row:last-child {
    border-bottom: none;
}

.extended-row:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
}

.extended-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.extended-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.extended-unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Card Variations with unique colors */
.extended-card.mining {
    --card-accent: linear-gradient(135deg, #795548, #A1887F);
    --card-glow: rgba(121, 85, 72, 0.3);
}

.extended-card.travel {
    --card-accent: linear-gradient(135deg, #2196F3, #64B5F6);
    --card-glow: rgba(33, 150, 243, 0.3);
}

.extended-card.survival {
    --card-accent: linear-gradient(135deg, #FF5722, #FF8A65);
    --card-glow: rgba(255, 87, 34, 0.3);
}

.extended-card.farming {
    --card-accent: linear-gradient(135deg, #8BC34A, #AED581);
    --card-glow: rgba(139, 195, 74, 0.3);
}

/* Highlight big values */
.extended-value[data-highlight="true"] {
    color: #FF8C42;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.4);
}

/* ============================================
   WEEKLY CHART
============================================ */
.weekly-chart {
    padding: 10px 0;
}

.weekly-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    gap: 8px;
}

.weekly-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.weekly-bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    min-height: 16px;
}

.weekly-bar-track {
    flex: 1;
    width: 100%;
    max-width: 40px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 8px 8px 4px 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.weekly-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #FFB347, #FF8C42);
    border-radius: 8px 8px 0 0;
    transition: height 0.5s ease;
    box-shadow: 0 -4px 12px rgba(255, 140, 66, 0.3);
}

.weekly-bar-label {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.weekly-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
============================================ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TABLET (min-width: 640px)
============================================ */
@media (min-width: 640px) {
    .profile-page {
        padding: 100px 24px 60px;
    }

    .profile-hero-content {
        flex-direction: row;
        padding: 36px 32px;
        gap: 32px;
    }

    .profile-info {
        text-align: left;
    }

    .profile-quick-stats {
        justify-content: flex-start;
    }

    .profile-times {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .combat-stats {
        flex-direction: row;
        align-items: center;
    }

    .combat-visual {
        flex-shrink: 0;
    }

    .combat-bars {
        flex: 1;
    }

    .weekly-bar-value {
        font-size: 0.8rem;
    }

    .weekly-bar-label {
        font-size: 0.85rem;
    }
}

/* ============================================
   DESKTOP (min-width: 900px)
============================================ */
@media (min-width: 900px) {
    .profile-page {
        padding: 120px 40px 80px;
    }

    .profile-shell {
        max-width: 1000px;
    }

    .profile-hero-content {
        padding: 40px;
    }

    .profile-avatar {
        width: 160px;
        height: 160px;
    }

    .profile-avatar img {
        border-radius: 28px;
    }

    .profile-rank-badge {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 140, 66, 0.25);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    .stat-card:hover::before {
        opacity: 1;
    }

    .time-card:hover {
        transform: translateX(4px);
        background: rgba(255, 255, 255, 0.05);
    }

    .profile-section {
        padding: 32px;
    }

    .combat-ring {
        width: 180px;
        height: 180px;
    }

    .ring-value {
        font-size: 2.5rem;
    }

    .weekly-bars {
        height: 200px;
    }

    .weekly-bar-track {
        max-width: 50px;
    }
}

/* ============================================
   DARK MODE ENHANCEMENTS
============================================ */
@media (prefers-color-scheme: dark) {
    .profile-page {
        background: linear-gradient(180deg,
            #000 0%,
            rgba(15, 8, 4, 0.98) 50%,
            #000 100%
        );
    }
}

/* ============================================
   TICKET STATS SECTION
============================================ */
.ticket-stats-section {
    background: linear-gradient(145deg,
        rgba(255, 140, 66, 0.03),
        rgba(255, 140, 66, 0.01)
    );
    border: 1px solid rgba(255, 140, 66, 0.12);
}

.ticket-stats-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ticket-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ticket-stats-grid.player-stats {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .ticket-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ticket-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.ticket-stat-card:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 140, 66, 0.2);
}

.ticket-stat-card.handled {
    border-left: 3px solid #2196F3;
}

.ticket-stat-card.closed {
    border-left: 3px solid #4CAF50;
}

.ticket-stat-card.messages {
    border-left: 3px solid #9C27B0;
}

.ticket-stat-card.rating {
    border-left: 3px solid #FFD600;
}

.ticket-stat-card.total {
    border-left: 3px solid #FF8C42;
}

.ticket-stat-card.open {
    border-left: 3px solid #2196F3;
}

.ticket-stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ticket-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ticket-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.ticket-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-stat-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Star Rating */
.ticket-stat-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.ticket-stat-stars .star {
    font-size: 1rem;
    line-height: 1;
}

.ticket-stat-stars .star.filled {
    color: #FFD600;
    text-shadow: 0 0 8px rgba(255, 214, 0, 0.5);
}

.ticket-stat-stars .star.half {
    color: #FFD600;
    opacity: 0.6;
}

.ticket-stat-stars .star.empty {
    color: rgba(255, 255, 255, 0.2);
}

.ratings-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 4px;
}

/* Rating Distribution Bars */
.rating-bar-section {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating-bar-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar-label {
    width: 40px;
    font-size: 0.85rem;
    color: #FFD600;
    font-weight: 600;
    flex-shrink: 0;
}

.rating-bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD600, #FFC107);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.rating-bar-count {
    width: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    flex-shrink: 0;
}

/* Categories Section */
.ticket-categories-section {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.categories-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.category-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.category-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FF8C42;
    padding: 4px 10px;
    background: rgba(255, 140, 66, 0.15);
    border-radius: 8px;
}

/* Responsive adjustments for ticket stats */
@media (min-width: 640px) {
    .ticket-stat-card {
        padding: 20px;
    }

    .ticket-stat-value {
        font-size: 1.8rem;
    }

    .ticket-stat-label {
        font-size: 0.8rem;
    }
}

@media (min-width: 900px) {
    .ticket-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   NEW PROFILE STYLES - Compatible with profile.js
============================================ */

/* Hero Section - New Structure */
.profile-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 140, 66, 0.15);
}

.profile-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--rank-color) 15%, transparent) 0%, 
        transparent 50%,
        color-mix(in srgb, var(--rank-color) 5%, transparent) 100%
    );
    opacity: 0.8;
}

.profile-hero .hero-content {
    position: relative;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-hero .avatar-container {
    position: relative;
}

.profile-hero .avatar {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(255, 140, 66, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.profile-hero .avatar-glow {
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: var(--rank-glow);
    opacity: 0.5;
    filter: blur(16px);
    z-index: -1;
}

.profile-hero .rank-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background: var(--rank-gradient);
    box-shadow: 0 4px 16px var(--rank-glow);
}

/* Donor Indicator on Avatar */
.profile-hero .donor-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid #1a1a1a;
    z-index: 10;
}

/* Donor Badge */
.donor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.donor-badge .donor-icon {
    font-size: 1.1rem;
}

.donor-badge .donor-name {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-hero .player-info {
    text-align: center;
    width: 100%;
}

.profile-hero .player-name {
    margin: 0 0 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.profile-hero .player-uuid {
    margin: 0 0 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
}

.profile-hero .quick-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.profile-hero .quick-stat {
    text-align: center;
    min-width: 60px;
    max-width: 80px;
}

.profile-hero .quick-stat .value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #FF8C42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-hero .quick-stat .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Time Cards - New Structure */
.time-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .time-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.time-cards .time-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.time-cards .time-card:first-child {
    border-left: 3px solid #4CAF50;
}

.time-cards .time-card:last-child {
    border-left: 3px solid #2196F3;
}

.time-cards .time-card .icon {
    font-size: 1.5rem;
}

.time-cards .time-card .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-cards .time-card .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-cards .time-card .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* Stats Grid - New Structure */
.stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 12px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stats-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
        overflow: visible;
        padding: 0;
    }
}

.stats-grid .stat-card {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 14px 16px;
    background: rgba(255, 140, 66, 0.04);
    border: 1px solid rgba(255, 140, 66, 0.1);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .stats-grid .stat-card {
        min-width: unset;
        padding: 20px 16px;
    }
}

.stats-grid .stat-card .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 6px;
}

.stats-grid .stat-card .header .icon {
    font-size: 1.1rem;
}

.stats-grid .stat-card .header .title {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.stats-grid .stat-card .value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.stats-grid .stat-card .sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.stats-grid .stat-card.time .header .icon { color: #4CAF50; }
.stats-grid .stat-card.avg .header .icon { color: #2196F3; }
.stats-grid .stat-card.kills .header .icon { color: #FF6D00; }
.stats-grid .stat-card.deaths .header .icon { color: #F44336; }
.stats-grid .stat-card.mobs .header .icon { color: #9C27B0; }
.stats-grid .stat-card.sessions .header .icon { color: #00BCD4; }

/* Combat Section - New Structure */
.combat-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 640px) {
    .combat-container {
        flex-direction: row;
        align-items: center;
    }
}

.combat-container .kd-ring {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .combat-container .kd-ring {
        margin: 0;
    }
}

.combat-container .kd-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.combat-container .kd-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.combat-container .kd-ring .ring-fill {
    fill: none;
    stroke: #FF8C42;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--percent) / 100));
    transition: stroke-dashoffset 1s ease;
}

.combat-container .kd-ring .center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.combat-container .kd-ring .center .value {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

.combat-container .kd-ring .center .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.combat-container .combat-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.combat-container .combat-bar {
    /* Bar container */
}

.combat-container .combat-bar .bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.combat-container .combat-bar .bar-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.combat-container .combat-bar .bar-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.combat-container .combat-bar .bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.combat-container .combat-bar .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Extended Stats Grid - New Structure */
.extended-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 500px) {
    .extended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.extended-grid .extended-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.9), rgba(20, 20, 25, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.extended-grid .extended-card .card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.extended-grid .extended-card .card-header .card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(255, 140, 66, 0.2);
    border-radius: 14px;
}

.extended-grid .extended-card .card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.extended-grid .extended-card .rows {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
}

.extended-grid .extended-card .extended-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.extended-grid .extended-card .extended-row:last-child {
    border-bottom: none;
}

.extended-grid .extended-card .extended-row .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.extended-grid .extended-card .extended-row .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.extended-grid .extended-card .extended-row .value .unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 4px;
}

/* Weekly Chart - New Structure */
.weekly-chart .weekly-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    gap: 8px;
}

.weekly-chart .weekly-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.weekly-chart .weekly-bar .bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    min-height: 16px;
}

.weekly-chart .weekly-bar .bar-track {
    flex: 1;
    width: 100%;
    max-width: 40px;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 8px 8px 4px 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.weekly-chart .weekly-bar .bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #FFB347, #FF8C42);
    border-radius: 8px 8px 0 0;
    transition: height 0.5s ease;
    box-shadow: 0 -4px 12px rgba(255, 140, 66, 0.3);
}

.weekly-chart .weekly-bar .bar-label {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.weekly-chart .weekly-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

/* Ticket Section - New Structure */
.ticket-section .ticket-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .ticket-section .ticket-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ticket-section .ticket-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.ticket-section .ticket-stat .icon {
    font-size: 2rem;
}

.ticket-section .ticket-stat .value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.ticket-section .ticket-stat .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.ticket-section .ticket-stat.open {
    border-left: 3px solid #2196F3;
}

.ticket-section .ticket-stat.closed {
    border-left: 3px solid #4CAF50;
}

.ticket-section .ticket-stat.handled {
    border-left: 3px solid #FF8C42;
}

.ticket-section .rating-stars {
    display: flex;
    gap: 2px;
}

.ticket-section .rating-stars .star {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.2);
}

.ticket-section .rating-stars .star.filled {
    color: #FFD600;
    text-shadow: 0 0 8px rgba(255, 214, 0, 0.5);
}

.ticket-section .rating-stars .star.half {
    color: #FFD600;
    opacity: 0.6;
}

.ticket-section .rating-distribution {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    margin-top: 20px;
}

.ticket-section .rating-distribution .title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.ticket-section .rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ticket-section .rating-row:last-child {
    margin-bottom: 0;
}

.ticket-section .rating-row .stars {
    width: 40px;
    font-size: 0.85rem;
    color: #FFD600;
    font-weight: 600;
}

.ticket-section .rating-row .track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.ticket-section .rating-row .fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD600, #FFC107);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.ticket-section .rating-row .count {
    width: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* Section Icon */
.profile-section .section-header .icon {
    font-size: 1.2rem;
}

/* Profile Locked/Error - New Structure */
.profile-locked,
.profile-error {
    max-width: 420px;
    margin: 40px auto;
    padding: 40px 24px;
    text-align: center;
    background: rgba(255, 140, 66, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.profile-locked .icon,
.profile-error .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.profile-locked h2,
.profile-error h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    color: #fff;
}

.profile-locked p,
.profile-error p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.btn-auth,
.btn-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #FF8C42, #FFB347);
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3);
}

.btn-auth:hover,
.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 140, 66, 0.4);
}

.btn-auth:active,
.btn-retry:active {
    transform: scale(0.96);
}

/* Desktop responsive for hero */
@media (min-width: 640px) {
    .profile-hero .hero-content {
        flex-direction: row;
        padding: 36px 32px;
        gap: 32px;
    }

    .profile-hero .player-info {
        text-align: left;
    }

    .profile-hero .quick-stats {
        justify-content: flex-start;
    }
}

@media (min-width: 900px) {
    .profile-hero .hero-content {
        padding: 40px;
    }

    .profile-hero .avatar {
        width: 160px;
        height: 160px;
        border-radius: 28px;
    }

    .profile-hero .rank-badge {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .combat-container .kd-ring {
        width: 180px;
        height: 180px;
    }

    .combat-container .kd-ring .center .value {
        font-size: 2.5rem;
    }

    .weekly-chart .weekly-bars {
        height: 200px;
    }

    .weekly-chart .weekly-bar .bar-track {
        max-width: 50px;
    }
}

/* ============================================
   MOBILE IMPROVEMENTS (max-width: 480px)
============================================ */
@media (max-width: 480px) {
    .profile-page {
        padding: 70px 12px 30px;
    }

    .profile-notice {
        padding: 12px 14px;
        font-size: 0.8rem;
        gap: 8px;
        border-radius: 12px;
    }

    .profile-hero {
        border-radius: 18px;
        margin-bottom: 16px;
    }

    .profile-hero .hero-content {
        padding: 20px 16px;
        gap: 16px;
    }

    .profile-hero .avatar {
        width: 90px;
        height: 90px;
        border-radius: 18px;
    }

    .profile-hero .rank-badge {
        padding: 5px 12px;
        font-size: 0.65rem;
    }

    .profile-hero .player-name {
        font-size: 1.4rem;
    }

    .profile-hero .player-uuid {
        font-size: 0.7rem;
    }

    .profile-hero .quick-stats {
        gap: 12px;
        padding: 10px;
    }

    .profile-hero .quick-stat {
        min-width: 50px;
        max-width: 65px;
    }

    .profile-hero .quick-stat .value {
        font-size: 0.95rem;
    }

    .profile-hero .quick-stat .label {
        font-size: 0.55rem;
    }

    .time-cards {
        gap: 10px;
    }

    .time-card {
        padding: 12px;
        border-radius: 12px;
        gap: 10px;
    }

    .time-card .icon {
        font-size: 1.3rem;
    }

    .time-card .label {
        font-size: 0.7rem;
    }

    .time-card .value {
        font-size: 0.8rem;
    }

    .profile-section {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    .combat-container .kd-ring {
        width: 110px;
        height: 110px;
    }

    .combat-container .kd-ring .center .value {
        font-size: 1.4rem;
    }

    .combat-container .kd-ring .center .label {
        font-size: 0.65rem;
    }

    .combat-bar .bar-label,
    .combat-bar .bar-value {
        font-size: 0.75rem;
    }

    .extended-row {
        padding: 10px 12px;
    }

    .extended-row .label {
        font-size: 0.8rem;
    }

    .extended-row .value {
        font-size: 0.85rem;
    }

    .weekly-chart .weekly-bars {
        height: 100px;
        gap: 4px;
    }

    .weekly-chart .weekly-bar .day {
        font-size: 0.65rem;
    }

    .weekly-chart .weekly-bar .hours {
        font-size: 0.6rem;
    }

    /* Donor badge mobile */
    .donor-badge {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .donor-indicator {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .profile-page {
        padding: 65px 10px 24px;
    }

    .profile-hero .avatar {
        width: 80px;
        height: 80px;
    }

    .profile-hero .quick-stats {
        gap: 12px;
        padding: 12px;
    }

    .profile-hero .quick-stat {
        min-width: 45px;
        max-width: 60px;
    }

    .profile-hero .quick-stat .value {
        font-size: 0.85rem;
    }

    .profile-hero .quick-stat .label {
        font-size: 0.55rem;
    }

    .stats-grid {
        gap: 8px;
    }

    .stats-grid .stat-card {
        padding: 12px 8px;
    }

    .stats-grid .stat-card .value {
        font-size: 1rem;
    }

    .combat-container .kd-ring {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   POLITMINE CLICKER - Advanced Idle Game v2.0
   With shaders, animations and Minecraft vibes
============================================ */
.minigame-section {
    background: linear-gradient(135deg, 
        rgba(26, 10, 46, 0.9) 0%, 
        rgba(15, 5, 25, 0.95) 50%,
        rgba(26, 10, 46, 0.9) 100%
    );
    border: 2px solid rgba(138, 43, 226, 0.4);
    overflow: hidden;
    position: relative;
}

.minigame-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.clicker-game {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px;
    position: relative;
}

/* ===== Stats Panel - Premium Look ===== */
.clicker-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.3) 100%
    );
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.clicker-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.clicker-stat .stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.clicker-stat.diamonds .stat-icon {
    color: #00D4FF;
    animation: diamondPulse 2s ease-in-out infinite;
}

.clicker-stat.dps .stat-icon {
    color: #FFD700;
}

.clicker-stat.clicks .stat-icon {
    color: #FF8C42;
}

@keyframes diamondPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.9)); }
}

.clicker-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.clicker-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    /* Smooth number transitions - no flickering */
    min-width: 3ch;
    transition: transform 0.1s ease;
}

.clicker-stat.diamonds .stat-value {
    background: linear-gradient(180deg, #00D4FF 0%, #0099CC 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.clicker-stat.dps .stat-value {
    background: linear-gradient(180deg, #FFD700 0%, #CC9900 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.clicker-stat .stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Power indicator pulse animation */
.click-power {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(30, 30, 30, 0.9) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: #FFD700;
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-minecraft, 'Press Start 2P', monospace);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.click-power.pulse {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Upgrade just bought animation */
.upgrade-item.just-bought {
    animation: upgradeBought 0.3s ease;
}

@keyframes upgradeBought {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: rgba(76, 175, 80, 0.3); }
    100% { transform: scale(1); }
}

/* ===== Click Area - Epic Shader Effect ===== */
.clicker-area {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, rgba(138, 43, 226, 0.3) 0%, transparent 60%),
        linear-gradient(180deg, 
            rgba(26, 10, 46, 0.9) 0%, 
            rgba(45, 27, 78, 0.7) 30%,
            rgba(60, 40, 100, 0.6) 50%,
            rgba(45, 27, 78, 0.7) 70%,
            rgba(26, 10, 46, 0.9) 100%
        );
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 
        0 0 40px rgba(138, 43, 226, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Animated background grid */
.clicker-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Floating particles in background */
.clicker-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(138, 43, 226, 0.5), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(255, 215, 0, 0.5), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(138, 43, 226, 0.5), transparent),
        radial-gradient(2px 2px at 70% 20%, rgba(255, 215, 0, 0.5), transparent);
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.clicker-area:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
}

.clicker-area:active {
    transform: scale(0.98);
}

.clicker-area:active .clicker-ore {
    transform: scale(0.85) rotate(-5deg);
}

/* ===== Ore Block - 3D Minecraft Style ===== */
.clicker-ore {
    position: relative;
    z-index: 2;
    transition: transform 0.1s ease;
    perspective: 500px;
}

.clicker-ore.clicked {
    animation: oreHit 0.15s ease;
}

@keyframes oreHit {
    0% { transform: scale(1) rotate(0) translateY(0); }
    30% { transform: scale(0.8) rotate(-8deg) translateY(5px); }
    60% { transform: scale(1.1) rotate(3deg) translateY(-5px); }
    100% { transform: scale(1) rotate(0) translateY(0); }
}

.ore-emoji {
    font-size: 6rem;
    display: block;
    filter: 
        drop-shadow(0 0 20px rgba(0, 212, 255, 0.8))
        drop-shadow(0 0 40px rgba(0, 212, 255, 0.4))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
    animation: oreFloat 3s ease-in-out infinite;
}

@keyframes oreFloat {
    0%, 100% { transform: translateY(0) rotateY(0); }
    25% { transform: translateY(-8px) rotateY(5deg); }
    75% { transform: translateY(4px) rotateY(-5deg); }
}

.ore-glow {
    position: absolute;
    inset: -80px;
    background: radial-gradient(circle, 
        rgba(0, 212, 255, 0.4) 0%, 
        rgba(138, 43, 226, 0.2) 40%,
        transparent 70%
    );
    animation: oreGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes oreGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ===== Particles ===== */
.click-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.click-particle {
    position: absolute;
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--font-minecraft, 'Press Start 2P', monospace);
    animation: particleFloat 1s ease-out forwards;
    text-shadow: 
        0 0 10px currentColor,
        0 2px 8px rgba(0, 0, 0, 0.8);
    top: 50%;
    white-space: nowrap;
}

.click-particle.particle-combo {
    font-size: 1.6rem;
    animation: particleCombo 1s ease-out forwards;
}

.click-particle.particle-upgrade {
    font-size: 2.5rem;
    animation: particleUpgrade 1.2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) translateX(var(--float-x, 0px)) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(var(--float-x, 0px)) scale(0.9);
    }
}

@keyframes particleCombo {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-60px) scale(1.3) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(1) rotate(0);
    }
}

@keyframes particleUpgrade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    30% {
        transform: translateY(-20px) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1);
    }
}

/* ===== Upgrades Panel - Premium Cards ===== */
.clicker-upgrades {
    margin-top: 20px;
}

.upgrades-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #FF8C42;
    margin-bottom: 14px;
    padding-left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.upgrades-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.upgrades-list::-webkit-scrollbar {
    width: 6px;
}

.upgrades-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.upgrades-list::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 66, 0.4);
    border-radius: 3px;
}

.upgrade-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(20, 10, 30, 0.6) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.5;
    position: relative;
    overflow: hidden;
}

.upgrade-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF8C42, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.upgrade-item.type-click::before {
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
}

.upgrade-item.type-passive::before {
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

.upgrade-item.affordable {
    opacity: 1;
    border-color: rgba(255, 140, 66, 0.25);
}

.upgrade-item.affordable::before {
    opacity: 1;
}

.upgrade-item.affordable:hover {
    background: linear-gradient(135deg, 
        rgba(255, 140, 66, 0.15) 0%, 
        rgba(30, 20, 40, 0.8) 100%
    );
    border-color: rgba(255, 140, 66, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 140, 66, 0.2);
}

.upgrade-item.affordable:active {
    transform: translateY(0) scale(0.98);
}

.upgrade-icon {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    flex-shrink: 0;
}

.upgrade-info {
    flex: 1;
    min-width: 0;
}

.upgrade-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upgrade-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.type-click .upgrade-desc {
    color: rgba(0, 212, 255, 0.7);
}

.type-passive .upgrade-desc {
    color: rgba(255, 215, 0, 0.7);
}

.upgrade-right {
    text-align: right;
    flex-shrink: 0;
}

.upgrade-cost {
    font-size: 0.8rem;
    font-weight: 800;
    color: #00D4FF;
    white-space: nowrap;
}

.upgrade-cost.expensive {
    color: #ff6b6b;
}

.upgrade-count {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* ===== Leaderboard - Glass Morphism ===== */
.clicker-leaderboard {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(20, 10, 30, 0.6) 100%
    );
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FF8C42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.leaderboard-loading,
.leaderboard-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 24px;
    font-size: 0.9rem;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.leaderboard-row.you {
    background: linear-gradient(135deg, 
        rgba(255, 140, 66, 0.2) 0%, 
        rgba(255, 140, 66, 0.1) 100%
    );
    border: 1px solid rgba(255, 140, 66, 0.4);
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.1);
}

.lb-rank {
    width: 32px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.lb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-score {
    font-size: 0.85rem;
    font-weight: 800;
    color: #00D4FF;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.leaderboard-you {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .clicker-game {
        grid-template-columns: 1fr;
    }
    
    .clicker-leaderboard {
        order: -1;
    }
    
    .leaderboard-list {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .clicker-stats {
        gap: 20px;
        flex-wrap: wrap;
        padding: 16px;
    }
    
    .clicker-stat .stat-icon {
        font-size: 1.6rem;
    }
    
    .clicker-stat .stat-value {
        font-size: 1.3rem;
    }
    
    .clicker-area {
        height: 200px;
    }
    
    .ore-emoji {
        font-size: 5rem;
    }
    
    .upgrades-list {
        grid-template-columns: 1fr 1fr;
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .clicker-game {
        padding: 14px;
        gap: 14px;
    }
    
    .clicker-stats {
        padding: 12px;
        gap: 16px;
    }
    
    .clicker-stat .stat-icon {
        font-size: 1.4rem;
    }
    
    .clicker-stat .stat-value {
        font-size: 1.1rem;
    }
    
    .clicker-area {
        height: 180px;
    }
    
    .ore-emoji {
        font-size: 4rem;
    }
    
    .upgrades-list {
        grid-template-columns: 1fr;
    }
    
    .upgrade-item {
        padding: 10px;
    }
    
    .upgrade-icon {
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }
}
