:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --primary-ultralight: #e0e7ff;

    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-teal: #64ffda;
    --accent-blue: #1e90ff;
    --accent-purple: #8b5cf6;

    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;

    --success: #10b981;
    --success-dark: #059669;

    --dark: #1e293b;
    --darker: #0f172a;
    --dark-medium: #334155;

    --light: #f8fafc;
    --lighter: #ffffff;

    --text-white: #f8fafc;
    --text-light: #ccd6f6;
    --text-muted: #8892b0;

    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --gray-dark: #64748b;
    --gray-ultradark: #475569;

    --border: #2d3748;
    --border-light: #4a5568;

    --bg-dark: #0a192f;
    --bg-dark-secondary: #223d5f;
    --bg-darker: #0f172a;
    --bg-card: #1e293b;
    --bg-card-light: #334155;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.4);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.6);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.4) rgba(0, 0, 0, 0.1);
}

html {
    scrollbar-gutter: stable;
}

@media (hover: hover) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: #8892b0;
    }

    :hover::-webkit-scrollbar-thumb {
        background: #8892b0;
    }
}

.snowflake {
    position: fixed;
    background-color: #ccc;
    user-select: none;
    z-index: 999;
    pointer-events: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    left: 0px;
    top: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 20%);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
.online-stats-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--darker) 0%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.online-stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.online-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.online-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.online-stat-item:hover::before {
    left: 100%;
}

.online-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.online-stat-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 18px;
}

.online-pulse-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: online-pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

.online-stat-in-game .online-pulse-indicator {
    background: var(--accent-teal);
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
}

@keyframes online-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.online-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.online-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
}

