@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --bg-base:    #020408;
  --bg-surface: #080d14;
  --bg-raised:  #0d1520;
  --bg-hover:   #111d2e;

  --neon-green:   #00ff87;
  --neon-magenta: #ff2d78;
  --neon-cyan:    #00d4ff;
  --neon-amber:   #ffb300;

  --green-dim:    rgba(0, 255, 135, 0.10);
  --green-glow:   rgba(0, 255, 135, 0.22);
  --magenta-dim:  rgba(255, 45, 120, 0.10);
  --cyan-dim:     rgba(0, 212, 255, 0.10);

  --border:     rgba(255, 255, 255, 0.06);
  --border-lit: rgba(0, 255, 135, 0.22);

  --text-1: #e8f0fe;
  --text-2: #8899aa;
  --text-3: #3d5166;

  --font-display: 'Orbitron', monospace;
  --font-body:    'Rajdhani', sans-serif;

  --radius:    12px;
  --radius-sm: 7px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-w: 228px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 8%   0%, rgba(0,255,135,0.05)  0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 92% 100%, rgba(255,45,120,0.04) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 50%  50%, rgba(0,212,255,0.02)  0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(0,255,135,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none; z-index: 0; opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 0.95rem; }

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--text-1); }

/* ── LAYOUT ─────────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ── MOBILE MENU TOGGLE ─────────────────────────────── */
.mobile-menu-btn {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 200;
  width: 38px; height: 38px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  cursor: pointer; flex-direction: column; gap: 5px;
  padding: 9px;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 2px;
  background: var(--neon-green);
  border-radius: 2px;
  transition: all 0.22s var(--ease);
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SIDEBAR OVERLAY (mobile) ───────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);   /* empieza DESPUÉS del sidebar, no lo cubre */
  right: 0;
  bottom: 0;
  z-index: 149;
  background: rgba(0,0,0,0.55);
  pointer-events: none;
}
.sidebar-overlay.visible { display: block; pointer-events: all; }

/* ── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: rgba(6, 10, 18, 0.97);
  border-right: 1px solid var(--border);
  box-shadow: 1px 0 0 rgba(0,255,135,0.06), 6px 0 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease);
  z-index: 150;
}

.sidebar-logo {
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 900;
  letter-spacing: 0.14em; color: var(--text-1);
  display: block;
}
.logo-text .zy  { color: var(--neon-green); text-shadow: 0 0 12px rgba(0,255,135,0.5); }
.logo-text .ret { color: var(--text-1); }

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-3); margin-top: 3px;
}

.nav-section { margin-bottom: 4px; }

.nav-label {
  font-family: var(--font-display);
  font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3); padding: 6px 10px 3px;
}

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em;
  transition: all 0.16s var(--ease);
  border: 1px solid transparent;
  position: relative; overflow: hidden; text-decoration: none;
}
.nav-link:hover { color: var(--neon-green); background: var(--green-dim); border-color: var(--border-lit); }
.nav-link.active {
  color: var(--neon-green); background: var(--green-dim);
  border-color: rgba(0,255,135,0.22); font-weight: 600;
}
.nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 2px; background: var(--neon-green);
  border-radius: 0 2px 2px 0; box-shadow: 0 0 8px var(--neon-green);
}
.nav-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.nav-link.active .nav-icon, .nav-link:hover .nav-icon { opacity: 1; }

.sidebar-user {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.user-card {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; background: var(--bg-raised);
  border: 1px solid var(--border-lit); border-radius: var(--radius-sm);
  min-width: 0; overflow: hidden;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--bg-hover); border: 1px solid var(--border-lit);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  color: var(--neon-green); flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,255,135,0.12);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
}
.user-credits { font-family: var(--font-body); font-size: 0.78rem; color: var(--neon-green); font-weight: 600; }
.logout-btn { color: var(--text-3); display: flex; padding: 3px; border-radius: 4px; transition: color 0.18s; }
.logout-btn:hover { color: var(--neon-magenta); }

/* ── MAIN CONTENT ───────────────────────────────────── */
.main-content {
  flex: 1; min-width: 0;
  padding: 30px; overflow-x: clip;
  animation: fadeUp 0.3s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-header {
  margin-bottom: 26px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 900;
  letter-spacing: 0.08em; color: var(--text-1);
  text-shadow: 0 0 28px rgba(0,255,135,0.18);
}
.page-subtitle {
  font-family: var(--font-body); font-size: 0.82rem; color: var(--text-3);
  margin-top: 4px; font-weight: 400; text-transform: none; letter-spacing: 0;
}

/* ── CARDS ──────────────────────────────────────────── */
.glass-card {
  background: rgba(8, 16, 28, 0.55);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 32px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
}
.glass-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(0,255,135,0.30) 50%, transparent 92%);
  pointer-events: none;
}
.glass-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, transparent 50%);
  pointer-events: none; border-radius: var(--radius);
}
.glass-card:hover {
  border-color: rgba(0,255,135,0.14);
  box-shadow: 0 6px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,255,135,0.05), inset 0 1px 0 rgba(255,255,255,0.07);
}
.glass-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 8px;
}
.glass-card-title {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-1);
}

