/* =====================================================================
   CmpBan - Liquid glass / dark purple theme
   ===================================================================== */

:root {
  --bg-0: #08040f;
  --bg-1: #120925;
  --bg-2: #1a0f30;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ece6ff;
  --text-dim: #a497c8;
  --text-mute: #6f6488;
  --brand: #a855f7;
  --brand-2: #7c3aed;
  --brand-3: #ec4899;
  --accent: #c084fc;
  --ok: #22d39a;
  --warn: #fbbf24;
  --err: #ff5a7a;

  --p-netflix: #e50914;
  --p-hbomax:  #9b5cf6;
  --p-disney:  #1f4cff;
  --p-appletv: #d7d7df;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-1: 0 8px 30px rgba(124, 58, 237, 0.18);
  --shadow-2: 0 20px 60px rgba(168, 85, 247, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Fondo con orbes ---------- */
body::before, body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(236, 72, 153, .25), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59, 130, 246, .18), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  filter: saturate(115%);
}
body::after {
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ---------- Liquid glass panels ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 30%, transparent 70%, rgba(255,255,255,0.05) 100%);
  mix-blend-mode: overlay;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 .3em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h2 { font-size: 1.3rem; }
.muted { color: var(--text-dim); }
.tiny { font-size: 0.78rem; color: var(--text-mute); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand-3); }

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 4, 22, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  display: grid; place-items: center; color: white;
  box-shadow: 0 8px 24px rgba(168, 85, 247, .45);
}
.brand-tag {
  font-size: .7rem; padding: 2px 8px; border-radius: 999px;
  background: rgba(168, 85, 247, .15); color: var(--accent);
  border: 1px solid rgba(168, 85, 247, .25); margin-left: 6px;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: var(--text-dim); padding: 8px 14px; border-radius: 10px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 28px; }
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-2); border-color: rgba(168,85,247,.35); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border: none; color: white;
  box-shadow: 0 6px 22px rgba(124, 58, 237, .45);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(168, 85, 247, .55); filter: brightness(1.07); }
.btn-danger { background: rgba(255, 90, 122, .12); border-color: rgba(255, 90, 122, .35); color: var(--err); }
.btn-danger:hover { background: rgba(255, 90, 122, .2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 10px; }

/* ---------- Inputs ---------- */
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(168, 85, 247, .6);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .15);
  background: rgba(0, 0, 0, .35);
}
.textarea { min-height: 160px; resize: vertical; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: .92rem; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--text-dim); font-size: .85rem; font-weight: 500; }

/* ---------- Cards ---------- */
.card { padding: 22px; border-radius: var(--radius); }
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.card-hd > *:last-child { flex-shrink: 0; }
.card-hd .tiny { text-align: right; line-height: 1.4; }

/* row de 2 inputs */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

/* mini select */
.select-mini { padding: 6px 10px; font-size: .82rem; max-width: 140px; border-radius: 10px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; padding: 3px 9px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text-dim); white-space: nowrap;
}
.chip.muted { color: var(--text-mute); }

/* admin split: tabla usuarios + ventana próximas a vencer */
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  align-items: start;
}
.admin-split.hidden { display: none; }
@media (max-width: 1100px) { .admin-split { grid-template-columns: 1fr; } }

.admin-users-card { min-width: 0; }

/* Panel lateral de vencimientos */
.expiring-panel {
  position: sticky; top: 84px;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(236,72,153,0.04));
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.18);
}
.expiring-panel .card-hd h2 { font-size: 1.05rem; }
.expiring-list { max-height: 70vh; }
.expiring-list .email-row {
  border-left: 3px solid var(--row-color, var(--border-strong));
  padding-left: 12px;
}

/* tabla compacta del admin */
.tbl-compact th, .tbl-compact td { padding: 10px 10px; font-size: .88rem; vertical-align: middle; }
.tbl-compact .badge { font-size: .65rem; padding: 2px 7px; }
.tbl-compact td:last-child { text-align: right; width: 1%; white-space: nowrap; }

