/* ============================================================
   OSHARY DINO MARKET — style.css
   Dark gamer theme | Fuentes: Orbitron + Rajdhani + Inter
   ============================================================ */

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

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --void:       #050810;
  --deep:       #0a0f1e;
  --surface:    #0f1629;
  --card:       #131a2e;
  --border:     #1e2d4a;
  --gold:       #e8b923;
  --gold-dim:   #c49a1a;
  --gold-glow:  rgba(232,185,35,0.12);
  --amber:      #ff6b2b;
  --teal:       #00d4aa;
  --teal-dim:   rgba(0,212,170,0.1);
  --blue:       #3b82f6;
  --text:       #e2e8f0;
  --muted:      #64748b;
  --dim:        #334155;
  --green:      #27ae60;
  --red:        #e74c3c;
  --purple:     #8b5cf6;

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

  --radius:  6px;
  --radius-lg: 10px;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.6);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.35;
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── UTILITIES ─────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
.section-tag {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.1;
  color: var(--text); margin-bottom: 14px;
}
.section-sub {
  font-size: 15px; color: var(--muted);
  max-width: 480px; line-height: 1.75; margin-bottom: 52px;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 24px; border-radius: var(--radius);
  border: none; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: #000;
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(232,185,35,0.45); transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-teal {
  background: var(--teal); color: #000;
}
.btn-teal:hover { box-shadow: 0 0 24px rgba(0,212,170,0.4); }
.btn-lg { padding: 13px 32px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* ─── NAV ───────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 40px;
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.5px;
}
.navbar-logo span { color: var(--text); font-weight: 400; }
.navbar-logo img { border-radius: 4px; }

/* Logo en sidebar del dashboard y auth pages */
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.5px; text-decoration: none;
}
.sidebar-logo em { color: var(--text); font-style: normal; }
.sidebar-logo img { border-radius: 4px; }

.auth-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.5px; text-decoration: none;
}
.auth-logo span { color: var(--text); font-style: normal; }
.auth-logo em   { color: var(--text); font-style: normal; }

.navbar-links {
  display: flex; align-items: center; gap: 22px; list-style: none;
}
.navbar-links a {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.navbar-links a:hover { color: var(--text); border-color: var(--gold); }
.navbar-links a.active { color: var(--gold); border-color: var(--gold); }
/* Link OSHARYUM con ícono */
.navbar-links a.nav-osh-link {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.navbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }

.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); display: none;
  position: absolute; top: -2px; right: -2px;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 40px 80px;
  background-image: url('/assets/img/obelisco.jpeg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

/* Overlay oscuro encima del wallpaper */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    rgba(8,12,20,0.88) 0%,
    rgba(8,12,20,0.80) 50%,
    rgba(8,12,20,0.72) 100%
  );
}

/* ─── VIDEO BACKGROUND (deshabilitado) ──────────────────────── */


.hero-grid {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(232,185,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,185,35,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}
.hero-glow-1 {
  position: absolute; top: 15%; right: 8%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(232,185,35,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-2 {
  position: absolute; bottom: 10%; left: 5%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,212,170,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal);
  border: 1px solid rgba(0,212,170,0.3); padding: 6px 16px;
  border-radius: 2px; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -1px; margin-bottom: 22px;
}
.hero-title .accent {
  color: var(--gold); position: relative; display: inline-block;
}
.hero-title .accent::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-sub {
  font-size: 17px; line-height: 1.75; color: var(--muted);
  max-width: 500px; margin-bottom: 38px;
}
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 44px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 44px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900; color: var(--gold);
  display: block; line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  margin-top: 4px; display: block;
}

/* Floating dino cards */
.hero-visual {
  position: absolute; right: 40px; top: 50%;
  transform: translateY(-50%);
  width: 300px; pointer-events: none;
  display: flex; flex-direction: column; gap: 20px; align-items: flex-end;
  z-index: 2;
}
.float-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  width: 210px; box-shadow: var(--shadow-lg);
}
.float-card-img {
  height: 100px; display: flex; align-items: center;
  justify-content: center; font-size: 48px;
}
.float-card-body { padding: 12px 14px; }
.float-card-name {
  font-family: var(--font-ui); font-size: 15px; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
}
.float-card-price {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--gold);
}
.float-1 { animation: float1 4s ease-in-out infinite; margin-right: 60px; }
.float-2 { animation: float2 5s ease-in-out infinite; }
@keyframes float1 {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%     { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(1deg); }
  50%     { transform: translateY(-9px) rotate(-1.5deg); }
}

