/* assets/css/app.css — Telecom PWA · Área Cliente */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:         #0b1220;
  --bg2:        #111c2e;
  --bg3:        #172035;
  --card:       #131f33;
  --card2:      #1a2a42;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,255,255,0.12);

  --blue:       #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow:  rgba(59,130,246,0.25);
  --cyan:       #22d3ee;
  --green:      #10b981;
  --green-glow: rgba(16,185,129,0.2);
  --amber:      #f59e0b;
  --red:        #ef4444;
  --red-glow:   rgba(239,68,68,0.2);
  --purple:     #8b5cf6;

  --text:       #e2e8f0;
  --text2:      #94a3b8;
  --text3:      #64748b;

  --nav-h:      64px;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);

  --font:       'Outfit', sans-serif;
  --mono:       'DM Mono', monospace;
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fondo con textura sutil */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34,211,238,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.6; color: var(--text2); }

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-bottom: calc(var(--nav-h) + 16px);
  min-height: 100dvh;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── BOTTOM NAV ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(17,28,46,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  min-width: 52px;
}

.nav-item svg {
  width: 22px; height: 22px;
  stroke: var(--text3);
  transition: stroke 0.2s;
}

.nav-item span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text3);
  transition: color 0.2s;
}

.nav-item.active svg   { stroke: var(--blue-light); }
.nav-item.active span  { color: var(--blue-light); }
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--blue-light);
  border-radius: 0 0 4px 4px;
}

.nav-item:active { transform: scale(0.92); }

.nav-badge {
  position: absolute;
  top: 4px; right: 8px;
  background: var(--red);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg2);
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  margin-bottom: 20px;
}

.top-bar-logo {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.top-bar-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  text-decoration: none;
}
.icon-btn:hover { background: var(--card2); }
.icon-btn svg { width: 18px; height: 18px; stroke: var(--text2); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card-sm { padding: 14px 16px; }

.card + .card { margin-top: 12px; }

.card-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title a {
  font-size: 0.7rem;
  color: var(--blue-light);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Tarjeta de estado con borde lateral de color */
.card-status {
  border-left: 3px solid transparent;
}
.card-status.ok     { border-left-color: var(--green); }
.card-status.warn   { border-left-color: var(--amber); }
.card-status.danger { border-left-color: var(--red); }

/* ── HERO BALANCE ────────────────────────────────────────── */
.hero-card {
  background: linear-gradient(135deg, #1a2d4a 0%, #1a1f3a 100%);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  border-radius: 50%;
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%);
  border-radius: 50%;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text);
}

.hero-amount .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text2);
  margin-right: 2px;
}

.hero-sub {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 8px;
}

/* ── BADGES / PILLS ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
}

.badge-green  { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-blue   { background: rgba(59,130,246,0.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-amber  { background: rgba(245,158,11,0.15);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge-red    { background: rgba(239,68,68,0.15);   color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-purple { background: rgba(139,92,246,0.15);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.badge-gray   { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

/* ── ICON CHIP (servicio) ────────────────────────────────── */
.service-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.service-chip:hover { border-color: var(--border2); }

.chip-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.chip-icon.fibra      { background: rgba(59,130,246,0.15); }
.chip-icon.movil      { background: rgba(16,185,129,0.15); }
.chip-icon.centralita { background: rgba(139,92,246,0.15); }
.chip-icon.pack       { background: rgba(245,158,11,0.15); }

.chip-info { flex: 1; min-width: 0; }
.chip-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-detail { font-size: 0.72rem; color: var(--text3); margin-top: 2px; }

.chip-price {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
}

/* ── FACTURA ROW ─────────────────────────────────────────── */
.factura-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.factura-row:last-child { border-bottom: none; padding-bottom: 0; }
.factura-row:first-child { padding-top: 0; }
.factura-row:active { opacity: 0.7; }

.factura-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(59,130,246,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.factura-icon svg { width: 18px; height: 18px; stroke: var(--blue-light); }

.factura-info { flex: 1; min-width: 0; }
.factura-num  { font-size: 0.85rem; font-weight: 600; }
.factura-per  { font-size: 0.7rem; color: var(--text3); margin-top: 2px; }

.factura-right { text-align: right; }
.factura-total { font-family: var(--mono); font-size: 0.95rem; font-weight: 500; }
.factura-badge { margin-top: 4px; }

/* ── CONSUMO BAR ─────────────────────────────────────────── */
.consumo-bar-wrap {
  margin-top: 8px;
}

.consumo-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 6px;
}