.online-stat-in-game .online-stat-value {
    color: var(--accent-teal);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.online-stat-total .online-stat-value {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}

.online-stat-purchases .online-stat-value {
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.online-stat-lc .online-stat-value {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.online-stat-capital .online-stat-value {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.online-stat-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    line-height: 1;
}

.online-stat-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.online-stat-value {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.online-value-changing {
    transform: scale(1.1);
    color: var(--primary-light) !important;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.5) !important;
}

@media (max-width: 768px) {
    .online-stats-container {
        flex-direction: column;
        gap: 6px;
        padding: 0 12px;
    }

    .online-stat-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .online-stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .online-stats-footer {
        padding: 8px 0;
    }

    .online-stat-item {
        padding: 6px 12px;
        gap: 8px;
    }

    .online-stat-value {
        font-size: 14px;
    }

    .online-stat-label {
        font-size: 10px;
    }
}

.online-stat-in-game .online-stat-icon {
    background: rgba(100, 255, 218, 0.15);
}

.online-stat-total .online-stat-icon {
    background: rgba(30, 144, 255, 0.15);
}

.online-stat-purchases .online-stat-icon {
    background: rgba(16, 185, 129, 0.15);
}

.online-stat-lc .online-stat-icon {
    background: rgba(245, 158, 11, 0.15);
}

/* Capital stuff */
.online-stat-capital .online-stat-icon {
    background: rgba(99, 102, 241, 0.15);
}

.online-stat-update .online-stat-icon {
    background: rgba(148, 163, 184, 0.15);
}

.capital-value-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.capital-change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.capital-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.capital-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.capital-change.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: var(--gray);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.capital-change-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.capital-change-indicator.positive {
    background: var(--success);
    color: white;
}

.capital-change-indicator.negative {
    background: var(--danger);
    color: white;
}

.capital-change-indicator.neutral {
    background: var(--gray);
    color: white;
    opacity: 0.7;
}

.capital-change-indicator.neutral i {
    display: none;
}

.capital-change-indicator.neutral #capitalChangeIcon {
    display: none;
}

/* Admin Panel */
.api-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.toggle-status {
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.toggle-status.active {
    color: #2ecc71;
}

.toggle-status.maintenance {
    animation: pulseStatus 1s infinite;
    color: #e74c3c;
}

.toggle-status.updating {
    color: #f39c12;
    animation: pulse 1.5s infinite;
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-self: anchor-center;
}

.admin-panel.active {
    display: block;
    opacity: 1;
}

.admin-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
}

.admin-panel-content {
    position: relative;
    background: var(--darker);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    margin: 20px;
    padding-bottom: 50px;
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: adminPanelSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes adminPanelSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-left i {
    font-size: 2rem;
}

.admin-header-left h2 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

.admin-badge {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-blue));
    color: var(--darker);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-close-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.admin-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

/* Controls Admin*/
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box-admin {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box-admin i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box-admin input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box-admin input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-teal);
    color: var(--darker);
    border-color: var(--accent-teal);
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1) !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

/* Player table */
.players-table-container {
    flex: 1;
    overflow: auto;
    padding: 0 24px 20px;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.85rem;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.players-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.players-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.players-table tr:hover {
    background: linear-gradient(90deg,
            rgba(100, 255, 218, 0.08) 0%,
            rgba(100, 255, 218, 0.04) 50%,
            rgba(100, 255, 218, 0.01) 100%);
}

.player-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar-pan {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.player-avatar-pan img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-name {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.players-table tr:hover .player-name {
    color: var(--accent-teal);
}

.player-meta {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.player-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.player-meta-item i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.casual-tag {
    background: linear-gradient(90deg, var(--accent-purple), var(--primary));
    color: white;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Status Badge */
.status-badge {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.status-badge i {
    font-size: 0.9rem;
}

.status-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.status-restricted {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.status-banned {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Ban Info */
.ban-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ban-details {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.ban-reason {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.6);
    font-size: 1rem;
    margin-top: 4px;
    transition: all 0.3s ease;
}

/* Action Buttons */
.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 550px;
}

.action-row {
    display: flex;
    gap: 6px;
}

.btn-icon {
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
    min-width: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
}

.btn-icon i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-ban {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.btn-ban:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-unban {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.btn-unban:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-restrict {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.btn-restrict:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-view {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.btn-view:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-currency {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(168, 85, 247, 0.05));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.1);
}

.btn-currency:hover {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.admin-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
    padding-right: 30px !important;
}

.dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.admin-dropdown.active .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    min-width: 180px;
    background: rgba(27, 27, 59, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.admin-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 20px;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
}

.dropdown-item:nth-child(1) i {
    color: #3b82f6;
}

.dropdown-item:nth-child(2) i {
    color: #a855f7;
}

.dropdown-item:nth-child(3) i {
    color: #10b981;
}

.dropdown-item:nth-child(4) i {
    color: #f59e0b;
}

.dropdown-item:nth-child(5) i {
    color: #ef4444;
}

.dropdown-item:nth-child(6) i {
    color: #8b5cf6;
}

/* No players found */
.no-players {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-players i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* Mods Panel */
.mods-container {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.player-mods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mod-item {
    background: linear-gradient(145deg, var(--bg-dark-secondary), var(--darker));
    border: 1px solid var(--gray-ultradark);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-item:hover {
    border-color: var(--accent-teal);
    box-shadow: var(--shadow-lg);
}

.mod-item:hover::before {
    opacity: 1;
}

.mod-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    margin-right: 10px;
}

.mod-time {
    color: var(--text-muted);
    font-size: 11px;
    background: var(--darker);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.mod-item.recent {
    border-color: var(--accent-teal);
}

.mod-item.recent .mod-timestamp {
    background: var(--accent-teal);
    color: var(--darker);
    font-weight: 600;
}

.mods-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.mods-empty .bx-package {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.mods-empty p {
    font-size: 14px;
    margin: 0;
}

.mods-empty {
    display: none;
}

.mods-empty.visible {
    display: block;
}

/* Ban panel */
.ban-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--darker);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ban-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.ban-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ban-panel-header h3 {
    color: var(--text-light);
    margin: 0;
}

.close-ban-panel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-ban-panel:hover {
    color: var(--danger);
}

.close-mods-panel {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-mods-panel:hover {
    color: var(--danger);
}

.ban-form {
    padding: 24px;
}

.form-group {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-light);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.ban-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .admin-panel-content {
        margin: 10px;
        height: calc(100vh - 20px);
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .players-table-container {
        padding: 0 16px 16px;
    }

    .players-table {
        font-size: 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
    }
}

.player-info-panel {
    margin: 5px;
    padding: 10px;
}

.player-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: auto;
}

.player-info-banner i {
    font-size: 2rem;
    color: var(--accent-teal);
}

.player-info-banner strong {
    color: var(--text-light);
    display: block;
    font-size: 1.1rem;
}

.player-info-banner small {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
}

.ban-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 32px;
    min-height: 24px;
}

.checkbox-option:hover {
    color: var(--accent-teal);
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-option:hover .checkmark {
    border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-option input[type="checkbox"]:checked~.checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-option input[type="checkbox"]:checked~.checkmark::after {
    content: '✓';
    color: var(--darker);
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    margin-bottom: -3px;
}

.btn-lc {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-lc:hover {
    background: var(--accent);
    color: var(--darker);
    transform: translateY(-1px);
}

/* Tabs (API logs etc) */
.admin-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    padding: 0 32px;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab.active {
    color: var(--accent-teal);
    border-bottom-color: var(--accent-teal);
    background: rgba(100, 255, 218, 0.05);
}

.admin-tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.admin-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* API LOgs */
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}

.logs-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.log-filters {
    display: flex;
    gap: 12px;
}

.logs-actions {
    display: flex;
    gap: 8px;
}

.btn-refresh {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.btn-refresh:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.logs-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logs-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 32px;
}

.log-entry {
    padding: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
    font-size: 0.85rem;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.02);
}

.log-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.log-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.log-level-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.log-level-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
}

.log-level-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.log-level-ban {
    background: rgba(139, 69, 19, 0.2);
    color: #8b4513;
}

.log-level-admin {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent-teal);
}

.log-level-system {
    background: rgba(100, 255, 218, 0.2);
    color: var(--accent-teal);
}

.log-level-debug {
    background: rgba(250, 100, 255, 0.2);
    color: var(--accent-teal);
}

.log-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.log-message {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.log-module {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.8rem;
}

.logs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent-teal);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 16px;
}

.no-logs {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-logs i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

/* Reports Tab */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}

.reports-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.report-filters {
    display: flex;
    gap: 12px;
}

.reports-actions {
    display: flex;
    gap: 8px;
}

.reports-container {
    flex: 1;
    overflow-y: auto;
}

.report-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 16px 32px;
    padding: 20px;
    transition: all 0.3s ease;
}

.report-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(100, 255, 218, 0.2);
}

.report-card.pending {
    border-left: 4px solid var(--accent);
}

.report-card.resolved {
    border-left: 4px solid var(--success);
}

.report-card.dismissed {
    border-left: 4px solid var(--text-muted);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.report-players {
    display: flex;
    gap: 200px;
    flex-wrap: wrap;
}

.report-player {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name {
    color: var(--text-light);
    font-weight: 600;
}

.player-id {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: monospace;
}

.report-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-resolved {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-dismissed {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.report-content {
    margin-bottom: 16px;
}

.report-reason {
    color: var(--text-light);
    line-height: 1.5;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.report-timestamp {
    display: flex;
    align-items: center;
    gap: 4px;
}

.report-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-profile {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-view-profile:hover {
    background: #3b82f6;
    color: white;
}

.btn-dismiss {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.btn-dismiss:hover {
    background: #64748b;
    color: white;
}

.no-reports {
    text-align: center;
    padding: 60px 32px;
    color: var(--text-muted);
}

.no-reports i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

@media (max-width: 768px) {
    .reports-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-controls {
        flex-direction: column;
    }

    .report-header {
        flex-direction: column;
        gap: 12px;
    }

    .report-players {
        flex-direction: column;
        gap: 12px;
    }

    .report-actions {
        flex-direction: column;
    }

    .report-card {
        margin: 12px 16px;
    }
}

/* Profile Editor Styles */
.profile-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    margin-top: 70px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.profile-card {
    background-color: var(--dark);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.profile-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.profile-id {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.profile-about {
    margin-top: 1rem;
    color: var(--gray);
    line-height: 1.5;
}

.form-section {
    background-color: var(--dark);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label,
.setting-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-weight: 500;
}

.form-control,
.setting-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus,
.setting-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid var(--primary);
}

.image-preview .error {
    color: #ff6b6b;
    font-size: 14px;
}

.loading {
    color: var(--gray);
    font-size: 14px;
    font-style: italic;
}

.error {
    color: #ff6b6b;
    font-size: 14px;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--warning);
    color: var(--darker);
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: var(--success) !important;
    border: 1px solid var(--success) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    color: var(--danger) !important;
    border: 1px solid var(--danger) !important;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    margin-top: 25px;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-dark);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

input[type="checkbox"]:checked+.checkbox-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: 12px;
    display: none;
}

input[type="checkbox"]:checked+.checkbox-custom::after {
    display: block;
}

input[type="checkbox"] {
    display: none;
}

select.setting-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.setting-control option {
    background-color: var(--dark);
    color: var(--light);
}

select.setting-control option:checked {
    background-color: var(--primary-dark);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Login Page Styles */
.login-container {
    width: 100%;
    margin-top: 80px;
    max-width: 480px;
    padding: 0 20px;
    overflow: hidden;
}

.login-card {
    background: linear-gradient(145deg, var(--dark), var(--darker));
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--danger), var(--accent));
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 6s infinite;
    pointer-events: none;
}


.logo {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #a855f7, var(--danger));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }

    to {
        text-shadow: 0 6px 30px rgba(99, 102, 241, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
    }
}

.logo p {
    color: var(--gray-light);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    backdrop-filter: blur(5px);
    animation-duration: 0.8s;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: translateY(-1px);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.additional-actions {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

.additional-actions a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.additional-actions a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.animate__animated.animate__fadeInUp {
    --animate-duration: 0.5s;
}

.animate__animated.animate__delay-1s {
    --animate-delay: 0.3s;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.tooltip:hover {
    color: var(--primary);
}

.tooltip i {
    font-size: 18px;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    box-shadow: 0 5px 15px rgba(135, 137, 255, 0.18);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    width: 250px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    pointer-events: none;
}

.tooltip:hover::after {
    visibility: visible;
    opacity: 1;
}

.fun-fact-container {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fun-fact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fun-fact-header {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fun-fact-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-light);
    font-weight: 300;
    text-align: center;
}

/* Explore */
/* Header styles */
.top-header {
    background: linear-gradient(135deg,
            var(--darker) 0%,
            #1a1f35 50%,
            var(--darker) 100%);
    background-size: 200% 200%;
    color: var(--light);
    padding: 1rem 2rem;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: headerGlow 8s ease-in-out infinite;
}

@keyframes headerGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.header-content {
    z-index: 2;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.12));
    padding: 0.40rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-balance i {
    color: var(--accent);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.user-balance:hover i {
    transform: rotate(360deg);
    color: #ffd700;
}

.balance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.avatar img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    width: 60px;
    height: 60px;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.avatar:active {
    transform: scale(0.95);
}

/* Context menu of profile in profile picture */
.profile-context-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(145deg,
            rgba(30, 41, 59, 0.95),
            rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-context-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: linear-gradient(145deg,
            rgba(99, 102, 241, 0.15),
            rgba(245, 158, 11, 0.1));
}

.menu-item i {
    font-size: 1.2rem;
    color: var(--primary-light);
    transition: all 0.3s ease;
    min-width: 20px;
}

.menu-item:hover i {
    color: var(--accent);
    transform: scale(1.2);
}

.menu-item span {
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-details h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.username {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Modals, Settings, Awards */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.modal-header h2 {
    margin: 0;
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    display: flex;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.03);
}

/* Warning Modal */
.profile-comparison {
    text-align: center;
}

.warning-message {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.warning-icon {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--danger);
    display: inline-block;
}

.profiles-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 20px 0;
}

.profile-missmatch-card {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.profile-missmatch-card.mismatch {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
}

.profile-avatar-warning-modal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 16px;
    border: 2px solid rgba(100, 255, 218, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(100, 255, 218, 0.1), rgba(30, 144, 255, 0.05));
}

.profile-avatar-warning-modal.mismatch {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
}

.profile-avatar-warning-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-id-inventory-warning {
    color: var(--text-muted);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(100, 255, 218, 0.08);
    border: 1px solid rgba(100, 255, 218, 0.15);
    color: var(--accent-teal);
}

.profile-status.mismatch {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.final-warning {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.final-warning strong {
    color: var(--danger);
    font-weight: 700;
}

/* Transfer LC modal */
.lc-input-header {
    margin: 30px;
}

.selected-player-container {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.selected-player-card {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(30, 61, 95, 0.3), rgba(10, 25, 47, 0.5));
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 12px;
    padding: 12px;
    animation: slideInUp 0.3s ease;
    gap: 12px;
}

.selected-player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #2f3f7647;
    overflow: hidden;
    flex-shrink: 0;
}

.selected-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-player-info {
    flex: 1;
    min-width: 0;
}

.selected-player-name {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-player-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

.selected-player-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.clear-selection-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-selection-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.transfer-action-btn {
    background: var(--accent-teal);
    color: var(--darker);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.3);
}

.transfer-action-btn:hover:not(:disabled) {
    background: #57e0c4;
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.4);
}

.transfer-action-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.transfer-action-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.transfer-action-btn.processing {
    background: var(--accent-blue);
    animation: pulse 1.5s infinite;
}

.amount-input-container {
    position: relative;
}

.amount-presets {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.amount-preset {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.amount-preset:hover {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

.amount-validation {
    margin-top: 4px;
    font-size: 0.8rem;
    min-height: 16px;
}

.players-section {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section-header h3 {
    color: var(--text-light);
    margin: 10px;
    font-size: 1.1rem;
}

.search-box-lc {
    place-self: center;
    margin: 10px;
    position: relative;
    width: 200px;
}

.search-box-lc i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box-lc input {
    width: 100%;
    padding: 8px 8px 8px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
    display: grid;
    gap: 12px;
}

/* Player cards LC */
.main-player-card-lc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-player-card-lc::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s ease;
}

.main-player-card-lc:hover::before {
    left: 100%;
}

.main-player-card-lc:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(100, 255, 218, 0.2);
}

.main-player-card-lc.selected {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent-teal);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.2);
}

.player-player-card-lc {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-avatar-lc {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-avatar-lc img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #ffffff13;
}

.player-main-info-lc {
    flex: 1;
}

.player-name-lc {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.player-meta-lc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.player-meta-item-lc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Selected item for Transfer */
.selected-item-container {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.selected-item-card {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, rgba(139, 69, 19, 0.2), rgba(101, 67, 33, 0.3));
    border: 1px solid rgba(210, 105, 30, 0.3);
    border-radius: 12px;
    padding: 16px;
    animation: slideInUp 0.3s ease;
    gap: 16px;
}

.selected-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.selected-item-info {
    flex: 1;
    min-width: 0;
}

.selected-item-name {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-item-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.selected-item-meta span {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .selected-item-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .selected-item-info {
        text-align: center;
    }

    .selected-item-meta {
        justify-content: center;
    }
}

@keyframes itemAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.selected-item-card {
    animation: itemAppear 0.4s ease-out;
}


/* Trust Factor Modal */
.modal-contents-loading,
.modal-contents-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.trust-factor-error i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
}

.trust-main-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.risky {
    background: radial-gradient(500px 200px at top left, hsla(0, 100%, 72%, 0.25), hsla(0, 88%, 3%, 0.007));
    border: 1px solid rgba(255, 106, 106, 0.2);
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.circle-progress {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.circle-progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
}

.score-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-title {
    font-weight: 600;
    color: var(--light);
}

.metric-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.metric-score {
    font-weight: 600;
    color: var(--light);
    min-width: 30px;
}

.stats-section-trust {
    margin-bottom: 1rem;
}

.stats-section-trust h4 {
    margin-bottom: 1rem;
    color: var(--light);
    margin-top: 15px;
}

.stats-grid-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item-trust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.stat-label-trust {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-value-trust {
    font-weight: 600;
    color: var(--light);
}

.last-updated {
    text-align: center;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.mods-section {
    margin: 2rem 0;
}

.mods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mods-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mods-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mods-header i {
    font-size: 1.25rem;
}

.mods-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light);
}

.mods-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Good Mods*/
.good-mods .mods-header {
    color: #4ecdc4;
}

.good-mods .mods-header i {
    color: #4ecdc4;
}

.good-mods .mods-count {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

/* Bad Mods h */
.bad-mods .mods-header {
    color: #ff6b6b;
}

.bad-mods .mods-header i {
    color: #ff6b6b;
}

.bad-mods .mods-count {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.mods-content {
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.mod-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mod-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mod-item:last-child {
    margin-bottom: 0;
}

.mod-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.good-mods .mod-item i {
    color: #4ecdc4;
}

.bad-mods .mod-item i {
    color: #ff6b6b;
}

.mod-text {
    font-size: 0.9rem;
    color: var(--light);
    line-height: 1.4;
}

.mod-item.empty {
    justify-content: center;
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

.mod-item.empty i {
    font-size: 1.5rem;
    color: var(--gray);
}

/* Achievement Modal */
.achievements-grid {
    display: grid;
    gap: 1rem;
}

.achievement-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card.unlocked {
    border: 1px solid var(--success);
    background-color: #a0ffc214;
}

.achievement-card.locked {
    opacity: 0.7;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(145deg, var(--success), var(--success-dark));
    color: white;
}

.achievement-card.locked .achievement-icon {
    background: linear-gradient(145deg, var(--gray-dark), var(--gray-ultradark));
    color: var(--gray-light);
}

.achievement-info {
    flex: 1;
}

.achievement-info h3 {
    margin: 0 0 0.25rem 0;
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
}

.achievement-info p {
    margin: 0 0 0.5rem 0;
    color: var(--gray);
    font-size: 0.875rem;
}

.achievement-date {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.achievement-badge {
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

.achievement-blocked {
    background: linear-gradient(145deg, var(--dark-medium), var(--darker));
}

/* Settings Styles */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h3 {
    color: var(--light);
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.setting-info {
    flex: 1;
    padding-right: 1.5rem;
}

.setting-info h4 {
    margin: 0 0 0.4rem 0;
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.setting-info p {
    margin: 0;
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, var(--gray-ultradark), var(--gray-dark));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 34px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.1);
}

.slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 50%;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

input:checked+.slider {
    background: linear-gradient(145deg, var(--success), var(--success-dark));
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(16, 185, 129, 0.4);
}

input:checked+.slider::before {
    transform: translateX(26px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Token Field */
.token-reveal-container {
    position: relative;
    width: 250px;
    flex-shrink: 0;
}

.setting-item input[type="text"].token-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-family: monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.token-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(30, 41, 59);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.token-reveal-container:hover .token-input {
    color: var(--light);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.token-reveal-container:hover .token-blur-overlay {
    opacity: 0;
    pointer-events: none;
}

.token-input:focus {
    color: var(--light) !important;
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.1) !important;
}

.token-input:focus~.token-blur-overlay {
    opacity: 0 !important;
}

/* Danger zone specific styles */
.settings-section:last-child .setting-item {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
    border-color: rgba(239, 68, 68, 0.1);
}

.settings-section:last-child .setting-item:hover {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
    border-color: rgba(239, 68, 68, 0.2);
}

.settings-section:last-child h3 {
    color: var(--danger);
}

.settings-section:last-child h3::after {
    background: linear-gradient(90deg, var(--danger), var(--danger-dark));
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.achievements-filters {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem;
    flex-wrap: wrap;
    place-self: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Achievement Progress Bars */
.multi-progress-container {
    margin-top: 10px;
}

.multi-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.metric-label {
    min-width: 80px;
    font-weight: 500;
    color: #ccc;
}

.achievement-progress-bar.small {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-numbers {
    min-width: 40px;
    text-align: right;
    font-size: 11px;
    color: #aaa;
}

.overall-progress {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #4fc3f7;
    font-size: 12px;
}

.achievement-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #2196f3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.achievement-progress {
    font-size: 12px;
    color: #aaa;
    display: block;
    margin-top: 4px;
}

.achievement-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.achievements-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.stat-item i {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.stat-item:nth-child(1) i {
    color: var(--accent);
}

.stat-item:nth-child(2) i {
    color: var(--accent);
}

.achievements-loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.achievements-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* MAIN CONTENT ON EXPLORE PAGE + BALANCE */
.header-nav-buttons {
    text-align: center;
    margin: auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.action-buttons-container {
    width: 100%;
    text-align: center;
    perspective: 1000px;
}

.section-title-market {
    color: var(--light);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.section-title-market::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, var(--dark), var(--darker));
    color: white;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    min-height: 220px;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-btn:hover::after {
    opacity: 1;
}

.action-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);
    cursor: pointer;
}

.action-btn:hover::before {
    transform: scaleX(1);
}

.action-btn i {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 3rem;
    position: relative;
    z-index: 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.action-btn:hover i {
    transform: scale(1.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.action-btn-title {
    transition: all 0.4s ease;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.action-btn:hover .action-btn-title {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.action-btn span:last-child {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-light);
    opacity: 0.9;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.action-btn:hover span:last-child {
    opacity: 1;
    transform: translateY(2px);
}

.market-btn {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    border: none;
}

.market-btn::before {
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

.battlepass-btn {
    background: linear-gradient(100deg, var(--accent-purple), var(--accent-blue));
    border: none;
}

.battlepass-btn::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.profile-btn {
    background: linear-gradient(145deg, var(--success-dark), var(--success));
    border: none;
}

.profile-btn::before {
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.trader-btn {
    background: linear-gradient(145deg, #462233, #3f0b14);
    border: none;
}

.trader-btn::before {
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.search-btn {
    background: linear-gradient(180deg, #a81d1d, #3f0b0b);
    border: none;
    min-height: auto;
    padding: 2rem;
}

.search-btn::before {
    background: linear-gradient(90deg, var(--accent), var(--danger));
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.action-btn {
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0;
}

.action-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.action-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.action-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.action-btn:nth-child(4) {
    animation-delay: 0.4s;
}

/* Balance animations */
.balance-value {
    transition: all 0.5s ease;
}

.balance-increase {
    animation: balanceIncrease 1s ease;
}

.balance-decrease {
    animation: balanceDecrease 1s ease;
}

@keyframes balanceIncrease {
    0% {
        color: inherit;
        transform: scale(1);
    }

    50% {
        color: #fff345;
        transform: scale(1.2);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

@keyframes balanceDecrease {
    0% {
        color: inherit;
        transform: scale(1);
    }

    50% {
        color: #f44336;
        transform: scale(1.1);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

.coin-spin {
    animation: coinSpin 1s ease;
}

@keyframes coinSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.report-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.report-form.active {
    opacity: 1;
    visibility: visible;
}

.report-form-content {
    background-color: var(--dark);
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.report-form.active .report-form-content {
    transform: translateY(0);
}

.report-form h3 {
    margin-bottom: 20px;
    color: var(--light);
    font-size: 20px;
    text-align: center;
}

.recent-transactions-container {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-transactions-carousel {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: scroll 100s linear infinite;
}

.recent-transaction-item {
    flex: 0 0 auto;
    background-color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.transaction-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.transaction-buyer {
    color: var(--primary-light);
    font-weight: 600;
}

.transaction-item {
    color: var(--primary);
}

.transaction-price {
    color: var(--accent);
    font-weight: 600;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Market Styles */
main {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    margin-top: 80px;
    margin-bottom: 50px;
}

.notifications-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: linear-gradient(145deg, var(--darker), var(--bg-dark-secondary));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px) saturate(180%);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    max-height: 120px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
    max-height: 120px;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
    max-height: 0;
    margin-top: -12px;
    padding-top: 0;
    padding-bottom: 0;
}

.notification.success::before {
    background: linear-gradient(to bottom, var(--success), var(--success-dark));
}

.notification.error::before {
    background: linear-gradient(to bottom, var(--danger), var(--danger-dark));
}

.notification.warning::before {
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
}

.notification.info::before {
    background: linear-gradient(to bottom, var(--accent-blue), #1a73e8);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
    font-weight: 400;
}

.notification-text {
    flex: 1;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--lighter);
    font-size: 15px;
}

.notification-message {
    color: var(--text-muted);
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    background: var(--primary);
    transform-origin: left;
    animation: progressBar linear forwards;
}

.notification.success .notification-progress-bar {
    background: linear-gradient(to right, var(--success), var(--success-dark));
}

.notification.error .notification-progress-bar {
    background: linear-gradient(to right, var(--danger), var(--danger-dark));
}

.notification.warning .notification-progress-bar {
    background: linear-gradient(to right, var(--accent), var(--accent-dark));
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--darker);
    letter-spacing: -0.025em;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: 16px;
    border: 1px solid var(--gray-ultradark);
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 1px solid transparent;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--lighter);
    border-color: var(--primary);
    font-weight: 600;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Market Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--gray-ultradark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    animation: cardAppear 0.5s ease-out;
}

.item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.1) 0%,
            transparent 30%,
            transparent 70%,
            rgba(99, 102, 241, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.item-card:hover::after {
    opacity: 1;
}

.item-card:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px var(--primary-light),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card.hidden {
    display: none;
}

.item-card.filtered-out {
    animation: cardDisappear 0.3s ease-in forwards;
}

@keyframes cardDisappear {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.item-header {
    padding: 1.5rem;
    background: linear-gradient(90deg, var(--dark), var(--dark-medium));
    border-bottom: 1px solid var(--gray-ultradark);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.item-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 0.2rem 0.3rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 159, 11, 0.219);
    z-index: 3;
}

.item-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.item-card:hover .item-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--lighter);
}

.item-category {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 2;
}

.item-body {
    padding: 1.5rem;
}

.price-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
}

.base-price {
    text-decoration: line-through;
    color: var(--gray-dark);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.2rem;
    text-align: center;
}

.dynamic-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    display: block;
}

.stock-info {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stock-label {
    color: var(--gray);
    font-weight: 500;
}

.stock-value {
    font-weight: 700;
    color: var(--success);
    transition: color 0.3s ease;
}

.stock-value.out-of-stock {
    color: var(--danger);
    animation: pulseDanger 2s infinite;
}

@keyframes pulseDanger {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.price-section {
    text-align: right;
}

.buy-btn {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

.buy-btn:active {
    transform: translateY(0);
}

.bundle-items {
    margin-top: 1rem;
    padding-top: 1rem;
}

.bundle-composition {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bundle-composition-title {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.bundle-composition-item {
    color: var(--light);
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.bundle-composition-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    padding-left: 0.5rem;
}

.bundle-composition-item:last-child {
    border-bottom: none;
}

.bundle-composition-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.8rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    border-radius: 4px;
}

.bundle-title {
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.bundle-item {
    font-size: 0.85rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
}

.bundle-item::before {
    content: "•";
    color: var(--primary);
}

/* Savings Stuff for bundles */
.savings-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(45deg, var(--success), var(--success-dark));
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 3;
    animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
    }
}

.savings-amount {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 0.3rem;
    font-weight: 600;
}

.savings-value {
    font-size: 0.8rem;
    font-weight: 700;
}

.bundle-composition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bundle-savings-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.savings-percent {
    background: linear-gradient(45deg, var(--success), var(--success-dark));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-weight: 700;
}

.savings-lc {
    color: var(--success);
    font-weight: 600;
}

.stacked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.stacked-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    border-radius: 6px;
}

.stacked-item:last-child {
    border-bottom: none;
}

.stacked-item-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.stacked-item-name {
    color: var(--light);
    font-weight: 500;
    flex: 1;
}

.item-quantity {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.2rem 0.5rem;
    margin-right: 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* individual price */
.individual-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.individual-price {
    color: var(--gray);
    font-weight: 500;
}

.total-individual-price {
    color: var(--light);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Bundle Pricing SUmmary */
.bundle-pricing-summary {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.pricing-row.individual-total {
    color: var(--gray);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.pricing-row.bundle-price {
    color: var(--light);
    font-weight: 600;
    font-size: 1rem;
}

.pricing-row.you-save {
    color: var(--success);
    font-weight: 700;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
}

.price-value {
    font-weight: 600;
}

.bundle-price-value {
    color: var(--accent);
    font-size: 1.1rem;
}

.savings-amount {
    color: var(--success);
    font-size: 1rem;
}

@keyframes highlightSavings {
    0% {
        background-color: rgba(16, 185, 129, 0.1);
    }

    50% {
        background-color: rgba(16, 185, 129, 0.3);
    }

    100% {
        background-color: rgba(16, 185, 129, 0.1);
    }
}

.bundle-pricing-summary.highlight {
    animation: highlightSavings 2s ease-in-out;
}

/* Top popular items */
.top-popular-section {
    position: relative;
    overflow: hidden;
    margin: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h1 {
    margin-top: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.popular-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.popular-item-card {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-ultradark);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.popular-item-card:hover::before {
    opacity: 1;
}

.popular-item-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15), 0 0 0 1px var(--primary-light);
}

.popular-item-card[data-rank="1"] {
    border-color: rgba(245, 158, 11, 0.3);
}

.popular-item-card[data-rank="1"]:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2), 0 0 0 1px var(--accent);
}

.popular-item-medal {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    background: var(--darker);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.popular-item-card[data-rank="1"] .popular-item-medal {
    border-color: var(--accent);
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
}

.popular-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popular-item-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    transition: all 0.3s ease;
}

.popular-item-card:hover .popular-item-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

.popular-item-info {
    flex: 1;
}

.popular-item-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--lighter);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.popular-item-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-item-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.purchase-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count-badge {
    color: var(--accent);
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 50px;
    text-align: center;
}

.count-label {
    color: var(--gray-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

.price-info {
    text-align: right;
}

.popular-base-price {
    display: block;
    text-decoration: line-through;
    color: var(--gray-dark);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.popular-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.popularity-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.popularity-progress {
    height: 100%;
    background: linear-gradient(90deg,
            var(--primary),
            var(--accent),
            var(--primary));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.popular-item-card[data-rank="1"] .popularity-progress {
    background: linear-gradient(90deg,
            var(--accent),
            #ffd700,
            var(--accent));
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .popular-items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-item-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .popular-item-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .purchase-count {
        justify-content: center;
    }

    .price-info {
        text-align: center;
    }
}

/* Market search */
.marketplace-header {
    margin-bottom: 2rem;
}

.search-container {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--gray-ultradark);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--gray-ultradark);
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-box:focus-within {
    border-color: var(--primary-light);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    color: var(--gray);
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--primary-light);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 0;
    color: var(--light);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--gray);
}

.search-actions {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.clear-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.search-stats {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
    transition: all 0.3s ease;
}

/* Search Highlightings */
.search-stats.highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.item-card.search-match .item-name {
    color: var(--success);
    text-shadow: 0 0 10px rgba(11, 245, 109, 0.3);
}

.item-card.search-match .item-header {
    background: linear-gradient(90deg,
            rgba(11, 245, 128, 0.1),
            var(--dark-medium));
}

/* Inventory Styles */
/* Weekly drop styles */
.inventory-section {
    margin-top: 40px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-darker));
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.inventory-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
}

.inventory-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.weekly-drops-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.drop-slot {
    background: linear-gradient(145deg, var(--bg-darker), var(--bg-card));
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.drop-slot.unknown {
    background: linear-gradient(145deg,
            color-mix(in srgb, var(--bg-darker) 90%, #000 10%),
            color-mix(in srgb, var(--bg-card) 90%, #000 10%));
    border-style: dashed;
    border-color: var(--border-light);
}

.drop-slot.unknown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px);
}

.drop-slot.unknown:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slot-content {
    position: relative;
    margin-bottom: 12px;
}

.slot-content i {
    transition: all ease-in-out 300ms;
    font-size: 40px;
    opacity: 0.8;
    filter: blur(1px);
}

.drop-slot.unknown:hover .slot-content i {
    font-size: 40px;
    opacity: 1;
    filter: blur(0px);
}

.slot-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-light);
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slot-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.weekly-progress-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title,
.progress-hint {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.progress-value {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 0.95rem;
}

.claim-btn {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.claim-available {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.claim-available:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.claim-available:active:not(:disabled) {
    transform: translateY(0);
}

.claim-disabled {
    background: linear-gradient(135deg, #4a5568, #718096);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Showcase */
.showcase-section {
    margin-top: 40px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-darker));
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.showcase-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0;
}

.showcase-title i {
    color: gold;
    font-size: 1.8rem;
}

.showcase-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.showcase-counter {
    background: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.showcase-counter #showcaseCount {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: inherit;
}

.btn-save-showcase,
.btn-clear-showcase {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-save-showcase {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-save-showcase:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-purple));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-clear-showcase {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.btn-clear-showcase:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.showcase-container {
    position: relative;
}

.showcase-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .showcase-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .showcase-slots {
        grid-template-columns: 1fr;
    }
}

.showcase-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.showcase-slot:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    padding: 20px;
}

.slot-empty i {
    font-size: 2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.showcase-slot:hover .slot-empty i {
    color: var(--primary);
    transform: scale(1.1);
}

.slot-filled {
    width: 100%;
    height: 100%;
    padding: 15px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    animation: itemAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes itemAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showcase-item-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid var(--border-light);
}

.showcase-item-info {
    flex: 1;
}

.showcase-item-name {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 5px 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.showcase-item-category {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.showcase-item-price {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-teal);
    font-weight: bold;
}

.btn-remove-showcase {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.showcase-item:hover .btn-remove-showcase {
    opacity: 1;
}

.showcase-status {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.compact-item.showcase-selected {
    position: relative;
}

.compact-item.showcase-selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent-teal);
    border-radius: 8px;
    pointer-events: none;
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.compact-item.showcase-selected .item-glow {
    box-shadow: 0 0 20px var(--accent-teal);
}

.btn-showcase {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: box-shadow 200ms ease-in-out;
}

.btn-showcase:hover {
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.btn-showcase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@keyframes saveSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.save-success {
    animation: saveSuccess 0.5s ease;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--light);
}

.compact-inventory {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.inventory-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.inventory-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stats-numbers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.stat-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-divider {
    color: var(--gray);
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.shimmer-btn:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-light);
}

.empty-state p {
    font-size: 1rem;
    color: var(--gray);
}

.quests-label {
    margin-right: 5px;
}

.tab-button {
    background: var(--gray-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.tab-button.active {
    background: var(--primary);
    color: white;
}

.tab-button:hover {
    background: var(--gray);
    color: white;
}

.tab-button.active:hover {
    background: var(--primary-dark);
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.items-container {
    min-height: 200px;
}

.items-grid-inventory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.compact-item {
    position: relative;

}

.item-icon-inventory {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #2f3f76 0%, #1e293b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.item-icon-inventory:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.item-glow {
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compact-item[data-rarity="common"] .item-icon-inventory {
    border-color: #a0aec0;
}

.compact-item[data-rarity="rare"] .item-icon-inventory {
    border-color: #4299e1;
}

.compact-item[data-rarity="epic"] .item-icon-inventory {
    border-color: #9f7aea;
}

.compact-item[data-rarity="legendary"] .item-icon-inventory {
    border-color: #ed8936;
}

.item-icon-inventory img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.item-icon-inventory:hover img {
    transform: scale(1.1);
}



.item-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    z-index: 2;
}

.item-tooltip {
    position: absolute;
    z-index: 100;
    width: 320px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s;
    border: 1px solid #2f3f7647;
    transform: translateY(10px);
    pointer-events: auto;
}

.item-icon-inventory:hover~.item-tooltip,
.item-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tooltip-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0;
}

.item-rarity {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.item-rarity.common {
    background: #a0aec0;
    color: #1a202c;
}

.item-rarity.rare {
    background: #4299e1;
    color: white;
}

.item-rarity.epic {
    background: #9f7aea;
    color: white;
}

.item-rarity.legendary {
    background: #ed8936;
    color: white;
}

.tooltip-content {
    margin-bottom: 1rem;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.tooltip-row .price {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.tooltip-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-withdraw,
.btn-sell,
.btn-opencase,
.btn-send {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: box-shadow 200ms ease-in-out;
    min-width: 120px;
}

.btn-withdraw {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-sell {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
}

.btn-opencase {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
}

.btn-send {
    background: linear-gradient(135deg, var(--dark-medium), var(--darker));
    color: white;
}

.btn-withdraw:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-sell:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-opencase:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-send:hover {
    box-shadow: 0 8px 20px rgba(46, 48, 80, 0.4);
}

/* Case Opening CSS */
.case-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px) contrast(1.2);
    perspective: 1000px;
}

.case-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(79, 70, 229, 0.05) 25%,
            rgba(165, 180, 252, 0.1) 50%,
            rgba(79, 70, 229, 0.05) 75%,
            rgba(99, 102, 241, 0.1) 100%);
    animation: backgroundShift 8s ease infinite;
    pointer-events: none;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.case-modal.active {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    animation: modalAppear 0.6s ease;
}

.case-container {
    background: linear-gradient(145deg,
            rgba(26, 26, 46, 0.95) 0%,
            rgba(22, 33, 62, 0.98) 100%);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow:
        0 0 50px rgba(99, 102, 241, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.8) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow-y: auto;
}

.case-modal.active .case-container {
    transform: scale(1) rotateX(0deg);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
}

.case-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--primary),
            transparent);
}

.case-header h2 {
    background: linear-gradient(135deg, var(--primary), #a855f7, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.case-items-display {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg,
            rgba(27, 38, 49, 0.8) 0%,
            rgba(26, 26, 46, 0.9) 100%);
    border: 3px solid rgba(52, 152, 219, 0.5);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(52, 152, 219, 0.3);
}

.case-opening-animation {
    background: linear-gradient(135deg,
            rgba(52, 73, 94, 0.9) 0%,
            rgba(44, 62, 80, 0.95) 100%);
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(52, 152, 219, 0.5);
    animation: casePulse 1s ease-in-out infinite;
}

.item-flicker-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flickering-item {
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #f39c12;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: all 0.1s ease-in-out;
    opacity: 0;
    transform: translateY(100px) rotateX(45deg);
}

.flickering-item.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg) scale(1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flickering-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.flickering-item .item-name {
    font-size: 12px;
    color: white;
    margin-top: 8px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
    padding: 2px 10px;
    border-radius: 10px;
}

.case-items-can-drop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin: 20px 0;
    backdrop-filter: blur(5px);
}

.case-item {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    transform-style: preserve-3d;
    cursor: pointer;
}

.case-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.case-item img {
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
}

.case-item:hover img {
    transform: scale(1.04) rotate(2deg);
}

.case-item p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-light);
    font-weight: 600;
    word-break: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Case open */
@keyframes caseOpen {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.case-opening-animation {
    animation: caseOpen 0.5s ease-out;
}

/* Open case button */
.open-case-btn {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-dark) 50%,
            var(--primary) 100%);
    border: none;
    padding: 18px 40px;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 25px auto;
    display: block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 5px 15px rgba(99, 102, 241, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.open-case-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    animation: btnShine 3s ease infinite;
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.open-case-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.open-case-btn:active {
    transform: translateY(0) scale(1);
}

.open-case-btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

@keyframes dropReveal {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flicker {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
}

.dropped-item {
    animation: dropReveal 1s ease-in-out;
}

.dropped-item img {
    height: 100px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6));
    animation: itemGlow 2s ease-in-out infinite;
}

.item-rarity {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.common {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #555, #777, #555);
    border: 1px solid #aaa;
}

.rare {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3, #007bff);
    border: 1px solid #007bff;
    animation: rarityGlow 2s ease-in-out infinite;
}

.epic {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6f42c1, #4a2d82, #6f42c1);
    border: 1px solid #6f42c1;
}

.legendary {
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffc107, #fd7e14, #ffc107);
    border: 1px solid #ffc107;
}

.dropped-item.common {
    border-color: #aaa;
    box-shadow: 0 0 20px #aaa;
}

.dropped-item.rare {
    border-color: #007bff;
    box-shadow: 0 0 20px #007bff;
}

.dropped-item.epic {
    border-color: #6f42c1;
    box-shadow: 0 0 20px #6f42c1;
}

.dropped-item.legendary {
    border-color: #ffc107;
    box-shadow: 0 0 30px #ffc107;
}

.case-item.common {
    border-color: #aaa;
}

.case-item.rare {
    border-color: #007bff;
}

.case-item.epic {
    border-color: #6f42c1;
}

.case-item.legendary {
    border-color: #ffc107;
}

@media (max-width: 768px) {
    .inventory-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .item-tooltip {
        width: 200px;
    }
}

/* Global Chat*/
.floating-chat {
    position: fixed;
    bottom: 95px;
    left: 20px;
    z-index: 2;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    color: var(--lighter);
    font-size: 24px;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--lighter);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-container {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 350px;
    height: 500px;
    background: var(--darker);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-ultradark);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chat-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--lighter);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--lighter);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
    border: 2px solid var(--primary-light);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: var(--dark);
    scrollbar-width: thin;
}

.chat-input {
    padding: 15px;
    background: var(--dark-medium);
    border-top: 1px solid var(--gray-ultradark);
    border-radius: 9px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--dark);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.message {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 10px;
    background: var(--dark-medium);
    border-left: 3px solid var(--gray-dark);
    animation: messageSlideIn 0.3s ease;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message[data-animated="true"] {
    animation: none;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.timestamp {
    font-size: 0.8rem;
    color: var(--gray);
}

.message-content {
    color: var(--primary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.my-message {
    background: linear-gradient(135deg, var(--primary-ultralight) 0%, var(--primary-light) 100%);
    border-left: 3px solid var(--primary);
    margin-left: 20px;
}

.my-message .username {
    color: var(--primary-dark);
}

.my-message .timestamp {
    color: var(--primary);
}

.my-message .message-content {
    color: var(--darker);
}

.message-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-ultradark);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background: var(--dark);
    color: var(--gray-light);
    transition: all 0.3s ease;
}

#messageInput::placeholder {
    color: var(--gray);
}

#messageInput:focus {
    border-color: var(--primary);
    background: var(--darker);
}

.global-chat-send-message-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--lighter);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.global-chat-send-message-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-out {
    animation: fadeOut 0.4s ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Notifications */
.notifications-wrapper {
    position: relative;
    display: inline-block;
}

.notifications-bell {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    background: var(--dark);
    border-radius: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-ultradark);
    color: var(--gray);
}

.notifications-bell:hover {
    background: var(--dark-medium);
    color: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.notifications-bell:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.1);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: var(--lighter);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--darker);
    animation: pulse-not 2s infinite;
}

@keyframes pulse-not {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.notifications-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: var(--darker);
    border: 2px solid var(--gray-ultradark);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.notifications-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInUpNotificationContainer 0.3s ease;
}

@keyframes slideInUpNotificationContainer {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-header {
    padding: 20px;
    border-bottom: 2px solid var(--gray-ultradark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--dark), var(--darker));
    border-radius: 14px 14px 0 0;
}

.notifications-header h3 {
    margin: 0;
    color: var(--light);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notifications-header h3 i {
    color: var(--primary);
    font-size: 20px;
}

.mark-all-read {
    background: var(--primary);
    color: var(--lighter);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.mark-all-read:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mark-all-read:active {
    transform: translateY(0);
}

.mark-all-read i {
    font-size: 13px;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-ultradark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
    border-radius: 0 0 14px 14px;
}

.notification-item:hover {
    background: var(--dark-medium);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
    border-left: 4px solid var(--primary);
}

.notification-item.unread:hover {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.15) 0%, transparent 100%);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: blink-notify 2s infinite ease-in-out;
}

@keyframes blink-notify {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

.notification-item.unread .notification-content {
    color: var(--light);
    font-weight: 500;
}

.notification-timestamp {
    color: var(--gray-dark);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-timestamp svg {
    height: 18px;
    width: 18px;
    fill: var(--gray-dark);
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
    font-style: italic;
}

.notification-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: var(--gray-dark);
}

.notification-item[data-type="purchase"] .notification-content::before {
    content: '🛒 ';
}

.notification-item[data-type="reward"] .notification-content::before {
    content: '🎁 ';
}

.notification-item[data-type="system"] .notification-content::before {
    content: '⚙️ ';
}

.notification-item[data-type="warning"] .notification-content::before {
    content: '⚠️ ';
}

@keyframes newNotification {
    0% {
        background: var(--primary-ultralight);
        transform: scale(0.95);
    }

    100% {
        background: linear-gradient(90deg, rgba(79, 70, 229, 0.1) 0%, transparent 100%);
        transform: scale(1);
    }
}

.notification-item.new {
    animation: newNotification 0.6s ease;
}

/* Match making button styles */
.matchmaking-container {
    position: relative;
}

.search-btn.searching {
    background: #358ca1 !important;
}

.search-btn.confirming {
    background: var(--success-dark) !important;
}

.search-btn.searching .action-btn-title {
    content: "Cancel Search";
}

.search-btn.searching i {
    animation: rotateSearch 2s linear infinite;
}

.search-btn.cooldown {
    opacity: 0.7;
    background: var(--gray-dark) !important;
    cursor: not-allowed;
}

.search-btn.cooldown .action-btn-title {
    color: var(--gray-dark);
}

.search-timer {
    font-weight: 700;
    color: var(--lighter);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 20px;
}

.timer-value {
    letter-spacing: 2px;
}

/* Opponent found screen */
.match-found-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.match-found-modal {
    background: linear-gradient(145deg, var(--darker), var(--dark));
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--primary);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
    animation: matchfoundAppear 1s ease-out;
}

.match-found-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    animation: bounce 1s infinite;
}

.match-found-modal h3 {
    color: var(--lighter);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.match-found-modal p {
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.match-accept-timer {
    margin: 2rem 0;
}

.accept-timer-circle {
    width: 80px;
    height: 80px;
    border: 4px solid var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.accept-timer-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--success);
    border-radius: 50%;
    animation: countdown 10s linear infinite;
}

.accept-timer-circle span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lighter);
}

.match-found-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.accept-btn,
.decline-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn {
    background: linear-gradient(145deg, var(--success), var(--success-dark));
    color: white;
}

.accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.decline-btn {
    background: linear-gradient(145deg, var(--danger), var(--danger-dark));
    color: white;
}

.decline-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes rotateSearch {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes matchfoundAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes countdown {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Players */
.players-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
}

.player-self {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.player-opponent {
    border-color: var(--danger-dark);
    box-shadow: 0 0 20px rgba(241, 104, 99, 0.3);
}

.player-avatar {
    position: relative;
    margin-bottom: 1rem;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.player-self .avatar-img {
    border-color: var(--success);
}

.player-opponent .avatar-img {
    border-color: var(--danger-dark);
}

.player-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--darker);
}

.player-status.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.player-status.searching {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulseStatus 1.5s infinite;
}

/* Player Info */
.player-info {
    text-align: center;
    margin-bottom: 1rem;
}

.player-name {
    color: var(--lighter);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.player-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-level {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.player-rating {
    color: var(--gray-light);
    font-size: 0.8rem;
}

.player-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ready-icon {
    color: var(--success);
    font-size: 1.5rem;
    animation: pulseReady 2s infinite;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.player-ready span {
    color: var(--gray-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vs-divider span {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* match det */
.match-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.match-mode,
.match-challenge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    font-size: 0.9rem;
}

.match-mode i,
.match-challenge i {
    color: var(--accent);
}


.match-accept-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.match-accept-timer p {
    color: var(--gray-light);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.match-found-header {
    text-align: center;
    margin-bottom: 2rem;
}

.match-found-header h3 {
    color: var(--lighter);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.match-found-header p {
    color: var(--gray-light);
    font-size: 1rem;
}


.match-found-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.accept-btn,
.decline-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn {
    background: linear-gradient(145deg, var(--success), var(--success-dark));
    color: white;
}

.accept-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.decline-btn {
    background: linear-gradient(145deg, var(--danger), var(--danger-dark));
    color: white;
}

.decline-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes pulseStatus {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulseReady {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .players-container {
        flex-direction: column;
        gap: 2rem;
    }

    .vs-divider {
        transform: rotate(90deg);
        margin: -1rem 0;
    }

    .match-details {
        flex-direction: column;
        gap: 1rem;
    }
}