:root {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.3);
    --gold-accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 2000; width: 0%;
    transition: width 0.1s ease-out;
}

/* Stable Fixed Background Layer (Conditional) */
.fixed-bg-skin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/zinc-bg.png') no-repeat center center;
    background-size: cover;
    will-change: transform;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

/* Home State: Shows Image Background */
body.is-home .fixed-bg-skin {
    opacity: 1;
    visibility: visible;
}
body.is-home { 
    background-color: var(--bg-color) !important; 
}

/* Gamified Star Colors & Elite FX */
.star-gold { color: #f59e0b; text-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }

/* Elite 5-Star Shining Effect */
@keyframes luxuryShine {
    0% { background-position: -200%; }
    100% { background-position: 200%; }
}
.shine-text {
    background: linear-gradient(90deg, #f59e0b, #fff, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: luxuryShine 4s linear infinite;
    font-weight: 800;
}
.legendary-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

/* Star Ranks */
.star-rank-5 { color: #f59e0b; filter: drop-shadow(0 0 3px #f59e0b); } /* Gold/Legend */
.star-rank-45 { color: #ef4444; } /* Red/Master */
.star-rank-40 { color: #a855f7; } /* Purple/Pro */
.star-rank-3 { color: #94a3b8; } /* Silver/Standard */

/* Legendary Divine (5.0 Enhancement) - Steady Gold Breathing Glow */
.card.legendary {
    position: relative;
    border: 2px solid #f59e0b !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    overflow: visible; z-index: 5;
    animation: goldBreathing 3s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes goldBreathing {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); border-color: rgba(245, 158, 11, 0.6); }
    50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.7); border-color: rgba(245, 158, 11, 1); }
}

.card.master-tier {
    border: 2px solid #ef4444 !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    animation: masterPulse 2s ease-in-out infinite;
}
@keyframes masterPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
}

.card.pro-tier {
    border: 1.5px solid #a855f7 !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

h1, h2, h3, .logo { font-family: 'Outfit', sans-serif; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1.2rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; cursor:pointer;}
.logo span { color: var(--primary); }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-right: 1.5rem; font-weight: 500; transition: color 0.2s; cursor:pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { border-bottom: 2px solid var(--primary); padding-bottom: 4px; }

/* Buttons */
button { cursor: pointer; border: none; font-weight: 600; font-family: 'Inter', sans-serif; border-radius: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
button:active { transform: scale(0.95); }

.btn-primary { 
    background: var(--primary); color: #fff; padding: 0.6rem 1.4rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover { 
    background: #3b82f6; 
    box-shadow: 0 8px 25px var(--primary-glow);
    transform: translateY(-2px);
}
.btn-glow {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff; padding: 1rem 2.2rem; font-size: 1.1rem;
    box-shadow: 0 0 25px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-glow:hover { 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 0 40px var(--primary-glow); 
}
.btn-outline { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 0.8rem 1.8rem; 
    font-size: 1.1rem; 
    backdrop-filter: blur(5px);
}
.btn-outline:hover { 
    border-color: var(--primary); 
    background: rgba(59, 131, 246, 0.1); 
    color: var(--primary);
}

/* Home Dashboard (Zinc Architecture Skin) */
.hero-dashboard {
    background: transparent; /* Show the skin beneath */
    padding: 3.5rem 2rem;
    min-height: 100vh; /* Full screen vertical */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0; 
    margin-bottom: 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-dashboard::before {
    display: none; /* Already handled by body gradient */
}
.hero-dashboard::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.3); /* Optimized 30% dark overlay for eye comfort */
    z-index: 0;
}
.hero-dashboard > * { position: relative; z-index: 1; }

@keyframes metallicShine {
    0% { left: -100%; }
    25%, 100% { left: 200%; }
}

.hero-dashboard h1 strong {
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.hero-title-alt {
    color: #ffcc00; /* Premium Gold/Orange */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hero-dashboard h1 {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255,255,255,0.4);
    color: #ffffff;
    font-weight: 800;
}
.stat-card {
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.8rem 1rem; border-radius: 20px; cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.stat-card:hover { 
    transform: translateY(-12px) scale(1.05); 
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow); 
}
.stat-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); font-weight:800; font-family:'Outfit';}
.stat-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; font-weight: 500; letter-spacing: 0.5px;}
.stat-card i { font-size: 2.2rem; margin-bottom: 4px; filter: drop-shadow(0 0 8px var(--primary-glow)); }

/* Hero Stats & Dashboard Grids */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-dashboard .container {
        display: flex;
        flex-direction: column;
        min-height: 80vh; /* Adjust for padding/nav */
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
        gap: 0.8rem;
        margin-top: auto; /* PUSH TO BOTTOM */
        margin-bottom: 2rem; /* Spacing from bottom nav */
    }
}
@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 even on small mobile instead of 1x1 */
        gap: 0.6rem;
    }
    .stat-card {
        padding: 0.7rem 0.4rem;
        border-radius: 12px;
    }
    .stat-card h3 {
        font-size: 0.9rem;
    }
    .stat-card p {
        font-size: 0.7rem;
    }
}