/* ─── SOCIAL BUBBLES (hero) ──────────────────────────────────── */
.social-bubbles {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.social-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.social-bubble:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.social-bubble.discord   { background: rgba(88,101,242,0.2);  color: #5865f2;  border-color: rgba(88,101,242,0.4); }
.social-bubble.discord:hover  { background: rgba(88,101,242,0.35); box-shadow: 0 8px 24px rgba(88,101,242,0.4); }
.social-bubble.youtube   { background: rgba(255,0,0,0.15);    color: #ff4444;  border-color: rgba(255,0,0,0.35); }
.social-bubble.youtube:hover  { background: rgba(255,0,0,0.28);   box-shadow: 0 8px 24px rgba(255,0,0,0.4); }
.social-bubble.facebook  { background: rgba(24,119,242,0.15); color: #4a9eff;  border-color: rgba(24,119,242,0.35); }
.social-bubble.facebook:hover { background: rgba(24,119,242,0.28); box-shadow: 0 8px 24px rgba(24,119,242,0.4); }
.social-bubble.tiktok    { background: rgba(255,255,255,0.08); color: #e8eaf0; border-color: rgba(255,255,255,0.18); }
.social-bubble.tiktok:hover   { background: rgba(255,255,255,0.15); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.social-bubble.whatsapp  { background: rgba(37,211,102,0.15); color: #25d366;  border-color: rgba(37,211,102,0.35); }
.social-bubble.whatsapp:hover { background: rgba(37,211,102,0.28); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }



/* ─── SEARCH & FILTERS ──────────────────────────────────────── */
.search-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
}
.search-row {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.search-input-group {
  flex: 1; min-width: 200px; position: relative;
}
.search-input-group svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.search-input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px 10px 42px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.search-input:focus   { border-color: var(--gold); }
.search-input::placeholder { color: var(--muted); }

.filter-select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text); outline: none; cursor: pointer;
  transition: border-color 0.2s; min-width: 155px;
}
.filter-select:focus { border-color: var(--gold); }
.filter-select option { background: var(--deep); }

.filter-tags-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
}
.tag-btn {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: all 0.2s;
}
.tag-btn:hover, .tag-btn.active {
  background: var(--gold-glow); border-color: var(--gold); color: var(--gold);
}

/* ─── RESULTS HEADER ────────────────────────────────────────── */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--muted);
}
.results-count strong { color: var(--gold); font-size: 16px; }

/* ─── DINO GRID ─────────────────────────────────────────────── */
.dino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 22px;
}

.dino-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; position: relative;
}
.dino-card:hover {
  border-color: rgba(232,185,35,0.6);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,185,35,0.15);
}

.dino-thumb {
  height: 175px; display: flex; align-items: center;
  justify-content: center; font-size: 72px;
  position: relative; overflow: hidden;
}
.dino-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  position: absolute; inset: 0;
  padding: 8px;
  transform: scale(1.15);
  transform-origin: center center;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}
/* ── Botón favorito ─────────────────────────────────────────── */
.fav-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  flex-shrink: 0;
}
.fav-btn:hover { background: rgba(231,76,60,0.15); border-color: rgba(231,76,60,0.3); transform: scale(1.15); }
.fav-btn.fav-active { background: rgba(231,76,60,0.12); border-color: rgba(231,76,60,0.3); }

