/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Warna Transparan untuk Glass Effect */
    --bg-transparent: rgba(0, 0, 0, 0.7);
    --bg-semi-transparent: rgba(0, 0, 0, 0.5);
    --bg-very-transparent: rgba(0, 0, 0, 0.3);
    --bg-light-transparent: rgba(255, 255, 255, 0.1);
    
    /* Warna Text */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-dark: #000000;
    
    /* Warna Accent */
    --accent-primary: #ffffff;
    --accent-secondary: #cccccc;
    --accent-success: #00ff88;
    --accent-warning: #ffaa00;
    --accent-error: #ff4444;
    --accent-info: #33ff00;
    --accent-sync: #9c27b0;
    
    /* Border dan Shadow */
    --border-color: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.25);
    --border-radius: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);
    --glass-blur-light: blur(10px);
}

/* Body dengan Background Berdasarkan Waktu */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Berdasarkan Waktu */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -3;
    transition: opacity 1s ease-in-out;
    opacity: 1 !important;
}

/* Default Background Images untuk Setiap Waktu */
body.time-morning::before {
    background-image: linear-gradient(rgba(255, 200, 100, 0.1), rgba(100, 150, 255, 0.1)), 
                      url('./img/bg-morning.png');
    filter: brightness(1.1);
}

body.time-afternoon::before {
    background-image: linear-gradient(rgba(255, 220, 120, 0.1), rgba(80, 140, 240, 0.1)), 
                      url('./img/bg-day.png');
    filter: brightness(1.05);
}

body.time-evening::before {
    background-image: linear-gradient(rgba(255, 100, 100, 0.1), rgba(50, 50, 150, 0.1)), 
                      url('./img/bg-evening.png');
    filter: brightness(0.9);
}

body.time-night::before {
    background-image: linear-gradient(rgba(0, 0, 50, 0.1), rgba(0, 0, 20, 0.1)), 
                      url('./img/bg-night.png');
    filter: brightness(0.8);
}

/* Overlay Gelap Tipis */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.2) 100%);
    z-index: -2;
    backdrop-filter: blur(2px);
}

/* Time Indicator */
.time-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    font-weight: 500;
}

.time-indicator i {
    font-size: 1.2rem;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(156, 39, 176, 0.2);
    border-radius: 20px;
    border: 1px solid var(--accent-sync);
    font-size: 0.8rem;
    margin-left: 10px;
}