/* botones agrupados en una fila */
.row-actions {
  display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.row-actions .btn-sm { padding: 5px 9px; font-size: .78rem; min-width: 32px; }

/* Botón de renovar destacado */
.btn-renew {
  background: linear-gradient(135deg, rgba(34,211,154,0.15), rgba(34,211,154,0.05));
  border-color: rgba(34, 211, 154, 0.35);
  color: var(--ok);
}
.btn-renew:hover {
  background: linear-gradient(135deg, rgba(34,211,154,0.25), rgba(34,211,154,0.1));
  border-color: rgba(34, 211, 154, 0.55);
  box-shadow: 0 6px 18px rgba(34, 211, 154, 0.25);
}

/* Presets de duración (modal) */
.dur-presets {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px;
}
.dur-presets .btn {
  padding: 8px 14px; font-size: .82rem; border-radius: 10px; min-width: 52px;
}

/* En móvil los botones de acción se apilan */
@media (max-width: 640px) {
  .expiring-panel { position: static; }
  .tbl-compact td:last-child { width: auto; }
  .row-actions { flex-wrap: wrap; justify-content: flex-start; }
  .tbl-compact th:nth-child(4), .tbl-compact td:nth-child(4) { display: none; } /* oculta "Último login" */
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 28px;
}
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-card .brand { justify-content: center; margin-bottom: 12px; font-size: 1.4rem; }
.auth-card h1 { text-align: center; margin-bottom: 8px; }
.auth-card .muted { text-align: center; margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--text-dim); }

/* ---------- Stats row ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.stat { padding: 18px 20px; border-radius: var(--radius); }
.stat .lbl { color: var(--text-mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.stat .val { font-size: 1.8rem; font-weight: 700; margin-top: 6px; }

/* ---------- Platform grid ---------- */
.platforms { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.platform {
  padding: 22px; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .35s ease;
  cursor: pointer;
}
.platform:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.platform::after {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, var(--p-color) 0%, transparent 50%);
  opacity: .18; z-index: 0;
}
.platform > * { position: relative; z-index: 1; }
.platform .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.platform .name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.platform .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--p-color);
  box-shadow: 0 0 16px var(--p-color);
}
.platform .count {
  font-size: 2.4rem; font-weight: 800;
  background: linear-gradient(135deg, var(--p-color), white);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.platform .sub { color: var(--text-dim); font-size: .85rem; margin-top: -4px; }

/* color hooks */
.platform.netflix { --p-color: var(--p-netflix); }
.platform.hbomax  { --p-color: var(--p-hbomax); }
.platform.disney  { --p-color: var(--p-disney); }
.platform.appletv { --p-color: var(--p-appletv); }

/* ---------- Detail view (correos por plataforma) ---------- */
.section-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .section-grid { grid-template-columns: 1fr; } }

.email-list { display: flex; flex-direction: column; gap: 8px; max-height: 540px; overflow-y: auto; padding-right: 6px; }
.email-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .2s ease, border-color .2s ease;
}
.email-row:hover { background: var(--surface-2); border-color: var(--border-strong); }
.email-row > div:first-child { min-width: 0; flex: 1; }
.email-row .em { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9rem; overflow-wrap: anywhere; word-break: break-all; }
.email-row .meta { color: var(--text-mute); font-size: .78rem; }
.email-row .actions { display: flex; gap: 6px; flex-shrink: 0; }

/* scrollbar */
.email-list::-webkit-scrollbar { width: 8px; }
.email-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.email-list::-webkit-scrollbar-track { background: transparent; }

/* ---------- Checker ---------- */
.checker-mode { display: flex; gap: 8px; margin-bottom: 14px; }
.checker-mode button {
  flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-dim); cursor: pointer; font-weight: 600;
  transition: all .2s ease;
}
.checker-mode button.active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: transparent; color: white;
  box-shadow: 0 6px 18px rgba(124, 58, 237, .4);
}

.results { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.result {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.result > div:first-child { min-width: 0; flex: 1; }
.result .em { overflow-wrap: anywhere; word-break: break-all; }
.result.found { border-color: rgba(255, 90, 122, .35); background: rgba(255, 90, 122, .06); }
.result.new   { border-color: rgba(34, 211, 154, .35); background: rgba(34, 211, 154, .06); }
.result .tag {
  font-size: .72rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  flex-shrink: 0; white-space: nowrap;
}
.result.found .tag { background: rgba(255, 90, 122, .15); color: var(--err); }
.result.new .tag   { background: rgba(34, 211, 154, .15); color: var(--ok); }

/* ---------- Admin: tabla usuarios ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--text-mute); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
table.tbl tr:hover td { background: var(--surface); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge.pending { background: rgba(251, 191, 36, .15); color: var(--warn); }
.badge.approved { background: rgba(34, 211, 154, .15); color: var(--ok); }
.badge.blocked  { background: rgba(255, 90, 122, .15); color: var(--err); }
.badge.admin    { background: rgba(168, 85, 247, .15); color: var(--accent); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
  padding: 12px 18px; border-radius: 12px; font-size: .9rem; min-width: 240px;
  background: rgba(20, 10, 35, .85); border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  animation: slideIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok  { border-left: 4px solid var(--ok); }
.toast.err { border-left: 4px solid var(--err); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(5, 2, 15, .75);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 90;
  animation: fade .25s ease;
}
.modal-bg.active { display: flex; }
.modal { max-width: 640px; width: 92%; max-height: 86vh; overflow: auto; padding: 30px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Animations & misc ---------- */
.fade-in { animation: fade .35s ease; }
.slide-up { animation: slideUp .4s cubic-bezier(.2,.9,.3,1.05); }
@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hidden { display: none !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--brand-3), var(--brand), #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Pending screen ---------- */
.pending-card { text-align: center; padding: 48px; max-width: 480px; margin: 0 auto; }
.pending-card .ico {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  display: grid; place-items: center; margin: 0 auto 18px;
  font-size: 32px; color: white;
  box-shadow: 0 12px 32px rgba(168, 85, 247, .45);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(168, 85, 247, .45); }
  50%      { transform: scale(1.05); box-shadow: 0 16px 40px rgba(168, 85, 247, .6); }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); width: max-content; max-width: 100%; }