.badge-new { display: inline-block; background: rgba(59, 130, 246, 0.15); color: var(--primary); padding: 0.4rem 1rem; border-radius: 20px; font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem; border: 1px solid rgba(59, 130, 246, 0.3); }

.hero-stats { 
    display: flex; 
    justify-content: center; 
    gap: 1.5rem; 
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 2rem;
}

.hero-stats > div {
    flex: 1;
    min-width: 280px; /* Force wrap if less than 280px */
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-stats > div {
        min-width: 100%;
    }
    .container {
        padding: 2rem 1rem;
    }
    .hero-dashboard h1 {
        font-size: 1.8rem !important;
    }
    .grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.stat-item h3 { font-size: 2rem; color: #fff; margin-bottom: 0.2rem; }
.stat-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }


/* Main Section Layout (SPA) */
.page-section { 
    display: none; 
    animation: premiumFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
    min-height: 80vh; 
    position: relative; 
    z-index: 10; 
    scroll-margin-top: 110px; /* Offset for fixed navbar */
}
.page-section.active { display: block; }

@keyframes premiumFadeIn { 
    from { opacity: 0; transform: translateY(30px) scale(0.98); filter: blur(10px); } 
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } 
}

@keyframes staggerSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Transitions & Reveal */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered Grid Animation Classes */
.grid > *:nth-child(1) { animation-delay: 0.1s; }
.grid > *:nth-child(2) { animation-delay: 0.2s; }
.grid > *:nth-child(3) { animation-delay: 0.3s; }
.grid > *:nth-child(4) { animation-delay: 0.4s; }
.grid > *:nth-child(5) { animation-delay: 0.5s; }
.grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Body Global: Ensure dark background is consistent */
body {
    background-color: var(--bg-color) !important;
}

