:root {
  --bg: #0a0a14;
  --bg-2: #11121f;
  --panel: #181a2e;
  --panel-2: #1f2240;
  --border: #2a2d52;
  --text: #e6e7ff;
  --muted: #8a8db8;
  --accent: #00ffd1;
  --accent-2: #ff2bd6;
  --accent-3: #5e7bff;
  --danger: #ff3b6b;
  --warn: #ffb84d;
  --ok: #2effa3;
  --rarity-mythic: #ff2bd6;
  --rarity-legendary: #ffb84d;
  --rarity-epic: #c061ff;
  --rarity-rare: #5e7bff;
  --rarity-common: #8a8db8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94,123,255,.18), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(255,43,214,.15), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(0,255,209,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
  background: rgba(10,10,20,.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand span { color: var(--text); -webkit-text-fill-color: var(--text); }
.nav-links { display: flex; gap: 18px; flex: 1; }
.nav-links a {
  color: var(--text); font-weight: 500; padding: 8px 12px; border-radius: 8px;
  transition: all .15s;
}
.nav-links a:hover { background: var(--panel); color: var(--accent); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-weight: 600;
  cursor: pointer; font-size: 14px; transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #061018; border-color: transparent;
  box-shadow: 0 4px 20px rgba(0,255,209,.25);
}
.btn-primary:hover { color: #061018; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,255,209,.4); }
.btn-pink {
  background: linear-gradient(135deg, var(--accent-2), #ff6b9b);
  color: white; border-color: transparent;
  box-shadow: 0 4px 20px rgba(255,43,214,.25);
}
.btn-pink:hover { color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); color: white; border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.cart-pill {
  position: relative;
}
.cart-pill .count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent-2); color: white;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 24px 32px; }

/* Hero */
.hero {
  position: relative;
  padding: 80px 32px 60px;
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: 56px; line-height: 1.05; margin: 0 0 16px;
  font-weight: 800; letter-spacing: -1px;
}
.hero h1 .glow {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0,255,209,.4);
}
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; }

.badges-row {
  display: flex; justify-content: center; gap: 24px; margin-top: 48px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 14px;
}
.trust-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }

/* Section */
.section { padding: 60px 0; }
.section h2 { font-size: 32px; margin: 0 0 8px; font-weight: 800; }
.section .subtitle { color: var(--muted); margin: 0 0 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px;}

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Card */
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,255,209,.15);
}
.card .img-wrap {
  aspect-ratio: 1; background: var(--bg-2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; overflow: hidden; position: relative;
}
.card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card .img-wrap .placeholder {
  font-size: 64px; opacity: .25;
}
.card .name { font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.card .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.card .price {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

.tag {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; letter-spacing: .5px;
}
.tag.rarity-mythic { color: var(--rarity-mythic); border-color: var(--rarity-mythic); }
.tag.rarity-legendary { color: var(--rarity-legendary); border-color: var(--rarity-legendary); }
.tag.rarity-epic { color: var(--rarity-epic); border-color: var(--rarity-epic); }
.tag.rarity-rare { color: var(--rarity-rare); border-color: var(--rarity-rare); }
.tag.rarity-common { color: var(--rarity-common); }
.tag-stock { color: var(--muted); }
.tag-stock.low { color: var(--warn); }
.tag-stock.out { color: var(--danger); }

.badge-corner {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: white; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  z-index: 2;
}

/* Robux pack card */
.robux-card { text-align: center; }
.robux-card .robux-amt {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(90deg, var(--warn), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.robux-card .robux-amt::before { content: "R$ "; }
.robux-card .bonus { color: var(--ok); font-weight: 600; font-size: 13px; margin-bottom: 8px; }

/* Filters */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  background: var(--panel); padding: 14px; border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 24px;
}
.filter-bar select, .filter-bar input {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 14px;
}

/* Forms */
.form-card {
  max-width: 460px; margin: 60px auto; background: var(--panel);
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
}
.form-card h1 { margin: 0 0 8px; }
.form-card p.sub { color: var(--muted); margin: 0 0 24px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
}

/* Cart */
.cart-line {
  display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center;
  padding: 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 10px;
}
.cart-line img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.cart-line .robux-icon { width: 80px; height: 80px; border-radius: 8px; background: linear-gradient(135deg, var(--warn), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: white; }
.cart-line .qty-input { width: 60px; }

.summary {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; position: sticky; top: 100px;
}
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary .total { font-size: 24px; font-weight: 800; color: var(--accent); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* Flash */
.flash {
  position: fixed; top: 80px; right: 24px; z-index: 100;
  background: var(--panel); border: 1px solid var(--accent);
  padding: 12px 20px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,255,209,.2);
  animation: slideIn .3s ease, fadeOut .3s ease 3s forwards;
}
.flash.err { border-color: var(--danger); box-shadow: 0 8px 30px rgba(255,59,107,.2); }
@keyframes slideIn { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(120%); } }

.error { color: var(--danger); font-size: 13px; margin-bottom: 12px; }

/* Footer */
footer { padding: 40px 32px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); margin-top: 60px; }
footer .disclaimer { font-size: 12px; max-width: 760px; margin: 12px auto 0; opacity: .7; }

/* Item detail */
.item-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .item-detail { grid-template-columns: 1fr; } }
.item-detail .gallery { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 24px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.item-detail .gallery img { max-width: 100%; max-height: 100%; }
.item-detail h1 { margin: 0 0 8px; font-size: 36px; }
.item-detail .price-big { font-size: 48px; font-weight: 800; background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 16px 0; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.stat .value { font-size: 28px; font-weight: 800; color: var(--accent); margin-top: 4px; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 12px; overflow: hidden; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table th { background: var(--panel-2); color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.status-paid { color: var(--ok); font-weight: 600; }
.status-pending { color: var(--warn); font-weight: 600; }

.qty-form { display: inline-flex; gap: 4px; }
.qty-form input { width: 50px; text-align: center; }

.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty .icon { font-size: 64px; opacity: .3; }
