@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --mc-black: #0a0a0f;
  --mc-dark: #111118;
  --mc-card: #16161e;
  --mc-card2: #1e1e2e;
  --mc-border: #2a2a3d;
  --mc-blue: #3b82f6;
  --mc-blue-dark: #1d4ed8;
  --mc-blue-light: #60a5fa;
  --mc-cyan: #06b6d4;
  --mc-white: #e2e8f0;
  --mc-muted: #64748b;
  --mc-green: #22c55e;
  --mc-red: #ef4444;
  --mc-yellow: #f59e0b;
  --mc-purple: #8b5cf6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--mc-black);
  color: var(--mc-white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(42,42,61,0.25) 31px, rgba(42,42,61,0.25) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(42,42,61,0.25) 31px, rgba(42,42,61,0.25) 32px);
}

/* ─── NAVBAR ─── */
.navbar {
  background: rgba(10,10,15,0.95);
  border-bottom: 2px solid var(--mc-border);
  padding: 0 1rem;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
}
.navbar-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.navbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--mc-blue), var(--mc-cyan));
  border-radius: 4px; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(59,130,246,0.4);
  color: white;
}
.brand-name { font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--mc-white); }
.brand-name span { color: var(--mc-blue); }
.btn-login {
  background: var(--mc-blue); color: white; border: none; border-radius: 6px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: flex; align-items: center; gap: 6px; transition: .15s;
}
.btn-login:hover { background: var(--mc-blue-dark); }
.navbar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--mc-blue), var(--mc-purple));
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

/* ─── BOTTOM NAV ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 680px;
  background: rgba(10,10,15,0.97);
  border-top: 2px solid var(--mc-border);
  display: flex; z-index: 100; backdrop-filter: blur(10px);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 10px 4px; text-decoration: none;
  color: var(--mc-muted); font-size: 9px; font-family: 'Press Start 2P', monospace;
  gap: 4px; transition: color .2s; line-height: 1;
}
.bottom-nav a .nav-icon { font-size: 18px; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--mc-blue); }

/* ─── LAYOUT ─── */
.container { max-width: 680px; margin: 0 auto; padding: 0 12px 90px; }

/* ─── BANNER SLIDER ─── */
.banner-slider {
  position: relative; border-radius: 14px; overflow: hidden;
  margin: 12px 0; border: 1px solid var(--mc-border);
  background: var(--mc-card);
}
.banner-slides { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.banner-slide { min-width: 100%; position: relative; }
.banner-slide img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  background: var(--mc-card2);
}
.banner-slide a { display: block; }
.banner-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 24px 16px 12px;
  font-size: 13px; font-weight: 600; color: white;
}
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15);
  color: white; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 2;
}
.banner-nav:hover { background: rgba(59,130,246,.7); }
.banner-prev { left: 10px; }
.banner-next { right: 10px; }
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.banner-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer; transition: .2s;
  border: none;
}
.banner-dot.active { background: white; width: 20px; border-radius: 4px; }

/* ─── WELCOME ─── */
.welcome-card {
  background: var(--mc-card); border: 1px solid var(--mc-border);
  border-radius: 14px; padding: 16px; margin: 10px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.welcome-avatar { font-size: 28px; color: var(--mc-blue); }
.welcome-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.welcome-info p { font-size: 12px; color: var(--mc-muted); }

/* ─── STATS ─── */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 10px 0; }
.stat-card { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 12px; padding: 14px 8px; text-align: center; }
.stat-num { font-family: 'Press Start 2P', monospace; font-size: 14px; margin-bottom: 5px; }
.stat-label { font-size: 10px; color: var(--mc-muted); }

/* ─── SECTION ─── */
.section-head {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Press Start 2P', monospace; font-size: 9px;
  color: var(--mc-blue); letter-spacing: 1.5px; margin: 18px 0 12px;
}
.section-head::before { content: ''; display: block; width: 4px; height: 16px; background: var(--mc-blue); border-radius: 2px; flex-shrink: 0; }

