/* ============================================================
   PLATAFORMA HÍBRIDA — CSS Principal
   Estética: Lujo oscuro — inspirado en Imgur pero más premium
   Fuentes: Playfair Display + DM Sans
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --accent: #e91e8c;
  --accent-soft: rgba(233,30,140,0.1);
  --accent-glow: rgba(233,30,140,0.3);
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --bg4: #222230;
  --bg5: #2a2a3a;
  --border: rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --text: #f0f0f5;
  --text2: #aaaabc;
  --text3: #66667a;
  --r: 10px;
  --r-lg: 16px;
  --r-sm: 6px;
  --sidebar: 240px;
  --top: 56px;
  --font-d: 'Playfair Display', serif;
  --font-b: 'DM Sans', sans-serif;
  --trans: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-b); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 5px; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* TOPBAR */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--top);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px 0 0;
  z-index: 200;
  gap: 0;
}
.topbar-logo {
  width: auto;
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 20px;
  font-family: var(--font-d);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.3px;
  height: 100%;
}
.topbar-logo span { color: var(--accent); margin-right: 4px; }
.topbar-search {
  flex: 1;
  display: flex; align-items: center;
  padding: 0 20px;
}
.search-box {
  display: flex; align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 16px;
  gap: 10px;
  width: 100%; max-width: 500px;
  transition: border-color var(--trans);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 16px; height: 16px; color: var(--text3); flex-shrink: 0; }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 14px; font-family: var(--font-b);
  width: 100%; padding: 9px 0;
}
.search-box input::placeholder { color: var(--text3); }
.topbar-actions { display: flex; align-items: center; gap: 8px; padding-left: 16px; }
.mobile-menu-btn { display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text); padding: 8px; cursor: pointer; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar);
  min-width: var(--sidebar);
  flex-shrink: 0;
  position: fixed;
  top: var(--top); bottom: 0; left: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
  display: none;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}
.sidebar.open { display: flex; }

/* Fondo oscuro detrás del sidebar cuando está abierto — clic afuera lo cierra */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99; opacity: 0; pointer-events: none;
  transition: opacity var(--trans);
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
.sidebar-section { padding: 16px 12px 8px; }
.sidebar-label {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text3);
  padding: 0 8px;
  margin-bottom: 6px;
  display: block;
}
.nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text2); font-size: 13px;
  transition: all var(--trans);
  position: relative;
  margin-bottom: 1px;
}
.nav-link:hover { background: var(--bg3); color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 3px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px;
}
.nav-divider { border: none; border-top: 1px solid var(--border); margin: 8px 12px; }
/* Modelo en sidebar */
.sidebar-model-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px; border-radius: var(--r-sm);
  color: var(--text2); font-size: 13px;
  transition: all var(--trans);
}
.sidebar-model-item:hover { background: var(--bg3); color: var(--text); }
.sidebar-model-item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.sidebar-model-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* MAIN */
.main { margin-left: 0; padding-top: var(--top); flex: 1; min-height: 100vh; }
.page-inner { padding: 24px 24px; }

/* ── MASONRY GRID ───────────────────────────────────────────── */
.gallery-grid {
  columns: 5 200px;
  column-gap: 10px;
}
.gallery-card {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg3);
  min-height: 160px;
}
.gallery-card img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--trans);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-title { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 5px; }
.gallery-card-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: rgba(255,255,255,0.7); }
.gallery-card-meta svg { width: 12px; height: 12px; }
.gallery-card-access {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  border-radius: 20px; padding: 3px 8px;
  font-size: 10px; font-weight: 600; color: #fff;
}
.gallery-card-access.secret { background: var(--accent); }
.gallery-card-access.registered { background: rgba(59,130,246,0.8); }
.gallery-card-count {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.65);
  border-radius: 20px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.gallery-card-heart {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.6); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0;
  transition: all var(--trans);
}
.gallery-card:hover .gallery-card-heart { opacity: 1; }
.gallery-card-heart:hover, .gallery-card-heart.liked { color: var(--accent); background: rgba(233,30,140,0.2); }
.gallery-card-heart svg { width: 14px; height: 14px; }

