/* static/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --orange: #FF6B00;
  --orange-dark: #cc5500;
  --orange-glow: rgba(255,107,0,0.4);
  --bg: #050508;
  --bg2: #0a0a0f;
  --bg3: #0f0f17;
  --bg4: #141420;
  --card: #0f0f17;
  --border: rgba(255,107,0,0.15);
  --text: #ffffff;
  --text2: #a0a0b8;
  --text3: #555570;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
::selection { background: rgba(255,107,0,0.3); color: #fff; }

/* ─── CANVAS PARTICLE ───────────────────────── */
#particle-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ─── GRID OVERLAY ──────────────────────────── */
.grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none; z-index: 0;
}

/* ─── LAYOUT ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.relative { position: relative; z-index: 1; }

/* ─── NAVBAR ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(5,5,8,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 20px;
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 900;
  color: #fff; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--orange); text-shadow: 0 0 10px var(--orange-glow); }

.nav-search {
  flex: 1; max-width: 400px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 8px; padding: 8px 16px;
  color: #fff; font-family: 'Rajdhani', sans-serif;
  font-size: 14px; outline: none; transition: all 0.3s;
}
.nav-search:focus { border-color: rgba(255,107,0,0.5); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.nav-search::placeholder { color: rgba(255,255,255,0.3); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.15);
  cursor: pointer; position: relative;
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #cc5500);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
}
.nav-username { font-size: 13px; color: #ccc; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--orange); border-radius: 8px;
  padding: 8px 14px; border: none; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  color: #fff; transition: all 0.3s; position: relative;
  text-decoration: none;
}
.nav-cart:hover { background: var(--orange-dark); box-shadow: 0 0 15px var(--orange-glow); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: #fff; color: var(--orange);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* user dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; min-width: 220px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  display: none; z-index: 200;
}
.user-dropdown.open { display: block; }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dropdown-email { font-size: 12px; color: var(--text3); margin-top: 2px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--text2);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.dropdown-item:hover { background: rgba(255,107,0,0.08); color: #fff; }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.08); }

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px; border: none;
  font-family: 'Orbitron', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn:hover::after { left: 100%; }

.btn-primary { background: linear-gradient(135deg, var(--orange), #cc4400); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 20px var(--orange-glow); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--orange); border: 1px solid var(--orange); }
.btn-outline:hover { background: rgba(255,107,0,0.1); box-shadow: 0 0 15px rgba(255,107,0,0.2); }

.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text2); border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-green { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.btn-green:hover { background: rgba(34,197,94,0.25); }

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 12px; }
.btn-sm { padding: 6px 14px; font-size: 10px; }

/* ─── CARDS ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(255,107,0,0.35);
  box-shadow: 0 8px 30px rgba(255,107,0,0.1), 0 4px 16px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

/* ─── INPUTS ────────────────────────────────── */
.input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 8px; padding: 12px 16px;
  color: #fff; font-family: 'Rajdhani', sans-serif;
  font-size: 15px; outline: none; transition: all 0.3s;
}
.input:focus { border-color: rgba(255,107,0,0.5); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.input::placeholder { color: rgba(255,255,255,0.3); }

select.input { cursor: pointer; }
select.input option { background: var(--bg2); }

textarea.input { resize: vertical; min-height: 100px; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 80px 16px 40px; position: relative;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.25);
  color: var(--orange); border-radius: 999px;
  padding: 5px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title .neon {
  color: var(--orange);
  text-shadow: 0 0 15px rgba(255,107,0,0.6), 0 0 30px rgba(255,107,0,0.2);
}
.hero-sub {
  color: var(--text2); font-size: 18px;
  max-width: 500px; margin: 0 auto 32px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 40px;
}
.hero-stats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,107,0,0.12);
  border-radius: 10px; padding: 12px 20px; text-align: center;
  min-width: 100px;
}
.hero-stat-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px; font-weight: 900; color: var(--orange);
}
.hero-stat-label { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ─── CATEGORY PILLS ────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  color: var(--orange); border-radius: 999px;
  padding: 6px 16px; font-size: 12px; font-weight: 600;
  font-family: 'Orbitron', sans-serif; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--orange); color: #fff;
  box-shadow: 0 0 12px rgba(255,107,0,0.3);
}