/* ── STAT CARDS ─────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 13px; margin-bottom: 26px;
}
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  position: relative; overflow: hidden;
  transition: border-color 0.18s, transform 0.18s var(--ease);
}
.stat-card:hover { border-color: var(--border-lit); transform: translateY(-2px); }
.stat-card::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 55px; height: 55px;
  background: radial-gradient(circle at 100% 100%, var(--green-dim), transparent 70%);
}
.stat-value {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 900;
  color: var(--neon-green); line-height: 1; margin-bottom: 5px;
  text-shadow: 0 0 18px rgba(0,255,135,0.38);
}
.stat-label {
  font-family: var(--font-display); font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3);
}

/* ── BOTONES ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 0.66rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.16s var(--ease);
  white-space: nowrap; text-decoration: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--green-dim); color: var(--neon-green);
  border-color: rgba(0,255,135,0.28);
}
.btn-primary:hover, .btn-primary:active {
  background: rgba(0,255,135,0.18); color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 14px rgba(0,255,135,0.22);
}
.btn-secondary {
  background: var(--bg-raised); color: var(--text-2); border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-1); border-color: rgba(255,255,255,0.1); }
.btn-danger {
  background: var(--magenta-dim); color: var(--neon-magenta);
  border-color: rgba(255,45,120,0.28);
}
.btn-danger:hover { background: rgba(255,45,120,0.18); border-color: var(--neon-magenta); box-shadow: 0 0 14px rgba(255,45,120,0.18); }
.btn-success { background: var(--green-dim); color: var(--neon-green); border-color: rgba(0,255,135,0.28); }
.btn-success:hover { background: rgba(0,255,135,0.18); border-color: var(--neon-green); }
.btn-sm { padding: 5px 11px; font-size: 0.6rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMULARIOS ────────────────────────────────────── */
.form-group { margin-bottom: 13px; }
.form-label {
  display: block;
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  color: var(--text-1); font-family: var(--font-body); font-size: 0.92rem; font-weight: 400;
  transition: all 0.16s var(--ease); outline: none; -webkit-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 8px rgba(0,0,0,0.2);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(0,255,135,0.35); background: rgba(0,255,135,0.03);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.07), inset 0 1px 0 rgba(255,255,255,0.05);
}
.form-input::placeholder { color: var(--text-3); }
.form-select option { background: var(--bg-raised); color: var(--text-1); }

/* ── TABLAS ─────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
thead th {
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
  padding: 10px 13px; background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left;
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.025); transition: background 0.13s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-raised); }
tbody td {
  padding: 10px 13px; font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-2); vertical-align: middle;
}

/* ── BADGES ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 3px;
  font-family: var(--font-display); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid;
  white-space: nowrap;
}
.badge-approved, .badge-active   { background: rgba(0,255,135,0.08);  color: var(--neon-green);   border-color: rgba(0,255,135,0.22);  }
.badge-declined, .badge-banned   { background: rgba(255,45,120,0.08); color: var(--neon-magenta); border-color: rgba(255,45,120,0.22); }
.badge-error,    .badge-inactive { background: rgba(255,179,0,0.08);  color: var(--neon-amber);   border-color: rgba(255,179,0,0.22);  }
.badge-owner                     { background: rgba(0,212,255,0.08);  color: var(--neon-cyan);    border-color: rgba(0,212,255,0.22);  }
.badge-helper                    { background: rgba(0,212,255,0.06);  color: var(--neon-cyan);    border-color: rgba(0,212,255,0.18);  }
.badge-premium                   { background: rgba(255,179,0,0.08);  color: var(--neon-amber);   border-color: rgba(255,179,0,0.2);   }
.badge-basic                     { background: rgba(255,255,255,0.04); color: var(--text-2);      border-color: var(--border);         }

/* ── FLASH MESSAGES ─────────────────────────────────── */
.flash-container {
  position: fixed; top: 16px; right: 16px;
  z-index: 1000; display: flex; flex-direction: column; gap: 7px;
  max-width: min(320px, calc(100vw - 32px));
}
.flash-msg {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.87rem; font-weight: 500;
  animation: slideIn 0.22s var(--ease); border: 1px solid;
}
.flash-msg.success { background: rgba(0,255,135,0.08);  border-color: rgba(0,255,135,0.28);  color: var(--neon-green); }
.flash-msg.error   { background: rgba(255,45,120,0.08); border-color: rgba(255,45,120,0.28); color: var(--neon-magenta); }
@keyframes slideIn { from { opacity:0; transform:translateX(14px); } to { opacity:1; transform:translateX(0); } }