/* ─── PACKAGE CARD ─── */
.pkg-card {
  background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 16px;
  padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.pkg-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mc-blue), var(--mc-cyan));
}
.pkg-card:hover { border-color: var(--mc-blue); transform: translateY(-2px); }
.pkg-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  font-family: 'Press Start 2P', monospace; font-size: 7px; padding: 4px 8px;
  border-radius: 4px; letter-spacing: .5px;
}
.badge-PRIVATE { background: rgba(59,130,246,.12); color: var(--mc-blue); border: 1px solid rgba(59,130,246,.3); }
.badge-PREMIUM { background: rgba(139,92,246,.12); color: var(--mc-purple); border: 1px solid rgba(139,92,246,.3); }
.badge-UNLIMITED { background: rgba(251,191,36,.12); color: var(--mc-yellow); border: 1px solid rgba(251,191,36,.3); }
.badge-legal { background: rgba(34,197,94,.12); color: var(--mc-green); border: 1px solid rgba(34,197,94,.3); }
.badge-guarantee { background: rgba(6,182,212,.12); color: var(--mc-cyan); border: 1px solid rgba(6,182,212,.3); }
.pkg-name { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.specs-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.spec-box {
  background: var(--mc-card2); border: 1px solid var(--mc-border);
  border-radius: 8px; padding: 10px 4px; text-align: center;
}
.spec-val { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--mc-blue); margin-bottom: 4px; }
.spec-val.cyan { color: var(--mc-cyan); }
.spec-val.green { color: var(--mc-green); }
.spec-label { font-size: 9px; color: var(--mc-muted); }
.price-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 14px; }
.price-cell { background: var(--mc-card2); border: 1px solid var(--mc-border); border-radius: 8px; padding: 8px 6px; text-align: center; }
.price-cell .pdays { font-size: 10px; color: var(--mc-muted); margin-bottom: 3px; }
.price-cell .pamount { font-size: 12px; font-weight: 700; color: var(--mc-blue); }
.pkg-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--mc-border); }
.per-day { font-size: 14px; font-weight: 700; }
.per-day .unit { font-size: 11px; color: var(--mc-muted); font-weight: 400; }
.per-day .note { font-size: 10px; color: var(--mc-muted); display: block; margin-top: 2px; }
.btn-order {
  background: linear-gradient(135deg, var(--mc-blue), var(--mc-cyan));
  color: white; border: none; border-radius: 10px; padding: 11px 20px;
  font-family: 'Press Start 2P', monospace; font-size: 8px;
  cursor: pointer; text-decoration: none; letter-spacing: .5px; transition: .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-order:hover { opacity: .88; transform: scale(1.03); }

/* ─── ORDER PAGE ─── */
.pkg-info-card {
  background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 14px;
  padding: 16px; margin: 12px 0; display: flex; align-items: center; gap: 14px;
}
.pkg-info-body h2 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pkg-info-body .specs { font-size: 12px; color: var(--mc-muted); }
.duration-card { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 14px; padding: 18px; margin: 12px 0; }
.dur-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.dur-title { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--mc-muted); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.dur-rate { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--mc-blue); }
.counter-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.counter-btn {
  width: 44px; height: 44px; background: var(--mc-card2);
  border: 2px solid var(--mc-border); border-radius: 50%;
  color: var(--mc-white); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.counter-btn:hover { border-color: var(--mc-blue); color: var(--mc-blue); }
.counter-display {
  text-align: center; background: var(--mc-card2);
  border: 2px solid var(--mc-blue); border-radius: 12px; padding: 10px 28px; min-width: 100px;
}
.counter-num { font-family: 'Press Start 2P', monospace; font-size: 24px; display: block; }
.counter-unit { font-size: 10px; color: var(--mc-muted); }
.dur-slider { width: 100%; accent-color: var(--mc-blue); margin-bottom: 14px; height: 6px; cursor: pointer; }
.quick-days { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.qday {
  padding: 7px 16px; border: 1px solid var(--mc-border); border-radius: 8px;
  background: var(--mc-card2); color: var(--mc-muted); font-size: 12px; cursor: pointer; transition: .15s;
}
.qday.active, .qday:hover { border-color: var(--mc-blue); color: var(--mc-blue); background: rgba(59,130,246,.1); }
.total-box {
  background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.25);
  border-radius: 12px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.total-label { font-size: 14px; color: var(--mc-muted); }
.total-amount { font-family: 'Press Start 2P', monospace; font-size: 16px; color: var(--mc-blue); }
.form-group { margin-bottom: 16px; }
.form-group label { display: flex; align-items: center; gap: 6px; font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--mc-muted); letter-spacing: 1px; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--mc-card2); border: 1px solid var(--mc-border);
  border-radius: 8px; padding: 12px 14px; color: var(--mc-white);
  font-size: 14px; font-family: 'Inter', sans-serif; outline: none; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--mc-blue); }
