/* ============================================================
   AzulRP Panel – style.css
   Dark theme · acento rojo · tipografía Inter
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0d0f;
  --bg2:         #131317;
  --bg3:         #1a1a20;
  --bg4:         #222228;
  --border:      rgba(255,255,255,0.07);
  --accent:      #e5322d;
  --accent-h:    #c9231e;
  --text:        #f0f0f2;
  --text-muted:  #8b8b96;
  --text-dim:    #5a5a65;
  --blue:        #5865f2;
  --green:       #3dba6e;
  --radius:      10px;
  --radius-lg:   16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
  font-style: italic;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-steam-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
  transition: background .2s, border-color .2s;
}
.nav-steam-btn:hover { background: var(--bg4); border-color: rgba(255,255,255,0.15); }

.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
  transition: background .2s;
}
.nav-user-btn:hover { background: var(--bg4); }
.nav-avatar { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(50,10,10,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(30,10,60,0.3) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d0f 0%, #12090d 100%);
}
/* City silhouette effect via box-shadow layers */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url('/img/city-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
  filter: blur(1px);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* ---- left ---- */
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 12px;
}
.hero-accent { color: var(--accent); font-style: italic; }

.hero-sub {
  font-size: 18px; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.hero-desc {
  font-size: 14px; color: var(--text-dim);
  max-width: 520px; margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 700; font-size: 14px;
  border-radius: 7px;
  transition: background .2s, transform .1s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-arrow { font-size: 16px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600; font-size: 14px;
  border-radius: 7px;
  transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: var(--bg4); border-color: rgba(255,255,255,0.14); }

.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-card {
  display: flex; flex-direction: column;
  padding: 14px 22px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 100px;
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); margin-top: 2px; }

/* ---- right: logo card ---- */
.hero-logo-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  max-width: 420px;
}
.hero-logo-inner {
  display: flex; align-items: center; justify-content: center;
  width: 80%; height: 80%;
}
.hero-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-logo-fallback {
  font-size: 64px; font-weight: 900; font-style: italic;
  color: var(--text); letter-spacing: -3px;
}

/* ================================================================
   STEPS SECTION
   ================================================================ */
.steps-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.steps-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 12px;
}
.steps-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 10px;
}
.steps-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 48px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.step-card:hover { border-color: rgba(229,50,45,0.3); transform: translateY(-3px); }

.step-icon {
  width: 44px; height: 44px;
  background: rgba(229,50,45,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.link-accent { color: var(--accent); font-weight: 600; border-bottom: 1px solid rgba(229,50,45,0.3); }
.link-accent:hover { border-color: var(--accent); }

code {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--accent);
  font-family: 'Courier New', monospace;
}

/* ================================================================
   PANEL
   ================================================================ */
.panel-wrapper {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px 80px;
}

/* Panel header */
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 20px;
  gap: 16px;
}

.panel-header-left {
  display: flex; align-items: center; gap: 20px; flex: 1;
}

.panel-avatar-wrap {
  position: relative;
}
.panel-avatar {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--bg4);
}

.panel-user-info {
  display: flex; flex-direction: column; gap: 2px;
}
.panel-username { font-size: 16px; font-weight: 700; color: var(--text); }
.panel-char-name { font-size: 13px; color: var(--text-muted); }

.panel-money-block {
  display: flex; gap: 20px; margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.panel-money-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
}
.panel-money-item svg { color: var(--accent); flex-shrink: 0; }

.panel-header-right {
  display: flex; align-items: center; gap: 20px;
}
.panel-online-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--green);
}
.online-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse-online 2s infinite;
}
@keyframes pulse-online {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.panel-logo { height: 40px; object-fit: contain; }
.panel-logo-text {
  font-size: 28px; font-weight: 900; font-style: italic;
  color: var(--text); letter-spacing: -1px;
}

/* Panel body */
.panel-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: start;
}

/* Sidebar */
.panel-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  cursor: pointer;
}
.sidebar-item:hover { background: var(--bg3); color: var(--text); }
.sidebar-item.active {
  background: rgba(229,50,45,0.12);
  color: var(--accent);
  font-weight: 600;
}
.sidebar-item.active svg { color: var(--accent); }
.sidebar-logout {
  margin-top: auto;
  color: var(--text-dim);
}
.sidebar-logout:hover { background: rgba(229,50,45,0.08); color: var(--accent); }

