/* BeastCarts accounts - glass UI over the BeastCarts flame background */
:root {
  --bg: #06080f;
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --glass-strong: rgba(14, 18, 30, .62);
  --edge: rgba(255, 255, 255, .13);
  --edge-hi: rgba(255, 255, 255, .26);
  --text: #f1f3f9;
  --muted: #9aa3b8;
  --gold: #ffb627;
  --gold-2: #ff7a1a;
  --gold-ink: #1d1100;
  --ok: #3ee08f;
  --warn: #ffc23d;
  --bad: #ff6269;
  --radius: 20px;
  --blur: blur(22px) saturate(170%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--text); min-height: 100%; }
html { background: #020101; } /* body transparent rakho warna .bg ke colours chhup jate hain */
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--glass-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- animated background (glass ke peeche colour) ---------- */
/* Background: live gold flame smoke, same as beastcarts.com (assets/flames.js) */
.flame-background { position: fixed; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; pointer-events: none; background: #020101; }
.flame-fallback { background: radial-gradient(70% 55% at 55% 60%, rgba(214,120,30,.28), transparent 70%), #020101; }
.flame-shade { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.45)); }
/* Home hero: the BeastCarts lion logo with a gold glow from below */
.hero-logo-wrap { position: relative; width: min(64vw, 300px); margin: 0 auto 6px; }
.hero-logo-wrap::before { content: ""; position: absolute; inset: -12% -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.8), rgba(0,0,0,.5) 55%, transparent 100%); pointer-events: none; }
.hero-logo { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(230,184,63,.35)); }
.hero-logo-glow { position: absolute; left: 8%; right: 8%; bottom: 2%; height: 58%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,206,96,.7), rgba(236,150,34,.32) 45%, transparent 76%); animation: logo-glow 4.5s ease-in-out infinite; }
@keyframes logo-glow { 0%, 100% { opacity: .75; transform: scaleY(.95); } 50% { opacity: 1; transform: scaleY(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero-logo-glow { animation: none; } }

/* ---------- glass base ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; padding: calc(10px + env(safe-area-inset-top)) 0 10px; }
.top .wrap > .bar-in {
  display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 10px 0 16px;
  background: var(--glass-strong); border: 1px solid var(--edge); border-radius: 18px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .2px; white-space: nowrap; }
.logo .mark { width: 44px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(230,184,63,.45)); }
.logo b { background: linear-gradient(90deg, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { flex: 1; display: flex; position: relative; }
.search input {
  width: 100%; height: 42px; padding: 0 110px 0 16px; border-radius: 12px; outline: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--edge); transition: border-color .2s, background .2s, box-shadow .2s;
}
.search input::placeholder { color: #7f889d; }
.search input:focus { border-color: rgba(255, 182, 39, .7); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(255, 182, 39, .14); }
.search button {
  position: absolute; right: 4px; top: 4px; height: 34px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); font-weight: 800;
}

/* ---------- hero ---------- */
.hero { padding: 34px 0 10px; display: grid; gap: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  background: rgba(255, 182, 39, .12); color: var(--gold); border: 1px solid rgba(255, 182, 39, .3); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { margin: 0; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -1px; font-weight: 850; }
.hero h1 span { background: linear-gradient(90deg, #ffd27a, var(--gold) 40%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; max-width: 560px; line-height: 1.5; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat { padding: 12px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 130px; }
.stat b { font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- filters ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--edge); color: #c4cadb;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: all .2s;
}
.chip:hover { border-color: var(--edge-hi); color: var(--text); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(255, 140, 30, .9); }
.bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0 16px; color: var(--muted); font-size: 14px; }
.bar select, .select {
  background: var(--glass); border: 1px solid var(--edge); border-radius: 10px; padding: 8px 12px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
select option { background: #121726; }

/* ---------- grid / cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-bottom: 40px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid var(--edge); border-radius: var(--radius);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before { /* glow border on hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(140deg, var(--gold), transparent 40%, transparent 60%, #0fb8ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(255,182,39,.15), inset 0 1px 0 rgba(255,255,255,.16); }
.card:hover::before { opacity: 1; }
.thumb { aspect-ratio: 16 / 9; position: relative; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.35); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img, .card:hover .thumb video { transform: scale(1.05); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.thumb .badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.thumb .code { position: absolute; bottom: 10px; right: 10px; z-index: 1; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-family: ui-monospace, Consolas, monospace;
  background: rgba(10,12,20,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.thumb .play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: .9; transition: transform .25s; }
.thumb .play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.card:hover .play { transform: scale(1.1); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .game { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.card .title { font-weight: 700; line-height: 1.35; font-size: 15px; }
.card .specs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #c4cadb; }
.card .specs span { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); padding: 3px 9px; border-radius: 8px; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); }
.card .price { font-size: 20px; font-weight: 850; color: var(--gold); }
.card .view { font-size: 13px; color: var(--muted); }
.card:hover .view { color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.available { background: rgba(10, 40, 25, .6); color: var(--ok); border-color: rgba(62, 224, 143, .35); }
.badge.reserved { background: rgba(45, 33, 5, .6); color: var(--warn); border-color: rgba(255, 194, 61, .35); }
.badge.sold { background: rgba(50, 10, 12, .6); color: var(--bad); border-color: rgba(255, 98, 105, .35); }
.badge.hidden { background: rgba(255,255,255,.08); color: var(--muted); }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.more { display: flex; margin: 0 auto 50px; }

/* skeleton loading */
.skel { height: 330px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid rgba(255,255,255,.06); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px; cursor: pointer; font-weight: 700;
  background: var(--glass-2); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { background: rgba(255,255,255,.14); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--gold-ink); border-color: transparent; font-weight: 850;
  box-shadow: 0 12px 28px -12px rgba(255, 130, 30, .9), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.primary:hover { box-shadow: 0 16px 34px -12px rgba(255, 130, 30, 1), inset 0 1px 0 rgba(255,255,255,.45); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- account page ---------- */
.crumb { padding-top: 14px; color: var(--muted); font-size: 14px; }
.crumb a:hover { color: var(--text); }
.acc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "player side" "details side"; gap: 20px; padding: 16px 0 50px; align-items: start; }
.acc .player { grid-area: player; }
.acc .side { grid-area: side; }
.acc .details { grid-area: details; }
.player { padding: 8px; border-radius: 24px; }
.player video, .player .empty { width: 100%; aspect-ratio: 16 / 9; border-radius: 17px; background: #000; display: block; }
.side { position: sticky; top: 100px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.side h1 { margin: 0; font-size: 21px; line-height: 1.3; }
.side .price { font-size: 32px; font-weight: 850; background: linear-gradient(90deg, #ffd27a, var(--gold), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 14px; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.kv dt, .kv dd { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 700; }
.kv dt:nth-last-of-type(1), .kv dd:nth-last-of-type(1) { border-bottom: 0; }
.trust { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.trust div { display: flex; gap: 8px; align-items: center; }
.trust div::before { content: "✓"; color: var(--ok); font-weight: 900; }
.details { overflow: hidden; }
.details h2 { margin: 0; padding: 16px 20px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.details h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(var(--gold), var(--gold-2)); }
.details iframe { width: 100%; border: 0; display: block; min-height: 200px; background: transparent; color-scheme: dark; }

/* ---------- dialog ---------- */
dialog { color: var(--text); width: min(440px, 92vw); padding: 24px;
  background: rgba(18, 22, 36, .72); border: 1px solid var(--edge-hi); border-radius: 24px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.15); }
dialog::backdrop { background: rgba(3, 5, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.field span { color: var(--muted); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input[type="file"] { padding: 9px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255, 182, 39, .7); box-shadow: 0 0 0 4px rgba(255, 182, 39, .12); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.msg.ok { background: rgba(62, 224, 143, .12); color: var(--ok); border-color: rgba(62, 224, 143, .3); }
.msg.err { background: rgba(255, 98, 105, .12); color: var(--bad); border-color: rgba(255, 98, 105, .3); }

/* ---------- admin ---------- */
.admin { padding: 16px 0 60px; display: grid; gap: 20px; }
.panel { padding: 22px; }
.panel h2 { margin: 0 0 14px; font-size: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
td select { background: rgba(255,255,255,.06); border: 1px solid var(--edge); border-radius: 8px; padding: 5px 8px; }
.tablewrap { overflow-x: auto; }
.token { background: rgba(255,255,255,.06); border: 1px solid var(--edge); border-radius: 10px; padding: 9px 12px; width: 180px; outline: none; }

footer { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 860px) {
  .acc { grid-template-columns: 1fr; grid-template-areas: "player" "side" "details"; gap: 14px; }
  .side { position: static; }
  .row { flex-wrap: wrap; }
  .row > * { flex-basis: 140px; }
}
@media (max-width: 560px) {
  .logo .name { display: none; }
  .search input { padding-right: 16px; }
  .search button { display: none; }
  .hero { padding-top: 22px; }
  .stat { min-width: 0; flex: 1; padding: 10px 12px; }
  .stat b { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
}