.dino-thumb:hover img {
  transform: scale(1.25);
}
.dino-thumb .emoji-fallback {
  position: relative; z-index: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.rarity-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.rarity-legendary { background: rgba(232,185,35,0.92); color: #000; }
.rarity-epic      { background: rgba(139,92,246,0.92);  color: #fff; }
.rarity-rare      { background: rgba(59,130,246,0.92);  color: #fff; }
.rarity-common    { background: rgba(100,116,139,0.85); color: #fff; }

.card-body { padding: 16px 18px; }

.seller-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.seller-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--amber));
  display: flex; overflow: hidden;
  align-items: center; justify-content: center; font-size: 11px;
  flex-shrink: 0;
}
.seller-name {
  font-size: 12px; color: var(--muted); font-family: var(--font-ui);
  font-weight: 600;
}
.seller-name-wrap {
  display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0;
  flex-wrap: wrap;
}
.seller-stars { color: var(--gold); font-size: 11px; font-weight: 700; }

.card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.dino-name {
  font-family: var(--font-ui); font-size: 19px; font-weight: 700;
  color: var(--text); line-height: 1.2;
}
.dino-species {
  font-size: 11px; color: var(--muted); margin-top: 2px; font-style: italic;
}
.dino-level-wrap { text-align: right; }
.dino-level {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 900; color: var(--gold); line-height: 1;
}
.dino-level-lbl {
  font-size: 9px; font-family: var(--font-ui);
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); display: block;
}

/* Stat bars */
.stat-bars { margin-bottom: 14px; }
.stat-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.stat-lbl {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--muted); width: 52px; flex-shrink: 0;
}
.stat-bar-bg {
  flex: 1; height: 4px; background: var(--dim);
  border-radius: 2px; overflow: hidden;
}
.stat-bar {
  height: 100%; border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.stat-val {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  color: var(--text); width: 44px; text-align: right; flex-shrink: 0;
}

.card-tags { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.card-tag {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 2px;
  background: var(--teal-dim); color: var(--teal);
  border: 1px solid rgba(0,212,170,0.2);
}

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.price-wrap .price-lbl {
  font-size: 10px; color: var(--muted); font-family: var(--font-ui);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.price-val {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; color: var(--gold); line-height: 1;
}
.payment-icon {
  font-size: 11px; color: var(--muted); font-family: var(--font-ui);
  margin-top: 2px;
}

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 20px; color: var(--muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 20px; }
.empty-state p {
  font-family: var(--font-ui); font-size: 18px; font-weight: 600;
}

/* ─── LOADING SKELETON ──────────────────────────────────────── */
.skeleton-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-img  { height: 175px; border-radius: 0; }
.skel-body { padding: 16px 18px; }
.skel-line { height: 12px; margin-bottom: 10px; }
.skel-line.w-60 { width: 60%; }
.skel-line.w-40 { width: 40%; }
.skel-line.w-80 { width: 80%; }

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.page-btn {
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); transition: all 0.2s; cursor: pointer;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active {
  background: var(--gold); color: #000; border-color: var(--gold);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── HOW IT WORKS ──────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.step-card {
  background: var(--card); padding: 38px 30px;
  transition: background 0.3s;
}
.step-card:hover { background: var(--surface); }
.step-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 900;
  color: var(--border); line-height: 1; margin-bottom: 16px;
  transition: color 0.3s;
}
.step-card:hover .step-num { color: var(--gold-dim); }
.step-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.step-title {
  font-family: var(--font-ui); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─── SELL SECTION ──────────────────────────────────────────── */
.sell-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.sell-feature {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 20px;
}
.sell-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.icon-gold   { background: var(--gold-glow);  border: 1px solid rgba(232,185,35,0.25); }
.icon-teal   { background: var(--teal-dim);   border: 1px solid rgba(0,212,170,0.2); }
.icon-blue   { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,0.2); }
.sell-feat-title {
  font-family: var(--font-ui); font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.sell-feat-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── FORM ──────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
}
.form-card-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--text); margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 15px; }
.form-label {
  display: block; font-family: var(--font-ui); font-size: 11px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.form-control {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--muted); }
select.form-control option { background: var(--deep); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.payment-opts { display: flex; gap: 10px; }
.pay-opt {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 8px; cursor: pointer; text-align: center;
  background: var(--card); transition: all 0.2s;
}
.pay-opt.active { border-color: var(--gold); background: var(--gold-glow); }
.pay-opt:hover  { border-color: var(--gold); }
.pay-opt-icon  { font-size: 20px; margin-bottom: 4px; }
.pay-opt-name  { font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--text); }