/* Panel content */
.panel-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 400px;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.info-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s;
}
.info-card:hover { border-color: rgba(229,50,45,0.25); }
.info-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-dim); text-transform: uppercase;
}
.info-value { font-size: 16px; font-weight: 600; color: var(--text); }
.money-green { color: var(--green); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.badge-blue { background: rgba(88,101,242,0.15); color: #7289da; }
.badge-pink { background: rgba(255,105,180,0.12); color: #ff69b4; }

/* Inventory grid */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.inv-slot {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .2s, transform .15s;
  text-align: center;
}
.inv-slot:hover { border-color: rgba(229,50,45,0.3); transform: translateY(-2px); }
.inv-slot-icon {
  width: 46px; height: 46px;
  background: var(--bg4);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.inv-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  word-break: break-word; line-height: 1.3;
}
.inv-qty {
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  background: rgba(229,50,45,0.12);
  padding: 2px 8px; border-radius: 20px;
}

/* Empty / error states */
.panel-empty, .panel-error {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px;
  min-height: 300px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.panel-error { color: #f87171; }
.panel-error svg { color: #f87171; opacity: 0.7; }

/* ================================================================
   404 / Error page
   ================================================================ */
.error-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
  min-height: calc(100vh - 120px);
  text-align: center;
  padding: 40px;
}
.error-page h1 { font-size: 100px; font-weight: 900; color: var(--accent); opacity: 0.5; line-height: 1; }
.error-page p { font-size: 18px; color: var(--text-muted); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.footer-brand { font-weight: 800; font-style: italic; color: var(--text); }
.footer-copy { color: var(--text-dim); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-logo-card { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-body { grid-template-columns: 1fr; }
  .panel-sidebar { flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .navbar { padding: 0 20px; }
  .hero-content { padding: 60px 20px; }
}

@media (max-width: 600px) {
  .info-grid { grid-template-columns: 1fr; }
  .panel-header { flex-wrap: wrap; }
  .panel-money-block { border-left: none; padding-left: 0; margin-left: 0; flex-wrap: wrap; gap: 10px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
  .store-grid { grid-template-columns: 1fr; }
  .compra-card { flex-direction: column; }
  .compra-image img { width: 100%; height: 160px; }
}

/* ================================================================
   TIENDA
   ================================================================ */
.store-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.store-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.store-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 8px;
}

.store-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
}

.store-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}

.store-cat-btn {
  padding: 8px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.store-cat-btn:hover {
  background: var(--bg4);
  color: var(--text);
}

.store-cat-btn.active {
  background: rgba(229,50,45,0.15);
  border-color: rgba(229,50,45,0.35);
  color: var(--accent);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.store-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.store-card:hover {
  border-color: rgba(229,50,45,0.3);
  transform: translateY(-3px);
}

.store-card-image {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--bg3);
  overflow: hidden;
}

.store-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.store-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.store-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-info {
  font-size: 13px;
  color: var(--text-dim);
}

.store-card-info strong {
  color: var(--text);
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.store-card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

.store-buy-btn {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 6px;
}

.store-login-btn {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
}

/* Store Modal */
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.store-modal-content {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  z-index: 1;
  animation: modalIn 0.2s ease;
}

.store-modal-wide {
  max-width: 620px;
}

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

.store-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.store-modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.store-modal-actions {
  display: flex;
  gap: 12px;
}

.store-modal-actions .btn-primary,
.store-modal-actions .btn-secondary {
  flex: 1;
  justify-content: center;
}

.store-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color .2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.store-modal-close:hover {
  color: var(--accent);
  background: rgba(229,50,45,0.1);
}

.store-modal-loading {
  text-align: center;
}

.store-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Store Result Page */
.store-result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
  margin: 80px auto;
}

.store-result-icon {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-result-success {
  background: rgba(61,186,110,0.15);
  color: var(--green);
}

.store-result-pending {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}

.store-result-failure {
  background: rgba(248,113,113,0.15);
  color: #f87171;
}

.store-result-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.store-result-msg {
  font-size: 14px;
  color: var(--text-muted);
}

/* ================================================================
   COMPRAS (Panel)
   ================================================================ */
.compras-header {
  margin-bottom: 20px;
}

.compras-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.compra-card {
  display: flex;
  gap: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s;
}

.compra-card:hover {
  border-color: rgba(229,50,45,0.25);
}

.compra-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.compra-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.compra-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.compra-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compra-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.compra-info {
  font-size: 13px;
  color: var(--text-muted);
}

.compra-status {
  font-size: 13px;
  color: var(--text-muted);
}

.compra-date {
  font-size: 13px;
  color: var(--text-dim);
}

.compra-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.compra-code-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-blur {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  filter: blur(5px);
  transition: filter 0.25s ease;
  user-select: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.code-blur:hover {
  filter: blur(0);
  user-select: auto;
}

.compra-gift {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.compra-gift-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

/* Redeem Section */
.redeem-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.redeem-form {
  display: flex;
  gap: 10px;
}

.redeem-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Courier New', monospace;
  outline: none;
  transition: border-color .2s;
}

.redeem-input:focus {
  border-color: var(--accent);
}

.redeem-input::placeholder {
  color: var(--text-dim);
}

.redeem-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.redeem-success {
  background: rgba(61,186,110,0.12);
  border: 1px solid rgba(61,186,110,0.25);
  color: var(--green);
}

.redeem-error {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
}

/* ================================================================
   ADMIN TIENDA (Panel)
   ================================================================ */
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.admin-tab-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.admin-tab-btn:hover {
  background: var(--bg3);
  color: var(--text);
}

.admin-tab-btn.active {
  background: rgba(229,50,45,0.12);
  border-color: rgba(229,50,45,0.3);
  color: var(--accent);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-header .btn-primary {
  padding: 8px 16px;
  font-size: 13px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form-row input,
.admin-form-row textarea,
.admin-form-row select {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}

.admin-form-row input:focus,
.admin-form-row textarea:focus,
.admin-form-row select:focus {
  border-color: var(--accent);
}

.admin-form-row textarea {
  resize: vertical;
}

.admin-form-cols {
  flex-direction: row;
  gap: 14px;
}

.admin-form-cols > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.admin-edit-btn,
.admin-del-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.admin-edit-btn:hover {
  background: rgba(229,50,45,0.12);
  color: var(--accent);
  border-color: rgba(229,50,45,0.3);
}

.admin-del-btn:hover {
  background: rgba(248,113,113,0.12);
  color: #f87171;
  border-color: rgba(248,113,113,0.3);
}

.badge-pink {
  background: rgba(255,105,180,0.12);
  color: #ff69b4;
}

@media (max-width: 600px) {
  .admin-form-cols { flex-direction: column; }
  .compra-card { flex-direction: column; }
  .compra-image img { width: 100%; height: 160px; }
  .store-grid { grid-template-columns: 1fr; }
  .redeem-form { flex-direction: column; }
}
