/* ============================================================
   Ballet Trader — design system
   Dark, editorial ballet aesthetic: deep navy, soft gold, cream.
   Mirrors the BalletTrader Figma design.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #0a0d1a;
  --bg-2:      #111424;
  --bg-3:      #1a1f38;
  --bg-footer: #080b18;

  /* gold accents */
  --gold:    #c9a84c;
  --gold-2:  #f0d080;
  --gold-grad: linear-gradient(135deg, #c9a84c, #f0d080);

  /* text */
  --cream:  #f0e6d3;
  --tan:    #c9b88a;
  --muted:  #8a7f6e;

  /* lines / borders */
  --line:    rgba(201, 168, 76, 0.12);
  --line-2:  rgba(201, 168, 76, 0.20);
  --line-3:  rgba(201, 168, 76, 0.40);

  /* status colors (badges) */
  --c-blue:   #4a90d9;
  --c-red:    #d94a4a;
  --c-purple: #9b59b6;
  --c-green:  #27ae60;
  --c-orange: #e67e22;

  --shadow:    0 40px 100px rgba(0,0,0,0.5);
  --shadow-sm: 0 20px 60px rgba(0,0,0,0.4);
  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --maxw:      1280px;
  --maxw-md:   1024px;
  --maxw-sm:   768px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; }

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-2); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
em { font-style: italic; }
p  { margin: 0 0 1rem; }

.container    { width: 100%; max-width: var(--maxw);    margin: 0 auto; padding: 0 24px; }
.container-md { width: 100%; max-width: var(--maxw-md); margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: var(--maxw-sm); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted  { color: var(--muted); }
.mono   { font-family: var(--font-mono); }

/* Eyebrow / overline */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .75rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: .75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .85rem;
  letter-spacing: .04em;
  padding: .75rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, opacity .15s ease, box-shadow .15s ease;
  color: inherit;
}
.btn-gold { background: var(--gold-grad); color: var(--bg); font-weight: 600; }
.btn-gold:hover { transform: scale(1.04); color: var(--bg); }
.btn-outline { background: transparent; color: var(--tan); border-color: var(--line-3); }
.btn-outline:hover { background: rgba(255,255,255,.06); color: var(--cream); }
.btn-soft { background: rgba(201,168,76,.1); border: 1px solid var(--line-2); color: var(--gold); }
.btn-soft:hover { background: rgba(201,168,76,.18); color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: .95rem 2rem; font-size: .9rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,13,26,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.brand .brand-name { font-family: var(--font-display); font-size: 18px; color: var(--cream); letter-spacing: .02em; }
.brand .brand-name b { color: var(--gold); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; letter-spacing: .04em;
  color: var(--tan); padding: .5rem 1rem; border-radius: 6px;
  border-bottom: 1px solid transparent; transition: color .15s;
}
.nav-links > a:hover, .nav-drop > button:hover { color: var(--cream); }
.nav-links > a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: .25rem; min-width: 190px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 60;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a {
  display: block; padding: .8rem 1rem; font-size: 13px; letter-spacing: .04em;
  color: var(--tan); transition: background .15s, color .15s;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,.05); color: var(--cream); }
.nav-drop-menu a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: none; border: 0; color: var(--tan); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--cream); }
.nav-user {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .75rem .35rem .4rem;
  border-radius: 999px; background: rgba(201,168,76,.1); border: 1px solid var(--line-3);
  color: var(--gold); font-size: 13px;
}
.nav-user .av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--bg); font-weight: 600; font-size: 12px; overflow: hidden;
}
.nav-user .av img { width: 100%; height: 100%; object-fit: cover; }

.nav-toggle { display: none; background: none; border: 0; color: var(--tan); cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    background: var(--bg-2); border-top: 1px solid var(--line);
    padding: 1rem 24px; flex-direction: column; gap: .25rem;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: .8rem .75rem; border-radius: 6px; color: var(--tan); font-size: 15px; letter-spacing: .04em;
  }
  .mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); background: rgba(255,255,255,.04); }
  .mobile-menu .btn { margin-top: .75rem; }
}