.commission-box {
  background: rgba(0,212,170,0.06);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 12px; color: var(--teal);
  margin-top: 14px; font-family: var(--font-ui); line-height: 1.6;
}

/* ─── FEATURES ──────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; background: var(--card);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(232,185,35,0.3); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feat-icon  { font-size: 34px; margin-bottom: 14px; display: block; }
.feat-title { font-family: var(--font-ui); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feat-desc  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ─── CTA BAND ──────────────────────────────────────────────── */
.cta-band {
  padding: 88px 40px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--deep) 0%, #0d1520 100%);
  border-top: 1px solid var(--border);
}
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 280px;
  background: radial-gradient(ellipse, rgba(232,185,35,0.07) 0%, transparent 70%);
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 46px);
  font-weight: 900; margin-bottom: 14px; position: relative;
}
.cta-title .accent { color: var(--gold); }
.cta-sub  { color: var(--muted); font-size: 16px; margin-bottom: 34px; position: relative; }
.cta-btns { display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--void); border-top: 1px solid var(--border);
  padding: 60px 40px 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; max-width: 1280px; margin: 0 auto 44px;
}
.footer-brand-desc {
  font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 12px;
}
.footer-col-title {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px; color: var(--muted); transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto;
  padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); font-family: var(--font-ui);
  letter-spacing: 0.5px; flex-wrap: wrap; gap: 8px;
}
.footer-disclaimer {
  font-size: 11px; color: #1e2d4a; text-align: center;
  margin-top: 14px; max-width: 1280px; margin-left: auto; margin-right: auto;
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 500px; max-width: 95vw; max-height: 92vh; overflow-y: auto;
  transform: translateY(22px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--gold);
}
.modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 20px; line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 26px; }

.modal-tabs { display: flex; background: var(--surface); border-radius: var(--radius); padding: 4px; margin-bottom: 26px; }
.modal-tab {
  flex: 1; padding: 8px; text-align: center;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  background: transparent; border: none; color: var(--muted);
  border-radius: calc(var(--radius) - 2px); transition: all 0.2s;
}
.modal-tab.active { background: var(--card); color: var(--gold); }

.divider-row {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 11px; color: var(--muted); font-family: var(--font-ui); }

.oauth-btns { display: flex; gap: 10px; }

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  background: var(--card); border: 1px solid var(--teal);
  border-radius: var(--radius); padding: 14px 20px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--teal); max-width: 360px;
  transform: translateY(80px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--red); color: var(--red); }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(22px);
  animation: fadeUp 0.55s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-visual { display: none; }
  .sell-grid { grid-template-columns: 1fr; gap: 44px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-links { display: none; }
  .container { padding: 0 20px; }
  .hero { padding: 90px 20px 60px; background-attachment: scroll; }
  .hero-stats { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-band { padding: 60px 20px; }
  footer { padding: 44px 20px 28px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .dino-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .search-row { flex-direction: column; }
  .filter-select, .search-input { width: 100%; }
}

/* ─── NAVBAR USER PILL (estado logueado) ────────────────────── */
.navbar-user-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-glow); border: 1px solid rgba(232,185,35,0.25);
  border-radius: 20px; padding: 4px 12px 4px 5px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  color: var(--text); white-space: nowrap; line-height: 1;
  vertical-align: middle;
}
.navbar-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--amber));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 900;
  color: #000; flex-shrink: 0; line-height: 1;
}

