/* ═══════════════════════════════════════════════════════════
   AGENT ARENA — "Arcade" Gaming Premium Theme
   গাঢ় purple-black, electric cyan ও magenta accent
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  --bg:         #0E0B1A;
  --panel:      #1B1633;
  --panel-2:    #211B3D;
  --border:     #322A5C;
  --purple:     #7C3AED;
  --cyan:       #22D3EE;
  --magenta:    #EC4899;
  --gold:       #F5C542;
  --green:      #34D399;
  --red:        #F0596B;
  --text:       #F3F0FF;
  --text-dim:   #9691B8;
  --text-faint: #6B6690;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 4px 20px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

/* ── Hexagon icon badge (signature element) ── */
.hex {
  width: 30px; height: 30px;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

/* ── Topbar ── */
.al-topbar {
  background: var(--bg);
  border-bottom: 2px solid var(--purple);
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.al-brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .4px;
}
.al-topbar-right { display: flex; align-items: center; gap: 12px; }
.al-topbar-mobile { font-size: 12px; color: var(--text-dim); }
.al-topbar-mobile b { color: var(--text); font-weight: 600; }
.al-balance-chip {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: .2px;
}
.al-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.al-link:hover { background: var(--panel); color: var(--text); }
.al-link.danger { color: var(--red); }

/* ── Nav strip ── */
.al-nav {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.al-nav::-webkit-scrollbar { display: none; }
.al-nav a {
  flex-shrink: 0;
  padding: 12px 13px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.al-nav a.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.al-nav a:hover { color: var(--text); }

/* ── Layout ── */
.al-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 60px; }
.al-page-title { font-weight: 800; font-size: 22px; margin: 4px 0 4px; color: var(--text); letter-spacing: -.2px; }
.al-page-sub { color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }

/* ── Balance hero card ── */
.al-passbook {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--text);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
}
.al-passbook::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--purple); border-radius: var(--radius) 0 0 var(--radius); }
.al-passbook .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--text-dim); margin-bottom: 8px; font-weight: 600; }
.al-passbook .amount { font-family: 'IBM Plex Mono', monospace; font-size: 34px; font-weight: 700; letter-spacing: -.5px; }
.al-passbook .delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; background: rgba(52,211,153,.12); padding: 4px 10px; border-radius: 6px; font-size: 11.5px; color: var(--green); font-weight: 600; }

/* ── Stat strip ── */
.al-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.al-stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.al-stat .k { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-dim); margin-bottom: 5px; font-weight: 600; }
.al-stat .v { font-family: 'IBM Plex Mono', monospace; font-size: 17px; font-weight: 700; color: var(--text); }
@media (max-width: 480px) { .al-stats { grid-template-columns: 1fr 1fr; } }

/* ── Card / ledger entry ── */
.al-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.al-card.debit { border-left: 3px solid var(--red); }
.al-card.credit { border-left: 3px solid var(--cyan); }
.al-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-dim); }
.al-card .row b { color: var(--text); font-weight: 600; }
.al-card .amt { font-family: 'IBM Plex Mono', monospace; font-size: 19px; font-weight: 700; color: var(--cyan); }
.al-card .amt.debit { color: var(--red); }

/* ── Stamp / status badge (signature element) ── */
.al-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 6px;
}
.al-stamp.ok { color: #fff; background: var(--purple); }
.al-stamp.warn { color: var(--bg); background: var(--gold); }
.al-stamp.bad { color: #fff; background: var(--red); }

/* ── Form ── */
.al-field { margin-bottom: 16px; }
.al-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .4px; }
.al-field .hint { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.al-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .15s;
}
.al-input.mono { font-family: 'IBM Plex Mono', monospace; }
.al-input:focus { outline: none; border-color: var(--cyan); }
.al-input::placeholder { color: var(--text-faint); }

/* ── Buttons ── */
.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity .15s, transform .1s;
}
.al-btn:active { transform: scale(.98); }
.al-btn-primary { background: var(--purple); color: #fff; }
.al-btn-primary:hover { opacity: .88; }
.al-btn-cyan { background: var(--cyan); color: var(--bg); }
.al-btn-cyan:hover { opacity: .88; }
.al-btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.al-btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.al-btn-danger { background: rgba(240,89,107,.14); color: var(--red); }
.al-btn-danger:hover { background: rgba(240,89,107,.22); }
.al-btn-block { width: 100%; }
.al-btn-sm { padding: 8px 14px; font-size: 11.5px; }

/* ── Alerts ── */
.al-alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 18px; line-height: 1.5; border: 1px solid transparent; }
.al-alert-success { background: rgba(52,211,153,.1); color: var(--green); border-color: rgba(52,211,153,.3); }
.al-alert-danger { background: rgba(240,89,107,.1); color: var(--red); border-color: rgba(240,89,107,.3); }

/* ── Empty state ── */
.al-empty { text-align: center; padding: 54px 20px; color: var(--text-faint); }
.al-empty .icon { font-size: 30px; margin-bottom: 10px; opacity: .5; }
.al-empty .msg { font-size: 13px; }

/* ── Table rows ── */
.al-table-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.al-trow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); align-items: center; font-size: 12.5px; }
.al-trow:last-child { border-bottom: none; }
.al-trow.head { background: var(--bg); color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.al-trow .amt { font-family: 'IBM Plex Mono', monospace; font-weight: 700; text-align: right; color: var(--cyan); }

/* ── Login ── */
.al-login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.al-login-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; max-width: 380px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.5); position: relative; }
.al-login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--purple), var(--cyan), var(--magenta)); border-radius: var(--radius) var(--radius) 0 0; }
.al-login-logo { display: block; max-width: 220px; margin: 0 auto 18px; }
.al-login-sub { text-align: center; color: var(--text-dim); font-size: 12.5px; margin-bottom: 26px; }

@media (max-width: 480px) {
  .al-passbook .amount { font-size: 28px; }
  .al-wrap { padding: 16px 12px 50px; }
}