/* spacing so fixed nav doesn't cover content */
.page { padding-top: 64px; }

/* ---------- Generic section ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-sm { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }
.surface { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .eyebrow { color: var(--gold); }

/* page header band (marketplace, news, etc.) */
.page-head {
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  position: relative; overflow: hidden;
}
.page-head h1 { margin-bottom: 1.5rem; }
.page-head.center { text-align: center; }
.page-head .glow {
  position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--gold), transparent 60%);
}

/* ---------- Hero (landing) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.25) saturate(.7); }
.hero-bg .veil { position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,13,26,.9) 0%, rgba(10,13,26,.5) 60%, rgba(201,168,76,.05) 100%); }
.hero-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 40%, transparent); }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 7rem 24px 5rem;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 0; }
.hero h1 em { color: var(--gold); }
.hero .lead { color: var(--muted); line-height: 1.8; font-size: 16px; max-width: 30rem; margin: 1.5rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(201,168,76,.1); border: 1px solid var(--line-3); color: var(--gold);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem;
}

.hero-art { position: relative; }
.hero-art > img {
  width: 100%; height: 580px; object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.float-card {
  position: absolute; bottom: -1.5rem; left: -1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.float-card .l { color: var(--muted); font-size: 11px; letter-spacing: .08em; margin-bottom: 4px; }
.float-card .t { color: var(--cream); font-size: 14px; font-family: var(--font-display); }
.float-card .p { color: var(--gold); font-size: 13px; font-family: var(--font-mono); margin-top: 4px; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: var(--maxw-md); margin: 0 auto; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--gold); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 13px; letter-spacing: .08em; margin-top: 6px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-sm { gap: 1rem; }

/* ---------- Cards ---------- */
.panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s ease, border-color .2s ease;
}
.panel-pad { padding: 1.75rem; }

/* feature card */
.feature { padding: 1.75rem; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(201,168,76,.1); color: var(--gold); margin-bottom: 1.25rem;
}
.feature h3 { font-size: 18px; color: var(--cream); margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* product / content card */
.tile {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile-img { position: relative; height: 220px; background: var(--bg-3); overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); opacity: .4; font-family: var(--font-display); font-style: italic; font-size: 2rem; }
.tile-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.tile-cat { color: var(--muted); font-size: 12px; letter-spacing: .06em; margin-bottom: .5rem; }
.tile-title { font-family: var(--font-display); font-size: 15px; color: var(--cream); margin-bottom: .25rem; }
.tile-sub { color: var(--muted); font-size: 12px; margin-bottom: .75rem; }
.tile-price { font-family: var(--font-mono); font-size: 18px; color: var(--gold); }

/* image tag / badge */
.tag {
  position: absolute; top: 12px; left: 12px; padding: .25rem .65rem; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.tag-gold { background: var(--gold); color: var(--bg); }
.tag-blue { background: var(--c-blue); }
.tag-red { background: var(--c-red); }
.tag-purple { background: var(--c-purple); }
.tag-green { background: var(--c-green); }
.tag-orange { background: var(--c-orange); }

.heart {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,13,26,.7); backdrop-filter: blur(4px);
  color: var(--tan); border: 0; cursor: pointer;
}

/* small pill chips (categories / filters) */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip-pill {
  flex-shrink: 0; padding: .5rem 1rem; border-radius: 999px; font-size: 13px; letter-spacing: .04em;
  background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.chip-pill:hover { color: var(--tan); border-color: var(--line-2); }
.chip-pill.active { background: rgba(201,168,76,.15); border-color: var(--line-3); color: var(--gold); }

/* category tag (small, in cards) */
.cat-tag {
  display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: 11px; letter-spacing: .06em;
  background: rgba(201,168,76,.1); color: var(--gold);
}

/* star rating */
.rating { display: flex; align-items: center; gap: .35rem; color: var(--tan); font-size: 12px; }
.rating .star { color: var(--gold); }
.rating .rev { color: var(--muted); }

/* ---------- Forms / inputs ---------- */
.input, input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 14px; color: var(--cream);
  padding: .8rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-3); outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--line-3); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