.btn-primary {
  width: 100%; background: linear-gradient(135deg, var(--mc-blue), var(--mc-cyan));
  color: white; border: none; border-radius: 12px; padding: 15px;
  font-family: 'Press Start 2P', monospace; font-size: 9px; cursor: pointer; letter-spacing: .5px; transition: .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { opacity: .9; }
.btn-secondary {
  background: var(--mc-card2); color: var(--mc-white); border: 1px solid var(--mc-border);
  border-radius: 8px; padding: 11px 20px; font-size: 13px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: .15s;
}
.btn-secondary:hover { border-color: var(--mc-blue); }

/* ─── PAYMENT ─── */
.payment-card { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 16px; padding: 20px; margin: 12px 0; text-align: center; }
.qris-wrap { background: white; border-radius: 14px; padding: 14px; margin: 16px auto; max-width: 240px; }
.qris-wrap img { width: 100%; border-radius: 8px; display: block; }
.pay-amount { font-family: 'Press Start 2P', monospace; font-size: 22px; color: var(--mc-blue); margin: 10px 0; }
.pay-label { font-size: 12px; color: var(--mc-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.timer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3);
  color: var(--mc-yellow); border-radius: 20px; padding: 8px 16px;
  font-family: 'Press Start 2P', monospace; font-size: 11px; margin: 10px 0;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-pending { background: rgba(251,191,36,.12); color: var(--mc-yellow); }
.badge-active { background: rgba(34,197,94,.12); color: var(--mc-green); }
.badge-expired { background: rgba(100,116,139,.12); color: var(--mc-muted); }
.badge-cancelled { background: rgba(239,68,68,.12); color: var(--mc-red); }
.badge-paid { background: rgba(6,182,212,.12); color: var(--mc-cyan); }
.pay-steps { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.pay-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mc-muted); }
.step-num {
  width: 24px; height: 24px; background: var(--mc-card2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; border: 1px solid var(--mc-border);
}

/* ─── SUCCESS ANIMATION ─── */
.success-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px; text-align: center; position: relative; overflow: hidden;
}
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.particle { position: absolute; border-radius: 2px; animation: pfall 3s linear infinite; }
@keyframes pfall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.success-icon { position: relative; z-index: 1; font-size: 72px; margin-bottom: 16px; animation: bounce .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes bounce { 0%{transform:scale(0)} 50%{transform:scale(1.2)} 100%{transform:scale(1)} }
.success-title { position: relative; z-index: 1; font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--mc-green); margin-bottom: 6px; animation: fadeup .5s .2s both; }
.success-sub { position: relative; z-index: 1; font-size: 13px; color: var(--mc-muted); margin-bottom: 20px; animation: fadeup .5s .3s both; }
@keyframes fadeup { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ─── MODERN RECEIPT ─── */
.receipt-card {
  background: var(--mc-card); border: 1px solid var(--mc-border);
  border-radius: 18px; overflow: hidden; margin: 12px 0;
  position: relative; z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.receipt-card.green-glow { border-color: rgba(34,197,94,.4); box-shadow: 0 0 40px rgba(34,197,94,.15); }
.receipt-header {
  background: linear-gradient(135deg, #0d1b3e, #1a237e 50%, #0d2346);
  padding: 24px; text-align: center;
  border-bottom: 1px solid var(--mc-border);
}
.receipt-title { font-family: 'Press Start 2P', monospace; font-size: 11px; color: var(--mc-white); margin-bottom: 4px; letter-spacing: 1px; }
.receipt-subtitle { font-family: 'Press Start 2P', monospace; font-size: 7px; color: var(--mc-blue-light); letter-spacing: 2px; }
.receipt-divider {
  position: relative; display: flex; align-items: center;
  padding: 0 4px; background: var(--mc-black);
}
.receipt-divider-line {
  flex: 1; border-top: 2px dashed var(--mc-border); margin: 0 8px;
}
.receipt-divider-circle {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--mc-black); border: 1px solid var(--mc-border);
  flex-shrink: 0;
}
.receipt-divider-circle.left { margin-left: -14px; }
.receipt-divider-circle.right { margin-right: -14px; }
.receipt-body { padding: 18px 20px; }
.receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(42,42,61,.6); font-size: 13px;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-label { color: var(--mc-muted); display: flex; align-items: center; gap: 6px; font-size: 12px; }
.receipt-val { font-weight: 600; color: var(--mc-white); text-align: right; max-width: 200px; word-break: break-all; font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.receipt-val.blue { color: var(--mc-blue); }
.receipt-val.green { color: var(--mc-green); }
.success-card {
  position: relative; z-index: 1;
  background: var(--mc-card); border: 2px solid var(--mc-green);
  border-radius: 18px; padding: 22px; width: 100%; max-width: 380px;
  animation: fadeup .5s .4s both;
}
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--mc-border); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--mc-muted); display: flex; align-items: center; gap: 6px; }
.info-val { font-weight: 600; color: var(--mc-white); text-align: right; max-width: 200px; word-break: break-all; font-size: 12px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.info-val.mono { font-family: monospace; font-size: 12px; }
.info-val.blue { color: var(--mc-blue); }
.info-val.green { color: var(--mc-green); }
.green-glow { box-shadow: 0 0 40px rgba(34,197,94,.2); }

/* ─── TRANSACTION LIST ─── */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-card { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 12px; padding: 14px; text-decoration: none; display: block; transition: border-color .15s; }
.tx-card:hover { border-color: var(--mc-blue); }
.tx-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.tx-name { font-size: 14px; font-weight: 600; color: var(--mc-white); }
.tx-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--mc-muted); }

