/* ========================================
   The Pick Crew — Dark Theme
   ======================================== */

:root {
    --bg-primary: #0B0E17;
    --bg-card: #151922;
    --bg-card-hover: #1a1f2e;
    --bg-surface: #111620;
    --border: #1e2533;
    --border-light: #2a3040;
    --text-primary: #e8eaf0;
    --text-secondary: #8892a4;
    --text-muted: #5a6478;
    --accent-gold: #FFD700;
    --accent-green: #4CAF50;
    --accent-red: #E53935;
    --accent-blue: #2196F3;
    --accent-purple: #9C27B0;
    --accent-orange: #FF9800;
    --accent-teal: #00BCD4;
    --win: #4CAF50;
    --loss: #E53935;
    --push: #78909C;
    --pending: #5a6478;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
.navbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: -0.5px;
    margin-right: 2rem;
    text-decoration: none;
}
.nav-brand:hover { text-decoration: none; opacity: 0.9; }
.nav-brand span { color: var(--text-primary); }

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    flex: 1;
}

.nav-links a {
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); text-decoration: none; }
.nav-links a.active { color: var(--accent-gold); background: rgba(255,215,0,0.08); }

.nav-cta {
    background: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
    font-weight: 700 !important;
    padding: 0.5rem 1.2rem !important;
}
.nav-cta:hover { opacity: 0.9; }

/* ---- HAMBURGER ---- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---- LAYOUT ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ---- CARDS ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-light); }
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.5rem 1rem 1rem;
        gap: 0;
        z-index: 99;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 0.75rem 0.85rem;
        border-radius: var(--radius-sm);
    }
    .nav-cta { text-align: center; margin-top: 0.5rem; }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 1rem; }
    .navbar { padding: 0 1rem; }
}

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, #151922 0%, #1a1f2e 50%, #151922 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.hero h1 .gold { color: var(--accent-gold); }
.hero .tagline {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}
.hero .live-record {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}
.hero .live-dot {
    width: 8px; height: 8px;
    background: var(--win);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---- PICK CARDS ---- */
.pick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pick-card .matchup {
    font-weight: 700;
    font-size: 1rem;
}
.pick-card .pick-selection {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
}
.pick-card .confidence-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.pick-card .confidence-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.pick-card .reasoning {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}
.pick-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- RESULT BADGES ---- */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.65rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.badge-win { background: rgba(76,175,80,0.15); color: var(--win); }
.badge-loss { background: rgba(229,57,53,0.15); color: var(--loss); }
.badge-push { background: rgba(120,144,156,0.15); color: var(--push); }
.badge-pending { background: rgba(90,100,120,0.15); color: var(--pending); }