/* Section Header: Consistent white for all pages */
.section-header { border-bottom: 2px solid var(--border); padding-bottom: 1rem; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; color: #ffffff; text-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.btn-text { background: none; color: #ffffff; opacity: 0.9; font-size: 0.95rem; font-weight: 700; }
.btn-text:hover { text-decoration: underline; color: var(--primary); }

/* Card Components: Unified Premium Look */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card { 
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.5rem; border-radius: 12px;
    border: 1px solid var(--glass-border); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary); 
    background: rgba(255, 255, 255, 0.08); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.2); 
}
.card-title { font-size: 1.25rem; font-weight: 700; color: #ffffff !important; margin-bottom: 0.5rem; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.card-desc { color: #cbd5e1 !important; font-size: 0.95rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #cbd5e1 !important; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.8rem; margin-top: auto;}
.card-info { color: #cbd5e1 !important; font-weight: 500; font-size: 0.82rem; }

/* Remove old overrides */

/* Sub Tabs & Filters */
.sub-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.tab-btn { background: transparent; color: var(--text-muted); padding: 0.6rem 1.2rem; border-radius: 20px; font-size: 0.95rem; font-weight: 600; transition: all 0.2s; }
.tab-btn:hover { background: rgba(37, 99, 235, 0.05); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--primary-glow); }

.filter-bar { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input { 
    padding-left: 2.5rem; margin-bottom: 0; border-radius: 25px; 
    border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.05); color: #ffffff;
}
.search-box .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-style: normal; pointer-events: none; }
.filter-bar select { 
    width: auto; min-width: 140px; margin-bottom: 0; border-radius: 25px; cursor: pointer; 
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: #ffffff;
}
.filter-bar select option { background: #1e293b; color: #ffffff; }

.load-more-container { text-align: center; margin-top: 3rem; margin-bottom: 2rem; }
.load-more-container button { padding: 0.8rem 2.5rem; border-radius: 30px; font-size: 0.9rem; color: var(--primary); border-color: var(--primary); }
.load-more-container button:hover { background: var(--primary); color: #fff; }

.card-badge.closed { background: rgba(148, 163, 184, 0.1); color: #64748b; font-weight: 700; }
.card-badge.waiting { background: #fef3c7; color: #d97706; }

/* Grid & Cards (Moved to unified section) */
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 0.8rem; margin-top: auto;}

/* Home Theme Override: Glassmorphism & White Text for Splash Screen */
body.is-home .card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
body.is-home .card-title, 
body.is-home .card-desc, 
body.is-home .card-meta { color: #ffffff !important; }
body.is-home .card-meta { border-top-color: rgba(255,255,255,0.1) !important; }
body.is-home .card-title { text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.card-badge.closed { background: rgba(148, 163, 184, 0.1); color: #cbd5e1; }
.card.finished { opacity: 0.5; filter: grayscale(50%); }
.card.finished:hover { transform: none; box-shadow: none; }
.btn-closed { background: #94a3b8 !important; color: #fff !important; cursor: not-allowed !important; }

/* Admin Delete / Fade Out Utilities */
.fade-out {
    animation: fadeOutCard 0.4s ease-out forwards;
}
@keyframes fadeOutCard {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); height: 0; padding: 0; margin: 0; overflow: hidden; }
}

.admin-delete-btn {
    background: rgba(220, 38, 38, 0.8);
    color: white; border: none; padding: 4px 8px; border-radius: 4px;
    font-size: 0.8rem; cursor: pointer; transition: 0.2s;
    margin-left: 10px; z-index: 10;
}
.admin-delete-btn:hover { background: #dc2626; transform: scale(1.05); }

.admin-badge-nav {
    background: #dc2626; color: white; padding: 3px 10px; border-radius: 12px;
    font-size: 0.75rem; font-weight: bold; margin-left: 10px; vertical-align: middle;
}

/* Admin & Stats Styles */
.admin-stats-grid .stat-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
}
.admin-stats-grid .stat-card:hover {
    transform: translateY(-5px);
}
.admin-stats-grid h2 {
    font-size: 2rem;
    margin-top: 0.5rem;
    font-family: 'Outfit';
    color: var(--text-main);
}
#admin-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}
#admin-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.1);
}
#admin-table th, #admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
#admin-table select:focus, #admin-table input:focus {
    outline: 1px solid var(--primary);
    border-color: var(--primary);
}

/* Modal (Premium Dark UI) */
.modal { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-content.glass { 
    background: var(--surface-color); 
    border: 1px solid var(--glass-border); 
    padding: 2.5rem; border-radius: 24px; 
    width: 90%; max-width: 440px; position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    animation: slideUp 0.3s ease-out forwards; 
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; right: 1.5rem; top: 1.5rem; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.close-btn:hover { color: var(--text-main); }
.modal-content h2 { margin-bottom: 1.5rem; text-align: center; color: var(--text-main); font-weight: 800; }
input, select { 
    width: 100%; padding: 0.8rem; margin-bottom: 1rem; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--glass-border); 
    color: #ffffff; 
    border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.95rem; 
}
/* Ensure options are readable on all systems */
input option, select option { background: #1e293b; color: #fff; }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.w-100 { width: 100%; }
.toggle-text { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }
.toggle-text span { color: var(--primary); cursor: pointer; font-weight: 600; }
.toggle-text span:hover { text-decoration: underline; }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 2000; }
.hamburger span { width: 25px; height: 3px; background: var(--text-main); border-radius: 3px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Bottom Nav (Mobile Only - Dark Unified) */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    height: 70px; background: #0f172a; border-top: 1px solid var(--glass-border);
    justify-content: space-around; align-items: center; z-index: 2500;
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(10px);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center;
    color: var(--text-muted); font-size: 0.75rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.bottom-nav-item .icon { font-size: 1.5rem; margin-bottom: 2px; }
.bottom-nav-item.active { color: var(--primary); transform: translateY(-3px); }
.bottom-nav-item.active .icon { filter: drop-shadow(0 0 5px var(--primary-glow)); }

/* Mobile only utilities */
.mobile-only { display: none; }

/* Premium Management Screen Styles (Dark Theme Unified) */
#page-admin, #page-mypage {
    color: var(--text-main) !important;
}

#page-admin .container, #page-mypage .container,
#page-admin > div, #page-mypage > div {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main) !important;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#page-admin h2, #page-admin h3, #page-admin p, #page-admin th, #page-admin td, #page-admin label, #page-admin span,
#page-mypage h2, #page-mypage h3, #page-mypage p, #page-mypage label, #page-mypage span {
    color: var(--text-main) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#page-admin .section-header, #page-mypage .section-header {
    border-bottom: 2px solid var(--border) !important;
}

#page-admin table {
    background: transparent !important;
}

#page-admin th {
    background: rgba(255,255,255,0.05) !important;
    border-bottom: 2px solid var(--border) !important;
    color: var(--text-main) !important;
}

#page-admin td {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-main) !important;
}

#page-admin .stat-card {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #page-admin, #page-mypage { padding: 1rem 0.5rem; }
    .section-header h2 { font-size: 1.4rem; }
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .mobile-only { display: block; }
    body { padding-bottom: 80px; } /* Room for bottom nav */
    .nav-container { padding: 1rem; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed; top: 0; left: -100%; width: 250px; height: 100vh;
        background: #0d1117; flex-direction: column; justify-content: flex-start;
        padding-top: 80px; transition: left 0.3s ease;
        border-right: 1px solid var(--border); box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.open { left: 0; }
    
    .nav-links a { margin: 0 0 1rem 0; padding: 1rem 2rem; display: block; width: 100%; font-size: 1.1rem; }
    .nav-links a:hover { background: rgba(255,255,255,0.05); }
    
    .nav-auth { display: none; }
    
    .bottom-nav { display: flex; }
}