/* ─── PANEL CARD ─── */
.panel-card { background: var(--mc-card); border: 1px solid var(--mc-blue); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.panel-header h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.panel-info { background: var(--mc-card2); border-radius: 8px; padding: 10px 12px; }
.pi-label { font-size: 10px; color: var(--mc-muted); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.pi-value { font-size: 13px; font-weight: 600; word-break: break-all; }
.pi-value.mono { font-family: monospace; font-size: 12px; }
.pi-value.copy-wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.copy-btn { background: none; border: none; color: var(--mc-muted); cursor: pointer; font-size: 14px; padding: 2px; transition: color .15s; }
.copy-btn:hover { color: var(--mc-blue); }
.expiry-progress { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--mc-muted); margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.progress-bar { height: 6px; background: var(--mc-card2); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--mc-blue), var(--mc-cyan)); border-radius: 3px; transition: width .5s; }
.btn-link {
  background: var(--mc-blue); color: white; border: none; border-radius: 8px;
  padding: 9px 16px; font-size: 12px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: .15s;
}
.btn-link:hover { background: var(--mc-blue-dark); }

/* ─── AUTH ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 18px; padding: 32px 26px; width: 100%; max-width: 420px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-icon {
  width: 60px; height: 60px; background: linear-gradient(135deg, var(--mc-blue), var(--mc-cyan));
  border-radius: 14px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: white; box-shadow: 0 0 20px rgba(59,130,246,.3);
}
.auth-head h1 { font-family: 'Press Start 2P', monospace; font-size: 10px; margin-bottom: 6px; }
.auth-head p { font-size: 13px; color: var(--mc-muted); }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px; }
.alert-error { background: rgba(239,68,68,.1); color: var(--mc-red); border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: rgba(34,197,94,.1); color: var(--mc-green); border: 1px solid rgba(34,197,94,.2); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--mc-muted); }
.auth-foot a { color: var(--mc-blue); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ─── PROFILE ─── */
.profil-avatar { width: 72px; height: 72px; background: linear-gradient(135deg, var(--mc-blue), var(--mc-purple)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 10px; }
.profil-name { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.profil-email { font-size: 13px; color: var(--mc-muted); text-align: center; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }

/* ─── ADMIN ─── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: var(--mc-dark); border-right: 2px solid var(--mc-border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.sidebar-logo { padding: 20px 16px; border-bottom: 1px solid var(--mc-border); font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--mc-blue); display: flex; align-items: center; gap: 8px; }
.sidebar-logo span { color: var(--mc-white); font-size: 8px; display: block; margin-top: 4px; }
.sidebar-nav { display: flex; flex-direction: column; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: var(--mc-muted); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; transition: .15s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(59,130,246,.08); color: var(--mc-white); border-left-color: var(--mc-blue); }
.sidebar-nav a i { width: 16px; text-align: center; flex-shrink: 0; }
.admin-main { flex: 1; padding: 24px; overflow-x: auto; min-width: 0; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.admin-header p { color: var(--mc-muted); font-size: 13px; }

/* ─── ADMIN TOPBAR & HAMBURGER ─── */
.admin-topbar {
  display: none; align-items: center; gap: 12px;
  padding: 12px 0; margin-bottom: 16px;
  border-bottom: 1px solid var(--mc-border);
}
.admin-topbar-title { font-size: 16px; font-weight: 700; }
.hamburger-btn {
  background: var(--mc-card2); border: 1px solid var(--mc-border);
  border-radius: 8px; color: var(--mc-white); padding: 9px 12px;
  cursor: pointer; font-size: 16px; display: flex; align-items: center;
  transition: .15s; flex-shrink: 0;
}
.hamburger-btn:hover { border-color: var(--mc-blue); color: var(--mc-blue); }
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 149; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ─── WHATSAPP STATUS BAR ─── */
.wa-status-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--mc-card2); border-radius: 10px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.wa-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.wa-dot.connected { background: var(--mc-green); box-shadow: 0 0 8px rgba(34,197,94,.6); }
.wa-dot.waiting { background: var(--mc-yellow); animation: pulse 1s infinite; }
.wa-dot.offline { background: var(--mc-muted); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.wa-qr-wrap { text-align: center; margin-bottom: 16px; padding: 16px; background: var(--mc-card2); border-radius: 12px; }

/* ─── ADMIN CARDS & TABLES ─── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-box { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 12px; padding: 18px; }
.stat-box .sicon { font-size: 28px; margin-bottom: 10px; }
.stat-box .stitle { font-size: 12px; color: var(--mc-muted); margin-bottom: 6px; }
.stat-box .sval { font-family: 'Press Start 2P', monospace; font-size: 18px; }
.admin-card { background: var(--mc-card); border: 1px solid var(--mc-border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.admin-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
th { text-align: left; padding: 10px 12px; font-size: 8px; color: var(--mc-muted); border-bottom: 1px solid var(--mc-border); font-family: 'Press Start 2P', monospace; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid rgba(42,42,61,.5); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--mc-border); }
.form-section:last-child { border-bottom: none; margin-bottom: 0; }
.form-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--mc-blue-light); display: flex; align-items: center; gap: 8px; }
.btn-sm {
  padding: 6px 14px; font-size: 12px; background: var(--mc-blue); color: white;
  border: none; border-radius: 6px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: .15s;
}
.btn-sm:hover { opacity: .88; }
.btn-sm.red { background: var(--mc-red); }
.btn-sm.green { background: var(--mc-green); color: #000; }
.btn-sm.yellow { background: var(--mc-yellow); color: #000; }

/* ─── UTILS ─── */
.text-blue { color: var(--mc-blue); }
.text-green { color: var(--mc-green); }
.text-yellow { color: var(--mc-yellow); }
.text-red { color: var(--mc-red); }
.text-cyan { color: var(--mc-cyan); }
.text-muted { color: var(--mc-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.w-full { width: 100%; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--mc-muted); }
.empty-state .eicon { font-size: 48px; margin-bottom: 12px; color: var(--mc-muted); }
.empty-state h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--mc-white); }
.mono { font-family: monospace; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--mc-black); }
::-webkit-scrollbar-thumb { background: var(--mc-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mc-blue); }

/* ─── RESPONSIVE — MOBILE ─── */
@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 150;
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-topbar { display: flex; }
  .admin-main { padding: 12px 14px 24px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .banner-slide img { height: 160px; }
  table { min-width: 500px; }
}

/* ─── RESPONSIVE — TABLET ─── */
@media (min-width: 769px) {
  .admin-sidebar { display: flex; }
  .admin-main { padding: 28px; }
  .container { max-width: 700px; }
  .navbar-inner { max-width: 700px; }
  .bottom-nav { max-width: 700px; }
  .banner-slide img { height: 260px; }
}

/* ─── RESPONSIVE — DESKTOP ─── */
@media (min-width: 1200px) {
  .container { max-width: 900px; }
  .navbar-inner { max-width: 900px; }
  .bottom-nav { max-width: 900px; }
  .admin-main { padding: 36px 40px; }
  .stat-grid { grid-template-columns: repeat(5,1fr); }
  .banner-slide img { height: 300px; }
  .specs-grid { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
}
