html, body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: #e2e8f0;
    min-height: 100vh;
    font-size: 1rem;
}

body {
    background-color: rgb(37, 41, 42) !important;
}

a, .btn-link {
    color: #60a5fa;
}

a:hover, .btn-link:hover {
    color: #93c5fd;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-info {
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-info:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.btn-outline-secondary {
    color: #94a3b8;
    border-color: #475569;
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: #475569;
    border-color: #64748b;
    color: #e2e8f0;
}

.btn-neutral {
    background: linear-gradient(135deg, #3a4556 0%, #2e3644 100%);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
}

.btn-neutral:hover {
    background: linear-gradient(135deg, #4a5568 0%, #3d4553 100%);
    color: rgba(255,255,255,0.95);
    transform: translateY(-1px);
}

.btn-neutral:active {
    transform: translateY(0);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(79, 70, 229, 0.5), 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Clickable card styles for Game page */
.clickable-card {
    transition: all 0.2s ease-in-out !important;
    user-select: none;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    border-color: #0d6efd !important;
}

.clickable-card:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .clickable-card:active {
        background-color: rgba(0, 123, 255, 0.1) !important;
        transform: scale(0.98);
    }
}

/* Sävis Modal Styling */
.modal-content.bg-dark {
    border: 1px solid #495057;
}

.modal-header.border-secondary {
    border-bottom-color: #495057 !important;
}

.modal-footer.border-secondary {
    border-top-color: #495057 !important;
}

/* Large modal buttons */
.modal-body .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

.modal-body .btn-lg i,
.modal-body .btn-lg span {
    font-size: 1.2rem;
}

/* Cards */

.card,
.list-group-item {
    background-color: rgb(44, 47, 48) !important;
    border-color: rgb(53, 57, 58) !important;
}

.card.selected {
    background-color: rgba(0.98, 0.725, 0, 0.1) !important;
    border-color: #fab900 !important;
}

/* Text */

.text-primary {
    color: #fab900 !important;
}

.text-statistics {
    background: linear-gradient(to bottom right, #d397fa, #8278DA);
    background-clip: text;
    color: transparent;
}

.text-achievement {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%);
    background-clip: text;
    color: transparent;
}

.text-yellow {
    background: linear-gradient(135deg, #f9e4a0 0%, #f4d683 100%);
    background-clip: text;
    color: transparent;
}

.text-orange {
    background: linear-gradient(135deg, #ffb894 0%, #ff9f7a 100%);
    background-clip: text;
    color: transparent;
}

.text-green {
    background: linear-gradient(135deg, #c4e89f 0%, #a8db7e 100%);
    background-clip: text;
    color: transparent;
}

.text-blue {
    background: linear-gradient(135deg, #a8d8e8 0%, #8ec9dd 100%);
    background-clip: text;
    color: transparent;
}

.text-purple {
    background: linear-gradient(135deg, #d4b5e8 0%, #c09dd8 100%);
    background-clip: text;
    color: transparent;
}

/* Forms */

.form-control,
.form-select {
    background-color: rgba(29, 31, 32, 0.5) !important;
}

/* Custom Button Styles */

/* Statistics Button - Blue gradient */
.btn-statistics {
    background-image: linear-gradient(to bottom right, #d397fa, #8278DA);
    border: none;
    transition: all 0.2s ease-in-out;
    color: rgb(29, 31, 32)!important;
}

.btn-statistics:hover {
    background-image: linear-gradient(to bottom right, #e4b4fb, #9590e4);
    box-shadow: 0 2px 6px rgba(211, 151, 250, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-statistics:focus {
    box-shadow: 0 0 0 0.1rem rgba(211, 151, 250, 0.5), 0 0 0 0.25rem rgba(211, 151, 250, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-statistics:active {
    background-image: linear-gradient(to bottom right, #c47ff9, #7066d6);
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
}

/* Statistics Button Outline - Blue gradient on text */
.btn-outline-statistics {
    background: transparent;
    border: 1px solid #8278DA;
    transition: all 0.2s ease-in-out;
    color: transparent;
}

.btn-outline-statistics i,
.btn-outline-statistics {
    background: linear-gradient(to bottom right, #d397fa, #8278DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-outline-statistics:hover {
    background: linear-gradient(to bottom right, #d397fa, #8278DA) !important;
    border-color: #8278DA;
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-statistics:hover i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-statistics:active {
    background: linear-gradient(to bottom right, #c47ff9, #7066d6) !important;
    border-color: #7066d6;
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-statistics:active i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

/* Achievement Button - Green gradient */
.btn-achievement {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%);
    border: none;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
    transition: all 0.2s ease-in-out;
    color: rgb(29, 31, 32)!important;
}

.btn-achievement:hover {
    background: linear-gradient(135deg, #fcd790 0%, #f9f98d 100%);
    box-shadow: 0 2px 6px rgba(251, 208, 124, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-achievement:focus {
    box-shadow: 0 0 0 0.1rem rgba(251, 208, 124, 0.5), 0 0 0 0.25rem rgba(251, 208, 124, 0.25);
    color: rgb(29, 31, 32)!important;
}

.btn-achievement:active {
    background: linear-gradient(135deg, #f9c968 0%, #f5f565 100%);
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
}

/* Achievement Button Outline - Yellow gradient on text */
.btn-outline-achievement {
    background: transparent;
    border: 1px solid #f7f779;
    transition: all 0.2s ease-in-out;
    color: transparent;
}

.btn-outline-achievement i,
.btn-outline-achievement {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-outline-achievement:hover {
    background: linear-gradient(135deg, #fbd07c 0%, #f7f779 100%) !important;
    border-color: #f7f779;
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-achievement:hover i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-achievement:active {
    background: linear-gradient(135deg, #f9c968 0%, #f5f565 100%) !important;
    border-color: #f5f565;
    transform: translateY(0);
    color: rgb(29, 31, 32)!important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

.btn-outline-achievement:active i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgb(29, 31, 32) !important;
    background-clip: unset !important;
}

/* Leaderboard Button - Pink gradient */
.btn-leaderboard {
    background-image: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
    border: none !important;
    box-shadow: 0 1px 4px rgba(247, 140, 160, 0.2);
    transition: all 0.2s ease-in-out;
    color: rgb(29, 31, 32) !important;
}

.btn-leaderboard:hover {
    background-image: linear-gradient(to right, #f9a0b4 0%, #fba0a3 19%, #fea0a0 60%, #ffb4a9 100%) !important;
    box-shadow: 0 2px 6px rgba(247, 140, 160, 0.25);
    color: rgb(29, 31, 32) !important;
}

.btn-leaderboard:focus {
    box-shadow: 0 0 0 0.1rem rgba(247, 140, 160, 0.5), 0 0 0 0.25rem rgba(247, 140, 160, 0.25) !important;
    color: rgb(29, 31, 32) !important;
}

.btn-leaderboard:active {
    background-image: linear-gradient(to right, #f5788c 0%, #f7607b 19%, #fb7278 60%, #fc8677 100%) !important;
    transform: translateY(0);
    color: rgb(29, 31, 32) !important;
}

/* Accordion Styling */
.accordion {
    --bs-accordion-color: #e2e8f0;
    --bs-accordion-bg: rgb(52, 54, 55);
    --bs-accordion-border-color: rgb(53, 57, 58);
    --bs-accordion-btn-color: #e2e8f0;
    --bs-accordion-btn-bg: rgb(44, 47, 48);
    --bs-accordion-active-color: #e2e8f0;
    --bs-accordion-active-bg: rgb(41, 44, 45);
}

.accordion-button:hover {
    background-color: rgb(41, 44, 45);
}

.accordion-button:not(.collapsed) {
    background-color: rgb(41, 44, 45);
}

.accordion-button::after {
    filter: brightness(0) saturate(100%) invert(90%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(90%);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(77%) sepia(76%) saturate(445%) hue-rotate(360deg) brightness(102%) contrast(98%);
}

.accordion-body {
    background-color: rgba(38, 41, 42, 1);
}

.completed {
    border-color: rgb(247, 220, 126) !important;
}

.completed h6,
.completed small {
    color: rgb(247, 220, 126) !important;
}


/* Stats Tab Navigation */
.stats-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.stats-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.938rem;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.stats-tab:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.03);
}

.stats-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.stats-tab:first-child {
    border-top-left-radius: 8px;
}

/* Compact Leaderboard Design */
.game-results-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    background-color: rgb(44, 47, 48);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgb(53, 57, 58);
}

/* Compact Player Row - All info in one line */
.compact-player-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.compact-player-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.compact-player-row:last-child {
    border-bottom: none;
}

.compact-player-row.rank-dnf {
    opacity: 0.6;
    border-left: 3px solid #fb923c;
}

/* Compact Rank Badge */
.compact-rank {
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.badge-rank-1 {
    color: #fbbf24;
}

.badge-rank-2 {
    color: #cbd5e1;
}

.badge-rank-3 {
    color: #cd7f32;
}

.badge-rank-default {
    color: #64748b;
}

.badge-dnf {
    color: #fb923c;
    font-size: 0.875rem;
}

/* Compact Player Name */
.compact-player-name {
    min-width: 150px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compact-player-name a {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.2s ease;
}

.compact-player-name a:hover {
    color: #60a5fa;
}

.player-badges-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Compact Stats - Horizontal inline layout */
.compact-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.compact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    animation: slideIn 0.3s ease-in-out;
    animation-fill-mode: both;
}

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

.compact-stat:nth-child(1) {
    animation-delay: 0.05s;
}

.compact-stat:nth-child(2) {
    animation-delay: 0.1s;
}

.compact-stat:nth-child(3) {
    animation-delay: 0.15s;
}

.compact-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
}

.compact-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    white-space: nowrap;
}

/* Mobile: Inline stats with name */
@media (max-width: 768px) {
    .compact-player-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .compact-rank {
        width: 32px;
        font-size: 1rem;
    }
    
    .compact-player-name {
        min-width: 120px;
        flex: 1;
    }
    
    .compact-stats {
        flex-basis: auto;
        gap: 2px;
        margin-left: auto;
        border: none;
        padding: 0;
        flex-direction: column;
        align-items: flex-end;
    }
    
    /* ELO tab: Hide BEFORE stat on mobile */
    .compact-stats.elo-tab .compact-stat:first-child {
        display: none;
    }
    
    /* Points tab: Hide XP stat on mobile */
    .compact-stats.points-tab .compact-stat:nth-child(2) {
        display: none;
    }
    
    /* Hide all labels on mobile */
    .compact-stat .compact-label {
        display: none;
    }
    
    .compact-value {
        font-size: 0.9rem;
    }
}

.stat-positive {
    color: #10b981;
}

.stat-negative {
    color: #ef4444;
}

.stat-time {
    color: #60a5fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .leaderboard-main {
        padding: 16px;
        gap: 16px;
    }
    
    .rank-badge {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
    
    .player-name-link {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px 16px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid;
}

.status-badge-sm {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
    gap: 4px;
}

.badge-icon {
    font-size: 0.875rem;
    line-height: 1;
}

.time-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
}

.level-badge {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.25);
}

.special-badge {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.special-badge.savis {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.special-badge.dubbel {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.walkover-badge {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.3);
}

.playing-badge {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

.playing-badge .pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* XP Bar Container */
.xp-bar-container {
    margin-top: 12px;
    grid-column: 1 / -1;
    padding: 0 12px;
}

.xp-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.xp-before-label,
.xp-after-label {
    font-weight: 500;
}

.xp-progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.xp-bar-before,
.xp-bar-gain,
.xp-bar-overflow-fill {
    transition: width 0.8s ease-out;
    transform-origin: left center;
}

.xp-bar-before {
    background: rgba(59, 130, 246, 0.6);
    animation: slideIn 0.8s ease-out;
}

.xp-bar-gain {
    animation: slideIn 0.8s ease-out 0.8s both;
}

.xp-bar-overflow-fill {
    animation: slideIn 0.8s ease-out 1.6s both;
}

/* Level-up animation wrapper */
.xp-bar-levelup-wrapper {
    position: relative;
    min-height: calc(0.75rem * 1.5 + 6px + 8px);
}

.xp-bar-levelup-old,
.xp-bar-levelup-new {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.xp-bar-levelup-wrapper .xp-bar-container {
    margin-top: 0;
}

.xp-bar-levelup-old {
    animation: fadeOut 0.3s ease-out 1.6s forwards;
    z-index: 1;
}

.xp-bar-levelup-new {
    opacity: 0;
    animation: fadeIn 0.3s ease-out 1.6s forwards;
    z-index: 2;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

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

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

/* Stats Section - Darker Box */
.stats-section {
    padding: 16px 20px;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-row-label {
    font-size: 0.813rem;
    color: #94a3b8;
    font-weight: 500;
}

.stat-row-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.stat-row-value.positive {
    color: #10b981;
}

.stat-row-value.negative {
    color: #ef4444;
}

/* XP Bar in Stats Section */
.xp-bar-container {
    margin-top: 8px;
}

.xp-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.xp-before-label,
.xp-after-label {
    font-weight: 500;
}

.stat-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-label {
    font-size: 0.688rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.938rem;
    font-weight: 600;
    color: #f1f5f9;
}

.stat-value.positive {
    color: #10b981;
}

.stat-value.negative {
    color: #ef4444;
}

/* XP Section */
.xp-section {
    padding: 12px 20px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.xp-label {
    color: #94a3b8;
}

.xp-change {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.xp-change.positive {
    color: #10b981;
}

.xp-change.negative {
    color: #ef4444;
}

.xp-total {
    color: #f1f5f9;
    font-weight: 600;
}

.xp-progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.xp-bar-before {
    background-color: #475569;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-group {
        width: 100%;
        justify-content: space-between;
    }

    .player-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .stat-item {
        align-items: center;
    }
}

/* ========================================
   Button System
   ======================================== */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Optional Transition */
.btn-transition {
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn i {
    font-size: 1.1rem;
}

/* Primary Buttons - Gradient */
.btn-primary {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fde8ae, #f8cd86);
    color: #1a1a1a;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #c4e89f, #9ad17a);
    color: #1a1a1a;
}

.btn-success:hover {
    background: linear-gradient(135deg, #d0edaf, #a8db88);
    color: #1a1a1a;
}

.btn-info {
    background: linear-gradient(135deg, #a8d8e8, #7ec8dd);
    color: #1a1a1a;
}

.btn-info:hover {
    background: linear-gradient(135deg, #b6e0ed, #8ed3e5);
    color: #1a1a1a;
}

.btn-danger {
    background: linear-gradient(135deg, #ffb894, #ff8c6b);
    color: #1a1a1a;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ffc4a7, #ff9b7d);
    color: #1a1a1a;
}

.btn-purple {
    background: linear-gradient(135deg, #dcc8f0, #d4b5e8);
    color: #1a1a1a;
}

.btn-purple:hover {
    background: linear-gradient(135deg, #e5d5f5, #ddc4ed);
    color: #1a1a1a;
}

/* Secondary Buttons - Solid Dark */
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:active {
    background: rgba(255,255,255,0.08);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: #f7c978;
    border: 2px solid rgba(247, 201, 120, 0.4);
}

.btn-outline-primary:hover {
    background: rgba(247, 201, 120, 0.1);
    color: #f7c978;
    border-color: rgba(247, 201, 120, 0.6);
}

.btn-outline-success {
    background: transparent;
    color: #9ad17a;
    border: 2px solid rgba(154, 209, 122, 0.4);
}

.btn-outline-success:hover {
    background: rgba(154, 209, 122, 0.1);
    color: #9ad17a;
    border-color: rgba(154, 209, 122, 0.6);
}

.btn-outline-info {
    background: transparent;
    color: #7ec8dd;
    border: 2px solid rgba(126, 200, 221, 0.4);
}

.btn-outline-info:hover {
    background: rgba(126, 200, 221, 0.1);
    color: #7ec8dd;
    border-color: rgba(126, 200, 221, 0.6);
}

.btn-outline-danger {
    background: transparent;
    color: #ff8c6b;
    border: 2px solid rgba(255, 140, 107, 0.4);
}

.btn-outline-danger:hover {
    background: rgba(255, 140, 107, 0.1);
    color: #ff8c6b;
    border-color: rgba(255, 140, 107, 0.6);
}

.btn-outline-light {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.5);
}

/* Ghost/Text Buttons */
.btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: none;
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}

.btn-ghost-primary {
    background: transparent;
    color: #f7c978;
    border: none;
    padding: 0.5rem 1rem;
}

.btn-ghost-primary:hover {
    background: rgba(247, 201, 120, 0.1);
    color: #f7c978;
}

.btn-ghost-success {
    background: transparent;
    color: #9ad17a;
    border: none;
    padding: 0.5rem 1rem;
}

.btn-ghost-success:hover {
    background: rgba(154, 209, 122, 0.1);
    color: #9ad17a;
}

.btn-ghost-danger {
    background: transparent;
    color: #ff8c6b;
    border: none;
    padding: 0.5rem 1rem;
}

.btn-ghost-danger:hover {
    background: rgba(255, 140, 107, 0.1);
    color: #ff8c6b;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-sm i {
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-lg i {
    font-size: 1.3rem;
}

/* Icon-only Buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-lg {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: 0;
}

.btn-group .btn {
    border-radius: 0;
    border-right-width: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right-width: 2px;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: btn-spin 0.6s linear infinite;
    color: rgba(0,0,0,0.5);
}

.btn-primary.btn-loading::after,
.btn-success.btn-loading::after,
.btn-info.btn-loading::after,
.btn-danger.btn-loading::after,
.btn-purple.btn-loading::after {
    color: #1a1a1a;
}

.btn-secondary.btn-loading::after,
.btn-outline-primary.btn-loading::after,
.btn-outline-success.btn-loading::after,
.btn-outline-info.btn-loading::after,
.btn-outline-danger.btn-loading::after,
.btn-outline-light.btn-loading::after,
.btn-ghost.btn-loading::after {
    color: rgba(255,255,255,0.8);
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Full Width */
.btn-block {
    display: flex;
    width: 100%;
}

/* Floating Action Button (Enhanced) */
.btn-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 1000;
}

.btn-fab:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    color: #1a1a1a;
    transform: translateY(-2px) scale(1.05);
}

.btn-fab i {
    font-size: 1.5rem;
}

/* Optional Glow Effect */
.btn-glow.btn-primary {
    box-shadow: 0 4px 12px rgba(247, 201, 120, 0.3);
}

.btn-glow.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(247, 201, 120, 0.4);
}

.btn-glow.btn-primary:active {
    box-shadow: 0 2px 8px rgba(247, 201, 120, 0.3);
}

.btn-glow.btn-success {
    box-shadow: 0 4px 12px rgba(154, 209, 122, 0.3);
}

.btn-glow.btn-success:hover {
    box-shadow: 0 6px 16px rgba(154, 209, 122, 0.4);
}

.btn-glow.btn-info {
    box-shadow: 0 4px 12px rgba(126, 200, 221, 0.3);
}

.btn-glow.btn-info:hover {
    box-shadow: 0 6px 16px rgba(126, 200, 221, 0.4);
}

.btn-glow.btn-danger {
    box-shadow: 0 4px 12px rgba(255, 140, 107, 0.3);
}

.btn-glow.btn-danger:hover {
    box-shadow: 0 6px 16px rgba(255, 140, 107, 0.4);
}

.btn-glow.btn-purple {
    box-shadow: 0 4px 12px rgba(212, 181, 232, 0.3);
}

.btn-glow.btn-purple:hover {
    box-shadow: 0 6px 16px rgba(212, 181, 232, 0.4);
}

.btn-glow.btn-fab {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 8px 32px rgba(247, 201, 120, 0.4);
}

.btn-glow.btn-fab:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 12px 40px rgba(247, 201, 120, 0.5);
}

/* Pill Buttons */
.btn-pill {
    border-radius: 50px;
}

/* Soft Buttons */
.btn-soft-primary {
    background: rgba(247, 201, 120, 0.15);
    color: #f7c978;
    border: 1px solid rgba(247, 201, 120, 0.3);
}

.btn-soft-primary:hover {
    background: rgba(247, 201, 120, 0.25);
    color: #f7c978;
    border-color: rgba(247, 201, 120, 0.4);
}

.btn-soft-success {
    background: rgba(154, 209, 122, 0.15);
    color: #9ad17a;
    border: 1px solid rgba(154, 209, 122, 0.3);
}

.btn-soft-success:hover {
    background: rgba(154, 209, 122, 0.25);
    color: #9ad17a;
    border-color: rgba(154, 209, 122, 0.4);
}

.btn-soft-danger {
    background: rgba(255, 140, 107, 0.15);
    color: #ff8c6b;
    border: 1px solid rgba(255, 140, 107, 0.3);
}

.btn-soft-danger:hover {
    background: rgba(255, 140, 107, 0.25);
    color: #ff8c6b;
    border-color: rgba(255, 140, 107, 0.4);
}

/* ========================================
   Mobile-First Leaderboard Components
   ======================================== */

.mobile-leaderboard-header {
    margin-bottom: 1.5rem;
}

.period-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.period-btn {
    flex: 1;
    min-width: fit-content;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.period-btn.active {
    background: rgba(247, 201, 120, 0.15);
    color: #f7c978;
}

.period-btn:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.mobile-podium {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-podium-card {
    position: relative;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s;
}

.mobile-podium-card.first {
    background: linear-gradient(135deg, rgba(249, 228, 160, 0.12), rgba(247, 201, 120, 0.12));
    border: 2px solid rgba(247, 201, 120, 0.3);
    padding: 1.25rem 1rem;
}

.mobile-podium-card.second {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08), rgba(192, 192, 192, 0.04));
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.mobile-podium-card.third {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.08), rgba(205, 127, 50, 0.04));
    border: 1px solid rgba(205, 127, 50, 0.2);
}

.podium-rank-corner {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.podium-rank-corner.gold {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    box-shadow: 0 0 16px rgba(247, 201, 120, 0.6);
    font-size: 1.1rem;
}

.podium-rank-corner.silver {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
}

.podium-rank-corner.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8733a);
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.4);
}

.podium-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.rank-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
    border: 2px solid #2d3142;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    box-shadow: 0 0 12px rgba(247, 201, 120, 0.5);
}

.mobile-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mobile-score.first {
    font-size: 1.5rem;
    color: #f7c978;
}

.mobile-rankings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.mobile-rank-item {
    display: grid;
    grid-template-columns: 28px 24px 40px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: background 0.2s;
    min-height: 56px;
}

.mobile-rank-item:active {
    background: rgba(255,255,255,0.08);
}

.rank-number {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rank-trend {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.rank-trend.up {
    background: rgba(154, 209, 122, 0.15);
    color: #9ad17a;
}

.rank-trend.down {
    background: rgba(255, 140, 107, 0.15);
    color: #ff8c6b;
}

.rank-trend.neutral {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
}

.rank-trend i {
    line-height: 1;
}

.avatar-status {
    position: relative;
    flex-shrink: 0;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #2d3142;
}

.status-dot.online {
    background: #9ad17a;
    box-shadow: 0 0 8px rgba(154, 209, 122, 0.6);
}

.status-dot.away {
    background: #f9e4a0;
}

.status-dot.offline {
    background: rgba(255,255,255,0.2);
}

.rank-info {
    min-width: 0;
    flex: 1;
}

.rank-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-stats {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
}

.rank-stats > * {
    animation: fadeInContent 0.3s ease-in-out;
}

.rank-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f7c978;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rank-score > * {
    animation: fadeInContent 0.3s ease-in-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-load-more {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.mobile-load-more:active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(247, 201, 120, 0.3);
    transform: scale(0.98);
}

.mobile-load-more i {
    transition: transform 0.2s;
}

.mobile-load-more:hover i {
    transform: translateY(2px);
}

/* ========================================
   PLAYGROUND UI COMPONENTS - Part 1
   Colorful Cards & Dark Mode Variants
   ======================================== */

/* Font Options - Choose one by commenting/uncommenting */

/* Option 1: Inter - Excellent for UI, crisp at small sizes, modern */
body {
    background-color: #2d3142;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Make numbers crisp and monospaced for better readability */
.stat-value,
.stat-value span:not(.stat-icon) {
    font-feature-settings: 'tnum' 1; /* Tabular numbers */
    letter-spacing: -0.02em; /* Tighter letter spacing for numbers */
}

.stats-container {
    max-width: 600px;
    margin: 1rem auto;
    padding: 0.5rem;
}

.stat-card {
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgb(44, 47, 48);
}

.stat-card-yellow {
    background: linear-gradient(135deg, #f9e4a0 0%, #f4d683 100%);
    color: #2d3142;
}

.stat-card-orange {
    background: linear-gradient(135deg, #ffb894 0%, #ff9f7a 100%);
    color: #2d3142;
}

.stat-card-green {
    background: linear-gradient(135deg, #c4e89f 0%, #a8db7e 100%);
    color: #2d3142;
}

.stat-card-purple {
    background: linear-gradient(135deg, #d4b5e8 0%, #c09dd8 100%);
    color: #2d3142;
}

.stat-card-blue {
    background: linear-gradient(135deg, #a8d8e8 0%, #8ec9dd 100%);
    color: #2d3142;
}

.dark-text-primary {
    color: #ffffff;
}

.dark-text-secondary {
    color: rgba(255, 255, 255, 0.7);
}

.dark-text-muted {
    color: rgba(255, 255, 255, 0.5);
}

.stat-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(5, 3, 0);
}

.stat-icon {
    font-size: 2rem;
}

.stat-subtitle {
    font-size: 0.85rem;
    margin: 0.25rem 0;
    font-weight: 500;
}

.stat-detail {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.share-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #2d3142;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.share-btn i {
    line-height: 1;
}

.progress-bar-custom {
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: width 0.3s;
}

.friend-avatars {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    position: relative;
}

.friend-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.badge-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.badge-icon.dashed {
    border-style: dashed;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        font-size: 1.6rem;
    }

    .two-column-grid.bottom-row {
        grid-template-columns: 1fr;
    }

    .stats-container {
        padding: 0.25rem;
        grid-template-columns: 1fr;
    }
}

/* List Items */
.list-group-flat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

.list-item:last-child {
    border-bottom: none;
}
    
.list-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #1a1a1a;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.list-item-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.list-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    font-variant-numeric: tabular-nums;
}

/* Inline Stats */
.inline-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem 0;
}

.inline-stat {
    text-align: center;
    flex: 1;
}

.inline-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.inline-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.inline-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.1);
}

/* Chips/Tags */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.1);
}

.chip i {
    font-size: 0.85rem;
}

.chip-progress {
    background: rgba(247, 201, 120, 0.1);
    border-color: rgba(247, 201, 120, 0.2);
    color: #f7c978;
}

.chip-complete {
    background: rgba(154, 209, 122, 0.1);
    border-color: rgba(154, 209, 122, 0.2);
    color: #9ad17a;
}

.chip-badge {
    background: rgba(0,0,0,0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
}

.section-header-left i {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
}

.section-header-action {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.section-header-action:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}

.section-header-toggle {
    display: flex;
    gap: 0.25rem;
}

.toggle-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-button.active {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.2);
}

/* Banners */
.banner-hero, .banner-info, .banner-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    gap: 0.75rem;
}

.banner-hero {
    background: linear-gradient(135deg, rgba(249, 228, 160, 0.15), rgba(247, 201, 120, 0.15));
    border: 1px solid rgba(247, 201, 120, 0.3);
}

.banner-info {
    background: rgba(168, 216, 232, 0.08);
    border: 1px solid rgba(168, 216, 232, 0.2);
}

.banner-warning {
    background: rgba(255, 140, 107, 0.08);
    border: 1px solid rgba(255, 140, 107, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.banner-icon {
    font-size: 1.5rem;
}

.banner-hero .banner-icon {
    color: #f7c978;
}

.banner-info i {
    color: #7ec8dd;
    font-size: 1.25rem;
}

.banner-warning i {
    color: #ff8c6b;
    font-size: 1.25rem;
}

.banner-title {
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.banner-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.banner-button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Inline Progress */
.progress-item {
    margin-bottom: 1rem;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.progress-item-value {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
}

.progress-bar-inline {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Floating Action Button */
.fab {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
}

.floating-badge {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #ff8c6b;
    border-radius: 50%;
    border: 2px solid #2d3142;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.5rem 0.25rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.3rem;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.bottom-nav-item.active {
    color: #f7c978;
    background: rgba(247, 201, 120, 0.1);
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 0.25rem;
    gap: 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.segmented-control::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.segment {
    flex: 0 0 auto;
    min-width: fit-content;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.segment.active {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
}

/* Accordion */
.accordion-item {
    border-radius: 10px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.accordion-item.expanded .accordion-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-content {
    padding: 0 1rem 1rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Toast Notifications */
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.toast i {
    font-size: 1.1rem;
}

.toast-success {
    background: rgba(154, 209, 122, 0.1);
    border: 1px solid rgba(154, 209, 122, 0.3);
    color: #9ad17a;
}

.toast-error {
    background: rgba(255, 140, 107, 0.1);
    border: 1px solid rgba(255, 140, 107, 0.3);
    color: #ff8c6b;
}

.toast-info {
    background: rgba(168, 216, 232, 0.1);
    border: 1px solid rgba(168, 216, 232, 0.3);
    color: #7ec8dd;
}

/* Dividers with Labels */
.divider-with-label {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-with-label::before,
.divider-with-label::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.divider-with-label span {
    padding: 0 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

/* Labels & Badges */
.label {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.label-success {
    background: rgba(154, 209, 122, 0.15);
    color: #9ad17a;
}

.label-warning {
    background: rgba(247, 201, 120, 0.15);
    color: #f7c978;
}

.label-error {
    background: rgba(255, 140, 107, 0.15);
    color: #ff8c6b;
}

.label-info {
    background: rgba(168, 216, 232, 0.15);
    color: #7ec8dd;
}

.label-neutral {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(249, 228, 160, 0.15), rgba(247, 201, 120, 0.15));
    border: 1px solid rgba(247, 201, 120, 0.3);
    color: #f7c978;
}

.badge-pill i {
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.hero-avatar {
    position: relative;
}

.hero-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(247, 201, 120, 0.3);
}

.hero-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2d3142;
    color: #1a1a1a;
    font-size: 0.85rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0 0 0.25rem 0;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.hero-rank {
    color: #f7c978;
    font-weight: 700;
}

.hero-separator {
    color: rgba(255,255,255,0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Avatar Stack */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2d3142;
    margin-left: -12px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.avatar-stack-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid #2d3142;
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.avatar-group {
    position: relative;
    display: inline-block;
}

.avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.avatar-group .avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #2d3142;
}

.avatar-group .avatar-status.online {
    background: #9ad17a;
}

/* Trend Stats */
.trend-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.trend-stat {
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}

.trend-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.trend-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.trend-up {
    background: rgba(154, 209, 122, 0.15);
    color: #9ad17a;
}

.trend-down {
    background: rgba(255, 140, 107, 0.15);
    color: #ff8c6b;
}

.trend-neutral {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
}

.trend-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    font-variant-numeric: tabular-nums;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.quick-action i {
    font-size: 1.5rem;
    color: #f7c978;
}

.quick-action span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}

.search-bar i {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-filter-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-filter-btn:hover {
    background: rgba(255,255,255,0.12);
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill.active {
    background: rgba(247, 201, 120, 0.15);
    border-color: rgba(247, 201, 120, 0.3);
    color: #f7c978;
}

.filter-pill i {
    font-size: 0.7rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.empty-state-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}

.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    border: none;
    border-radius: 10px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Podium */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 100px;
}

.podium-place img {
    border-radius: 50%;
    border: 3px solid transparent;
}

.podium-first {
    position: relative;
    padding-top: 1.5rem;
}

.podium-first img {
    border-color: #ffd700;
}

.podium-second img {
    border-color: #c0c0c0;
}

.podium-third img {
    border-color: #cd7f32;
}

.podium-crown {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #ffd700;
}

.podium-rank {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
}

.podium-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.podium-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    font-variant-numeric: tabular-nums;
}

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

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

.comparison-player img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comparison-player span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.comparison-vs {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    padding: 0 1rem;
}

.comparison-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comparison-stat {
    display: flex;
    flex-direction: column;
}

.comparison-bar-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.comparison-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-bar {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: width 0.3s ease;
}

.comparison-bar.left {
    background: linear-gradient(90deg, transparent, rgba(247, 201, 120, 0.2));
    justify-content: flex-end;
    color: #f7c978;
}

.comparison-bar.right {
    background: linear-gradient(90deg, rgba(255, 140, 107, 0.2), transparent);
    justify-content: flex-start;
    color: #ff8c6b;
}

/* Skeleton Loaders */
.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-text {
    height: 14px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tab Navigation */
.tabs-container {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 0.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 1.25rem;
    flex: 1;
    min-width: fit-content;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
}

.tab-item i {
    font-size: 1.1rem;
}

.tab-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-item.active {
    background: rgba(247, 201, 120, 0.15);
    color: #f7c978;
}

.tab-item:hover:not(.active) {
    color: rgba(255,255,255,0.7);
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: #f7c978;
    border-radius: 2px 2px 0 0;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item i {
    font-size: 0.9rem;
}

.breadcrumb-item:not(.active):hover {
    color: #f7c978;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.2rem;
    color: #f7c978;
    font-size: 1.1rem;
}

.rating-row {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.rating-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Toggle Switches */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.toggle-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.toggle-item-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: 0.3s;
    border-radius: 14px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: rgba(255,255,255,0.5);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #1a1a1a;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

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

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.step.completed .step-icon {
    background: linear-gradient(135deg, #9ad17a, #88c968);
    border-color: #9ad17a;
    color: #1a1a1a;
}

.step.active .step-icon {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    border-color: #f7c978;
    color: #1a1a1a;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.step.active .step-label {
    color: #f7c978;
}

.step.completed .step-label {
    color: #9ad17a;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.15);
    margin: 0 0.5rem;
    min-width: 30px;
    max-width: 80px;
}

.step-line.completed {
    background: #9ad17a;
}

.step-line.active {
    background: linear-gradient(90deg, #9ad17a, #f7c978);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    border-color: #f7c978;
    color: #1a1a1a;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-dots {
    color: rgba(255,255,255,0.4);
    padding: 0 0.25rem;
}

.pagination-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pagination-simple-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-simple-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
}

.pagination-simple-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Circular Progress */
.circular-progress {
    position: relative;
    display: inline-block;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 6;
}

.progress-ring-circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 200;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    font-variant-numeric: tabular-nums;
}

/* Live Indicators */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.live-dot.pulsing {
    background: #9ad17a;
    animation: pulse 2s ease-in-out infinite;
}

.live-dot.recording {
    background: #ff8c6b;
    animation: pulse 1.5s ease-in-out infinite;
}

.live-dot.typing {
    background: #f7c978;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px transparent;
    }
}

/* User Mentions */
.mention-example {
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-mention {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 122, 255, 0.15);
    border-radius: 4px;
    color: #4da3ff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.user-mention:hover {
    background: rgba(0, 122, 255, 0.25);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    background: rgba(168, 216, 232, 0.15);
    border-radius: 6px;
    color: #7ec8dd;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.tag:hover {
    background: rgba(168, 216, 232, 0.25);
}

/* Icon Buttons */
.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.icon-button:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
}

.icon-button.active {
    background: rgba(247, 201, 120, 0.15);
    border-color: rgba(247, 201, 120, 0.3);
    color: #f7c978;
}

.button-group {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 0.25rem;
}

.button-group-item {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-group-item.active {
    background: rgba(247, 201, 120, 0.15);
    color: #f7c978;
}

.button-group-item:hover:not(.active) {
    color: rgba(255,255,255,0.8);
}

/* Dropdown Menu */
.dropdown-menu {
    background: #3a4556;
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-item span {
    flex: 1;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown-item.danger {
    color: #ff8c6b;
}

.dropdown-item.danger:hover {
    background: rgba(255, 140, 107, 0.15);
}

.dropdown-shortcut {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}

/* Notification Panel */
.notification-panel {
    background: #3a4556;
    border-radius: 12px;
    overflow: hidden;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.notification-header span {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
}

.notification-clear {
    background: none;
    border: none;
    color: #f7c978;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.notification-item {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255,255,255,0.03);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(247, 201, 120, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.2rem;
}

.notification-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.3rem;
}

.notification-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

.notification-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: #f7c978;
    border-radius: 50%;
}

/* Swipeable List Items */
.swipeable-list {
    overflow: hidden;
    border-radius: 12px;
}

.swipe-item {
    position: relative;
    display: flex;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.swipe-actions {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    gap: 0.5rem;
}

.swipe-actions.left {
    left: 0;
    padding-left: 1rem;
}

.swipe-actions.right {
    right: 0;
    padding-right: 1rem;
}

.swipe-action {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    width: 100%;
    background: #3a4556;
}

.swipe-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.swipe-text {
    flex: 1;
    min-width: 0;
}

.swipe-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.swipe-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* Achievement Ribbons */
.achievement-ribbon {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.achievement-ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.achievement-ribbon.gold {
    background: rgba(247, 201, 120, 0.1);
    border: 2px solid rgba(247, 201, 120, 0.3);
}

.achievement-ribbon.gold::before {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
}

.achievement-ribbon.silver {
    background: rgba(192, 192, 192, 0.1);
    border: 2px solid rgba(192, 192, 192, 0.3);
}

.achievement-ribbon.silver::before {
    background: linear-gradient(135deg, #e0e0e0, #b8b8b8);
}

.achievement-ribbon.bronze {
    background: rgba(205, 127, 50, 0.1);
    border: 2px solid rgba(205, 127, 50, 0.3);
}

.achievement-ribbon.bronze::before {
    background: linear-gradient(135deg, #cd7f32, #b8733a);
}

.ribbon-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-weight: 700;
}

.achievement-ribbon.gold .ribbon-icon {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    color: #1a1a1a;
}

.achievement-ribbon.silver .ribbon-icon {
    background: linear-gradient(135deg, #e0e0e0, #b8b8b8);
    color: #1a1a1a;
}

.achievement-ribbon.bronze .ribbon-icon {
    background: linear-gradient(135deg, #cd7f32, #b8733a);
    color: #1a1a1a;
}

.ribbon-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ribbon-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.2rem;
}

.ribbon-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.ribbon-medal {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.achievement-ribbon.gold .ribbon-medal {
    color: #f7c978;
}

.achievement-ribbon.silver .ribbon-medal {
    color: #b8b8b8;
}

.achievement-ribbon.bronze .ribbon-medal {
    color: #cd7f32;
}

/* Rarity-based ribbons */
.achievement-ribbon.common {
    background: rgba(108, 117, 125, 0.1);
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.achievement-ribbon.common::before {
    background: linear-gradient(135deg, #8d99a6, #6c757d);
}

.achievement-ribbon.common .ribbon-icon {
    background: linear-gradient(135deg, #8d99a6, #6c757d);
    color: #1a1a1a;
}

.achievement-ribbon.common .ribbon-medal {
    color: #6c757d;
}

.achievement-ribbon.uncommon {
    background: rgba(30, 255, 0, 0.1);
    border: 2px solid rgba(30, 255, 0, 0.3);
}

.achievement-ribbon.uncommon::before {
    background: linear-gradient(135deg, #5eff3d, #1eff00);
}

.achievement-ribbon.uncommon .ribbon-icon {
    background: linear-gradient(135deg, #5eff3d, #1eff00);
    color: #1a1a1a;
}

.achievement-ribbon.uncommon .ribbon-medal {
    color: #1eff00;
}

.achievement-ribbon.rare {
    background: rgba(0, 112, 221, 0.1);
    border: 2px solid rgba(0, 112, 221, 0.3);
}

.achievement-ribbon.rare::before {
    background: linear-gradient(135deg, #3d8fff, #0070dd);
}

.achievement-ribbon.rare .ribbon-icon {
    background: linear-gradient(135deg, #3d8fff, #0070dd);
    color: #ffffff;
}

.achievement-ribbon.rare .ribbon-medal {
    color: #0070dd;
}

.achievement-ribbon.epic {
    background: rgba(163, 53, 238, 0.1);
    border: 2px solid rgba(163, 53, 238, 0.3);
}

.achievement-ribbon.epic::before {
    background: linear-gradient(135deg, #c061ff, #a335ee);
}

.achievement-ribbon.epic .ribbon-icon {
    background: linear-gradient(135deg, #c061ff, #a335ee);
    color: #ffffff;
}

.achievement-ribbon.epic .ribbon-medal {
    color: #a335ee;
}

.achievement-ribbon.legendary {
    background: rgba(255, 128, 0, 0.1);
    border: 2px solid rgba(255, 128, 0, 0.3);
}

.achievement-ribbon.legendary::before {
    background: linear-gradient(135deg, #ffaa3d, #ff8000);
}

.achievement-ribbon.legendary .ribbon-icon {
    background: linear-gradient(135deg, #ffaa3d, #ff8000);
    color: #1a1a1a;
}

.achievement-ribbon.legendary .ribbon-medal {
    color: #ff8000;
}

/* Sparklines */
.sparkline-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sparkline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sparkline-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    min-width: 120px;
}

.sparkline {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.sparkline-bar {
    flex: 1;
    background: #f7c978;
    border-radius: 2px 2px 0 0;
    min-width: 2px;
    transition: height 0.3s ease;
}

.sparkline-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f7c978;
    min-width: 50px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Stacked Progress */
.stacked-progress-container {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.stacked-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.stacked-progress-header span:first-child {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.stacked-progress-header span:last-child {
    color: rgba(255,255,255,0.5);
}

.stacked-progress {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.stacked-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.stacked-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.stacked-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Pull to Refresh */
.pull-refresh-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.pull-refresh-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(247, 201, 120, 0.2);
    border-top-color: #f7c978;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pull-refresh-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Action Sheet */
.action-sheet {
    background: #3a4556;
    border-radius: 16px 16px 0 0;
    padding: 1rem;
    max-width: 400px;
}

.action-sheet-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.action-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.action-sheet-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.action-sheet-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.action-option:hover {
    background: rgba(255,255,255,0.05);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.action-option span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.action-sheet-cancel {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.action-sheet-cancel:hover {
    background: rgba(255,255,255,0.12);
}

/* List Variant - Compact */
.list-variant-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-variant-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: background 0.2s;
}

.list-variant-item:hover {
    background: rgba(255,255,255,0.08);
}

.list-variant-item i:first-child {
    font-size: 1rem;
}

.list-variant-item span:nth-child(2) {
    flex: 1;
}

.list-variant-badge {
    padding: 0.2rem 0.5rem;
    background: rgba(247, 201, 120, 0.2);
    color: #f7c978;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.list-variant-chevron {
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

.list-variant-count {
    padding: 0.15rem 0.5rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

/* List - Selectable with Checkboxes */
.list-selectable {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.list-checkbox-item:hover:not(.disabled) {
    background: rgba(255,255,255,0.08);
}

.list-checkbox-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.list-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checkmark::after {
    content: '\f26e';
    font-family: 'bootstrap-icons';
    color: #1a1a1a;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.list-checkbox-item input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    border-color: #f7c978;
}

.list-checkbox-item input[type="checkbox"]:checked ~ .checkmark::after {
    opacity: 1;
}

.checkbox-content {
    flex: 1;
}

.checkbox-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.checkbox-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

/* List - Radio Group */
.list-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.list-radio-item:hover {
    background: rgba(255,255,255,0.08);
}

.list-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-dot {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.radio-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.list-radio-item input[type="radio"]:checked ~ .radio-dot {
    background: linear-gradient(135deg, #f9e4a0, #f7c978);
    border-color: #f7c978;
}

.list-radio-item input[type="radio"]:checked ~ .radio-dot::after {
    opacity: 1;
}

.list-radio-item:has(input[type="radio"]:checked) {
    background: rgba(247, 201, 120, 0.1);
    border-color: rgba(247, 201, 120, 0.3);
}

.radio-content {
    flex: 1;
}

.radio-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.radio-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.radio-check {
    color: #f7c978;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.list-radio-item:has(input[type="radio"]:checked) .radio-check {
    opacity: 1;
}

/* List - Players with Status */
.list-players {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    transition: background 0.2s;
}

.player-list-item:hover {
    background: rgba(255,255,255,0.08);
}

.player-avatar-wrapper {
    position: relative;
}

.player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.player-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #2d3142;
}

.player-status.online {
    background: #9ad17a;
}

.player-status.away {
    background: #f7c978;
}

.player-status.offline {
    background: rgba(255,255,255,0.3);
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.player-status-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.player-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(247, 201, 120, 0.15);
    border: 1px solid rgba(247, 201, 120, 0.3);
    color: #f7c978;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.player-action-btn:hover:not(:disabled) {
    background: rgba(247, 201, 120, 0.25);
}

.player-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* List - Thumbnails */
.list-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thumbnail-list-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.thumbnail-list-item:hover {
    background: rgba(255,255,255,0.08);
}

.thumbnail-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a1a;
    flex-shrink: 0;
}

.thumbnail-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.thumbnail-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
}

.thumbnail-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.thumbnail-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.thumbnail-tag {
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.thumbnail-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f7c978;
    align-self: center;
}

/* List - Draggable */
.list-draggable {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.draggable-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    cursor: move;
    transition: background 0.2s;
}

.draggable-item:hover {
    background: rgba(255,255,255,0.08);
}

.drag-handle {
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.draggable-content {
    flex: 1;
    min-width: 0;
}

.draggable-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.draggable-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.draggable-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(247, 201, 120, 0.15);
    color: #f7c978;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

/* List - Nested/Hierarchy */
.list-nested {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nested-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.nested-item:hover {
    background: rgba(255,255,255,0.08);
}

.nested-item.level-1 {
    padding-left: 2.5rem;
}

.nested-item.level-2 {
    padding-left: 4rem;
}

.nested-toggle {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.nested-item span:nth-child(3) {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.nested-count {
    padding: 0.15rem 0.5rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

/* List - With Progress */
.list-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-list-item {
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    width: 100%;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.progress-item-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    font-variant-numeric: tabular-nums;
}

.progress-bar-wrapper {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}

/* List - With Actions */
.list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: background 0.2s;
}

.action-list-item:hover {
    background: rgba(255,255,255,0.08);
}

.action-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-item-content {
    flex: 1;
    min-width: 0;
}

.action-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-item-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.action-item-menu {
    display: flex;
    gap: 0.25rem;
}

.action-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.action-menu-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
}

/* List - Expandable */
.list-expandable {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expandable-item {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}

.expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.expandable-header:hover {
    background: rgba(255,255,255,0.05);
}

.expandable-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.expandable-main i {
    font-size: 1.2rem;
}

.expandable-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.15rem;
}

.expandable-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.expandable-toggle {
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.expandable-item.collapsed .expandable-toggle {
    transform: rotate(0deg);
}

.expandable-item:not(.collapsed) .expandable-toggle {
    transform: rotate(180deg);
}

.expandable-content {
    padding: 0 0.75rem 0.75rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expandable-item.collapsed .expandable-content {
    display: none;
}

.expandable-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.expandable-detail-row span:first-child {
    color: rgba(255,255,255,0.6);
}

.expandable-detail-row span:last-child {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* List - Timeline */
.list-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 1.5rem;
}

.list-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #2d3142;
    z-index: 1;
}

.timeline-content {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem;
    border-radius: 10px;
}

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

.timeline-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
}

.timeline-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.timeline-description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.timeline-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.timeline-tag {
    padding: 0.2rem 0.5rem;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .tabs-container {
        padding: 0.2rem;
    }
    
    .tab-item {
        padding: 0.6rem 1rem;
    }
    
    .stepper {
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .stepper::-webkit-scrollbar {
        display: none;
    }
    
    .action-sheet-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .notification-panel {
        max-width: 100%;
    }
}
/* ========================================
   HOME PAGE CARDS
   ======================================== */

/* Active Game Card */
.active-game-card {
    background: linear-gradient(135deg, rgba(168, 216, 232, 0.15), rgba(126, 200, 221, 0.1));
    border: 2px solid rgba(168, 216, 232, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    display: block;
    width: 100%;
}

.active-game-card .progress-list-item {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.active-game-card .progress-item-title {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.active-game-card .progress-item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7ec8dd;
}

.active-game-card .progress-bar-wrapper {
    height: 12px;
    margin: 1rem 0;
}

.active-game-card .progress-bar-fill {
    background: linear-gradient(90deg, #a8d8e8, #7ec8dd);
    box-shadow: 0 0 8px rgba(126, 200, 221, 0.5);
}

.active-game-card .progress-item-footer span:first-child {
    color: #7ec8dd;
    font-weight: 600;
    font-size: 0.9rem;
}

.active-game-card .progress-item-footer span:last-child {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.active-game-pulse {
    width: 10px;
    height: 10px;
    background: #7ec8dd;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(126, 200, 221, 0.3);
    animation: pulse 2s infinite;
}

/* Skitgubbe Holder Card */
.skitgubbe-holder-card {
    background: linear-gradient(135deg, rgba(255, 140, 107, 0.15), rgba(255, 140, 107, 0.08));
    border: 1px solid rgba(255, 140, 107, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skitgubbe-holder-card .skitgubbe-emoji {
    font-size: 3rem;
    line-height: 1;
}

.skitgubbe-holder-card .skitgubbe-info {
    flex: 1;
}

.skitgubbe-holder-card .holder-name {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skitgubbe-holder-card .holder-duration {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* Player Card Variants */
.player-card {
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.player-card-yellow {
    background: linear-gradient(135deg, rgba(247, 201, 120, 0.15), rgba(247, 201, 120, 0.05));
    border: 1px solid rgba(247, 201, 120, 0.3);
}

.player-card-green {
    background: linear-gradient(135deg, rgba(154, 209, 122, 0.15), rgba(154, 209, 122, 0.05));
    border: 1px solid rgba(154, 209, 122, 0.3);
}

.player-card-blue {
    background: linear-gradient(135deg, rgba(168, 216, 232, 0.15), rgba(168, 216, 232, 0.05));
    border: 1px solid rgba(168, 216, 232, 0.3);
}

.player-card-purple {
    background: linear-gradient(135deg, rgba(220, 200, 240, 0.15), rgba(220, 200, 240, 0.05));
    border: 1px solid rgba(220, 200, 240, 0.3);
}

.player-card-orange {
    background: linear-gradient(135deg, rgba(255, 184, 148, 0.15), rgba(255, 184, 148, 0.05));
    border: 1px solid rgba(255, 184, 148, 0.3);
}

.player-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.player-card-level {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.player-card-skitgubbe {
    font-size: 1.25rem;
    line-height: 1;
}

.player-card-name {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.player-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.player-card-stat {
    text-align: center;
}

.player-card-stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-card-stat-value {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    font-size: 0.95rem;
}

.player-card-history {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.player-card-history-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Player Grid (Horizontal Scrolling) */
.player-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.player-grid::-webkit-scrollbar {
    display: none;
}

.player-grid:active {
    cursor: grabbing;
}

.player-grid > a {
    scroll-snap-align: start;
}

/* ===== Component Section Labels ===== */
.component-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* ===== Expandable/Collapsible Animations ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

/* ===== Achievement Rarity System ===== */

/* Rarity Badges */
.rarity-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
}

.rarity-common {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.rarity-uncommon {
    background: rgba(168, 219, 126, 0.2);
    color: #a8db7e;
}

.rarity-rare {
    background: rgba(168, 216, 232, 0.2);
    color: #a8d8e8;
}

.rarity-epic {
    background: rgba(212, 181, 232, 0.2);
    color: #d4b5e8;
}

.rarity-legendary {
    background: linear-gradient(135deg, rgba(255, 184, 148, 0.3), rgba(249, 228, 160, 0.3));
    color: #ffb894;
    border: 1px solid rgba(255, 184, 148, 0.3);
}

/* Achievement Cards */
.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.achievement-card.legendary {
    border: 1px solid rgba(255, 184, 148, 0.2);
}

.achievement-card.locked {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.6;
}

.achievement-card.in-progress {
    background: rgba(255, 255, 255, 0.03);
}

/* Achievement Icon Containers */
.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.achievement-icon.legendary {
    background: linear-gradient(135deg, #ffb894, #f9e4a0);
    /* box-shadow: 0 0 20px rgba(255, 184, 148, 0.3); */
}

.achievement-icon.epic {
    background: linear-gradient(135deg, #d4b5e8, #c09dd8);
    /* box-shadow: 0 0 15px rgba(212, 181, 232, 0.3); */
}

.achievement-icon.rare {
    background: linear-gradient(135deg, #a8d8e8, #8ec9dd);
    /* box-shadow: 0 0 15px rgba(168, 216, 232, 0.3); */
}

.achievement-icon.uncommon {
    background: linear-gradient(135deg, #a8db7e, #9ad17a);
    /* box-shadow: 0 0 15px rgba(168, 219, 126, 0.3); */
}

.achievement-icon.common {
    background: rgba(255, 255, 255, 0.08);
    /* box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); */
}

.achievement-icon.in-progress {
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    /* box-shadow: 0 0 10px rgba(168, 219, 126, 0.2); */
}

.achievement-icon.locked {
    background: rgba(255, 255, 255, 0.05);
    /* box-shadow: 0 0 8px rgba(255, 255, 255, 0.05); */
}

/* Achievement Progress Ring */
.achievement-progress-ring {
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.achievement-progress-ring-bg {
    position: absolute;
    inset: 4px;
    background: rgb(37, 41, 42);
    border-radius: 10px;
}

/* Achievement Content */
.achievement-content {
    flex: 1;
    min-width: 0;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.achievement-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1rem;
}

.achievement-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.achievement-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-points {
    font-size: 0.75rem;
    font-weight: 600;
}

.achievement-points.legendary {
    color: #ffb894;
}

.achievement-points.epic {
    color: #d4b5e8;
}

.achievement-points.rare {
    color: #a8d8e8;
}

.achievement-points.uncommon {
    color: #a8db7e;
}

.achievement-points.common {
    color: rgba(255, 255, 255, 0.7);
}

.achievement-timestamp {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Achievement Progress Bar */
.achievement-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.achievement-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a8db7e, #9ad17a);
    border-radius: 3px;
}

.achievement-progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.achievement-progress-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}
