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

:root {
    --sidebar-width: 260px;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8940f;
    --neon-blue: #00D4FF;
    --neon-cyan: #00E5FF;
    --blue: #5865f2;
    --blue-dark: #4752c4;
    --bg-dark: #0f0f0f;
    --bg-darker: #0f0f0f;
    --bg-sidebar: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #a2a2a2;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: 70px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 999;
}

.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(0, 212, 255, 0.1) 20%, 
        rgba(0, 212, 255, 0.3) 50%, 
        rgba(0, 212, 255, 0.1) 80%, 
        transparent 100%);
    pointer-events: none;
}

.top-bar-point-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.top-bar-active-users {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.active-users-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.active-users-count {
    min-width: 32px;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    border: none;
    cursor: pointer;
}

.active-users-count:hover {
    background: rgba(0, 212, 255, 0.25);
}

.active-users-status {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.active-users-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}


.active-users-settings:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--neon-blue);
}

.stream-day-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    min-width: 120px;
    height: 44px; /* match visual height of point buttons */
    margin-right: 0.75rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    box-shadow: 0 6px 18px rgba(4,4,4,0.45), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.stream-day-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-right: 0.6rem;
    position: relative;
    padding-right: 0.8rem;
}

.stream-day-label::after {
    content: '';
    position: absolute;
    right: 0.2rem;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-radius: 1px;
    opacity: 0.9;
}

.stream-day-value {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--neon-blue);
    line-height: 1;
    letter-spacing: -0.01em;
    margin-left: 0.6rem;
    min-width: 48px;
    text-align: right;
}

.stream-day-breakdown {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Colors for positive/negative/net values */
.stream-day-value.positive {
    color: #4caf50; /* green */
}

.stream-day-value.negative {
    color: #f44336; /* red */
}

.stream-day-value.zero {
    color: var(--text-muted);
}

.stream-day-breakdown .added {
    color: #4caf50;
    font-weight: 800;
}

.stream-day-breakdown .removed {
    color: #f44336;
    font-weight: 800;
}

.active-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--neon-blue);
    font-weight: 700;
    white-space: nowrap;
}

.active-count-badge i {
    font-size: 0.6rem;
}

/* Hover/active micro interaction */
.stream-day-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(4,4,4,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
}

.point-btn {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.point-btn > i {
    padding: 0.75rem 0 0.75rem 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.point-btn > span:not(.point-amount) {
    padding: 0.75rem 0.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
}

.point-btn .point-amount {
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    margin-left: 0.5rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    position: relative;
}

.point-btn .point-amount::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.1) 100%);
}

.point-btn-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.point-btn-silver:hover {
    background: linear-gradient(135deg, #d0d0d0 0%, #b8b8b8 100%);
    transform: translateY(-1px);
}

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

.point-btn-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.point-btn-gold:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffc700 100%);
    transform: translateY(-1px);
}

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

.point-btn-diamond {
    background: linear-gradient(135deg, #b9f2ff 0%, #00d4ff 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

.point-btn-diamond:hover {
    background: linear-gradient(135deg, #c9f5ff 0%, #1ae4ff 100%);
    transform: translateY(-1px);
}

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

.point-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.point-btn.loading {
    position: relative;
    color: transparent;
}

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

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

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.top-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.language-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.language-btn:hover::before {
    opacity: 1;
}

.flag-icon {
    display: block;
    line-height: 1;
    font-size: 1.65rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.language-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.admin-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    height: 42px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.2);
}

.admin-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.admin-btn-text {
    white-space: nowrap;
}

.logout-btn {
    background: linear-gradient(to bottom, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    padding: 0.7rem;
    border-radius: 10px;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
}

.logout-icon {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    stroke-width: 2;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.05));
}
 
.logout-btn:hover {
    background: linear-gradient(to bottom, #f87171 0%, #ef4444 50%, #dc2626 100%);
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 212, 255, 0.2) 20%, 
        rgba(0, 212, 255, 0.4) 50%, 
        rgba(0, 212, 255, 0.2) 80%, 
        transparent 100%);
    pointer-events: none;
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar-header {
    padding: 0.5rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.logo-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0.2rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    display: block;
    padding: 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.nav-sub-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: #f5f5f5;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--neon-blue);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 0;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 2px rgba(0, 212, 255, 0.15);
}

.nav-link:hover::before {
    opacity: 1;
    box-shadow: 0 0 2px rgba(0, 212, 255, 0.2);
}

.nav-link.active::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.08) 55%, transparent 100%);
    opacity: 1;
}