/* Regular grid para secciones admin */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ── FILTROS ────────────────────────────────────────────────── */
.filters-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.filter-select {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  color: var(--text); font-size: 13px; font-family: var(--font-b);
  cursor: pointer; outline: none;
  transition: border-color var(--trans);
}
.filter-select:focus { border-color: var(--accent); }
.filter-pill {
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg3); color: var(--text2);
  cursor: pointer; transition: all var(--trans);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}
.results-count { font-size: 13px; color: var(--text3); margin-left: auto; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 { font-family: var(--font-d); font-size: 20px; font-weight: 400; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.see-all { font-size: 13px; color: var(--accent); }
.see-all:hover { text-decoration: underline; }

/* ── HERO MODELS PREVIEW ────────────────────────────────────── */
.models-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.model-preview-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  cursor: pointer;
  transition: transform 0.2s;
}
.model-preview-card:hover { transform: translateY(-3px); }
.model-preview-banner {
  height: 80px;
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
  position: relative;
}
.model-preview-banner img { width: 100%; height: 100%; object-fit: cover; }
.model-preview-avatar {
  position: absolute; bottom: -20px; left: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--bg3);
  object-fit: cover;
}
.model-preview-avatar-ph {
  position: absolute; bottom: -20px; left: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--bg3);
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.model-preview-body { padding: 28px 12px 14px; }
.model-preview-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.model-preview-price { font-size: 12px; color: var(--accent); }
.model-preview-lock {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.model-preview-lock svg { width: 12px; height: 12px; color: #fff; }

/* ── SECRET ZONE BANNER ─────────────────────────────────────── */
.secret-banner {
  background: linear-gradient(135deg, rgba(233,30,140,0.12), rgba(100,40,200,0.08));
  border: 1px solid rgba(233,30,140,0.25);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin: 24px 0;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.secret-banner-icon { font-size: 36px; flex-shrink: 0; }
.secret-banner-text h3 { font-family: var(--font-d); font-size: 18px; margin-bottom: 6px; }
.secret-banner-text p { font-size: 13px; color: var(--text2); line-height: 1.6; max-width: 500px; }
.secret-banner-cta { margin-left: auto; flex-shrink: 0; }

/* ── GALLERY VIEWER ─────────────────────────────────────────── */
.gallery-viewer { max-width: 1000px; margin: 0 auto; }
.gallery-viewer-header { margin-bottom: 24px; }
.gallery-viewer-header h1 { font-family: var(--font-d); font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.gallery-viewer-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text2); }
.gallery-viewer-meta svg { width: 14px; height: 14px; }
.gallery-images { columns: 3 240px; column-gap: 8px; }
.gallery-images .img-item {
  break-inside: avoid; margin-bottom: 8px;
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  position: relative;
}
.gallery-images .img-item img { width: 100%; display: block; transition: opacity 0.2s; }
.gallery-images .img-item:hover img { opacity: 0.9; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; width: 40px; height: 40px; border-radius: 50%;
  font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: #fff; width: 46px; height: 46px; border-radius: 50%;
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 13px; color: rgba(255,255,255,0.6); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500; border: none; cursor: pointer; transition: all var(--trans); white-space: nowrap; font-family: var(--font-b); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d01880; transform: translateY(-1px); }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-h); background: var(--bg4); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-h); }
.btn-danger { background: rgba(220,50,50,0.12); color: #f87171; border: 1px solid rgba(220,50,50,0.2); }
.btn-danger:hover { background: rgba(220,50,50,0.22); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 11px 26px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px 13px; color: var(--text); font-size: 14px; font-family: var(--font-b); outline: none; transition: border-color var(--trans); }
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text3); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.card-header { padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14px; font-weight: 500; }
.card-body { padding: 16px 20px; }