select option { background: var(--bg-3); color: var(--cream); }
label { font-size: 13px; color: var(--tan); font-weight: 500; }

.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 42px; }

.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.grow { flex: 1; min-width: 200px; }

/* sell banner */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  background: rgba(201,168,76,.07); border: 1px solid var(--line-2);
}
.banner .t { color: var(--cream); font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }
.banner .s { color: var(--muted); font-size: 13px; }

/* ---------- News / featured ---------- */
.featured-article {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
}
.featured-article .ph-img { position: relative; min-height: 340px; background: var(--bg-3); overflow: hidden; }
.featured-article .ph-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-article .ph-img .fade { position: absolute; inset: 0; background: linear-gradient(to right, transparent, var(--bg-2) 92%); }
.featured-article .ph-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-article h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); line-height: 1.3; margin-bottom: 1rem; }

.meta-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

/* ---------- Events ---------- */
.event-meta { display: flex; flex-direction: column; gap: .5rem; margin: .75rem 0 1rem; }
.event-meta div { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: 12px; }
.divide-top { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: auto; }

/* ---------- Forum ---------- */
.thread {
  display: flex; gap: 1.25rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s;
}
.thread:hover { border-color: var(--line-2); }
.thread.pinned { background: rgba(201,168,76,.04); border-color: var(--line-2); }
.thread .grow { flex: 1; min-width: 0; }
.thread h3 { font-size: 16px; margin: .5rem 0 .4rem; line-height: 1.35; }
.thread .preview { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: .75rem; }
.thread-stats { display: flex; flex-direction: column; align-items: center; gap: 1rem; flex-shrink: 0; }
.thread-stats .s { display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--muted); font-size: 11px; }
.flame { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(217,74,74,.13); color: var(--c-red); font-size: 11px; }

/* ---------- Hall of fame ---------- */
.hof-card { position: relative; }
.hof-img { position: relative; height: 280px; background: var(--bg-3); overflow: hidden; }
.hof-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: transform .5s; }
.hof-card:hover .hof-img img { transform: scale(1.05); }
.hof-img .fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-2) 0%, rgba(17,20,36,.3) 60%, transparent); }
.hof-img .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; }
.hof-img .name h3 { font-size: 18px; margin-bottom: 4px; }

