@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #0F0A1E; color: #F5F3FF; min-height: 100vh; }
a { color: #D4A843; text-decoration: none; }
a:hover { text-decoration: underline; }

.header { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; border-bottom: 1px solid rgba(212,168,67,0.1); background: rgba(15,10,30,0.95); position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left h1 { color: #D4A843; font-size: 1rem; font-weight: 600; letter-spacing: 1px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-right .credits { background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.2); padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; color: #D4A843; font-weight: 600; }
.header-right .credits span { font-size: 1.1rem; }
.nav { display: flex; gap: 6px; }
.nav a { color: #C4B5FD; text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all .3s; border: 1px solid transparent; }
.nav a:hover, .nav a.active { color: #D4A843; background: rgba(212,168,67,0.06); border-color: rgba(212,168,67,0.15); text-decoration: none; }
.btn-logout { background: transparent; border: 1px solid rgba(220,38,38,0.3); color: #FCA5A5; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; font-family: 'Inter', sans-serif; transition: all .3s; }
.btn-logout:hover { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.5); }

.container { padding: 32px; max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 1.5rem; font-weight: 600; color: #F5F3FF; margin-bottom: 24px; }

.stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(212,168,67,0.1); border-radius: 12px; padding: 16px 24px; min-width: 140px; text-align: center; flex: 1; }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: #D4A843; }
.stat-card .label { font-size: 0.75rem; color: #C4B5FD; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; transition: all .3s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #6D28D9, #5B21B6); text-decoration: none; }
.btn-gold { background: linear-gradient(135deg, #D4A843, #B8942E); color: #0F0A1E; font-weight: 600; }
.btn-gold:hover { opacity: 0.9; text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid rgba(212,168,67,0.3); color: #D4A843; }
.btn-outline:hover { background: rgba(212,168,67,0.08); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 0.75rem; border-radius: 8px; }
.btn-danger { background: rgba(220,38,38,0.12); color: #FCA5A5; border: 1px solid rgba(220,38,38,0.2); }
.btn-danger:hover { background: rgba(220,38,38,0.2); }

.table-wrap { background: rgba(255,255,255,0.02); border: 1px solid rgba(212,168,67,0.08); border-radius: 16px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead { background: rgba(212,168,67,0.06); }
th { text-align: left; padding: 14px 16px; color: #F5F3FF; font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid rgba(212,168,67,0.05); }
tr:hover td { background: rgba(212,168,67,0.03); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-completed { background: rgba(34,197,94,0.12); color: #86EFAC; }
.badge-pending { background: rgba(234,179,8,0.12); color: #FCD34D; }
.badge-failed { background: rgba(220,38,38,0.12); color: #FCA5A5; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; color: #C4B5FD; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,168,67,0.15); border-radius: 10px;
  color: #F5F3FF; font-size: 0.85rem; font-family: 'Inter', sans-serif; outline: none; transition: all .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #D4A843; }
.form-group select option { background: #1A1230; color: #F5F3FF; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card { background: rgba(255,255,255,0.03); border: 1px solid rgba(212,168,67,0.1); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.card h3 { color: #D4A843; font-size: 1rem; margin-bottom: 16px; }

.actions { display: flex; gap: 6px; }
.toast { position: fixed; bottom: 32px; right: 32px; padding: 14px 20px; border-radius: 12px; font-size: 0.85rem; z-index: 100; transition: all .4s; opacity: 0; transform: translateY(16px); pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86EFAC; }
.toast-error { background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.3); color: #FCA5A5; }

.empty { text-align: center; padding: 64px; color: #C4B5FD; font-size: 0.9rem; }
.loading { text-align: center; padding: 64px; color: #C4B5FD; font-size: 0.9rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px; border-top: 1px solid rgba(212,168,67,0.08); }
.page-info { color: #C4B5FD; font-size: 0.8rem; }
.btn-page { background: rgba(255,255,255,0.04); border: 1px solid rgba(212,168,67,0.15); color: #D4A843; padding: 8px 18px; border-radius: 8px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500; transition: all .3s; }
.btn-page:hover { background: rgba(212,168,67,0.1); border-color: rgba(212,168,67,0.3); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; z-index: 200; }
.modal-overlay.show { display: flex; }
.modal { background: #1A1230; border: 1px solid rgba(212,168,67,0.15); border-radius: 20px; padding: 36px; width: 100%; max-width: 500px; margin: 24px; }
.modal h2 { color: #D4A843; font-size: 1.2rem; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

.credit-pack { background: rgba(255,255,255,0.03); border: 1px solid rgba(212,168,67,0.1); border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: all .3s; }
.credit-pack:hover { border-color: rgba(212,168,67,0.3); background: rgba(212,168,67,0.05); }
.credit-pack .amount { font-size: 2rem; font-weight: 700; color: #D4A843; }
.credit-pack .per { font-size: 0.75rem; color: #C4B5FD; margin-top: 4px; }
.credit-pack .price { font-size: 1.1rem; font-weight: 600; color: #F5F3FF; margin-top: 12px; }

@media (max-width: 768px) {
  .header { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .header-right { flex-wrap: wrap; gap: 8px; }
  .nav { flex-wrap: wrap; }
  .container { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .modal { margin: 12px; padding: 24px; }
}