/* ─── MODAL DE COMPRA ───────────────────────────────────────── */
.buy-dino-header {
  height: 160px; display: flex; align-items: center;
  justify-content: center; gap: 16px; flex-direction: column;
  position: relative;
}
.buy-dino-info { padding: 20px 26px 26px; }
.buy-dino-title {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 12px;
}
.buy-seller-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--surface);
  border-radius: var(--radius); margin-bottom: 16px;
}
.buy-price-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 20px;
}
.buy-price-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 6px 0;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.buy-price-row:last-child { border-bottom: none; }
.buy-price-total {
  padding-top: 10px !important; margin-top: 4px;
  font-size: 15px !important; font-weight: 700 !important;
}
.buy-payment-opts {
  display: flex; gap: 10px; margin-bottom: 4px;
}
.buy-pay-btn {
  flex: 1; display: flex; flex-direction: row;
  align-items: center; justify-content: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--border);
  cursor: pointer; transition: all 0.2s; line-height: 1.3;
}
.buy-pay-btn:hover { border-color: var(--gold); }
.buy-pay-btn.active {
  border-color: var(--gold);
  background: var(--gold-glow);
  box-shadow: 0 0 16px rgba(232,185,35,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   UI/UX UPGRADE — Responsive, Animaciones, Diseño mejorado
   ═══════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ADICIONALES ──────────────────────────────────── */
:root {
  --transition-fast:   0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-base:   0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 0.4s cubic-bezier(0.34,1.56,0.64,1);
  --glow-gold:  0 0 20px rgba(232,185,35,0.3), 0 0 60px rgba(232,185,35,0.1);
  --glow-teal:  0 0 20px rgba(0,212,170,0.3),  0 0 60px rgba(0,212,170,0.1);
  --card-hover: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(232,185,35,0.18);
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── CARD MEJORADA ─────────────────────────────────────────── */
.dino-card {
  transition: transform var(--transition-base), 
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  will-change: transform;
}
.dino-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--card-hover);
  border-color: rgba(232,185,35,0.5);
}
.dino-card:hover .dino-name { color: var(--gold); }
.dino-card:active { transform: translateY(-3px) scale(1.005); }

/* Shimmer en hover de la imagen */
.dino-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.dino-card:hover .dino-thumb::after {
  opacity: 1;
  animation: cardShimmer 0.8s ease;
}
@keyframes cardShimmer {
  0%   { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}

/* Glow en rarity badge hover */
.rarity-legendary:hover { box-shadow: 0 0 12px rgba(232,185,35,0.6); }
.rarity-epic:hover      { box-shadow: 0 0 12px rgba(139,92,246,0.6); }
.rarity-rare:hover      { box-shadow: 0 0 12px rgba(59,130,246,0.6); }

/* ─── BOTONES MEJORADOS ─────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  transition: transform var(--transition-fast), 
              box-shadow var(--transition-base),
              background var(--transition-fast);
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::after  { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }
.btn:active::after { background: rgba(0,0,0,0.1); }

.btn-primary:hover { box-shadow: var(--glow-gold); }
.btn-teal:hover    { box-shadow: var(--glow-teal); }

/* Ripple click effect */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ─── NAVBAR MEJORADA ───────────────────────────────────────── */
.navbar {
  transition: background var(--transition-base), 
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}
.navbar.scrolled {
  background: rgba(5,8,16,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  border-color: rgba(232,185,35,0.15);
}
.navbar-links a {
  position: relative; transition: color var(--transition-fast);
}
.navbar-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition-base);
}
.navbar-links a:hover::after,
.navbar-links a.active::after { width: 100%; }

/* Hamburger para mobile */
.navbar-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.navbar-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}
.navbar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.navbar-mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(5,8,16,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px 24px;
  z-index: 99;
  transform: translateY(-10px); opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
}
.navbar-mobile-menu.open {
  transform: translateY(0); opacity: 1;
  pointer-events: all;
}
.navbar-mobile-menu a {
  display: block;
  font-family: var(--font-ui); font-size: 16px; font-weight: 600;
  color: var(--muted); padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.navbar-mobile-menu a:hover { color: var(--gold); padding-left: 8px; }
.navbar-mobile-menu a:last-child { border-bottom: none; }
.navbar-mobile-menu a.mobile-osh-link { color: var(--gold) !important; }
.navbar-mobile-menu a.mobile-osh-link:hover { padding-left: 8px; }
.navbar-mobile-actions {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}

/* ─── FILTROS AVANZADOS MEJORADOS ───────────────────────────── */
.adv-filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 12px;
  display: none;
  animation: slideDown 0.25s ease;
}
.adv-filters-panel.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.adv-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.adv-filter-label {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 5px;
}
.adv-filter-input {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 10px; font-size: 13px; color: var(--text);
  outline: none; transition: border-color var(--transition-fast);
}
.adv-filter-input:focus { border-color: var(--gold); }