/* ─── SECTION HEADER ────────────────────────── */
.section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid rgba(255,107,0,0.2);
  border-radius: 999px; padding: 7px 18px; flex-shrink: 0;
}
.section-pill span {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.06em;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,107,0,0.2), transparent); }
.see-all { font-size: 13px; color: var(--orange); font-weight: 600; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.see-all:hover { color: #fff; }

/* ─── PRODUCT GRID ──────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.product-card { cursor: pointer; text-decoration: none; display: block; }
.product-card .card { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.product-img {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg4); position: relative;
  border-radius: 8px 8px 0 0;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
  display: block;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.product-discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; font-family: 'Orbitron', sans-serif;
}
.product-no-stock {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
}
.product-no-stock span {
  font-size: 11px; color: #888; font-family: 'Orbitron', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.product-info { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 10px; color: var(--orange); font-weight: 600; margin-bottom: 3px; }
.product-name { font-size: 13px; color: #fff; font-weight: 600; line-height: 1.3; margin-bottom: auto; padding-bottom: 8px; }
.product-orig-price { font-size: 11px; color: var(--text3); text-decoration: line-through; }
.product-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px; font-weight: 900; color: var(--orange);
  text-shadow: 0 0 8px rgba(255,107,0,0.4);
}
.product-pix { font-size: 10px; color: var(--text3); margin-top: 1px; margin-bottom: 8px; }
.product-buy-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px; border-radius: 7px; border: none; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
  background: rgba(255,107,0,0.15); color: var(--orange);
  border: 1px solid rgba(255,107,0,0.25); transition: all 0.2s;
}
.product-buy-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ─── PRODUCT PAGE ──────────────────────────── */
.product-page-grid {
  display: grid;
  grid-template-columns: 320px 1fr 200px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-page-grid { grid-template-columns: 1fr; }
}
.product-main-img {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg3);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.product-buy-box { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.stock-indicator { display: flex; align-items: center; gap: 8px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: blink 2s infinite; }
.stock-count { font-size: 13px; font-weight: 600; color: var(--green); }
.stock-empty { font-size: 13px; font-weight: 600; color: var(--red); }

.product-main-name { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900; color: #fff; line-height: 1.2; }
.product-main-price { font-family: 'Orbitron', sans-serif; font-size: 36px; font-weight: 900; color: var(--orange); text-shadow: 0 0 15px rgba(255,107,0,0.4); }
.product-installment { font-size: 12px; color: var(--text3); margin-top: 4px; }

.benefit-card { padding: 12px 14px; display: flex; align-items: flex-start; gap: 12px; }
.benefit-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,107,0,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.benefit-title { font-size: 13px; font-weight: 600; color: #fff; }
.benefit-desc { font-size: 11px; color: var(--text3); margin-top: 2px; line-height: 1.4; }

.description-card { padding: 20px; }
.description-title { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.description-body { font-size: 14px; color: var(--text2); line-height: 1.9; white-space: pre-line; }

/* ─── CART ───────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: flex; gap: 14px; padding: 14px; align-items: center; }
.cart-item-img { width: 70px; height: 54px; border-radius: 8px; background: var(--bg4); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ─── PIX PAYMENT ───────────────────────────── */
.pix-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; text-align: center; max-width: 380px; margin: 0 auto;
}
.qr-container { background: #fff; border-radius: 12px; padding: 14px; display: inline-block; margin: 16px 0; }
.qr-container img { display: block; width: 180px; height: 180px; }
.pix-code-box {
  background: var(--bg2); border: 1px solid rgba(255,107,0,0.2);
  border-radius: 10px; padding: 12px; margin: 12px 0;
  display: flex; align-items: center; gap: 10px;
}
.pix-code-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #4ade80; word-break: break-all; flex: 1; text-align: left; }
.copy-btn { flex-shrink: 0; background: rgba(255,107,0,0.2); border: none; border-radius: 7px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--orange); transition: all 0.2s; font-size: 15px; }
.copy-btn:hover { background: var(--orange); color: #fff; }
.pix-waiting { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); }
.pix-waiting-text { font-size: 13px; color: #60a5fa; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(96,165,250,0.3); border-top-color: #60a5fa; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── DELIVERY BOX ──────────────────────────── */
.delivery-box {
  background: linear-gradient(135deg, rgba(255,107,0,0.04), var(--bg));
  border: 1px solid rgba(255,107,0,0.28); border-radius: 12px;
  padding: 16px; position: relative; overflow: hidden;
}
.delivery-box::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--orange),transparent); }
.delivery-label { font-family: 'Orbitron', sans-serif; font-size: 11px; color: var(--orange); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.delivery-line { background: var(--bg3); border-radius: 8px; padding: 8px 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #4ade80; display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.delivery-copy { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 15px; padding: 2px; transition: color 0.2s; }
.delivery-copy:hover { color: var(--orange); }

/* ─── ADMIN ─────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; flex-shrink: 0; background: rgba(5,5,8,0.95); border-right: 1px solid rgba(255,107,0,0.08); padding: 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.admin-sidebar-logo { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; color: var(--orange); padding: 4px 12px 14px; letter-spacing: 0.06em; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; font-size: 13px; color: var(--text3); cursor: pointer; transition: all 0.2s; font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; border: none; background: none; width: 100%; text-align: left; }
.admin-nav-item:hover { background: rgba(255,107,0,0.08); color: var(--text2); }
.admin-nav-item.active { background: rgba(255,107,0,0.15); color: var(--orange); border: 1px solid rgba(255,107,0,0.2); }
.admin-nav-item.danger { color: var(--red); }
.admin-nav-item.danger:hover { background: rgba(239,68,68,0.08); }
.admin-main { flex: 1; padding: 20px; overflow: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.stat-value { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 8px 12px; font-size: 10px; font-family: 'Orbitron', sans-serif; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; font-size: 13px; color: var(--text2); border-bottom: 1px solid rgba(255,107,0,0.05); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,107,0,0.03); }
.icon-btn { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.icon-btn:hover { background: rgba(255,107,0,0.15); border-color: var(--orange); }

/* ─── MODAL ─────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h2 { font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 16px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text3); cursor: pointer; font-size: 20px; }

/* ─── BADGES ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-orange { background: rgba(255,107,0,0.15); color: var(--orange); border: 1px solid rgba(255,107,0,0.25); }
.badge-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-red { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-blue { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }

/* ─── ALERTS ─────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.alert-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }

/* ─── TOAST ──────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg3); border: 1px solid rgba(255,107,0,0.3);
  border-radius: 10px; padding: 12px 18px;
  font-size: 14px; color: #fff;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: slide-in 0.3s ease;
  min-width: 240px; max-width: 340px;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── PAGE HEADER ────────────────────────────── */
.page-header { padding: 90px 0 30px; }
.page-title { font-family: 'Orbitron', sans-serif; font-size: clamp(20px,3vw,28px); font-weight: 900; color: #fff; margin-bottom: 4px; }
.page-title span { color: var(--orange); }

/* ─── MISC ───────────────────────────────────── */
.text-neon { color: var(--orange); text-shadow: 0 0 10px rgba(255,107,0,0.6); }
.text-muted { color: var(--text3); }
.text-sm { font-size: 13px; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ─── ATTENTION MODAL ─────────────────────────── */
.attention-modal { background: #fff; border-radius: 16px; max-width: 400px; width: 100%; overflow: hidden; }
.attention-header { background: linear-gradient(135deg, #3b82f6, #1d4ed8); padding: 24px; text-align: center; }
.attention-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 28px; }
.attention-title { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900; color: #fff; }
.attention-subtitle { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 4px; }
.attention-body { padding: 20px; }
.attention-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #eff6ff; border-radius: 10px; margin-bottom: 8px; }
.attention-item span { font-size: 14px; color: #374151; }

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 26px; }
  .hero-ctas .btn { padding: 10px 16px; font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .nav-search { max-width: 160px; }
}

/* ─── EXTRA STYLES ─────────────────────── */
.nav-icon-btn{background:rgba(255,255,255,0.05);border:1px solid rgba(255,107,0,0.15);border-radius:8px;width:36px;height:36px;cursor:pointer;color:#aaa;font-size:16px;display:flex;align-items:center;justify-content:center;transition:all 0.2s;}
.nav-icon-btn:hover{border-color:rgba(255,107,0,0.35);color:#fff;}
.dropdown-menu{position:absolute;top:calc(100%+8px);background:#0f0f17;border:1px solid rgba(255,107,0,0.15);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,0.6);z-index:200;}
.footer-link{color:#555;font-size:13px;text-decoration:none;transition:color 0.2s;}
.footer-link:hover{color:#FF6B00;}
.back-link{display:inline-flex;align-items:center;gap:6px;color:#555;text-decoration:none;font-size:14px;margin-bottom:20px;transition:color 0.2s;}
.back-link:hover{color:#FF6B00;}
.nav-avatar-emoji{font-size:18px;line-height:1;}

/* ─── VERIFIED BADGE ─── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #FF6B00;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  margin-left: 5px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(255,107,0,0.7), 0 0 20px rgba(255,107,0,0.3);
  flex-shrink: 0;
  line-height: 1;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.hidden-mobile { display: inline; }
@media (max-width: 480px) { .hidden-mobile { display: none; } }

/* ═══════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — Player Store
   ═══════════════════════════════════════════════ */

/* ─── MOBILE NAV ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile drawer overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 800;
  backdrop-filter: blur(4px);
}
.mobile-drawer-overlay.open { display: block; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 270px;
  height: 100vh;
  background: #0a0a0f;
  border-right: 1px solid rgba(255,107,0,0.15);
  z-index: 900;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { left: 0; }

.mobile-drawer-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,107,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.mobile-drawer-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.mobile-drawer-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,107,0,0.06);
}
.mobile-drawer-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #FF6B00;
  letter-spacing: 0.12em;
  padding: 0 18px 8px;
  text-transform: uppercase;
}
.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mobile-drawer-item:hover, .mobile-drawer-item:active {
  background: rgba(255,107,0,0.06);
  color: #fff;
}
.mobile-drawer-item span { font-size: 18px; flex-shrink: 0; }
.mobile-drawer-item .item-badge {
  margin-left: auto;
  background: rgba(255,107,0,0.15);
  color: #FF6B00;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
}

.mobile-drawer-wa-btn {
  margin: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.mobile-drawer-balance {
  margin: 0 16px 8px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav items */
  .nav-hamburger { display: flex !important; }
  .nav-search { display: none !important; }
  .nav-actions { display: none !important; }
  .nav-inner { padding: 0 14px !important; }
  
  /* Hero */
  .hero { padding: 80px 16px 40px !important; min-height: auto !important; }
  .hero-title { font-size: clamp(26px, 7vw, 48px) !important; }
  .hero-sub { font-size: 14px !important; }
  .hero-ctas { flex-direction: column !important; gap: 10px !important; }
  .hero-ctas .btn { width: 100% !important; justify-content: center !important; }
  .hero-stats { grid-template-columns: repeat(3,1fr) !important; gap: 8px !important; }
  .hero-stat-val { font-size: 20px !important; }
  
  /* Products grid */
  .product-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
  
  /* Cart */
  .cart-layout { grid-template-columns: 1fr !important; }
  
  /* Admin layout */
  .admin-layout { grid-template-columns: 1fr !important; }
  .admin-sidebar { display: none; }
  
  /* Modals */
  .modal { margin: 10px !important; max-width: calc(100vw - 20px) !important; }
  
  /* Delivery box */
  .delivery-line { flex-direction: column !important; gap: 6px !important; }
  .delivery-line code { font-size: 10px !important; }
  
  /* Containers */
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  
  /* Product page */
  .product-page-grid { grid-template-columns: 1fr !important; }
  
  /* PIX box */
  .pix-box { padding: 20px 16px !important; }
  .pix-box > div:first-child + div { font-size: 32px !important; }
  
  /* Page titles */
  .page-title { font-size: clamp(20px,5vw,32px) !important; }
  
  /* Footer */
  footer .container > div:first-child { grid-template-columns: 1fr 1fr !important; }
  
  /* Cat pills scroll */
  .cat-pills { overflow-x: auto !important; flex-wrap: nowrap !important; padding-bottom: 6px !important; -webkit-overflow-scrolling: touch; }
  .cat-pill { white-space: nowrap !important; flex-shrink: 0 !important; }

  /* Float WhatsApp button position */
  #float-whatsapp { bottom: 16px !important; right: 16px !important; width: 50px !important; height: 50px !important; }
  #float-whatsapp svg { width: 24px !important; height: 24px !important; }

  /* Saldo modal */
  #modal-saldo .modal { padding: 18px !important; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
  .product-card .card { border-radius: 10px !important; }
  .product-img { height: 100px !important; }
  .product-name { font-size: 12px !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .product-price { font-size: 14px !important; }
  .hero-stats { gap: 6px !important; }
  .hero-stat { padding: 8px 6px !important; }

  /* Cart items on mobile */
  .cart-item { gap: 8px !important; }
  .cart-item-img { width: 40px !important; height: 40px !important; }

  /* Quick saldo grid */
  .mqb { font-size: 9px !important; padding: 8px 2px !important; }
}

/* ─── MOBILE ICON FIXES ─── */
.mob-nav-right-icons { display: none; }
.mob-nav-right-icons a,
.mob-nav-right-icons div,
.mob-nav-right-icons button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-nav-right-icons span[style*="font-size:20px"] { font-size: 22px; }

/* Cart badge on mobile nav */
.mob-cart-badge {
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FF6B00;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Perfil tabs scrollbar hide */
#perfil-tabs::-webkit-scrollbar { display: none; }
#perfil-tabs { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 768px) {
  .mob-nav-right-icons { display: flex !important; align-items: center; gap: 8px; margin-left: auto; }

  /* Profile grid: single column */
  .profile-grid { grid-template-columns: 1fr !important; }

  /* Avatar grid: 4 columns on mobile */
  .avatar-grid { grid-template-columns: repeat(4,1fr) !important; gap: 8px !important; }

  /* Fix content bleeding off screen */
  body { overflow-x: hidden; }
  .card { max-width: 100%; box-sizing: border-box; }
}

/* ═══════════════════════════════════════════════
   TABLET FIXES (768px - 1024px)
   ═══════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Navbar */
  .nav-inner { padding: 0 20px !important; gap: 12px; }
  .nav-search { max-width: 220px !important; }

  /* Products: 3 columns on tablet */
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }

  /* Cart layout: side by side */
  .cart-layout { grid-template-columns: 1fr 320px !important; }

  /* Admin: show sidebar */
  .admin-layout { grid-template-columns: 200px 1fr !important; }
  .admin-sidebar { display: flex !important; }

  /* Hero */
  .hero-title { font-size: clamp(28px, 5vw, 52px) !important; }

  /* Category pills */
  .cat-pills { flex-wrap: wrap !important; }
}

/* ─── ALL DEVICE SAFE ZONE ─── */
@media (max-width: 1024px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { box-sizing: border-box; }

  /* Fix delivery box overflow */
  .delivery-box { overflow-x: auto; }
  .delivery-line code { word-break: break-all; white-space: normal; }

  /* Fix product card title overflow */
  .product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Fix admin table horizontal scroll */
  .admin-table { min-width: 600px; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modal safe */
  .modal-overlay { padding: 16px; align-items: flex-start; padding-top: 60px; }
  .modal { max-height: 85vh; overflow-y: auto; }

  /* PIX box width */
  .pix-box { max-width: 100% !important; }

  /* Page title responsive */
  .page-title { font-size: clamp(18px, 5vw, 32px) !important; }
}

/* ─── TABLET PORTRAIT ─── */
@media (min-width: 600px) and (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .hero-ctas { flex-direction: row !important; }
  .hero-ctas .btn { width: auto !important; }
}

/* ═══════════════════════════════════════════════
   FINAL OVERRIDE - MOBILE DRAWER DESKTOP FIX
   ═══════════════════════════════════════════════ */
.mobile-drawer,
.mobile-drawer-overlay {
  display: block !important; /* Allow JS to control, but position off-screen */
}
.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  left: -320px !important;
  width: 270px !important;
  height: 100vh !important;
  z-index: 900 !important;
  transition: left 0.28s cubic-bezier(0.4,0,0.2,1) !important;
  overflow-y: auto !important;
}
.mobile-drawer.open {
  left: 0 !important;
}
.mobile-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 800 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s !important;
}
.mobile-drawer-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Products spinner - add a timeout so it doesn't loop forever */
#catalog .spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,107,0,0.2);
  border-top-color: #FF6B00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════
   MOBILE LAYOUT STABILITY FIXES v33
   ═══════════════════════════════════════════════ */

/* Prevent layout shift when navigating back on mobile */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Navbar always fixed and full width on mobile */
@media (max-width: 768px) {
  .navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100% !important;
    z-index: 999 !important;
    box-sizing: border-box !important;
  }

  /* Product page on mobile - single column, no overflow */
  .product-page-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .product-main-img {
    width: 100% !important;
    max-height: 220px !important;
    aspect-ratio: 16/9 !important;
  }

  .product-buy-box {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Product cards - stable grid that doesn't jump */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .product-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .product-img {
    aspect-ratio: 16/10 !important;
    width: 100% !important;
  }

  /* Benefits cards on product page */
  .benefit-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 10px 12px !important;
  }

  /* Container never overflows */
  .container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Cards stretch properly */
  .card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cart on mobile */
  .cart-layout {
    grid-template-columns: 1fr !important;
  }

  /* Fix body scroll lock when drawer closes */
  body.drawer-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .product-main-img {
    max-height: 200px !important;
  }

  .product-buy-box {
    padding: 16px !important;
  }

  .product-main-name {
    font-size: 18px !important;
  }

  .product-main-price {
    font-size: 28px !important;
  }
}

/* ─── MOBILE CART ITEMS FIX ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  #cart-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .cart-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cart-item-img {
    width: 50px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }
  .cart-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  #cart-content .cart-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  #cart-content .cart-layout > div:first-child {
    order: 1;
  }
  #cart-content .cart-layout > div:last-child {
    order: 2;
    position: static !important;
  }
}.footer-link { display:inline-flex;align-items:center;gap:6px;color:#4a4a5a;text-decoration:none;font-size:13px;transition:color 0.2s;line-height:1.5; }/* static/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --orange: #FF6B00;
  --orange-dark: #cc5500;
  --orange-glow: rgba(255,107,0,0.4);
  --bg: #050508;
  --bg2: #0a0a0f;
  --bg3: #0f0f17;
  --bg4: #141420;
  --card: #0f0f17;
  --border: rgba(255,107,0,0.15);
  --text: #ffffff;
  --text2: #a0a0b8;
  --text3: #555570;
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }
::selection { background: rgba(255,107,0,0.3); color: #fff; }

/* ─── CANVAS PARTICLE ───────────────────────── */
#particle-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ─── GRID OVERLAY ──────────────────────────── */
.grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none; z-index: 0;
}

/* ─── LAYOUT ────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.relative { position: relative; z-index: 1; }

/* ─── NAVBAR ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,5,8,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(5,5,8,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 20px;
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 900;
  color: #fff; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--orange); text-shadow: 0 0 10px var(--orange-glow); }

.nav-search {
  flex: 1; max-width: 400px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 8px; padding: 8px 16px;
  color: #fff; font-family: 'Rajdhani', sans-serif;
  font-size: 14px; outline: none; transition: all 0.3s;
}
.nav-search:focus { border-color: rgba(255,107,0,0.5); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.nav-search::placeholder { color: rgba(255,255,255,0.3); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.15);
  cursor: pointer; position: relative;
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #cc5500);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
}
.nav-username { font-size: 13px; color: #ccc; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--orange); border-radius: 8px;
  padding: 8px 14px; border: none; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700;
  color: #fff; transition: all 0.3s; position: relative;
  text-decoration: none;
}
.nav-cart:hover { background: var(--orange-dark); box-shadow: 0 0 15px var(--orange-glow); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: #fff; color: var(--orange);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* user dropdown */
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; min-width: 220px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  display: none; z-index: 200;
}
.user-dropdown.open { display: block; }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dropdown-email { font-size: 12px; color: var(--text3); margin-top: 2px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; color: var(--text2);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.dropdown-item:hover { background: rgba(255,107,0,0.08); color: #fff; }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.08); }

/* ─── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px; border: none;
  font-family: 'Orbitron', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.3s; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn:hover::after { left: 100%; }

.btn-primary { background: linear-gradient(135deg, var(--orange), #cc4400); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 20px var(--orange-glow); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--orange); border: 1px solid var(--orange); }
.btn-outline:hover { background: rgba(255,107,0,0.1); box-shadow: 0 0 15px rgba(255,107,0,0.2); }

.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text2); border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

.btn-green { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.35); }
.btn-green:hover { background: rgba(34,197,94,0.25); }

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 32px; font-size: 12px; }
.btn-sm { padding: 6px 14px; font-size: 10px; }

/* ─── CARDS ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(255,107,0,0.35);
  box-shadow: 0 8px 30px rgba(255,107,0,0.1), 0 4px 16px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}

/* ─── INPUTS ────────────────────────────────── */
.input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 8px; padding: 12px 16px;
  color: #fff; font-family: 'Rajdhani', sans-serif;
  font-size: 15px; outline: none; transition: all 0.3s;
}
.input:focus { border-color: rgba(255,107,0,0.5); box-shadow: 0 0 0 3px rgba(255,107,0,0.1); }
.input::placeholder { color: rgba(255,255,255,0.3); }

select.input { cursor: pointer; }
select.input option { background: var(--bg2); }

textarea.input { resize: vertical; min-height: 100px; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 80px 16px 40px; position: relative;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.25);
  color: var(--orange); border-radius: 999px;
  padding: 5px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 900; color: #fff; line-height: 1.15;
  margin-bottom: 16px;
}
.hero-title .neon {
  color: var(--orange);
  text-shadow: 0 0 15px rgba(255,107,0,0.6), 0 0 30px rgba(255,107,0,0.2);
}
.hero-sub {
  color: var(--text2); font-size: 18px;
  max-width: 500px; margin: 0 auto 32px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 40px;
}
.hero-stats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,107,0,0.12);
  border-radius: 10px; padding: 12px 20px; text-align: center;
  min-width: 100px;
}
.hero-stat-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px; font-weight: 900; color: var(--orange);
}
.hero-stat-label { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ─── CATEGORY PILLS ────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  color: var(--orange); border-radius: 999px;
  padding: 6px 16px; font-size: 12px; font-weight: 600;
  font-family: 'Orbitron', sans-serif; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--orange); color: #fff;
  box-shadow: 0 0 12px rgba(255,107,0,0.3);
}

/* ─── SECTION HEADER ────────────────────────── */
.section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid rgba(255,107,0,0.2);
  border-radius: 999px; padding: 7px 18px; flex-shrink: 0;
}
.section-pill span {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.06em;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,107,0,0.2), transparent); }
.see-all { font-size: 13px; color: var(--orange); font-weight: 600; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.see-all:hover { color: #fff; }

/* ─── PRODUCT GRID ──────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.product-card { cursor: pointer; text-decoration: none; display: block; }
.product-card .card { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.product-img {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--bg4); position: relative;
  border-radius: 8px 8px 0 0;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
  display: block;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.product-discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; font-family: 'Orbitron', sans-serif;
}
.product-no-stock {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
}
.product-no-stock span {
  font-size: 11px; color: #888; font-family: 'Orbitron', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.product-info { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 10px; color: var(--orange); font-weight: 600; margin-bottom: 3px; }
.product-name { font-size: 13px; color: #fff; font-weight: 600; line-height: 1.3; margin-bottom: auto; padding-bottom: 8px; }
.product-orig-price { font-size: 11px; color: var(--text3); text-decoration: line-through; }
.product-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px; font-weight: 900; color: var(--orange);
  text-shadow: 0 0 8px rgba(255,107,0,0.4);
}
.product-pix { font-size: 10px; color: var(--text3); margin-top: 1px; margin-bottom: 8px; }
.product-buy-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px; border-radius: 7px; border: none; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700;
  background: rgba(255,107,0,0.15); color: var(--orange);
  border: 1px solid rgba(255,107,0,0.25); transition: all 0.2s;
}
.product-buy-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ─── PRODUCT PAGE ──────────────────────────── */
.product-page-grid {
  display: grid;
  grid-template-columns: 320px 1fr 200px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .product-page-grid { grid-template-columns: 1fr; }
}
.product-main-img {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg3);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.product-buy-box { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.stock-indicator { display: flex; align-items: center; gap: 8px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: blink 2s infinite; }
.stock-count { font-size: 13px; font-weight: 600; color: var(--green); }
.stock-empty { font-size: 13px; font-weight: 600; color: var(--red); }

.product-main-name { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900; color: #fff; line-height: 1.2; }
.product-main-price { font-family: 'Orbitron', sans-serif; font-size: 36px; font-weight: 900; color: var(--orange); text-shadow: 0 0 15px rgba(255,107,0,0.4); }
.product-installment { font-size: 12px; color: var(--text3); margin-top: 4px; }

.benefit-card { padding: 12px 14px; display: flex; align-items: flex-start; gap: 12px; }
.benefit-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,107,0,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.benefit-title { font-size: 13px; font-weight: 600; color: #fff; }
.benefit-desc { font-size: 11px; color: var(--text3); margin-top: 2px; line-height: 1.4; }

.description-card { padding: 20px; }
.description-title { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.description-body { font-size: 14px; color: var(--text2); line-height: 1.9; white-space: pre-line; }

/* ─── CART ───────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: flex; gap: 14px; padding: 14px; align-items: center; }
.cart-item-img { width: 70px; height: 54px; border-radius: 8px; background: var(--bg4); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ─── PIX PAYMENT ───────────────────────────── */
.pix-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; text-align: center; max-width: 380px; margin: 0 auto;
}
.qr-container { background: #fff; border-radius: 12px; padding: 14px; display: inline-block; margin: 16px 0; }
.qr-container img { display: block; width: 180px; height: 180px; }
.pix-code-box {
  background: var(--bg2); border: 1px solid rgba(255,107,0,0.2);
  border-radius: 10px; padding: 12px; margin: 12px 0;
  display: flex; align-items: center; gap: 10px;
}
.pix-code-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #4ade80; word-break: break-all; flex: 1; text-align: left; }
.copy-btn { flex-shrink: 0; background: rgba(255,107,0,0.2); border: none; border-radius: 7px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--orange); transition: all 0.2s; font-size: 15px; }
.copy-btn:hover { background: var(--orange); color: #fff; }
.pix-waiting { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); }
.pix-waiting-text { font-size: 13px; color: #60a5fa; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(96,165,250,0.3); border-top-color: #60a5fa; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── DELIVERY BOX ──────────────────────────── */
.delivery-box {
  background: linear-gradient(135deg, rgba(255,107,0,0.04), var(--bg));
  border: 1px solid rgba(255,107,0,0.28); border-radius: 12px;
  padding: 16px; position: relative; overflow: hidden;
}
.delivery-box::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg,var(--orange),transparent); }
.delivery-label { font-family: 'Orbitron', sans-serif; font-size: 11px; color: var(--orange); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.delivery-line { background: var(--bg3); border-radius: 8px; padding: 8px 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #4ade80; display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.delivery-copy { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 15px; padding: 2px; transition: color 0.2s; }
.delivery-copy:hover { color: var(--orange); }

/* ─── ADMIN ─────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; flex-shrink: 0; background: rgba(5,5,8,0.95); border-right: 1px solid rgba(255,107,0,0.08); padding: 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.admin-sidebar-logo { font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; color: var(--orange); padding: 4px 12px 14px; letter-spacing: 0.06em; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; font-size: 13px; color: var(--text3); cursor: pointer; transition: all 0.2s; font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; border: none; background: none; width: 100%; text-align: left; }
.admin-nav-item:hover { background: rgba(255,107,0,0.08); color: var(--text2); }
.admin-nav-item.active { background: rgba(255,107,0,0.15); color: var(--orange); border: 1px solid rgba(255,107,0,0.2); }
.admin-nav-item.danger { color: var(--red); }
.admin-nav-item.danger:hover { background: rgba(239,68,68,0.08); }
.admin-main { flex: 1; padding: 20px; overflow: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.stat-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.stat-value { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 900; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 8px 12px; font-size: 10px; font-family: 'Orbitron', sans-serif; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; font-size: 13px; color: var(--text2); border-bottom: 1px solid rgba(255,107,0,0.05); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,107,0,0.03); }
.icon-btn { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.icon-btn:hover { background: rgba(255,107,0,0.15); border-color: var(--orange); }

/* ─── MODAL ─────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h2 { font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 900; color: #fff; margin-bottom: 16px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text3); cursor: pointer; font-size: 20px; }

/* ─── BADGES ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-orange { background: rgba(255,107,0,0.15); color: var(--orange); border: 1px solid rgba(255,107,0,0.25); }
.badge-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.badge-red { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.badge-blue { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }

/* ─── ALERTS ─────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #f87171; }
.alert-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }

/* ─── TOAST ──────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg3); border: 1px solid rgba(255,107,0,0.3);
  border-radius: 10px; padding: 12px 18px;
  font-size: 14px; color: #fff;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: slide-in 0.3s ease;
  min-width: 240px; max-width: 340px;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── PAGE HEADER ────────────────────────────── */
.page-header { padding: 90px 0 30px; }
.page-title { font-family: 'Orbitron', sans-serif; font-size: clamp(20px,3vw,28px); font-weight: 900; color: #fff; margin-bottom: 4px; }
.page-title span { color: var(--orange); }

/* ─── MISC ───────────────────────────────────── */
.text-neon { color: var(--orange); text-shadow: 0 0 10px rgba(255,107,0,0.6); }
.text-muted { color: var(--text3); }
.text-sm { font-size: 13px; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ─── ATTENTION MODAL ─────────────────────────── */
.attention-modal { background: #fff; border-radius: 16px; max-width: 400px; width: 100%; overflow: hidden; }
.attention-header { background: linear-gradient(135deg, #3b82f6, #1d4ed8); padding: 24px; text-align: center; }
.attention-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 28px; }
.attention-title { font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900; color: #fff; }
.attention-subtitle { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 4px; }
.attention-body { padding: 20px; }
.attention-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #eff6ff; border-radius: 10px; margin-bottom: 8px; }
.attention-item span { font-size: 14px; color: #374151; }

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { font-size: 26px; }
  .hero-ctas .btn { padding: 10px 16px; font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .nav-search { max-width: 160px; }
}

/* ─── EXTRA STYLES ─────────────────────── */
.nav-icon-btn{background:rgba(255,255,255,0.05);border:1px solid rgba(255,107,0,0.15);border-radius:8px;width:36px;height:36px;cursor:pointer;color:#aaa;font-size:16px;display:flex;align-items:center;justify-content:center;transition:all 0.2s;}
.nav-icon-btn:hover{border-color:rgba(255,107,0,0.35);color:#fff;}
.dropdown-menu{position:absolute;top:calc(100%+8px);background:#0f0f17;border:1px solid rgba(255,107,0,0.15);border-radius:12px;overflow:hidden;box-shadow:0 8px 30px rgba(0,0,0,0.6);z-index:200;}
.footer-link{color:#555;font-size:13px;text-decoration:none;transition:color 0.2s;}
.footer-link:hover{color:#FF6B00;}
.back-link{display:inline-flex;align-items:center;gap:6px;color:#555;text-decoration:none;font-size:14px;margin-bottom:20px;transition:color 0.2s;}
.back-link:hover{color:#FF6B00;}
.nav-avatar-emoji{font-size:18px;line-height:1;}

/* ─── VERIFIED BADGE ─── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #FF6B00;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  margin-left: 5px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(255,107,0,0.7), 0 0 20px rgba(255,107,0,0.3);
  flex-shrink: 0;
  line-height: 1;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.hidden-mobile { display: inline; }
@media (max-width: 480px) { .hidden-mobile { display: none; } }

/* ═══════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE — Player Store
   ═══════════════════════════════════════════════ */

/* ─── MOBILE NAV ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile drawer overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 800;
  backdrop-filter: blur(4px);
}
.mobile-drawer-overlay.open { display: block; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 270px;
  height: 100vh;
  background: #0a0a0f;
  border-right: 1px solid rgba(255,107,0,0.15);
  z-index: 900;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open { left: 0; }

.mobile-drawer-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,107,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.mobile-drawer-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.mobile-drawer-section {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,107,0,0.06);
}
.mobile-drawer-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #FF6B00;
  letter-spacing: 0.12em;
  padding: 0 18px 8px;
  text-transform: uppercase;
}
.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mobile-drawer-item:hover, .mobile-drawer-item:active {
  background: rgba(255,107,0,0.06);
  color: #fff;
}
.mobile-drawer-item span { font-size: 18px; flex-shrink: 0; }
.mobile-drawer-item .item-badge {
  margin-left: auto;
  background: rgba(255,107,0,0.15);
  color: #FF6B00;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Orbitron', sans-serif;
}

.mobile-drawer-wa-btn {
  margin: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  background: #25D366;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.mobile-drawer-balance {
  margin: 0 16px 8px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav items */
  .nav-hamburger { display: flex !important; }
  .nav-search { display: none !important; }
  .nav-actions { display: none !important; }
  .nav-inner { padding: 0 14px !important; }
  
  /* Hero */
  .hero { padding: 80px 16px 40px !important; min-height: auto !important; }
  .hero-title { font-size: clamp(26px, 7vw, 48px) !important; }
  .hero-sub { font-size: 14px !important; }
  .hero-ctas { flex-direction: column !important; gap: 10px !important; }
  .hero-ctas .btn { width: 100% !important; justify-content: center !important; }
  .hero-stats { grid-template-columns: repeat(3,1fr) !important; gap: 8px !important; }
  .hero-stat-val { font-size: 20px !important; }
  
  /* Products grid */
  .product-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
  
  /* Cart */
  .cart-layout { grid-template-columns: 1fr !important; }
  
  /* Admin layout */
  .admin-layout { grid-template-columns: 1fr !important; }
  .admin-sidebar { display: none; }
  
  /* Modals */
  .modal { margin: 10px !important; max-width: calc(100vw - 20px) !important; }
  
  /* Delivery box */
  .delivery-line { flex-direction: column !important; gap: 6px !important; }
  .delivery-line code { font-size: 10px !important; }
  
  /* Containers */
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  
  /* Product page */
  .product-page-grid { grid-template-columns: 1fr !important; }
  
  /* PIX box */
  .pix-box { padding: 20px 16px !important; }
  .pix-box > div:first-child + div { font-size: 32px !important; }
  
  /* Page titles */
  .page-title { font-size: clamp(20px,5vw,32px) !important; }
  
  /* Footer */
  footer .container > div:first-child { grid-template-columns: 1fr 1fr !important; }
  
  /* Cat pills scroll */
  .cat-pills { overflow-x: auto !important; flex-wrap: nowrap !important; padding-bottom: 6px !important; -webkit-overflow-scrolling: touch; }
  .cat-pill { white-space: nowrap !important; flex-shrink: 0 !important; }

  /* Float WhatsApp button position */
  #float-whatsapp { bottom: 16px !important; right: 16px !important; width: 50px !important; height: 50px !important; }
  #float-whatsapp svg { width: 24px !important; height: 24px !important; }

  /* Saldo modal */
  #modal-saldo .modal { padding: 18px !important; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2,1fr) !important; gap: 8px !important; }
  .product-card .card { border-radius: 10px !important; }
  .product-img { height: 100px !important; }
  .product-name { font-size: 12px !important; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .product-price { font-size: 14px !important; }
  .hero-stats { gap: 6px !important; }
  .hero-stat { padding: 8px 6px !important; }

  /* Cart items on mobile */
  .cart-item { gap: 8px !important; }
  .cart-item-img { width: 40px !important; height: 40px !important; }

  /* Quick saldo grid */
  .mqb { font-size: 9px !important; padding: 8px 2px !important; }
}

/* ─── MOBILE ICON FIXES ─── */
.mob-nav-right-icons { display: none; }
.mob-nav-right-icons a,
.mob-nav-right-icons div,
.mob-nav-right-icons button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-nav-right-icons span[style*="font-size:20px"] { font-size: 22px; }

/* Cart badge on mobile nav */
.mob-cart-badge {
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FF6B00;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Perfil tabs scrollbar hide */
#perfil-tabs::-webkit-scrollbar { display: none; }
#perfil-tabs { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 768px) {
  .mob-nav-right-icons { display: flex !important; align-items: center; gap: 8px; margin-left: auto; }

  /* Profile grid: single column */
  .profile-grid { grid-template-columns: 1fr !important; }

  /* Avatar grid: 4 columns on mobile */
  .avatar-grid { grid-template-columns: repeat(4,1fr) !important; gap: 8px !important; }

  /* Fix content bleeding off screen */
  body { overflow-x: hidden; }
  .card { max-width: 100%; box-sizing: border-box; }
}

/* ═══════════════════════════════════════════════
   TABLET FIXES (768px - 1024px)
   ═══════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Navbar */
  .nav-inner { padding: 0 20px !important; gap: 12px; }
  .nav-search { max-width: 220px !important; }

  /* Products: 3 columns on tablet */
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; }

  /* Cart layout: side by side */
  .cart-layout { grid-template-columns: 1fr 320px !important; }

  /* Admin: show sidebar */
  .admin-layout { grid-template-columns: 200px 1fr !important; }
  .admin-sidebar { display: flex !important; }

  /* Hero */
  .hero-title { font-size: clamp(28px, 5vw, 52px) !important; }

  /* Category pills */
  .cat-pills { flex-wrap: wrap !important; }
}

/* ─── ALL DEVICE SAFE ZONE ─── */
@media (max-width: 1024px) {
  /* Prevent horizontal overflow */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { box-sizing: border-box; }

  /* Fix delivery box overflow */
  .delivery-box { overflow-x: auto; }
  .delivery-line code { word-break: break-all; white-space: normal; }

  /* Fix product card title overflow */
  .product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Fix admin table horizontal scroll */
  .admin-table { min-width: 600px; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modal safe */
  .modal-overlay { padding: 16px; align-items: flex-start; padding-top: 60px; }
  .modal { max-height: 85vh; overflow-y: auto; }

  /* PIX box width */
  .pix-box { max-width: 100% !important; }

  /* Page title responsive */
  .page-title { font-size: clamp(18px, 5vw, 32px) !important; }
}

/* ─── TABLET PORTRAIT ─── */
@media (min-width: 600px) and (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .hero-ctas { flex-direction: row !important; }
  .hero-ctas .btn { width: auto !important; }
}

/* ═══════════════════════════════════════════════
   FINAL OVERRIDE - MOBILE DRAWER DESKTOP FIX
   ═══════════════════════════════════════════════ */
.mobile-drawer,
.mobile-drawer-overlay {
  display: block !important; /* Allow JS to control, but position off-screen */
}
.mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  left: -320px !important;
  width: 270px !important;
  height: 100vh !important;
  z-index: 900 !important;
  transition: left 0.28s cubic-bezier(0.4,0,0.2,1) !important;
  overflow-y: auto !important;
}
.mobile-drawer.open {
  left: 0 !important;
}
.mobile-drawer-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 800 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s !important;
}
.mobile-drawer-overlay.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Products spinner - add a timeout so it doesn't loop forever */
#catalog .spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,107,0,0.2);
  border-top-color: #FF6B00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════
   MOBILE LAYOUT STABILITY FIXES v33
   ═══════════════════════════════════════════════ */

/* Prevent layout shift when navigating back on mobile */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Navbar always fixed and full width on mobile */
@media (max-width: 768px) {
  .navbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100% !important;
    z-index: 999 !important;
    box-sizing: border-box !important;
  }

  /* Product page on mobile - single column, no overflow */
  .product-page-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .product-main-img {
    width: 100% !important;
    max-height: 220px !important;
    aspect-ratio: 16/9 !important;
  }

  .product-buy-box {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Product cards - stable grid that doesn't jump */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .product-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .product-img {
    aspect-ratio: 16/10 !important;
    width: 100% !important;
  }

  /* Benefits cards on product page */
  .benefit-card {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 10px 12px !important;
  }

  /* Container never overflows */
  .container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Cards stretch properly */
  .card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cart on mobile */
  .cart-layout {
    grid-template-columns: 1fr !important;
  }

  /* Fix body scroll lock when drawer closes */
  body.drawer-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .product-main-img {
    max-height: 200px !important;
  }

  .product-buy-box {
    padding: 16px !important;
  }

  .product-main-name {
    font-size: 18px !important;
  }

  .product-main-price {
    font-size: 28px !important;
  }
}

/* ─── MOBILE CART ITEMS FIX ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  #cart-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .cart-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cart-item-img {
    width: 50px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }
  .cart-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  #cart-content .cart-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  #cart-content .cart-layout > div:first-child {
    order: 1;
  }
  #cart-content .cart-layout > div:last-child {
    order: 2;
    position: static !important;
  }
}

/* Footer improvements */
footer .footer-link { color: #6b7280 !important; }
footer .footer-link:hover { color: #FF6B00 !important; }
footer .footer-section-title { color: #9ca3af !important; letter-spacing: 0.1em; }
footer p { color: #6b7280; }
footer strong { color: #9ca3af; }
footer .footer-bottom p { color: #4b5563; }