/* ── SPINNER ────────────────────────────────────────── */
.spinner {
  width: 13px; height: 13px;
  border: 2px solid var(--border); border-top-color: var(--neon-green);
  border-radius: 50%; animation: spin 0.65s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── UTILS ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; }
.mt-1{margin-top:8px;}.mt-2{margin-top:16px;}.mt-3{margin-top:24px;}
.mb-1{margin-bottom:8px;}.mb-2{margin-bottom:16px;}.mb-3{margin-bottom:24px;}
.text-sm{font-size:.82rem;} .text-muted{color:var(--text-3);} .text-secondary{color:var(--text-2);}
.text-green{color:var(--neon-green);} .text-red{color:var(--neon-magenta);}
.text-cyan{color:var(--neon-cyan);} .text-amber{color:var(--neon-amber);} .text-right{text-align:right;}
.font-mono { font-family:'Courier New',monospace; font-size:.82rem; letter-spacing:.06em; color:var(--neon-cyan); }
.w-full { width: 100%; }

/* ── LIQUID GLASS ───────────────────────────────────── */
.glass-liquid {
  background: rgba(8, 16, 28, 0.45);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07), inset 0 -1px 0 rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
.glass-liquid::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(0,255,135,0.35) 40%, rgba(0,212,255,0.20) 60%, transparent 95%);
}
.glass-liquid::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,255,135,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.checker-textarea {
  width: 100%; min-height: 130px; max-height: 280px; resize: vertical;
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-sm);
  color: var(--neon-cyan);
  font-family: 'Courier New', monospace; font-size: 0.8rem; letter-spacing: 0.05em; line-height: 1.7;
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  caret-color: var(--neon-green);
}
.checker-textarea::placeholder { color: rgba(0,212,255,0.22); }
.checker-textarea:focus {
  border-color: rgba(0,255,135,0.3);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.06), inset 0 0 20px rgba(0,0,0,0.2);
}

.result-row {
  padding: 9px 13px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25); backdrop-filter: blur(6px);
  transition: all 0.22s var(--ease); animation: rowIn 0.2s var(--ease);
  word-break: break-word;
}
@keyframes rowIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
.result-row.approved { background: rgba(0,255,135,0.06);  border-color: rgba(0,255,135,0.22);  }
.result-row.declined { background: rgba(255,45,120,0.06); border-color: rgba(255,45,120,0.22); }
.result-row.error    { background: rgba(255,179,0,0.06);  border-color: rgba(255,179,0,0.22);  }
.result-row.checking { background: rgba(0,212,255,0.04);  border-color: rgba(0,212,255,0.12);
                       animation: rowIn 0.2s var(--ease), pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { border-color: rgba(0,212,255,0.12); } 50% { border-color: rgba(0,212,255,0.32); } }

.badge-banned-bin { background: rgba(255,45,120,0.1); color: var(--neon-magenta); border-color: rgba(255,45,120,0.3); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 22px 18px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  :root { --sidebar-w: 240px; }

  .mobile-menu-btn { display: flex; }

  .app-wrapper { flex-direction: column; }

  .sidebar {
    position: fixed; top: 0; left: 0;
    height: 100vh; width: var(--sidebar-w);
    transform: translateX(-100%);
    border-right: 1px solid var(--border-lit);
    box-shadow: 4px 0 32px rgba(0,0,0,0.7);
    z-index: 200;
  }
  .sidebar.mobile-open { transform: translateX(0); }

  .main-content {
    padding: 66px 14px 20px;
    width: 100%;
  }

  .page-title { font-size: 1.05rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 1.35rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .glass-card { padding: 14px; }
  .glass-card-header { flex-direction: column; align-items: flex-start; }

  .flash-container { top: 10px; right: 10px; left: 10px; max-width: none; }

  thead th { font-size: 0.52rem; padding: 8px 10px; }
  tbody td { font-size: 0.83rem; padding: 8px 10px; }

  .btn { font-size: 0.62rem; padding: 7px 13px; }
  .btn-sm { padding: 5px 9px; font-size: 0.58rem; }

  .checker-textarea { min-height: 110px; font-size: 0.75rem; }

  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }

  /* User card en sidebar móvil — más visible */
  .sidebar-user { padding-top: 12px; }
  .user-card {
    padding: 10px 10px;
    background: rgba(0,255,135,0.05);
    border-color: rgba(0,255,135,0.18);
    gap: 8px;
  }
  .user-avatar {
    width: 30px; height: 30px; font-size: 0.7rem; flex-shrink: 0;
  }
  .user-name { font-size: 0.72rem; color: #ffffff; }
  .user-credits { font-size: 0.8rem; }
  .logout-btn { padding: 5px; flex-shrink: 0; color: rgba(255,255,255,0.6); }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .main-content { padding: 62px 12px 16px; }
  .glass-card { padding: 12px; }
}
