/* ═══════════════════════════════════════════════
   AIIN — Shared Stylesheet
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────── */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #18181f;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0eeff;
  --muted: rgba(240,238,255,0.45);
  --accent: #7c6df5;
  --accent2: #a897ff;
  --green: #00e5a0;
  --amber: #f5c842;
  --red: #ff5757;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── Orbs ──────────────────────────────────── */
.orb { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }
.orb-1 { width: 500px; height: 500px; background: rgba(124,109,245,0.12); top: -150px; right: -150px; }
.orb-2 { width: 400px; height: 400px; background: rgba(0,229,160,0.07); bottom: 100px; left: -150px; }

/* ── Layout ────────────────────────────────── */
.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.main {
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 2rem;
  overflow: hidden;
  min-height: 0;
}

/* ── Page Header ───────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.page-title { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ── Wallet Chip ───────────────────────────── */
.wallet-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; }
.wallet-chip strong { font-family: var(--font-head); color: var(--accent2); }

/* ── Badges ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 500; }
.badge-green { background: rgba(0,229,160,0.1); color: var(--green); }
.badge-amber { background: rgba(245,200,66,0.1); color: var(--amber); }

/* ── Buttons ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 10px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: all 0.18s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--border2); color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn-submit { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--accent); border: none; border-radius: 10px; color: #fff; font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.18s; }
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-delete { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: rgba(255,87,87,0.1); border: 1px solid rgba(255,87,87,0.2); border-radius: 8px; color: var(--red); font-size: 0.75rem; font-weight: 500; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: all 0.15s; }
.btn-delete:hover { background: rgba(255,87,87,0.2); }
.btn-sm { display: inline-flex; align-items: center; padding: 6px 14px; background: var(--amber); border: none; border-radius: 8px; color: #000; font-size: 0.78rem; font-weight: 600; text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: opacity 0.15s; }
.btn-sm:hover { opacity: 0.85; }
.btn-new { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; background: rgba(124,109,245,0.12); border: 1px solid rgba(124,109,245,0.25); border-radius: 10px; color: var(--accent2); font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: all 0.18s; }
.btn-new:hover { background: rgba(124,109,245,0.2); border-color: rgba(124,109,245,0.4); }
.btn-del { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; background: rgba(255,87,87,0.08); border: 1px solid rgba(255,87,87,0.2); border-radius: 8px; color: var(--red); font-size: 0.72rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: all 0.15s; }
.btn-del:hover { background: rgba(255,87,87,0.15); }

/* ── Copy Button ────────────────────────────── */
.copy-btn { background: rgba(124,109,245,0.15); border: 1px solid rgba(124,109,245,0.25); color: var(--accent2); border-radius: 7px; padding: 4px 12px; font-size: 0.72rem; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.copy-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Panels ────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.panel-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; }
.panel-body { padding: 1.25rem 1.5rem; }