.sync-status i {
    font-size: 0.6rem;
    color: var(--accent-sync);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-title .icon {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    border-radius: 12px;
}

.dashboard-title h1 {
    font-size: 2rem;
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.tier-indicator {
    background: rgba(255, 170, 0, 0.15);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-warning);
    border: 1px solid rgba(255, 170, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: var(--glass-blur-light);
}

.tier-indicator i {
    font-size: 0.8rem;
}

.version-badge {
    background: linear-gradient(90deg, var(--accent-sync), #7b1fa2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    min-width: 140px;
    justify-content: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.status-indicator.online .status-dot {
    background: var(--accent-success);
    box-shadow: 0 0 15px var(--accent-success);
}

.status-indicator.online .status-dot::after {
    border-color: var(--accent-success);
    animation: pulse-ring 2s infinite;
}

.status-indicator.offline .status-dot {
    background: var(--accent-error);
    box-shadow: 0 0 10px var(--accent-error);
}

.status-indicator.ingame .status-dot {
    background: var(--accent-info);
    box-shadow: 0 0 15px var(--accent-info);
}

.status-indicator.ingame .status-dot::after {
    border-color: var(--accent-info);
    animation: pulse-ring 1.5s infinite;
}

/* Buttons */
.btn-refresh, .btn-admin, .btn-join, .btn-login, .btn-control, .btn-action, .btn-sync, .btn-copy, .btn-edit-stat {
    background: var(--bg-transparent);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur-light);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.btn-refresh:hover, .btn-admin:hover, .btn-join:hover, .btn-login:hover, 
.btn-control:hover, .btn-action:hover, .btn-sync:hover, .btn-copy:hover,
.btn-edit-stat:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.btn-sync {
    background: linear-gradient(90deg, var(--accent-sync), #7b1fa2);
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.btn-edit-stat {
    background: rgba(0, 168, 255, 0.2);
    border: 1px solid var(--accent-info);
    color: var(--accent-info);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-edit-stat:hover {
    background: rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

/* Profile Card */
.profile-card {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Animated Border */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-sync), 
        var(--accent-info), 
        var(--accent-success), 
        transparent);
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.avatar-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.5);
    background: var(--text-muted);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.avatar-status.online {
    background: var(--accent-success);
    box-shadow: 0 0 20px var(--accent-success);
    animation: status-pulse 2s infinite;
}

.avatar-status.ingame {
    background: var(--accent-info);
    box-shadow: 0 0 20px var(--accent-info);
    animation: status-pulse 1.5s infinite;
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: var(--glass-blur-light);
    transition: all 0.3s ease;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.badge.country {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-color);
}

.badge.id {
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.3);
}

.badge.sync-badge {
    background: rgba(156, 39, 176, 0.2);
    border-color: var(--accent-sync);
    color: var(--accent-sync);
}

/* Playtime Section */
.playtime-section {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6), 
        rgba(30, 20, 50, 0.7));
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 35px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-sync);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.playtime-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, 
        rgba(156, 39, 176, 0.1) 0%, 
        transparent 50%),
                radial-gradient(circle at 80% 20%, 
        rgba(0, 168, 255, 0.1) 0%, 
        transparent 50%);
    z-index: -1;
}

.playtime-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-sync);
    backdrop-filter: var(--glass-blur-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-title h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.playtime-status {
    margin-left: auto;
    padding: 10px 20px;
    background: rgba(156, 39, 176, 0.15);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-sync);
    border: 1px solid rgba(156, 39, 176, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: var(--glass-blur-light);
}

.playtime-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.playtime-main {
    text-align: center;
    margin-bottom: 40px;
}

.playtime-value {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 30px rgba(156, 39, 176, 0.5);
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ffffff, #d8b4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-glow-sync 3s ease-in-out infinite alternate;
}

@keyframes text-glow-sync {
    0% { text-shadow: 0 0 20px rgba(156, 39, 176, 0.5); }
    100% { text-shadow: 0 0 30px rgba(0, 255, 136, 0.5); }
}

.playtime-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.playtime-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.playtime-stat {
    text-align: center;
    min-width: 120px;
}

.playtime-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.playtime-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Sync Info */
.sync-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.sync-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sync-item i {
    color: var(--accent-sync);
}

/* Tier Playtime Section */
.tier-section {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6), 
        rgba(40, 20, 60, 0.7));
    backdrop-filter: var(--glass-blur);
    border-radius: var(--border-radius);
    padding: 35px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-warning);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tier-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, 
        rgba(255, 170, 0, 0.1) 0%, 
        transparent 50%),
                radial-gradient(circle at 80% 20%, 
        rgba(156, 39, 176, 0.1) 0%, 
        transparent 50%);
    z-index: -1;
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tier-header .feature-icon {
    color: var(--accent-warning);
}

.tier-current {
    margin-left: auto;
    padding: 10px 20px;
    background: rgba(255, 170, 0, 0.15);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-warning);
    border: 1px solid rgba(255, 170, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: var(--glass-blur-light);
}

.tier-current i {
    font-size: 0.9rem;
}

/* Progress Section */
.tier-progress {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-warning);
    font-family: 'Courier New', monospace;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--accent-warning), 
        #ffcc44);
    border-radius: 6px;
    width: 0%;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-stats span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.progress-stats span:last-child {
    color: var(--accent-warning);
    font-weight: 600;
}

