/* ============================================================
   DESIGN SYSTEM & CSS VARIABLES
   ============================================================ */
:root {
  --bg-main: #0B0F19;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.09);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.3);
  
  --warning: #F59E0B;
  --warning-glow: rgba(245, 158, 11, 0.3);
  
  --danger: #EF4444;
  --danger-glow: rgba(239, 68, 68, 0.3);

  --vip-gold: #FBBF24;
  --vip-glow: rgba(251, 191, 36, 0.35);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glowing Orbs */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #4F46E5, transparent 70%);
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  bottom: 10%;
  right: -50px;
  animation-delay: -4s;
}

.bg-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #8B5CF6, transparent 70%);
  top: 45%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* Main Container */
.app-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 18px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  background: linear-gradient(90deg, #818CF8, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.nav-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-glass-border);
  gap: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  position: relative;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
}

.nav-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.badge-notify {
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.icon-btn {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

/* ============================================================
   VIEWS & SECTIONS
   ============================================================ */
.view-section {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

.view-section.active {
  display: block;
}

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

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.85));
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.15);
  color: #A5B4FC;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.hero-content p {
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.account-search-bar {
  display: flex;
  gap: 0.8rem;
  max-width: 620px;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1.1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.input-with-icon input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  padding: 0.9rem 1rem 0.9rem 2.9rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4F46E5);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4F46E5, #4338CA);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  box-shadow: 0 4px 15px var(--success-glow);
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--success-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: #A5B4FC;
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
}

.btn-ghost {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   ACCOUNT RESULT CARD
   ============================================================ */
.account-result-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md), 0 0 30px rgba(99, 102, 241, 0.15);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-glass-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.user-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.user-meta h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.user-id-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #93C5FD;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: all 0.2s ease;
}

.user-id-copy:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #fff;
}

.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-suspended {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-box {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-kredit { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.icon-calendar { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.icon-package { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.icon-run { background: rgba(6, 182, 212, 0.15); color: #22D3EE; }

.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.stat-value small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.text-glow {
  color: #FCD34D;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* ============================================================
   PACKAGES SECTION
   ============================================================ */
.section-title {
  margin-bottom: 1.5rem;
}

.section-title h3 {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

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

.package-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.package-card.selected {
  border: 2px solid var(--primary);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 25px var(--primary-glow);
}

.package-card.popular {
  border-color: rgba(99, 102, 241, 0.5);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.vip-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.pkg-header {
  margin-bottom: 1.25rem;
}

.pkg-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.popular-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

.vip-tag {
  background: rgba(251, 191, 36, 0.2);
  color: var(--vip-gold);
}

.pkg-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pkg-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.pkg-features {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.feat-item i {
  color: var(--success);
  font-size: 0.85rem;
}

.pkg-btn {
  width: 100%;
}

/* ============================================================
   CHECKOUT SECTION
   ============================================================ */
.checkout-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.checkout-header {
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--bg-glass-border);
  padding-bottom: 1rem;
}

.checkout-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkout-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.payment-methods-box h4, .order-summary-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.pay-option {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-option:hover {
  background: var(--bg-card-hover);
}

.pay-option.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
}

.pay-info {
  display: flex;
  flex-direction: column;
}

.pay-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.pay-info small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Pay Display Box */
.pay-display-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.qris-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qris-header {
  margin-bottom: 1rem;
}

.qris-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #C7D2FE;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.qr-code-img {
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  max-width: 100%;
}

.qr-code-img img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.2s ease;
}

.qr-code-img img:hover {
  transform: scale(1.02);
}

.qris-footer {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.qris-footer span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 4px;
}

.bank-item {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.bank-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #60A5FA;
}

.bank-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.3rem 0;
}

.bank-acc-row code {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

.bank-holder {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Order Summary Box */
.summary-rows {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

.sum-row strong {
  color: var(--text-primary);
}

.sum-divider {
  height: 1px;
  background: var(--bg-glass-border);
  margin: 0.8rem 0;
}

.total-row {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0;
}

.sum-total-price {
  color: #FCD34D;
  font-size: 1.3rem;
  font-weight: 800;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.required-badge {
  color: #F87171;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.security-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ============================================================
   ADMIN DASHBOARD SECTION
   ============================================================ */
.admin-lock-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 4rem auto;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lock-icon-box {
  width: 68px;
  height: 68px;
  background: rgba(99, 102, 241, 0.15);
  color: #818CF8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.admin-lock-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-lock-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.8rem;
}

.pin-input-box {
  display: flex;
  gap: 0.6rem;
}

.pin-input-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
  font-family: var(--font-mono);
  outline: none;
}

.pin-input-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Admin Inner Dashboard */
.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  gap: 1rem;
}

.admin-header-row h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.admin-header-row p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-header-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-kpi-grid {
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.kpi-card.highlight {
  cursor: pointer;
  border-color: rgba(245, 158, 11, 0.3);
}

.kpi-card.highlight:hover {
  border-color: var(--warning);
  box-shadow: 0 0 20px var(--warning-glow);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-users { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.icon-credit-pool { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.icon-executions { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.icon-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: block;
}

.kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Admin Sub Tabs */
.admin-sub-tabs {
  display: flex;
  gap: 0.6rem;
  border-bottom: 1px solid var(--bg-glass-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.sub-tab-btn:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.sub-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.badge-pill {
  background: var(--warning);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.admin-sub-section {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.admin-sub-section.active {
  display: block;
}

/* Table Design */
.card-table-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.table-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.table-header-flex h4 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-filters {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.search-input-sm {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-sm i {
  position: absolute;
  left: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-input-sm input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.45rem 0.8rem 0.45rem 2.2rem;
  font-size: 0.85rem;
  outline: none;
}

.search-input-sm input:focus {
  border-color: var(--primary);
}

.select-sm {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.custom-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-actions {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}

.action-btn {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.action-btn.btn-approve {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

.action-btn.btn-approve:hover {
  background: var(--success);
  color: #fff;
}

.action-btn.btn-reject {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.action-btn.btn-reject:hover {
  background: var(--danger);
  color: #fff;
}

/* Settings Card */
.settings-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 720px;
}

.settings-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.settings-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

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

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: scaleUp 0.25s ease;
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--bg-glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.user-highlight-badge {
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin-bottom: 1.25rem;
}

.quick-credit-presets {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.preset-btn {
  flex: 1;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #1E293B;
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
  max-width: 420px;
}

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

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-success i { color: var(--success); font-size: 1.2rem; }

.toast.toast-error { border-left: 4px solid var(--danger); }
.toast.toast-error i { color: var(--danger); font-size: 1.2rem; }

.toast.toast-info { border-left: 4px solid var(--primary); }
.toast.toast-info i { color: #818CF8; font-size: 1.2rem; }

/* Utilities */
.hidden { display: none !important; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* File Upload Box (Bukti Transfer) */
.file-upload-box {
  background: rgba(0, 0, 0, 0.35);
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.upload-placeholder i {
  font-size: 2rem;
  color: #818CF8;
  margin-bottom: 0.2rem;
}

.upload-placeholder span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-placeholder small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.proof-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.proof-preview-wrapper img {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.proof-preview-overlay {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
}

.proof-preview-overlay span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #A5B4FC;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.btn-remove-proof {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.btn-remove-proof:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #fff;
}
