/* ── ThemeForge — Main Stylesheet ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #1a1a1a;
  --surface-3:   #222222;
  --border:      #2a2a2a;
  --gold:        #E8C547;
  --gold-dark:   #c9a832;
  --gold-faint:  rgba(232,197,71,0.1);
  --orange:      #FF6B35;
  --text:        #FFFFFF;
  --text-2:      #AAAAAA;
  --text-3:      #666666;
  --success:     #4ADE80;
  --danger:      #F87171;
  --warning:     #FBBF24;
  --info:        #60A5FA;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p  { line-height: 1.7; }
a  { color: inherit; text-decoration: none; }
code { font-family: 'Courier New', monospace; font-size: 0.85em; background: var(--surface-3); padding: 0.1em 0.4em; border-radius: 4px; }

/* ── Layout ──────────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-dark { background: var(--surface); }
.section-cta  { background: linear-gradient(135deg, #110a00 0%, #1a1000 50%, #080808 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-cta h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-cta p  { color: var(--text-2); margin-bottom: 2rem; }

/* ── Header ──────────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--surface-3); }
.cart-link { display: flex; align-items: center; gap: 2px; position: relative; }
.cart-badge {
  background: var(--gold); color: #000;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.875rem; font-size: 0.8rem; }
.btn-primary  { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); }
.btn-primary:hover { background: var(--surface-2); border-color: #444; }
.btn-gold     { background: var(--gold); color: #000; font-weight: 700; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,197,71,0.3); }
.btn-ghost    { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: #555; }
.btn-danger   { background: rgba(248,113,113,0.15); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-outline-light { background: transparent; color: var(--text); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.w-100 { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-block { display: block; }
.d-flex  { display: flex; }
.gap-1   { gap: 0.5rem; }
.gap-2   { gap: 1rem; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-2); }
.small        { font-size: 0.8rem; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-2); margin-bottom: 0.4rem; }
input[type=text], input[type=email], input[type=password],
input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 0.65rem 0.875rem;
  background: var(--surface-2); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif; font-size: 0.925rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: auto;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-faint);
}
textarea { resize: vertical; min-height: 120px; }
.file-input { padding: 0.5rem; font-size: 0.85rem; }
.form-check  { margin-bottom: 0.75rem; }
.check-label { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; font-size: 0.9rem; color: var(--text-2); }
.check-label input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; }
.price-inputs { display: flex; align-items: center; gap: 0.5rem; }
.price-inputs input { flex: 1; }
.price-inputs span  { color: var(--text-3); }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.125rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 500;
  border: 1px solid transparent;
}
.alert-success { background: rgba(74,222,128,0.1); color: #4ADE80; border-color: rgba(74,222,128,0.25); }
.alert-danger  { background: rgba(248,113,113,0.1); color: #F87171; border-color: rgba(248,113,113,0.25); }
.alert-info    { background: rgba(96,165,250,0.1);  color: #60A5FA; border-color: rgba(96,165,250,0.25); }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.2rem 0.65rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-success { background: rgba(74,222,128,0.15);  color: #4ADE80; }
.badge-danger  { background: rgba(248,113,113,0.15); color: #F87171; }
.badge-warning { background: rgba(251,191,36,0.15);  color: #FBBF24; }
.badge-primary { background: rgba(255,255,255,0.1);  color: var(--text-2); }
.badge-gold    { background: var(--gold-faint);       color: var(--gold); }
.tag { display: inline-block; padding: 0.2rem 0.75rem; background: var(--surface-3); border-radius: 999px; font-size: 0.8rem; color: var(--text-2); margin: 0.2rem; }
.tag:hover { background: var(--gold-faint); color: var(--gold); }

/* ── Card ────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}

/* ── Table ───────────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3);
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 600px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,197,71,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,107,53,0.08) 0%, transparent 50%),
    var(--bg);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-block; padding: 0.35rem 1rem;
  background: var(--gold-faint); border: 1px solid rgba(232,197,71,0.3);
  border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.04em; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p  { font-size: 1.15rem; color: var(--text-2); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section Titles ──────────────────────────────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-link { color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ── Theme Grid ──────────────────────────────────────────────────────────────── */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.theme-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.theme-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.theme-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #444; }

.theme-card-img-wrap { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; }
.theme-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.theme-card:hover .theme-card-img { transform: scale(1.04); }
.theme-card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800;
  color: var(--text-3); letter-spacing: -0.02em;
}
.theme-card-demo {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  color: var(--text); padding: 0.25rem 0.75rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  opacity: 0; transform: translateY(4px); transition: all 0.2s;
}
.theme-card:hover .theme-card-demo { opacity: 1; transform: translateY(0); }

.theme-card-body { padding: 1.25rem; }
.theme-card-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.theme-card-title { font-size: 1.05rem; font-weight: 700; margin: 0.4rem 0 0.5rem; }
.theme-card-title a:hover { color: var(--gold); }
.theme-card-desc { font-size: 0.85rem; color: var(--text-2); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-card-footer { display: flex; align-items: center; justify-content: space-between; }
.theme-price { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--gold); }

