* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; color: #333; }

/* Navbar */
.navbar { background: #1a1a2e; color: #fff; padding: 0 24px; display: flex; align-items: center; height: 56px; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.nav-brand { font-size: 18px; font-weight: 700; margin-right: 40px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: #adb5bd; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; transition: all .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.active { color: #fff; background: #4361ee; }

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-left: 4px solid #4361ee; }
.stat-card.stat-success { border-left-color: #2ec4b6; }
.stat-card.stat-info { border-left-color: #3a86ff; }
.stat-card.stat-warning { border-left-color: #ff9f1c; }
.stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; }
.stat-label { font-size: 13px; color: #6c757d; margin-top: 4px; }

/* Cards */
.card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 24px; }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #1a1a2e; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; background: #f8f9fa; color: #6c757d; font-weight: 600; border-bottom: 2px solid #e9ecef; white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
tr:hover { background: #f8f9fa; }
tr.row-active { background: #e8f5e9; }
code { background: #f0f2f5; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.text-center { text-align: center; color: #999; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-expired { background: #f8d7da; color: #721c24; }
.badge-completed { background: #d1ecf1; color: #0c5460; }

/* Buttons */
.btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; transition: all .2s; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-primary { background: #4361ee; color: #fff; }
.btn-primary:hover { background: #3a56d4; }
.btn-secondary { background: #e9ecef; color: #495057; }
.btn-secondary:hover { background: #dee2e6; }
.btn-success { background: #2ec4b6; color: #fff; }
.btn-success:hover { background: #26a69a; }
.btn-danger { background: #e63946; color: #fff; }
.btn-danger:hover { background: #d32f2f; }
.btn-full { width: 100%; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: #495057; }
.form-group input, .form-group select { width: 100%; padding: 8px 12px; border: 1px solid #dee2e6; border-radius: 6px; font-size: 14px; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus { border-color: #4361ee; outline: none; box-shadow: 0 0 0 3px rgba(67,97,238,.15); }
.filter-form .filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-form input, .filter-form select { padding: 8px 12px; border: 1px solid #dee2e6; border-radius: 6px; font-size: 13px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #1a1a2e, #16213e); }
.login-box { background: #fff; padding: 40px; border-radius: 16px; width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-box h1 { text-align: center; color: #4361ee; font-size: 24px; margin-bottom: 4px; }
.login-box h2 { text-align: center; color: #6c757d; font-size: 14px; font-weight: 400; margin-bottom: 24px; }

/* Countdown */
.countdown { font-weight: 600; color: #e63946; }
.countdown.ok { color: #2ec4b6; }