/* Sport badges */
.sport-badge { padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.sport-mlb { background: rgba(229,57,53,0.15); color: #E53935; }
.sport-nba, .sport-cbb { background: rgba(255,152,0,0.15); color: #FF9800; }
.sport-nhl { background: rgba(0,188,212,0.15); color: #00BCD4; }
.sport-nfl, .sport-cfb { background: rgba(76,175,80,0.15); color: #4CAF50; }

/* ---- BOT CARDS ---- */
.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.bot-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.bot-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.bot-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.bot-role { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.5rem; }
.bot-catchphrase { color: var(--text-muted); font-style: italic; font-size: 0.8rem; }

/* ---- STAT BOXES ---- */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* ---- LEADERBOARD ---- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.leaderboard-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.leaderboard-table tr:hover td {
    background: var(--bg-card-hover);
}
.rank-1 { color: var(--accent-gold); font-weight: 800; }
.rank-2 { color: #C0C0C0; font-weight: 700; }
.rank-3 { color: #CD7F32; font-weight: 700; }

/* ---- SECTION HEADERS ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
}
.section-header .see-all {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ---- STREAK INDICATOR ---- */
.streak-hot { color: #FF6B35; }
.streak-cold { color: #64B5F6; }
.streak-fire::after { content: ' 🔥'; }

/* ---- TIER BADGES (parlays) ---- */
.tier-safe { background: rgba(76,175,80,0.15); color: #4CAF50; }
.tier-medium { background: rgba(255,193,7,0.15); color: #FFC107; }
.tier-spicy { background: rgba(255,152,0,0.15); color: #FF9800; }
.tier-high { background: rgba(229,57,53,0.15); color: #E53935; }
.tier-degen { background: rgba(156,39,176,0.15); color: #CE93D8; }

/* ---- PROGRESS BAR (ladder) ---- */
.ladder-progress {
    background: var(--border);
    border-radius: 50px;
    height: 24px;
    overflow: hidden;
    position: relative;
}
.ladder-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #FFA000);
    border-radius: 50px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bg-primary);
    min-width: 40px;
}

/* ---- BANKROLL CHART PLACEHOLDER ---- */
.bankroll-hero {
    background: linear-gradient(135deg, #1a1a00 0%, #1a1500 50%, #151922 100%);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.bankroll-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-gold);
}
.bankroll-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ---- PLAN CARDS ---- */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
}
.plan-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255,215,0,0.1);
}
.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 900; color: var(--accent-gold); }
.plan-price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.plan-features { list-style: none; margin: 1.5rem 0; text-align: left; }
.plan-features li { padding: 0.4rem 0; color: var(--text-secondary); font-size: 0.9rem; }
.plan-features li::before { content: '✓ '; color: var(--accent-green); font-weight: 700; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: 0.9; transform: translateY(-1px); }
.btn-gold { background: var(--accent-gold); color: var(--bg-primary); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ---- FOOTER ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3rem;
}

/* ---- BLURRED VIP TEASE ---- */
.vip-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    position: relative;
}
.vip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,14,23,0.6);
    border-radius: var(--radius);
    z-index: 10;
}
.vip-overlay .btn { font-size: 1rem; padding: 0.75rem 2rem; }

/* ---- FREE TAG ---- */
.free-tag {
    background: rgba(33,150,243,0.15);
    color: var(--accent-blue);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---- ACCENT BORDERS ---- */
.accent-border-gold { border-left: 3px solid var(--accent-gold); }
.accent-border-red { border-left: 3px solid #E53935; }
.accent-border-teal { border-left: 3px solid #00BCD4; }
.accent-border-orange { border-left: 3px solid #FF9800; }
.accent-border-green { border-left: 3px solid #4CAF50; }
.accent-border-blue { border-left: 3px solid #2196F3; }
.accent-border-purple { border-left: 3px solid #9C27B0; }

/* ========================================
   AUTHENTICATION & FORMS
   ======================================== */

/* Flash Messages */
.flash-messages {
    max-width: 600px;
    margin: 1rem auto;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
}

.flash-success {
    background: rgba(76, 175, 80, 0.15);
    border-left: 3px solid var(--accent-green);
    color: var(--accent-green);
}

.flash-danger {
    background: rgba(229, 57, 53, 0.15);
    border-left: 3px solid var(--accent-red);
    color: var(--accent-red);
}

.flash-info {
    background: rgba(33, 150, 243, 0.15);
    border-left: 3px solid var(--accent-blue);
    color: var(--accent-blue);
}

.flash-warning {
    background: rgba(255, 152, 0, 0.15);
    border-left: 3px solid var(--accent-orange);
    color: var(--accent-orange);
}

/* Auth Container */
.auth-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox label {
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* Auth Benefits */
.auth-benefits {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.auth-benefits h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.auth-benefits ul {
    list-style: none;
    margin-bottom: 1rem;
}

.auth-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.upgrade-hint {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--accent-blue);
    font-weight: 600;
    text-align: center;
}

/* Account Dashboard */
.account-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.account-container h1 {
    margin-bottom: 2rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.account-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.account-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.account-info .info-row:last-child {
    border-bottom: none;
}

.account-info .label {
    color: var(--text-secondary);
    font-weight: 600;
}

.account-info .value {
    color: var(--text-primary);
}

/* Subscription Status */
.subscription-status {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-vip {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
}

.status-free {
    background: rgba(33, 150, 243, 0.15);
    color: var(--accent-blue);
}

.status-admin {
    background: rgba(156, 39, 176, 0.15);
    color: var(--accent-purple);
}

.subscription-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Favorites List */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.bot-emoji {
    font-size: 1.5rem;
}

.bot-name {
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Settings */
.settings-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.settings-container h1 {
    margin-bottom: 2rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.settings-form h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.settings-form hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Nav Badge */
.nav-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.admin-dashboard,
.admin-settings,
.admin-users,
.admin-user-detail {
    padding: 2rem 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Admin Section */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Admin Table */
.admin-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.role-free {
    background: rgba(138, 146, 164, 0.15);
    color: var(--text-secondary);
}

.role-vip {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
}

.role-admin {
    background: rgba(156, 39, 176, 0.15);
    color: var(--accent-purple);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent-green);
}

.status-inactive {
    background: rgba(138, 146, 164, 0.15);
    color: var(--text-secondary);
}

.status-banned {
    background: rgba(229, 57, 53, 0.15);
    color: var(--accent-red);
}

.status-trialing {
    background: rgba(33, 150, 243, 0.15);
    color: var(--accent-blue);
}

.status-canceled,
.status-expired {
    background: rgba(138, 146, 164, 0.15);
    color: var(--text-secondary);
}

.status-past_due {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-orange);
}

.verified {
    color: var(--accent-green);
    font-weight: 700;
}

.unverified {
    color: var(--text-muted);
}

/* Admin Filters */
.admin-filters {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="text"] {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Admin Settings */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.settings-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
    padding-right: 2rem;
}

.setting-info strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.setting-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.setting-control {
    flex-shrink: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    border: 2px solid var(--border);
    transition: 0.3s;
    border-radius: 999px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

/* User Detail */
.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.detail-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: right;
}

/* Button Variants */
.btn-block {
    width: 100%;
    text-align: center;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #c62828;
    text-decoration: none;
}

.btn-small,
.btn-small.btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-actions {
        flex-direction: column;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input[type="text"] {
        width: 100%;
    }

    .setting-item {
        flex-direction: column;
        gap: 1rem;
    }

    .setting-info {
        padding-right: 0;
    }

    .user-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-table-container {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}