/* Tiers Grid */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.tier-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tier-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tier-card.current {
    border-color: var(--accent-warning);
    background: rgba(255, 170, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

.tier-card.achieved {
    border-color: var(--accent-success);
    background: rgba(0, 255, 136, 0.05);
}

.tier-card.locked {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.tier-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tier-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden; /* Tambahkan ini */
}

/* Tambahkan styling untuk gambar di dalam tier-icon */
.tier-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid transparent; /* Tambahkan border */
    transition: border-color 0.3s ease; /* Animasi untuk border */
}

.tier-card.current .tier-icon img {
    border-color: var(--accent-warning);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.tier-card.achieved .tier-icon img {
    border-color: var(--accent-success);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.tier-card.locked .tier-icon img {
    filter: grayscale(0.7);
    opacity: 0.6;
}

.tier-card:hover .tier-icon img {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-card.current .tier-name {
    color: var(--accent-warning);
}

.tier-card.achieved .tier-name {
    color: var(--accent-success);
}

.tier-requirements {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tier-requirements i {
    color: var(--accent-warning);
    font-size: 0.8rem;
}

.tier-reward {
    font-size: 0.8rem;
    color: var(--accent-info);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-reward i {
    font-size: 0.8rem;
}

.tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.tier-card.current .tier-badge {
    background: var(--accent-warning);
    color: var(--text-dark);
}

.tier-card.achieved .tier-badge {
    background: var(--accent-success);
    color: var(--text-dark);
}

.tier-progress-indicator {
    margin-top: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-warning), #ffcc44);
    border-radius: 2px;
}

/* Tier Images Container */
.tier-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.tier-image-item {
    text-align: center;
    width: 80px;
}

.tier-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.tier-image.achieved {
    border-color: var(--accent-success);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.tier-image.current {
    border-color: var(--accent-warning);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
    transform: scale(1.1);
}

.tier-image.locked {
    filter: grayscale(1);
    opacity: 0.5;
}

.tier-image-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 600;
}

/* Tier Tooltip */
.tier-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    width: 250px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.tier-card:hover .tier-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tooltip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.tooltip-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.tooltip-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tooltip-content {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tooltip-rewards {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--accent-info);
}

.reward-item i {
    font-size: 0.8rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.1);
}

/* Game Info */
.game-info {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: var(--glass-blur-light);
    border: 1px solid transparent;
}

.footer-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.footer-note {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    padding: 15px;
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, 
        rgba(20, 20, 40, 0.9), 
        rgba(10, 10, 30, 0.95));
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--accent-sync);
}

.modal-header h2 {
    font-size: 2.2rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: var(--glass-blur-light);
}

.close-modal:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--border-light);
    transform: rotate(90deg);
}

/* Admin Dashboard */
.admin-section {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.admin-section h3 {
    font-size: 1.6rem;
    color: var(--accent-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

/* Edit Statistics Section */
.edit-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.edit-stats-grid .form-group {
    margin-bottom: 15px;
}

.edit-stats-grid .form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
    backdrop-filter: var(--glass-blur-light);
}

.input-with-button input:focus {
    border-color: var(--accent-info);
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.input-with-button input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.stat-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.stat-controls .btn-action {
    flex: 1;
    min-width: 160px;
    padding: 15px;
    font-size: 0.9rem;
}

/* Control Grid */
.control-grid, .sync-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: var(--glass-blur-light);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-info);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.2);
}

.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 25px;
}

.admin-stat-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur-light);
    transition: transform 0.3s;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.5);
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