.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2), 0 0 12px rgba(255, 255, 255, 0.1);
}

.nav-link.active::before {
    opacity: 1;
    box-shadow: 0 0 3px rgba(0, 212, 255, 0.3);
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: #f0f0f0;
    position: relative;
    z-index: 2;
}

.nav-link:hover i {
    color: var(--neon-blue);
    filter: drop-shadow(0 0 1px rgba(0, 212, 255, 0.15));
}

.nav-link.active i {
    color: #ffffff;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.nav-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.badge-live {
    background: var(--neon-blue);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    transition: var(--transition);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.welcome-section {
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon-blue);
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header {
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: -1.5rem;
    padding-top: 1.5rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.content-section {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.recent-activity {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.recent-activity h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.activity-info p {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Leaderboard styling for Top Users */
.recent-activity .activity-list {
    counter-reset: leaderboard-rank;
    gap: 0.85rem;
}

.recent-activity .activity-item {
    position: relative;
    padding: 1.1rem 1.25rem 1.1rem 4.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.recent-activity .activity-item::before {
    counter-increment: leaderboard-rank;
    content: counter(leaderboard-rank);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    border-radius: 14px 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.recent-activity .activity-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(0, 212, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.recent-activity .activity-item:nth-child(1) {
    border-color: rgba(255, 215, 0, 0.6);
}

.recent-activity .activity-item:nth-child(1)::before {
    background: linear-gradient(135deg, #FFD700 0%, #FFB300 100%);
    color: #1a1a1a;
    border-color: rgba(255, 215, 0, 0.8);
}

.recent-activity .activity-item:nth-child(2)::before {
    background: linear-gradient(135deg, #E0E0E0 0%, #B8B8B8 100%);
    color: #1a1a1a;
    border-color: rgba(224, 224, 224, 0.8);
}

.recent-activity .activity-item:nth-child(3)::before {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    color: #fff;
    border-color: rgba(205, 127, 50, 0.85);
}

.recent-activity .activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 229, 255, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--neon-blue);
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.recent-activity .activity-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-btn {
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
    min-width: auto;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(.pagination-disabled):not(:disabled) {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.pagination-btn:active:not(.pagination-disabled):not(:disabled) {
    transform: translateY(0);
}

.pagination-btn.pagination-disabled,
.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-number {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.pagination-number:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.pagination-number:active {
    transform: translateY(0);
}

.pagination-number.pagination-active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 180, 220, 0.25));
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 42px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, rgba(0, 180, 220, 0.9) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary::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;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95) 0%, rgba(0, 200, 240, 0.95) 100%);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f44336 0%, rgba(229, 57, 53, 0.9) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-danger::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;
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.95) 0%, rgba(211, 47, 47, 0.95) 100%);
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-danger:hover::before {
    left: 100%;
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4caf50 0%, rgba(76, 175, 80, 0.9) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-success::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;
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(69, 160, 73, 0.95) 100%);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neon-blue);
}

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

.section-header h2 {
    margin: 0;
    flex: 1;
}

.section-header .btn-primary,
.section-header .btn-success,
.section-header button {
    flex-shrink: 0;
    margin-left: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table th:first-child {
    border-top-left-radius: 12px;
}

.data-table th:last-child {
    border-top-right-radius: 12px;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.data-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.data-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Modern List Styles */
.list-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.control-group label i {
    color: var(--neon-blue);
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%2300D4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.custom-select-wrapper:hover::after {
    transform: translateY(-50%) scale(1.1);
}

.custom-select-wrapper .control-select:focus + ::after,
.control-select:focus {
    outline: none;
}

.control-select {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.control-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.control-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), 0 4px 16px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.08);
}

.control-select:active {
    transform: translateY(0);
}

/* Style dropdown options - better browser support */
.control-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
}

.control-select option:hover,
.control-select option:focus {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
}

.control-select option:checked {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
    font-weight: 600;
}

/* Custom dropdown styling for better appearance */
.control-select::-ms-expand {
    display: none;
}

/* Firefox specific */
@-moz-document url-prefix() {
    .control-select {
        padding-right: 2.25rem;
    }
}

.modern-list-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.user-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.user-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--neon-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.user-list-item:hover::before {
    opacity: 1;
}

.user-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.user-rank-badge.rank-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.user-rank-badge.rank-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    border-color: #C0C0C0;
    color: #000;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
}

.user-rank-badge.rank-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
    border-color: #CD7F32;
    color: #fff;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
}

.rank-number {
    font-weight: 800;
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.meta-item i {
    color: var(--neon-blue);
    font-size: 0.75rem;
}

.user-points-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    font-weight: 700;
    color: #FFC107;
}

.points-display i {
    font-size: 1.1rem;
    color: #FFC107;
}

.points-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-manage {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-manage:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.btn-manage i {
    font-size: 0.85rem;
}

.loading-state, .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-state i, .empty-state i {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-btn {
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-number {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.pagination-number:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.pagination-number:active {
    transform: translateY(0);
}

.pagination-number.pagination-active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 180, 220, 0.25));
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 42px;
}

/* Responsive adjustments for modern list */
@media (max-width: 768px) {
    .list-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
    }
    
    .control-select {
        width: 100%;
    }
    
    .user-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-info-section {
        width: 100%;
    }
    
    .user-points-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-meta {
        gap: 0.75rem;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.giveaway-card, .raffle-card, .battle-card {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.giveaway-card:hover, .raffle-card:hover, .battle-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.giveaway-header, .raffle-header, .battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.giveaway-header h3, .raffle-header h3, .battle-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.giveaway-body, .raffle-body, .battle-body {
    margin-bottom: 1rem;
}

.giveaway-body p, .raffle-body p, .battle-body p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* Badges */
.badge-live, .badge-upcoming, .badge-success, .badge-warning {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-live {
    background: rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.badge-upcoming {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.badge-warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    transition: all 0.3s ease;
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover .toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(220, 53, 69, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:checked ~ * {
    color: #28a745;
}

.toggle-switch:hover input:checked + .toggle-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(40, 167, 69, 0.2);
}

/* Locked Container Overlay */
.bets-container {
    position: relative;
}

.bets-container.locked {
    pointer-events: none;
}

.bets-container.locked > * {
    pointer-events: none;
    user-select: none;
}

.bets-container.locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    cursor: not-allowed;
    border-radius: 12px;
}

.bets-container.locked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    opacity: 0.95;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), rgba(0, 212, 255, 0.6));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Shop Grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.shop-item {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.shop-item:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.item-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--neon-blue);
}

.item-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.item-price {
    margin: 0.5rem 0 1rem 0;
    color: var(--neon-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Search Input */
.search-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    width: 250px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-input-wrapper .search-input {
    padding-right: 2.5rem;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
}

.search-icon:hover {
    color: var(--neon-blue);
}

/* Filter Select */
.filter-select {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Battle Progress */
.battle-progress {
    margin-top: 1rem;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

/* Change Bot Button */
.change-bot-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 180, 220, 0.15) 100%);
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.change-bot-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 200, 240, 0.2) 100%);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.change-bot-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.change-bot-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.change-bot-btn:hover i {
    transform: rotate(180deg);
}

.change-bot-btn span {
    display: none;
}

@media (min-width: 768px) {
    .change-bot-btn span {
        display: inline;
    }
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-logo {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo .logo-img {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--neon-blue);
    width: 16px;
}

.form-group input {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.btn-login {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-login i {
    transition: transform 0.3s;
}

.btn-login:hover i {
    transform: translateX(4px);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.toast.success {
    color: #4caf50;
    border-left-color: #4caf50;
}

.toast.error {
    color: #f44336;
    border-left-color: #f44336;
}

.toast.warning {
    color: #ff9800;
    border-left-color: #ff9800;
}

.toast.info {
    color: #00D4FF;
    border-left-color: #00D4FF;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.toast-close i {
    font-size: 0.875rem;
}

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

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

.toast.slide-out {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

/* Auto Points Modal */
.auto-points-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.auto-points-modal-overlay.show {
    display: flex;
}

.auto-points-modal {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.auto-points-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auto-points-modal-title i {
    color: var(--neon-blue);
    font-size: 1.3rem;
}

.auto-points-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.active-users-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.active-users-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.active-users-toggle .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(244, 67, 54, 0.6);
    border-radius: 999px;
    transition: var(--transition);
}

.active-users-toggle .slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.active-users-toggle input:checked + .slider {
    background: rgba(76, 175, 80, 0.7);
}

.active-users-toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.auto-points-modal-body label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auto-points-modal-body select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.auto-points-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auto-points-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.auto-points-btn {
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

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

.auto-points-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.auto-points-btn-save {
    background: var(--neon-blue);
    color: #000;
}

.auto-points-btn-save:hover {
    background: #00c4e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}


/* Active Users Modal */
.active-users-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.active-users-modal-overlay.show {
    display: flex;
}

.active-users-modal {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.active-users-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.active-users-modal-title i {
    color: var(--neon-blue);
    font-size: 1.2rem;
}

.active-users-modal-body {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.active-users-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.active-users-row {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.active-users-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.active-users-btn {
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.active-users-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-modal-overlay.show {
    display: flex;
}

.confirm-modal {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.confirm-modal-title i {
    color: #ff9800;
    font-size: 1.5rem;
}

.confirm-modal-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.confirm-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

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

.confirm-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.confirm-modal-btn-confirm {
    background: var(--neon-blue);
    color: #000;
    font-weight: 600;
}

.confirm-modal-btn-confirm:hover {
    background: #00c4e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.confirm-modal-btn-danger {
    background: #f44336;
    color: #fff;
    font-weight: 600;
}

.confirm-modal-btn-danger:hover {
    background: #e53935;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

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

@keyframes modalSlideIn {
    from {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .confirm-modal {
        padding: 1.5rem;
        width: 95%;
    }
    
    .confirm-modal-actions {
        flex-direction: column;
    }
    
    .confirm-modal-btn {
        width: 100%;
    }

    .top-bar-active-users {
        padding: 0.3rem 0.45rem;
        gap: 0.35rem;
    }

    .active-users-label {
        display: none;
    }

    .active-users-status {
        display: none;
    }

    .auto-points-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .auto-points-modal-actions {
        flex-direction: column;
    }

    .auto-points-btn {
        width: 100%;
    }
}

/* Admin Form */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form .btn-success {
    align-self: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .login-box {
        padding: 2rem;
    }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #3d2914 0%, #1a1a1a 50%, #0a1628 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.8;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-gold {
    background: var(--gold);
    color: #000;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-discord {
    background: var(--blue);
    color: var(--text-primary);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.btn-discord:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

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

/* Content Cards */
.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-card {
    background: var(--bg-darker);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

.card-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bonus-hunts {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
}

.bonus-hunts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" font-size="20" fill="rgba(255,255,255,0.3)" text-anchor="middle" dominant-baseline="middle">🎰</text></svg>');
    opacity: 0.2;
}

.card-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 6px;
    white-space: nowrap;
}

.coin-store {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #b8940f 100%);
    flex-direction: column;
    gap: 1rem;
}

.coin-store i {
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.3);
}

.logo-text-small {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}

.leaderboard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex-direction: column;
    padding: 2rem;
    color: white;
}

.leaderboard-preview {
    width: 100%;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.leaderboard-prize {
    background: var(--gold);
    color: #000;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.discord {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
}

.discord i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
}

.content-card h3 {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .top-menu-btn {
        display: block;
    }

    .top-bar {
        left: 0;
        padding-left: 4rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        margin-top: 70px;
    }

    .hero-banner {
        padding: 2.5rem 1.5rem;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .content-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-sidebar);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content .close {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.modal-content .close:hover {
    color: var(--text-primary);
}

.modal-content .close:focus {
    outline: none;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form label {
    font-weight: 700;
    color: var(--text-primary);
}

.modal-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.modal-form input[readonly] {
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.7;
    cursor: not-allowed;
}

#resetConfirmInput {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    font-size: 1.1rem;
}

#resetConfirmInput:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

#resetConfirmError {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.modal-form button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modal-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