/* ── Category Grid ───────────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem;
  text-align: center; transition: all 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.cat-card:hover { border-color: var(--gold); background: var(--gold-faint); transform: translateY(-3px); }
.cat-icon  { font-size: 2rem; }
.cat-name  { font-weight: 700; font-size: 0.9rem; }
.cat-count { font-size: 0.75rem; color: var(--text-3); }

/* ── Page Banner ─────────────────────────────────────────────────────────────── */
.page-banner { background: var(--surface); border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.page-banner .container h1 { margin-bottom: 0.35rem; }
.page-banner .container p  { color: var(--text-2); font-size: 0.9rem; }

/* ── Browse Layout ───────────────────────────────────────────────────────────── */
.browse-layout { display: flex; gap: 2rem; align-items: flex-start; }
.filter-sidebar {
  width: 240px; flex-shrink: 0;
  position: sticky; top: 80px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 700; margin-bottom: 0.75rem; }
.filter-options { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-radio { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; color: var(--text-2); padding: 0.3rem 0; }
.filter-radio.checked { color: var(--gold); }
.filter-radio input { accent-color: var(--gold); }
.browse-content { flex: 1; min-width: 0; }

/* ── Theme Detail ────────────────────────────────────────────────────────────── */
.theme-detail { padding: 2rem 0 4rem; }
.breadcrumb { font-size: 0.8rem; color: var(--text-3); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-2); }

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.preview-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.preview-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 4rem; font-family: 'Syne', sans-serif; font-weight: 800; color: var(--text-3);
}
.detail-cat  { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.detail-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0.5rem 0 0.75rem; }
.detail-desc  { color: var(--text-2); margin-bottom: 1.5rem; }
.detail-price { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--gold); margin-bottom: 1.5rem; }
.detail-note  { text-align: center; font-size: 0.8rem; color: var(--text-3); margin-top: 0.75rem; }
.detail-meta  { margin: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.meta-row     { display: flex; justify-content: space-between; font-size: 0.875rem; }
.meta-row span { color: var(--text-3); }
.meta-row strong { color: var(--text); }
.detail-tags  { margin-top: 0.75rem; }
.detail-desc-full h2 { margin-bottom: 1rem; }
.prose { font-size: 0.95rem; color: var(--text-2); line-height: 1.8; }

/* ── Cart ────────────────────────────────────────────────────────────────────── */
.page-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.cart-row { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: none; }
.cart-img { width: 80px; height: 55px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-img-placeholder { width: 80px; height: 55px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-family: 'Syne',sans-serif; font-weight: 800; color: var(--text-3); flex-shrink: 0; }
.cart-row-info { flex: 1; }
.cart-row-title { font-weight: 600; display: block; }
.cart-row-title:hover { color: var(--gold); }
.cart-row-price { font-family:'Syne',sans-serif; font-weight: 800; color: var(--gold); font-size: 1.1rem; flex-shrink: 0; margin: 0 1rem; }
.btn-remove { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 1rem; padding: 0.25rem; border-radius: 4px; transition: color 0.2s; }
.btn-remove:hover { color: var(--danger); }
.cart-actions { display: flex; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cart-summary h3 { margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-2); margin-bottom: 0.75rem; }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.5rem; }
.summary-note { font-size: 0.8rem; color: var(--text-3); text-align: center; margin-top: 1rem; }

/* ── Checkout ────────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 1.5rem; align-items: start; }
.checkout-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.checkout-item-name  { color: var(--text-2); }
.checkout-item-price { font-weight: 700; color: var(--gold); }
.checkout-total { display: flex; justify-content: space-between; padding: 1rem 0 1.25rem; font-size: 1.1rem; font-weight: 700; }
.checkout-payment h3 { margin-bottom: 0.75rem; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 0.75rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth Pages ──────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem; position: relative; overflow: hidden;
  background: var(--bg);
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,197,71,0.08) 0%, transparent 60%);
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 420px; position: relative; z-index: 1;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}
.auth-logo { display: block; text-align: center; font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 1.75rem; }
.auth-logo span { color: var(--gold); }
.auth-title    { font-size: 1.4rem; margin-bottom: 0.35rem; }
.auth-subtitle { color: var(--text-2); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-footer   { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-3); }
.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Account ─────────────────────────────────────────────────────────────────── */
.account-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.account-stats { display: flex; gap: 1.25rem; }
.acc-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; text-align: center; }
.acc-stat span { display: block; font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--gold); }
.acc-stat small { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.tab { padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.9rem; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.tab.active, .tab:hover { color: var(--gold); border-bottom-color: var(--gold); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.download-card-img         { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.download-card-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,var(--surface-3),var(--surface-2)); display: flex; align-items: center; justify-content: center; font-family: 'Syne',sans-serif; font-size: 2rem; font-weight: 800; color: var(--text-3); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.download-card { padding: 0; overflow: hidden; }
.download-card-body { padding: 1.1rem; }
.download-card-body h3 { font-size: 1rem; margin: 0.3rem 0 0.4rem; }
.download-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-3); margin: 0.75rem 0; }

/* ── Empty State ─────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon  { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p  { color: var(--text-2); margin-bottom: 1.5rem; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p   { color: var(--text-3); font-size: 0.875rem; margin-top: 0.75rem; }
.footer-links h4  { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 1rem; }
.footer-links a   { display: block; font-size: 0.875rem; color: var(--text-3); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; font-size: 0.8rem; color: var(--text-3); text-align: center; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .detail-layout  { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  .browse-layout  { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
  .cart-layout    { grid-template-columns: 1fr; }
  .main-nav       { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .main-nav.open  { display: flex; }
  .mobile-toggle  { display: flex; }
  .header-inner   { position: relative; }
  .account-header { flex-direction: column; gap: 1rem; }
  .account-stats  { flex-direction: row; }
  .footer-inner   { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions    { flex-direction: column; }
  .hero h1         { font-size: 2rem; }
  .cat-grid        { grid-template-columns: repeat(2,1fr); }
  .theme-grid      { grid-template-columns: 1fr; }
  .download-grid   { grid-template-columns: 1fr; }
}
