/* ==========================================================================
   DaBomb Breaks — Design System v1.0
   Dark "blast" theme. Original design for DaBomb Breaks (Spark Alliance build).
   ========================================================================== */

:root {
  --bg: #0b0e17;
  --bg-2: #111527;
  --panel: #161b2e;
  --panel-2: #1b2138;
  --line: #232a44;
  --text: #eef1fa;
  --muted: #9aa3c0;
  --blast: #ff5a1f;
  --blast-2: #ff7a3d;
  --gold: #ffc233;
  --green: #2fd47a;
  --red: #ff4d5e;
  --blue: #4da3ff;
  --purple: #a06bff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blast-2); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: .8px; }
.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .95rem;
  color: var(--blast);
  font-weight: 600;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 38px; height: 38px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.brand-name em { color: var(--blast); font-style: normal; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 9px 13px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--blast); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 18px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1.2px;
  font-size: 1rem; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blast), #ff8a2a);
  color: #14100c;
  box-shadow: 0 6px 22px rgba(255, 90, 31, .35);
}
.btn-primary:hover { color: #14100c; box-shadow: 0 8px 28px rgba(255, 90, 31, .5); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blast); color: var(--blast-2); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffdd7a); color: #201a05; }
.btn-gold:hover { color: #201a05; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.15rem; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
}
.badge-grade { background: rgba(255, 194, 51, .15); color: var(--gold); border: 1px solid rgba(255, 194, 51, .4); }
.badge-raw { background: rgba(154, 163, 192, .12); color: var(--muted); border: 1px solid var(--line); }
.badge-consigned { background: rgba(160, 107, 255, .15); color: var(--purple); border: 1px solid rgba(160, 107, 255, .4); }
.badge-owned { background: rgba(77, 163, 255, .12); color: var(--blue); border: 1px solid rgba(77, 163, 255, .35); }
.badge-live { background: rgba(255, 77, 94, .15); color: var(--red); border: 1px solid rgba(255, 77, 94, .4); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: all .15s ease; user-select: none;
}
.chip:hover { border-color: var(--blast); color: var(--text); }
.chip.active { background: rgba(255, 90, 31, .14); border-color: var(--blast); color: var(--blast-2); }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.panel-hover { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.panel-hover:hover { transform: translateY(-3px); border-color: rgba(255, 90, 31, .5); box-shadow: var(--shadow); }

/* ---------- Card tiles (product) ---------- */
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 90, 31, .55); box-shadow: var(--shadow); }
.tile-art { position: relative; background: var(--bg-2); padding: 16px 16px 8px; }
.tile-art svg { width: 100%; height: auto; border-radius: 8px; }
.tile-flags { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; pointer-events: none; }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-name { font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--text); }
.tile-set { font-size: .82rem; color: var(--muted); }
.tile-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.tile-price { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .5px; }
.tile-trend { font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
a.tile-link { color: inherit; display: flex; flex-direction: column; flex: 1; }
a.tile-link:hover { color: inherit; }
.tile-art img.card-photo { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; background: var(--bg-2); display: block; }
.art-panel img.card-photo { width: 100%; height: auto; border-radius: 10px; display: block; }

/* ---------- Stat bar ---------- */
.stat-bar {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat { flex: 1; min-width: 150px; padding: 20px 24px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
@media (max-width: 620px) { .stat { border-right: none; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: none; } }

/* ---------- Filters (shop) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.search-input, select.input, input.input, textarea.input {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 15px; font-size: .95rem; font-family: var(--font-body);
  outline: none; transition: border-color .15s ease;
}
.search-input:focus, .input:focus { border-color: var(--blast); }
.search-input { flex: 1; min-width: 220px; }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 110px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.data th {
  text-align: left; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px;
  font-size: .85rem; color: var(--muted); padding: 13px 16px; background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255, 90, 31, .04); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 90, 31, .22), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(77, 163, 255, .14), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.hero h1 em { font-style: normal; color: var(--blast); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Chat mockup (AI page) ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 13px 17px; border-radius: 14px; font-size: .95rem; line-height: 1.55; }
.msg-user { align-self: flex-end; background: rgba(255, 90, 31, .16); border: 1px solid rgba(255, 90, 31, .4); border-bottom-right-radius: 4px; }
.msg-ai { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-ai .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--blast-2); font-weight: 700; display: block; margin-bottom: 5px; }

/* ---------- Steps / numbered ---------- */
.step-num {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--blast), #ff8a2a); color: #14100c;
}
.step { display: flex; gap: 16px; align-items: flex-start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; font-size: .95rem; margin-bottom: 12px; color: var(--text); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: .92rem; }
.footer-grid a:hover { color: var(--blast-2); }
.footer-note { border-top: 1px solid var(--line); padding-top: 20px; font-size: .82rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: none; margin: 28px 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
::selection { background: rgba(255, 90, 31, .4); }