/* ── TABLE ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--bg3); }
th { padding: 10px 14px; text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text2); border-bottom: 1px solid var(--border); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg3); }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.badge-green { background: rgba(34,197,94,0.12); color: #4ade80; }
.badge-red { background: rgba(239,68,68,0.12); color: #f87171; }
.badge-yellow { background: rgba(234,179,8,0.12); color: #facc15; }
.badge-blue { background: rgba(59,130,246,0.12); color: #60a5fa; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-purple { background: rgba(168,85,247,0.12); color: #c084fc; }

/* ── STATS ──────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0.6; }
.stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text2); margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 600; font-family: var(--font-d); letter-spacing: -1px; }
.stat-sub { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }
.alert-warning { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.2); color: #facc15; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg2); border: 1px solid var(--border-h); border-radius: var(--r-lg); padding: 26px; max-width: 500px; width: 100%; transform: scale(0.96); transition: transform 0.2s; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-title { font-family: var(--font-d); font-size: 18px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ── TOGGLE ─────────────────────────────────────────────────── */
.toggle { position: relative; width: 38px; height: 22px; display: inline-block; }
.toggle input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg4); border-radius: 22px; cursor: pointer; transition: background var(--trans); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform var(--trans); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ── UPLOAD ZONE ────────────────────────────────────────────── */
.upload-zone { border: 2px dashed var(--border-h); border-radius: var(--r-lg); padding: 32px; text-align: center; cursor: pointer; transition: all var(--trans); color: var(--text2); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone svg { width: 36px; height: 36px; margin: 0 auto 10px; opacity: 0.4; }
.upload-zone p { font-size: 13px; }
.upload-zone small { font-size: 11px; color: var(--text3); }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text2); }
.empty-state svg { width: 44px; height: 44px; opacity: 0.25; margin: 0 auto 14px; }
.empty-state h3 { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 7px; }
.empty-state p { font-size: 13px; }

/* ── AVATAR ─────────────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.av-xs { width: 24px; height: 24px; }
.av-sm { width: 32px; height: 32px; }
.av-md { width: 44px; height: 44px; }
.av-lg { width: 64px; height: 64px; }
.av-ph { border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.page-header h2 { font-family: var(--font-d); font-size: 20px; font-weight: 400; }
.page-header p { font-size: 12px; color: var(--text3); margin-top: 3px; }

/* ── AUTH ───────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; position: relative; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(233,30,140,0.08) 0%, transparent 60%), radial-gradient(ellipse at 75% 50%, rgba(100,40,220,0.06) 0%, transparent 60%); pointer-events: none; }
.auth-card { width: 100%; max-width: 400px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo h1 { font-family: var(--font-d); font-size: 26px; }
.auth-logo h1 span { color: var(--accent); }
.auth-logo p { font-size: 13px; color: var(--text2); margin-top: 4px; }
.auth-tabs { display: flex; gap: 3px; background: var(--bg3); border-radius: 8px; padding: 3px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 8px; border: none; background: transparent; color: var(--text2); font-size: 13px; font-weight: 500; font-family: var(--font-b); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.auth-tab.active { background: var(--bg2); color: var(--text); }

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

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid { columns: 2 160px; }
  .form-row { grid-template-columns: 1fr; }
  .page-inner { padding: 16px; }
  .gallery-images { columns: 2 160px; }
  /* El grid de /modelos/ cae a 1 columna en móvil — el anuncio queda solo
     en su fila, sin vecino que le dé altura, y colapsa a 0px sin esto. */
  .ad-model-card { aspect-ratio: 2/3; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 2 140px; }
  .models-preview { grid-template-columns: repeat(2, 1fr); }
}

/* ── UTILS ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text2); }
.text-faint { color: var(--text3); }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 16px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.w-100 { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