/* Chips de filtros activos */
.active-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(232,185,35,0.1); border: 1px solid rgba(232,185,35,0.3);
  border-radius: 20px; padding: 3px 10px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  color: var(--gold);
  animation: chipIn 0.2s var(--transition-spring);
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.filter-chip button {
  background: none; border: none; color: var(--gold);
  font-size: 13px; line-height: 1; cursor: pointer;
  padding: 0; opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.filter-chip button:hover { opacity: 1; }

/* ─── TAG BUTTONS MEJORADOS ─────────────────────────────────── */
.tag-btn {
  transition: all var(--transition-fast);
  position: relative; overflow: hidden;
}
.tag-btn:hover  { transform: translateY(-1px); }
.tag-btn.active { 
  background: var(--gold-glow); 
  border-color: var(--gold); 
  color: var(--gold);
  box-shadow: 0 0 10px rgba(232,185,35,0.2);
}

/* ─── STAT BARS ANIMADAS ────────────────────────────────────── */
.stat-bar {
  position: relative;
}
.stat-bar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  background-size: 200% 100%;
  animation: barShine 2.5s ease infinite;
  opacity: 0;
}
.dino-card:hover .stat-bar::after { opacity: 1; }
@keyframes barShine {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── MODAL MEJORADO ────────────────────────────────────────── */
.modal {
  animation: none;
}
.modal-overlay.open .modal {
  animation: modalIn 0.35s cubic-bezier(0.34,1.2,0.64,1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── TOAST MEJORADO ────────────────────────────────────────── */
.toast {
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid var(--teal);
}
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); border-color: var(--green); color: var(--green); }

/* ─── FEATURE CARDS ─────────────────────────────────────────── */
.feature-card {
  transition: transform var(--transition-base), 
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.feat-icon {
  transition: transform var(--transition-spring);
}
.feature-card:hover .feat-icon { transform: scale(1.15) rotate(-5deg); }

/* ─── PRICE HIGHLIGHT ───────────────────────────────────────── */
.price-val {
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
.dino-card:hover .price-val {
  text-shadow: 0 0 20px rgba(232,185,35,0.5);
}

/* ─── PAGINATION MEJORADA ───────────────────────────────────── */
.page-btn {
  transition: all var(--transition-fast);
}
.page-btn:hover { transform: translateY(-2px); }
.page-btn.active { box-shadow: 0 0 14px rgba(232,185,35,0.3); }

/* ─── SKELETON MEJORADO ─────────────────────────────────────── */
.skeleton-card {
  animation: cardFadeIn 0.4s ease both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── INPUT FOCUS MEJORADO ──────────────────────────────────── */
.search-input:focus {
  box-shadow: 0 0 0 3px rgba(232,185,35,0.12);
}
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(232,185,35,0.1);
}

/* ─── SCROLLBAR MEJORADO ────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(var(--gold-dim), var(--amber));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — Prioridad alta, mayoría desktop pero
   mobile debe ser usable
   ══════════════════════════════════════════════════════════════ */

/* ─── TABLET (≤ 900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
  .dino-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  .search-wrap { padding: 16px 18px; }
  .search-row  { gap: 10px; }
  .adv-filter-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ─── MOBILE (≤ 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 16px; }
  .navbar-links { display: none !important; }
  .navbar-hamburger { display: flex; }
  .navbar-mobile-menu { display: block; }
  .navbar-actions .btn { 
    padding: 7px 12px; 
    font-size: 12px; 
  }

  /* Hero */
  .hero { padding: 80px 16px 50px; }
  .hero-title { font-size: clamp(28px, 8vw, 44px); letter-spacing: -0.5px; }
  .hero-sub   { font-size: 15px; }
  .hero-ctas  { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; margin-top: 36px; padding-top: 28px; }
  .hero-stat-num { font-size: 24px; }

  /* Filtros */
  .search-wrap { padding: 14px 14px; border-radius: var(--radius); }
  .search-row  { flex-direction: column; gap: 10px; margin-bottom: 10px; }
  .search-input-group { min-width: unset; width: 100%; }
  .filter-select { width: 100%; min-width: unset; }
  .search-row > .btn { width: 100%; }
  
  .filter-tags-row { gap: 6px; }
  .tag-btn { font-size: 11px; padding: 4px 10px; }
  
  .adv-filter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Grid */
  .dino-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }

  /* Cards */
  .dino-thumb { height: 140px; }
  .card-body  { padding: 12px 14px; }
  .dino-name  { font-size: 15px; }
  .dino-level { font-size: 18px; }
  .price-val  { font-size: 18px; }
  .stat-bars  { margin-bottom: 10px; }
  .stat-row   { margin-bottom: 4px; }

  /* Sections */
  .container   { padding: 0 16px; }
  .sell-grid   { gap: 36px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card  { padding: 22px; }
  .steps-grid    { gap: 1px; }
  .step-card     { padding: 26px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  footer       { padding: 36px 16px 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Modal */
  .modal { width: 100% !important; max-width: 100% !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { align-items: flex-end; }
  .modal-overlay.open .modal { animation: modalSlideUp 0.35s cubic-bezier(0.4,0,0.2,1) forwards; }
  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  /* Pagination */
  .pagination { gap: 5px; margin-top: 32px; }
  .page-btn   { width: 36px; height: 36px; font-size: 13px; }

  /* Results header */
  .results-header { margin-bottom: 16px; }

  /* Toast */
  .toast { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}

/* ─── MOBILE SMALL (≤ 520px) ────────────────────────────────── */
@media (max-width: 520px) {
  .dino-grid { 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > * { min-width: 80px; }
  .adv-filter-grid { grid-template-columns: 1fr; }

  /* Cards a full width se ven mejor con más detalle */
  .dino-thumb { height: 160px; }
  .card-body  { padding: 14px 16px; }
  .dino-name  { font-size: 17px; }
  .price-val  { font-size: 20px; }

  /* Botones de acciones en card */
  .card-footer { flex-wrap: wrap; gap: 8px; }
  .card-footer .btn { flex: 1; min-width: 100px; }

  /* Form */
  .stats-grid { grid-template-columns: 1fr; }
  .payment-opts { flex-direction: column; }
  .buy-payment-opts { flex-direction: column; }
}

/* ─── HOVER solo en dispositivos que lo soportan ────────────── */
@media (hover: none) {
  .dino-card:hover { transform: none; box-shadow: none; }
  .btn:hover::after { background: none; }
  .feature-card:hover { transform: none; }
  /* Touch feedback */
  .dino-card:active  { transform: scale(0.98); transition: transform 0.1s; }
  .btn:active        { transform: scale(0.97); }
  .tag-btn:active    { transform: scale(0.95); }
}

/* ─── HIDE/SHOW HELPERS ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  
  /* Navbar: solo logo + hamburger + notif bell */
  .navbar-actions {
    gap: 6px;
  }
  /* Mantener visible el user pill y la campana en mobile */
  .navbar-user-pill { 
    font-size: 12px; 
    padding: 3px 10px 3px 4px;
  }
  .navbar-avatar { width: 20px; height: 20px; font-size: 10px; }
}

/* ─── GAME MODE BADGE ────────────────────────────────────────── */
.game-mode-badge {
  position: absolute;
  top: 34px;   /* just below rarity badge */
  right: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 2;
}
.game-mode-vanilla {
  background: rgba(231,76,60,0.85);
  color: #fff;
  border: 1px solid rgba(231,76,60,0.4);
}
.game-mode-pvex5 {
  background: rgba(39,174,96,0.85);
  color: #fff;
  border: 1px solid rgba(39,174,96,0.4);
}

/* ─── GAME MODE FILTER BUTTONS ──────────────────────────────── */
.game-mode-btn-vanilla.active {
  background: rgba(231,76,60,0.2);
  border-color: rgba(231,76,60,0.6);
  color: #ff6b6b;
}
.game-mode-btn-pvex5.active {
  background: rgba(39,174,96,0.2);
  border-color: rgba(39,174,96,0.6);
  color: #2ecc71;
}