.admin-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.warning-text {
    color: var(--accent-warning);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 170, 0, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-action {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    font-size: 1rem;
    padding: 18px;
    border: none;
}

.btn-action.warning {
    background: linear-gradient(90deg, #ffaa00, #ffcc44);
}

.btn-action.danger {
    background: linear-gradient(90deg, #ff4444, #ff6666);
}

.btn-action.success {
    background: linear-gradient(90deg, #00ff88, #44ffaa);
}

.btn-action.info {
    background: linear-gradient(90deg, #00a8ff, #0097a7);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur-light);
}

.info-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Device Info Modal */
.device-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.device-card {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.device-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.device-id-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--accent-sync);
    word-break: break-all;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.device-stats {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.device-stats h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid-device {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.device-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.device-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.device-stat .stat-value {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.device-controls {
    background: var(--bg-transparent);
    backdrop-filter: var(--glass-blur-light);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.device-controls h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification.error {
    background: rgba(255, 68, 68, 0.15);
    border-color: var(--accent-error);
    color: var(--accent-error);
}

.notification.warning {
    background: rgba(255, 170, 0, 0.15);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

.notification.info {
    background: rgba(0, 168, 255, 0.15);
    border-color: var(--accent-info);
    color: var(--accent-info);
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Confirm Modal Styles */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal-content {
    background: linear-gradient(135deg, 
        rgba(30, 30, 60, 0.95), 
        rgba(20, 20, 40, 0.98));
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.confirm-modal.active .confirm-modal-content {
    transform: translateY(0) scale(1);
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-warning);
}

.confirm-modal-header i {
    font-size: 2rem;
    color: var(--accent-warning);
}

.confirm-modal-header h3 {
    font-size: 1.6rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.confirm-modal-body {
    margin-bottom: 30px;
}

.confirm-modal-body p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.confirm-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-modal-btn {
    flex: 1;
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.confirm-modal-btn.confirm {
    background: linear-gradient(90deg, var(--accent-warning), #ffcc44);
    color: var(--text-dark);
}

.confirm-modal-btn.confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.3);
}

.confirm-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Stat Confirm Modal */
.stat-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.stat-confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.stat-confirm-content {
    background: linear-gradient(135deg, 
        rgba(30, 30, 60, 0.95), 
        rgba(20, 20, 40, 0.98));
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.stat-confirm-modal.active .stat-confirm-content {
    transform: translateY(0) scale(1);
}

.stat-confirm-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-warning);
}

.stat-confirm-header i {
    font-size: 2rem;
    color: var(--accent-warning);
}

.stat-confirm-header h3 {
    font-size: 1.6rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.stat-confirm-body {
    margin-bottom: 30px;
}

.stat-change-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.stat-change-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-change-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.stat-change-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.stat-change-value.old {
    color: var(--accent-error);
    text-decoration: line-through;
    opacity: 0.8;
}

.stat-change-value.new {
    color: var(--accent-success);
}

.stat-confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.stat-confirm-btn {
    flex: 1;
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stat-confirm-btn.confirm {
    background: linear-gradient(90deg, var(--accent-success), #44ffaa);
    color: var(--text-dark);
}

.stat-confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.stat-confirm-btn.confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.stat-confirm-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.profile-card {
    animation: fadeIn 0.8s ease-out 0.1s both;
}

.stats-grid > * {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.features-grid > * {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.tier-section {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Sync Animation */
@keyframes sync-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.syncing {
    animation: sync-pulse 1s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--glass-blur-light);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Selection Color */
::selection {
    background: rgba(156, 39, 176, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(156, 39, 176, 0.3);
    color: var(--text-primary);
}

/* Focus Outline */
*:focus {
    outline: 2px solid var(--accent-sync);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .header-controls {
        justify-content: center;
        gap: 10px;
    }
    
    .status-indicator {
        min-width: 120px;
        order: -1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .playtime-value {
        font-size: 3.5rem;
    }
    
    .playtime-stats {
        gap: 30px;
    }
    
    .playtime-stat .stat-value {
        font-size: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-info h2 {
        font-size: 2rem;
    }
    
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-details {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .btn-join {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .time-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .sync-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-sync {
        width: 100%;
        justify-content: center;
    }
    
    /* Responsive Tiers */
    .tiers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .tier-card {
        padding: 15px;
    }
    
    .tier-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .tier-name {
        font-size: 1rem;
    }
    
    .tier-images {
        gap: 10px;
    }
    
    .tier-image-item {
        width: 70px;
    }
    
    .tier-image {
        width: 50px;
        height: 50px;
    }
    
    /* Responsive Edit Stats */
    .edit-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .input-with-button {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-edit-stat {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    
    .stat-controls {
        flex-direction: column;
    }
    
    .stat-controls .btn-action {
        width: 100%;
    }
    
    .stat-confirm-buttons,
    .confirm-modal-buttons {
        flex-direction: column;
    }
    
    .stat-confirm-btn,
    .confirm-modal-btn {
        width: 100%;
    }
    
    .stat-confirm-content,
    .confirm-modal-content {
        padding: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .profile-card {
        padding: 25px;
    }
    
    .playtime-value {
        font-size: 2.8rem;
    }
    
    .playtime-stat .stat-value {
        font-size: 1.8rem;
    }
    
    .feature-value {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .dashboard-title h1 {
        font-size: 1.6rem;
    }
    
    .profile-info h2 {
        font-size: 1.8rem;
    }
    
    .btn-refresh,
    .btn-admin,
    .btn-join {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .time-indicator {
        display: none;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    /* Responsive Tiers Mobile */
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tier-current {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .tier-images {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 15px;
    }
    
    .tier-image-item {
        flex-shrink: 0;
    }
    
    /* Responsive Edit Stats Mobile */
    .edit-stats-grid .form-group label {
        font-size: 0.9rem;
    }
    
    .input-with-button input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-edit-stat {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .stat-confirm-header,
    .confirm-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-confirm-header h3,
    .confirm-modal-header h3 {
        font-size: 1.4rem;
    }
    
    .stat-change-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .stat-change-value {
        font-size: 1rem;
    }
}