/* ── Stats ─────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; transition: border-color 0.18s; }
.stat-card:hover { border-color: var(--border2); }
.stat-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 0.85rem; }
.stat-icon.purple { background: rgba(124,109,245,0.15); }
.stat-icon.green  { background: rgba(0,229,160,0.12); }
.stat-icon.amber  { background: rgba(245,200,66,0.12); }
.stat-icon.blue   { background: rgba(80,160,255,0.12); }
.stat-icon.red    { background: rgba(255,87,87,0.12); }
.stat-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }

/* ── Alerts ────────────────────────────────── */
.alert-warn { background: rgba(245,200,66,0.07); border: 1px solid rgba(245,200,66,0.2); border-radius: 12px; padding: 0.9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.alert-warn-text { font-size: 0.82rem; color: var(--amber); }
.alert-error { background: rgba(255,87,87,0.08); border: 1px solid rgba(255,87,87,0.2); border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; color: var(--red); }
.alert-ok { background: rgba(0,229,160,0.07); border: 1px solid rgba(0,229,160,0.2); border-radius: 10px; padding: 10px 14px; font-size: 0.82rem; color: var(--green); }
.alert-info { background: rgba(124,109,245,0.08); border: 1px solid rgba(124,109,245,0.2); border-radius: 10px; padding: 12px 16px; font-size: 0.82rem; color: var(--text); line-height: 1.6; }

/* ── Reseller ───────────────────────────────── */
.reseller-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.form-input { background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; padding: 10px 13px; color: var(--text); font-family: var(--font-body); font-size: 0.88rem; outline: none; transition: border-color 0.18s; }
.form-input:focus { border-color: var(--accent); }
.form-input-sm { background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; padding: 6px 10px; color: var(--text); font-family: var(--font-body); font-size: 0.82rem; outline: none; }
.form-hint { font-size: 0.72rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { padding: 10px 16px; text-align: left; font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

/* ── Forms ─────────────────────────────────── */
label { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
input[type=text], input[type=password], input[type=email], textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; padding: 11px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color 0.18s; resize: vertical;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { min-height: 100px; }

/* ── Data Count ────────────────────────────── */
.data-count { font-size: 0.78rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }

/* ── Empty State ───────────────────────────── */
.empty-state { text-align: center; padding: 2.5rem; color: var(--muted); font-size: 0.88rem; }
.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

/* ── Wallet Card ───────────────────────────── */
.wallet-card {
  background: linear-gradient(135deg, #1a1630 0%, #0f1a2e 100%);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  position: relative; overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(124,109,245,0.15);
  border-radius: 50%; filter: blur(50px);
}
.wallet-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.wallet-amount { font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.wallet-amount span { font-size: 1.25rem; color: var(--accent2); font-weight: 500; margin-left: 8px; }
.wallet-actions { display: flex; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }

/* ── Chat ──────────────────────────────────── */
.chat-area { flex: 1; overflow: hidden; display: flex; flex-direction: column; padding: 0.75rem 0; min-height: 0; }
.chat-box-wrap {
  flex: 1; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  display: flex; flex-direction: column;
  min-height: 0;
}
.chat-box {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}
.chat-box::-webkit-scrollbar { width: 4px; }
.chat-box::-webkit-scrollbar-track { background: transparent; }
.chat-box::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.msg-row { display: flex; gap: 8px; }
.msg-row.user { flex-direction: row-reverse; }
.msg-bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 1.6; }
.msg-row.user .msg-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-row.ai .msg-bubble { background: var(--surface2); border: 1px solid var(--border2); border-bottom-left-radius: 4px; }
.msg-avatar { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; font-family: var(--font-head); }
.msg-row.user .msg-avatar { background: var(--accent); color: #fff; }
.msg-row.ai .msg-avatar { background: var(--surface2); border: 1px solid var(--border2); color: var(--accent2); }
.msg-cost { font-size: 0.65rem; color: var(--muted); margin-top: 3px; text-align: right; }
.msg-time { font-size: 0.65rem; color: var(--muted); margin-top: 3px; }
.bubble-err { background: rgba(239,68,68,0.12) !important; border: 1px solid rgba(239,68,68,0.3) !important; color: #fca5a5 !important; }
.avatar-err { background: rgba(239,68,68,0.2) !important; color: #fca5a5 !important; }
.date-divider { display:flex; align-items:center; gap:10px; margin:12px 0 6px; color:var(--muted); font-size:0.72rem; }
.date-divider::before,.date-divider::after { content:""; flex:1; height:1px; background:var(--border); }
.date-divider span { white-space:nowrap; padding:0 4px; }
.empty-chat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: 0.5rem; padding: 2rem 0; }

.chat-input-area { padding: 0.85rem 1rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.input-row { display: flex; gap: 8px; }
.chat-input { flex: 1; background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; padding: 10px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.85rem; outline: none; transition: border-color 0.18s; }
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--muted); }
.btn-send { padding: 10px 18px; background: var(--accent); border: none; border-radius: 10px; color: #fff; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.18s; white-space: nowrap; }
.btn-send:hover { background: var(--accent2); transform: translateY(-1px); }

/* ── Mode Toggle ───────────────────────────── */
.mode-toggle { display: flex; gap: 4px; background: var(--surface2); border-radius: 10px; padding: 4px; width: fit-content; }
.mode-btn { padding: 7px 18px; border-radius: 8px; font-size: 0.84rem; cursor: pointer; color: var(--muted); transition: all 0.15s; border: none; background: transparent; font-family: var(--font-body); }
.mode-btn.active { background: var(--surface); color: var(--text); border: 1px solid var(--border2); }

/* ── Answer Box (single mode) ──────────────── */
.answer-box { background: rgba(0,229,160,0.06); border: 1px solid rgba(0,229,160,0.2); border-radius: 14px; padding: 1.25rem 1.5rem; margin-top: 1.25rem; }
.answer-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.answer-text { font-size: 0.9rem; line-height: 1.7; }

/* ── History Items ─────────────────────────── */
.hist-item { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.hist-item:last-child { border-bottom: none; }
.hist-item:hover { background: var(--surface2); }
.hist-q { font-size: 0.85rem; font-weight: 500; color: var(--accent2); margin-bottom: 6px; }
.hist-q::before { content: 'Q: '; color: var(--muted); font-weight: 400; }
.hist-a { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.hist-a::before { content: 'A: '; }

/* ── Log Items ─────────────────────────────── */
.log-list { display: flex; flex-direction: column; }
.log-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.log-item:last-child { border-bottom: none; }
.log-type { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 500; background: rgba(124,109,245,0.15); color: var(--accent2); }
.log-amount { color: var(--amber); font-weight: 500; font-family: var(--font-head); }
.log-date { color: var(--muted); font-size: 0.72rem; margin-top: 3px; }
.log-empty { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 1.5rem 0; }

/* ── Action Cards ──────────────────────────── */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 1.1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); transition: all 0.18s ease; }
.action-card:hover { border-color: var(--border2); background: #1e1e28; transform: translateY(-2px); }
.action-emoji { font-size: 1.4rem; line-height: 1; }
.action-label { font-size: 0.82rem; font-weight: 500; }
.action-desc { font-size: 0.72rem; color: var(--muted); }

/* ── Bottom Grid ───────────────────────────── */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── Tables ─────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
thead th { padding: 10px 16px; text-align: left; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border2); background: var(--surface2); font-weight: 500; white-space: nowrap; }
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(124,109,245,0.03); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.s-pending { background: rgba(245,200,66,0.1); color: var(--amber); }
.s-approved { background: rgba(0,229,160,0.1); color: var(--green); }
.s-rejected { background: rgba(255,87,87,0.1); color: var(--red); }

/* ── Chart ─────────────────────────────────── */
.chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.chart-body { padding: 1.25rem 1.5rem; }

/* ── Responsive ────────────────────────────── */

/* Tablet & below */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .main { padding: 1.25rem 1rem; gap: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-grid { grid-template-columns: 1fr; }
  .wallet-amount { font-size: 2.25rem; }
  .page-header { flex-wrap: wrap; gap: 0.75rem; }
  .page-title { font-size: 1.4rem; }
  .chat-area { padding: 0.75rem 1rem; }
  .chat-box { min-height: 250px; max-height: 45vh; }
  .input-row { flex-direction: column; }
  .input-row .btn-send { width: 100%; text-align: center; justify-content: center; }
  .panel-head { padding: 1rem 1.15rem; }
  .panel-body { padding: 1rem 1.15rem; }
  .wallet-card { padding: 1.5rem; }
  .wallet-actions { flex-direction: column; }
  .wallet-actions .btn { width: 100%; justify-content: center; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .mode-toggle { width: 100%; }
  .mode-btn { flex: 1; text-align: center; justify-content: center; }
  .msg-bubble { max-width: 85%; }
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
}

/* Small phones */
@media (max-width: 480px) {
  .main { padding: 1rem 0.75rem; gap: 1rem; }
  .page-title { font-size: 1.2rem; }
  .page-sub { font-size: 0.75rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stat-card { padding: 0.9rem; }
  .stat-value { font-size: 1.2rem; }
  .stat-icon { width: 30px; height: 30px; font-size: 0.85rem; margin-bottom: 0.6rem; }
  .wallet-amount { font-size: 1.75rem; }
  .wallet-card { padding: 1.25rem; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { padding: 0.9rem; }
  .panel-head { padding: 0.85rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .panel-body { padding: 0.85rem 1rem; }
  .panel { border-radius: 14px; }
  .chat-area { padding: 0.5rem 0.75rem; }
  .chat-box { padding: 0.85rem; min-height: 200px; max-height: 40vh; }
  .msg-bubble { max-width: 90%; font-size: 0.82rem; padding: 8px 11px; }
  .msg-avatar { width: 24px; height: 24px; font-size: 0.6rem; }
  .chat-input-area { padding: 0.65rem 0.75rem; }
  .chat-input { padding: 9px 12px; font-size: 0.82rem; }
  .btn-send { padding: 9px 14px; font-size: 0.82rem; }
  .mode-toggle { border-radius: 8px; }
  .mode-btn { padding: 6px 12px; font-size: 0.78rem; }
  .badge { font-size: 0.65rem; padding: 2px 8px; }
  .wallet-chip { font-size: 0.78rem; padding: 6px 10px; }
  .btn-del, .btn-new { font-size: 0.68rem; padding: 4px 8px; }
  .answer-box { padding: 1rem; border-radius: 12px; }
  .hist-item { padding: 0.85rem 1rem; }
  .alert-warn { padding: 0.75rem 1rem; }
  .alert-error { padding: 8px 10px; font-size: 0.78rem; }
  .orb { display: none; }
  .chart-body { padding: 1rem; }
  .empty-state { padding: 1.5rem; }
  table { font-size: 0.75rem; }
  thead th { padding: 8px 10px; font-size: 0.65rem; }
  tbody td { padding: 8px 10px; }
}

/* ── Auth Card (login/register) ──────────── */
.auth-card { position:relative; z-index:1; background:var(--surface); border:1px solid var(--border2); border-radius:24px; padding:2.5rem 2rem; width:100%; max-width:400px; }
.auth-logo { font-family:var(--font-head); font-size:2rem; font-weight:800; letter-spacing:-0.02em; background:linear-gradient(135deg, var(--accent2), var(--green)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; text-align:center; margin-bottom:0.25rem; }
.auth-logo-sub { font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); text-align:center; margin-bottom:2rem; }
.auth-title { font-family:var(--font-head); font-size:1.25rem; font-weight:700; margin-bottom:0.25rem; }
.auth-sub { font-size:0.82rem; color:var(--muted); margin-bottom:1.75rem; }
.auth-field { margin-bottom:1rem; }
.auth-hint { font-size:0.72rem; color:var(--muted); margin-top:5px; }
.auth-divider { text-align:center; font-size:0.78rem; color:var(--muted); margin:1.25rem 0; }
.auth-link-row { text-align:center; font-size:0.83rem; color:var(--muted); }
.auth-link-row a { color:var(--accent2); text-decoration:none; font-weight:500; }
.auth-link-row a:hover { text-decoration:underline; }
@media(max-width:480px){
  .auth-card{padding:2rem 1.25rem;border-radius:18px}
  .auth-logo{font-size:1.6rem}
  .auth-title{font-size:1.1rem}
}

/* ── Message Boxes ─────────────────────────── */
.msg-box { border-radius:12px; padding:12px 16px; font-size:0.84rem; margin-bottom:0.75rem; }
.msg-error { background:rgba(255,87,87,0.1); border:1px solid rgba(255,87,87,0.25); color:var(--red); }
.msg-success { background:rgba(0,229,160,0.1); border:1px solid rgba(0,229,160,0.25); color:var(--green); }

/* ── Pagination ─────────────────────────────── */
.pagination{display:flex;align-items:center;gap:6px;justify-content:center;margin-top:1.25rem;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border-radius:10px;font-size:0.82rem;font-weight:500;text-decoration:none;padding:0 10px;transition:all 0.15s}
.pagination a{background:var(--surface);border:1px solid var(--border2);color:var(--text)}
.pagination a:hover{border-color:var(--accent);color:var(--accent2);transform:translateY(-1px)}
.pagination .current{background:var(--accent);color:#fff;border:1px solid var(--accent);font-weight:600}
.pagination .dots{color:var(--muted);border:none;background:none}
.pagination .nav-link{font-size:0.78rem;color:var(--muted)}
.pagination .nav-link:hover{color:var(--accent2)}
.pagination .page-info{font-size:0.78rem;color:var(--muted);margin:0 8px}