.tabs button {
  padding: 8px 16px; border-radius: 10px; background: transparent; color: var(--text-dim);
  border: none; cursor: pointer; font-weight: 600; font-size: .88rem;
  transition: all .2s ease;
}
.tabs button.active { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: white; box-shadow: 0 4px 14px rgba(124, 58, 237, .35); }
.tabs button:hover:not(.active) { color: var(--text); }

/* ---------- Empty state ---------- */
.empty { padding: 40px; text-align: center; color: var(--text-mute); }
.empty .ico { font-size: 38px; margin-bottom: 12px; opacity: .4; }

/* =====================================================================
   RESPONSIVE - Tablet & móvil
   ===================================================================== */

/* Tablet */
@media (max-width: 900px) {
  .container { padding: 20px 16px; }
  .section-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  .auth-card { padding: 28px 22px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .stat .val { font-size: 1.5rem; }
}

/* Móvil */
@media (max-width: 640px) {
  body { font-size: 15px; }

  /* Header: hace wrap, esconde el username largo */
  .app-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand { font-size: 1rem; }
  .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
  .brand-tag { display: none; }
  .nav { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .nav a { padding: 6px 10px; font-size: .85rem; }
  .nav .muted { display: none; } /* esconde @username en móvil */

  /* Tipografía */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }

  /* Containers */
  .container { padding: 16px 12px; }
  .page-title { gap: 12px; margin-bottom: 18px; }

  /* Cards */
  .card { padding: 16px; }
  .glass { border-radius: 16px; }

  /* Stats: 2 columnas en móvil */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px; }
  .stat .lbl { font-size: .68rem; }
  .stat .val { font-size: 1.4rem; }

  /* Plataformas: 1 columna, más compactas */
  .platforms { grid-template-columns: 1fr; gap: 12px; }
  .platform { padding: 18px; }
  .platform .count { font-size: 2rem; }

  /* Textarea más cortos */
  .textarea { min-height: 120px; font-size: .85rem; }
  .input, .select { padding: 11px 12px; }

  /* Botones */
  .btn { padding: 10px 14px; font-size: .88rem; }
  .btn-sm { padding: 6px 10px; font-size: .78rem; }

  /* Checker mode buttons: stack vertical en móviles muy pequeños */
  .checker-mode { flex-direction: column; }

  /* Email rows: stack acciones debajo si no caben */
  .email-row {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .email-row .em { font-size: .82rem; }
  .email-row .meta { font-size: .72rem; }
  .email-row .actions { width: 100%; justify-content: flex-end; margin-top: 4px; }

  /* Results en móvil */
  .result { padding: 10px 12px; }
  .result .em { font-size: .82rem; }
  .result .tag { font-size: .65rem; padding: 3px 8px; }

  /* Tabla de admin: scroll horizontal */
  .table-wrap { margin: 0 -4px; }
  table.tbl th, table.tbl td { padding: 10px 12px; font-size: .85rem; }
  table.tbl .actions { flex-direction: column; align-items: stretch; gap: 4px; }

  /* Tabs: scroll horizontal si no caben */
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex-shrink: 0; }

  /* Modal */
  .modal { padding: 22px; width: 96%; max-height: 90vh; }

  /* Toasts pegados al borde */
  .toasts { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: 0; }

  /* Pending screen */
  .pending-card { padding: 32px 22px; }
}

/* Móvil pequeño */
@media (max-width: 380px) {
  h1 { font-size: 1.3rem; }
  .brand span:first-of-type { display: none; }
  .stats { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; } /* solo deja "Salir" */
  .nav .btn { display: inline-flex; }
}

/* Pantallas táctiles: desactiva hover transforms */
@media (hover: none) {
  .platform:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* Safe-area para iPhone con notch */
@supports (padding: max(0px)) {
  .app-header { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .container { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