.consumo-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.consumo-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.consumo-bar-fill.blue   { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.consumo-bar-fill.green  { background: var(--green); }
.consumo-bar-fill.amber  { background: var(--amber); }
.consumo-bar-fill.red    { background: var(--red); }

/* ── TICKET ROW ──────────────────────────────────────────── */
.ticket-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ticket-row:last-child { border-bottom: none; padding-bottom: 0; }
.ticket-row:first-child { padding-top: 0; }

.ticket-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.dot-abierta   { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot-en_proceso { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.dot-resuelta  { background: var(--green); }
.dot-cerrada   { background: var(--text3); }
.dot-pendiente_cliente { background: var(--purple); }

.ticket-info { flex: 1; min-width: 0; }
.ticket-num  { font-size: 0.68rem; color: var(--text3); font-family: var(--mono); }
.ticket-asunto { font-size: 0.88rem; font-weight: 600; margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-cat  { font-size: 0.7rem; color: var(--text3); }
.ticket-date { font-size: 0.68rem; color: var(--text3); white-space: nowrap; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

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

.form-control::placeholder { color: var(--text3); }

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: white;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.5); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--card2);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border2); color: var(--text); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.btn-full  { width: 100%; }
.btn-sm    { padding: 8px 16px; font-size: 0.8rem; }
.btn-icon  { padding: 10px; border-radius: var(--radius-sm); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn svg { width: 16px; height: 16px; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: 16px 16px 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.back-btn:hover { background: var(--card2); }
.back-btn svg { width: 16px; height: 16px; stroke: var(--text2); }

.page-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; }
.page-sub   { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }

/* ── SECTION DIVIDER ─────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
  padding: 0 16px;
  margin: 20px 0 10px;
}

/* ── ALERT / BANNER ──────────────────────────────────────── */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid;
  margin-bottom: 14px;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-warn  { background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.25);  color: #fde68a; }
.alert-warn svg { stroke: var(--amber); }
.alert-danger { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.25);  color: #fca5a5; }
.alert-danger svg { stroke: var(--red); }
.alert-info  { background: rgba(59,130,246,0.1);  border-color: rgba(59,130,246,0.25);  color: #93c5fd; }
.alert-info svg { stroke: var(--blue-light); }
.alert-ok    { background: rgba(16,185,129,0.1);  border-color: rgba(16,185,129,0.25);  color: #6ee7b7; }
.alert-ok svg { stroke: var(--green); }

/* ── STAT GRID ───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-box {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.stat-val {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}

.stat-lbl {
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── LOADING SKELETON ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.4s infinite;
  border-radius: 6px;
}

@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.empty-icon svg { width: 28px; height: 28px; stroke: var(--text3); }
.empty-title { font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.empty-desc  { font-size: 0.82rem; color: var(--text3); }

/* ── TABS ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--card2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
  font-family: var(--font);
}

.tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: 100%;
  max-height: 85dvh;
  background: var(--bg2);
  border-radius: var(--radius) var(--radius) 0 0;
  border-top: 1px solid var(--border2);
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ── CHAT MESSAGES (incidencias) ─────────────────────────── */
.chat-wrap { display: flex; flex-direction: column; gap: 10px; }

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-msg.cliente { align-self: flex-end; align-items: flex-end; }
.chat-msg.soporte { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg.cliente .chat-bubble {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg.soporte .chat-bubble {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-meta {
  font-size: 0.62rem;
  color: var(--text3);
  margin-top: 4px;
  padding: 0 4px;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

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

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 16px; right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease;
  pointer-events: all;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── UTIL ────────────────────────────────────────────────── */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text3); }
.text-sm { font-size: 0.8rem; }
.mono { font-family: var(--mono); }
.flex  { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
}

.login-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.login-sub {
  font-size: 0.85rem;
  color: var(--text3);
  margin-bottom: 40px;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── SAFE AREA ───────────────────────────────────────────── */
.page-wrapper { padding-top: env(safe-area-inset-top); }