/* ---------- Membership ---------- */
.price-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.price-card.featured { border-color: var(--line-3); }
.price-card.featured .topline { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.price-card .glow-top { position: absolute; top: 0; left: 0; right: 0; height: 10rem; opacity: .1; background: radial-gradient(ellipse at 50% -20%, var(--gold), transparent 70%); pointer-events: none; }
.price-amt { font-family: var(--font-display); font-size: 48px; color: var(--cream); line-height: 1; }
.price-amt .per { color: var(--muted); font-size: 14px; font-family: var(--font-body); }
.feat-list { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0 2rem; }
.feat-list .f { display: flex; align-items: center; gap: .75rem; color: var(--tan); font-size: 14px; }
.feat-list .f .ck { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: rgba(201,168,76,.15); color: var(--gold); }
.feat-list .f.dim { color: var(--muted); }
.feat-list .f.dim .ck { background: transparent; color: var(--muted); }
.pop-tag { padding: .35rem .75rem; border-radius: 999px; font-size: 12px; letter-spacing: .08em; background: rgba(201,168,76,.12); border: 1px solid var(--line-3); color: var(--gold); }

.faq-item { padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); }
.faq-item h4 { color: var(--cream); font-family: var(--font-display); font-size: 15px; margin-bottom: .5rem; }
.faq-item p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 64px); padding: 5rem 1rem 3rem; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--bg-2); border: 1px solid var(--line-3);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.auth-card .topline { height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.auth-card .pad { padding: 2.5rem; }
.auth-logo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--gold-grad); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.oauth-btn {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .9rem 1rem; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; margin-bottom: .75rem; transition: opacity .15s, transform .15s;
}
.oauth-btn:hover { opacity: .9; transform: scale(1.01); }
.oauth-btn span.lbl { flex: 1; text-align: center; }
.oauth-btn.google { background: #fff; color: #1a1a2e; }
.oauth-btn.facebook { background: #1877F2; color: #fff; }
.oauth-btn.apple, .oauth-btn.twitter { background: #000; color: #fff; }
.oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: 12px; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Prose / detail ---------- */
.prose { max-width: 72ch; }
.prose p { color: var(--tan); line-height: 1.9; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.gallery { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: var(--bg-3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* status badges (conditions etc.) */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: rgba(201,168,76,.1); color: var(--gold); letter-spacing: .04em; }
.badge-green { background: rgba(39,174,96,.15); color: #4cd07d; }

/* ---------- list rows (generic) ---------- */
.list { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.row { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(255,255,255,.02); }
.row .grow { flex: 1; min-width: 0; }
.row strong { color: var(--cream); font-weight: 500; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: rgba(201,168,76,.15); color: var(--gold); font-weight: 600; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA section ---------- */
.cta { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); }
.cta .glow { position: absolute; inset: 0; opacity: .05; background: radial-gradient(circle at 50% 50%, var(--gold) 0%, transparent 70%); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-footer); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer h4 { color: var(--gold); font-family: var(--font-body); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer .col-links { display: flex; flex-direction: column; gap: .75rem; }
.footer .col-links a { color: var(--muted); font-size: 13px; }
.footer .col-links a:hover { color: var(--gold); }
.footer .socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer .socials a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); }
.footer .socials a:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.footer-bottom { border-top: 1px solid rgba(201,168,76,.08); padding-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom span { color: var(--muted); font-size: 12px; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .big { font-family: var(--font-display); font-style: italic; font-size: 1.8rem; color: var(--gold); margin-bottom: .5rem; }

/* ---------- Legacy compatibility (older templates) ---------- */
.btn-primary { background: var(--gold-grad); color: var(--bg); }
.btn-primary:hover { transform: scale(1.04); color: var(--bg); }
.btn-rose { background: var(--gold-grad); color: var(--bg); }
.btn-rose:hover { transform: scale(1.04); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--tan); border-color: var(--line-3); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--cream); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card .thumb, .thumb { position: relative; aspect-ratio: 1/1; background: var(--bg-3); overflow: hidden; }
.card .thumb img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); opacity: .4; font-family: var(--font-display); font-style: italic; font-size: 2rem; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body .name { font-family: var(--font-display); color: var(--cream); }
.meta { font-size: 12px; color: var(--muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.meta strong { color: var(--tan); font-weight: 500; }
.price { font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold); font-weight: 500; }
.price .was { font-family: var(--font-body); font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-left: .4rem; }
.badge-rose { background: rgba(201,168,76,.1); color: var(--gold); }
.bg-blush { background: var(--bg-2); }
.bg-plum { background: var(--bg-2); }
.pill-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pill-tabs a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pill-tabs a.active, .pill-tabs a:hover { background: rgba(201,168,76,.15); border-color: var(--line-3); color: var(--gold); }
.plan { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--line-3); }
.plan .amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--cream); }
.feature .ic { background: rgba(201,168,76,.1); color: var(--gold); }

/* spacing helpers */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; } .justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .flex-wrap { flex-wrap: wrap; } .w-full { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 6rem; }
  .hero-art { display: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article .ph-img { min-height: 240px; }
  .featured-article .ph-img .fade { background: linear-gradient(to top, var(--bg-2), transparent 60%); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .thread-stats { display: none; }
  .featured-article .ph-body { padding: 1.75rem; }
}
