/* ============================================================
   DAVINCI SPACE — SHARED STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Inter:wght@400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --background: #F5F1E8;
  --foreground: #163728;
  --card:       #EBE4D5;
  --secondary:  #800020;
  --accent:     #C4973A;
  --accent-fg:  #0E2014;
  --muted:      #E1DAD0;
  --muted-fg:   #496B57;
  --border:     #D4BF95;
  --ivory:      #FBF8F3;
  --radius:     6px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.625;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--foreground);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; }

.label-caps {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-muted  { color: var(--muted-fg); }
.text-gold   { color: var(--accent); }
.text-ivory  { color: var(--ivory); }
.text-italic { font-style: italic; }
.font-serif  { font-family: 'Playfair Display', serif; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── ORNAMENTAL DIVIDER ─────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent);
  margin: 3rem 0;
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-gold:hover { background: #b8882e; border-color: #b8882e; }

.btn-burgundy {
  background: var(--secondary);
  color: var(--ivory);
  border-color: var(--secondary);
}
.btn-burgundy:hover { background: #6a001a; border-color: #6a001a; }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost-ivory {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(251, 248, 243, 0.4);
}
.btn-ghost-ivory:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}
.btn-full { width: 100%; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 62px;
  box-sizing: border-box;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.nav-brand { display: flex; flex-direction: column; gap: 0.1rem; }
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}
.nav-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-fg);
}
.nav-breadcrumb a { color: var(--muted-fg); }
.nav-breadcrumb a:hover { color: var(--accent); }
.nav-breadcrumb-sep { color: var(--border); }
.nav-breadcrumb-current { color: var(--foreground); font-weight: 500; }

.nav-center { flex: 1; display: flex; justify-content: center; }

/* Subnav active dot — moves with active item */
.subnav-item.active::before {
  content: '◆';
  font-size: 0.5rem;
  color: var(--accent);
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* Member avatar in nav */
.nav-avatar-wrap {
  position: relative;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1.5px solid rgba(196,151,58,0.35);
  cursor: pointer;
  user-select: none;
  object-fit: cover;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden;
  z-index: 200;
}
.nav-avatar-wrap.open .nav-avatar-dropdown { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dropdown-item:hover { background: rgba(196,151,58,0.08); }
.nav-dropdown-sep { height: 1px; background: var(--border); margin: 0; }
.nav-dropdown-item.danger { color: #c0392b; }
.nav-dropdown-item.danger:hover { background: rgba(192,57,43,0.08); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--foreground);
  color: var(--ivory);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
}
.footer-brand { font-size: 0.9rem; line-height: 1.7; }
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
.footer-brand-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
  justify-content: center;
}
.footer-links a {
  color: rgba(251,248,243,0.65);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-right {
  text-align: right;
  font-size: 0.82rem;
  color: rgba(251,248,243,0.55);
  line-height: 1.7;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(251,248,243,0.4);
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid rgba(196, 151, 58, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.card-body { padding: 1.25rem; }

/* Community Card */
.community-card { display: flex; flex-direction: column; }
.community-card-cover {
  height: 120px;
  position: relative;
}
.community-card-cover-inner {
  width: 100%; height: 100%;
  overflow: hidden;
}
.community-card-logo {
  position: absolute;
  bottom: -1.25rem;
  left: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
}
.community-card-body {
  padding: 2rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.community-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}
.community-card-desc {
  font-size: 0.82rem;
  color: var(--muted-fg);
  flex: 1;
}
.community-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.community-card-members { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.price-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
}
.price-badge.free { background: rgba(22,55,40,0.08); color: var(--foreground); }

/* ── MEMBERSHIP CARD (physical card style) ──────────────── */
.member-card {
  width: 240px;
  border-radius: 10px;
  background: var(--foreground);
  color: var(--ivory);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196,151,58,0.4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.member-card-lg { width: 280px; padding: 2rem; }
.member-card-ornament {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 1px solid rgba(196,151,58,0.15);
  pointer-events: none;
}
.member-card-ornament-2 {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 1px solid rgba(196,151,58,0.1);
  pointer-events: none;
}
.member-card-community {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.member-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.member-card-lg .member-card-name { font-size: 1.5rem; }
.member-card-level {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.member-card-points {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ivory);
  font-family: 'Playfair Display', serif;
}
.member-card-lg .member-card-points { font-size: 2rem; }
.member-card-points-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(251,248,243,0.5);
  margin-bottom: 1rem;
}
.member-card-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.member-card-badge-dot {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(196,151,58,0.2);
  border: 1px solid rgba(196,151,58,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--accent);
}
.member-card-code {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(196,151,58,0.2);
  padding-top: 0.6rem;
  margin-top: auto;
}

/* ── FEED ITEMS ──────────────────────────────────────────── */
.feed-item {
  background: var(--card);
  border: 1px solid rgba(196,151,58,0.25);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}
.feed-item-type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.feed-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}
.feed-item-excerpt {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
}
.feed-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.feed-cover-placeholder {
  height: 160px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.members-only-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid rgba(128,0,32,0.3);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

/* ── PROGRESS BAR ──────────────────────────────────────────  */
.poll-bar { margin-bottom: 0.6rem; }
.poll-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.poll-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--muted);
  overflow: hidden;
}
.poll-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--foreground);
  transition: width 0.3s ease;
}
.poll-bar-fill.gold { background: var(--accent); }

/* ── ADMIN SIDEBAR ──────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--foreground);
  color: var(--ivory);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  border-right: 1px solid rgba(196,151,58,0.2);
}
.admin-sidebar-brand {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(196,151,58,0.15);
  margin-bottom: 1rem;
}
.admin-sidebar-community {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.2;
}
.admin-sidebar-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.2rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  color: rgba(251,248,243,0.7);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { color: var(--ivory); background: rgba(196,151,58,0.08); }
.admin-nav-item.active {
  color: var(--accent);
  background: rgba(196,151,58,0.1);
  border-left-color: var(--accent);
}
.admin-nav-bullet { color: var(--accent); font-size: 0.5rem; }
.admin-main { flex: 1; padding: 2.5rem; overflow-y: auto; }

/* ── STAT CARDS ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.stat-card {
  background: var(--card);
  border: 1px solid rgba(196,151,58,0.25);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.stat-card-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.stat-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1;
}
.stat-card-sub { font-size: 0.78rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ── TABLE ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border-bottom: 1px solid rgba(212,191,149,0.4);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(196,151,58,0.04); }

/* ── BADGE CARDS ─────────────────────────────────────────── */
.badge-card {
  background: var(--card);
  border: 1px solid rgba(196,151,58,0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.badge-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(196,151,58,0.12);
  border: 1.5px solid rgba(196,151,58,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.badge-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}
.badge-desc { font-size: 0.78rem; color: var(--muted-fg); line-height: 1.5; }

/* ── SIDEBAR NAV (feed/community pages) ─────────────────── */
.community-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 1.25rem;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: pointer;
}
.sidebar-nav-item:hover { background: var(--muted); color: var(--foreground); }
.sidebar-nav-item.active { background: rgba(196,151,58,0.12); color: var(--foreground); font-weight: 600; }
.sidebar-nav-item .nav-bullet { color: var(--accent); font-size: 0.5rem; }
.sidebar-nav-item.admin-item {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  background: rgba(22,90,48,0.1);
  border-radius: var(--radius);
  color: #1a6632;
  font-weight: 600;
}
.sidebar-nav-item.admin-item:hover { background: rgba(22,90,48,0.18); color: #14522a; }
.sidebar-nav-item.admin-item .nav-bullet { color: #2a8a4a; }

/* Referral code copy */
.referral-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.copy-icon-btn {
  background: none;
  border: none;
  padding: 0.1rem 0.3rem;
  cursor: pointer;
  color: var(--accent);
  opacity: 0.7;
  font-size: 0.8rem;
  transition: opacity 0.15s;
  line-height: 1;
}
.copy-icon-btn:hover { opacity: 1; }
.copy-icon-btn.copied { color: #2a8a4a; opacity: 1; }

/* ── SEARCH BAR ─────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  color: var(--foreground);
}
.search-bar input::placeholder { color: var(--muted-fg); }
.search-btn {
  background: var(--foreground);
  color: var(--ivory);
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.search-btn:hover { background: #0e2820; }

/* ── CATEGORY PILLS ─────────────────────────────────────── */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.pill {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-fg);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active {
  background: var(--foreground);
  color: var(--ivory);
  border-color: var(--foreground);
}

/* ── FORM ELEMENTS ──────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--foreground); letter-spacing: 0.02em; }
.form-input {
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--accent); }

/* ── ACTIVITY HISTORY ───────────────────────────────────── */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(212,191,149,0.4);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: rgba(196,151,58,0.1);
  border: 1px solid rgba(196,151,58,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.65rem;
  margin-top: 0.1rem;
}
.activity-content { flex: 1; }
.activity-text { font-size: 0.875rem; color: var(--foreground); }
.activity-date { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.15rem; }

/* ── AVATAR CIRCLE ──────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  background: var(--foreground);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar-sm { width: 2rem; height: 2rem; font-size: 0.7rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; font-size: 0.85rem; }

/* ── HERO SECTIONS ──────────────────────────────────────── */
.hero-dark {
  background: var(--foreground);
  color: var(--ivory);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  top: -4rem; right: -4rem;
  width: 28rem; height: 28rem;
  border-radius: 50%;
  border: 1px solid rgba(196,151,58,0.08);
  pointer-events: none;
}
.hero-dark::after {
  content: '';
  position: absolute;
  bottom: -6rem; left: -6rem;
  width: 36rem; height: 36rem;
  border-radius: 50%;
  border: 1px solid rgba(196,151,58,0.06);
  pointer-events: none;
}
.hero-dark .hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-dark h1 { color: var(--ivory); margin-bottom: 1rem; }
.hero-dark p { color: rgba(251,248,243,0.72); font-size: 1.1rem; max-width: 36rem; }

/* ── COVER PLACEHOLDER ──────────────────────────────────── */
.cover-placeholder {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.cover-placeholder-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.cover-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(
    45deg,
    currentColor 0, currentColor 1px,
    transparent 0, transparent 50%
  );
  background-size: 20px 20px;
}

/* ── TWO COLUMN LAYOUT ──────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.two-col-sidebar { display: grid; grid-template-columns: 1fr 3fr; gap: 2.5rem; align-items: start; }

.sticky-card { position: sticky; top: 5rem; }

/* ── SECTION BG VARIANTS ────────────────────────────────── */
.bg-card    { background: var(--card); }
.bg-muted   { background: var(--muted); }
.bg-forest  { background: var(--foreground); }
.bg-burgundy { background: var(--secondary); }
.bg-ivory   { background: var(--ivory); }

/* ── GRADIENT PLACEHOLDER SWATCHES ─────────────────────── */
.grad-forest   { background: linear-gradient(135deg, #163728 0%, #0e2014 100%); }
.grad-burgundy { background: linear-gradient(135deg, #800020 0%, #5a0016 100%); }
.grad-gold     { background: linear-gradient(135deg, #C4973A 0%, #a07a28 100%); }
.grad-slate    { background: linear-gradient(135deg, #2a3f34 0%, #163728 100%); }
.grad-muted    { background: linear-gradient(135deg, #EBE4D5 0%, #D4C49A 100%); }

/* ── SECTION HEADING ────────────────────────────────────── */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.section-heading.centered {
  align-items: center;
  text-align: center;
}
.section-heading h2 { color: var(--foreground); }

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

/* ── BULLET LIST ────────────────────────────────────────── */
.bullet-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.bullet-list li::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.5rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* ── POLL VOTE BUTTONS ──────────────────────────────────── */
.poll-options { display: flex; flex-direction: column; gap: 0.5rem; }
.poll-option-btn {
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.poll-option-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── MODERATION CARD ─────────────────────────────────────── */
.mod-card {
  background: var(--card);
  border: 1px solid rgba(128,0,32,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.mod-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ── REAL MEMBERSHIP CARD (image + HTML overlay) ────────── */
.real-card-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  line-height: 0;
}
.real-card-img {
  display: block;
  width: 100%;
  height: auto;
}
.real-card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.overlay-badges {
  position: absolute;
  top: 16%;              /* below the "Membership card" top banner */
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
.overlay-badge-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(22,55,40,0.85);
  border: 1.5px solid rgba(196,151,58,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-weight: 700;
}
/* All non-badge info lives in a single dark gradient bottom bar */
.overlay-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(
    to top,
    rgba(6, 14, 10, 0.94) 0%,
    rgba(6, 14, 10, 0.80) 55%,
    rgba(6, 14, 10, 0.00) 100%
  );
  padding: 2.5rem 7% 5.5%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.overlay-member-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.overlay-points {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.overlay-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.overlay-level {
  display: inline-block;
  background: rgba(196, 151, 58, 0.18);
  color: var(--ivory);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(196,151,58,0.45);
}
.overlay-code {
  font-family: 'Courier New', monospace;
  font-size: 7.5px;
  color: rgba(196,151,58,0.88);
  letter-spacing: 0.06em;
}

/* ── STEP INDICATOR ──────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
}
.step-dot-wrap {
  display: flex;
  align-items: center;
}
.step-dot {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--muted);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.step-dot.active { background: var(--foreground); border-color: var(--foreground); color: var(--ivory); }
.step-dot.done { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.step-line {
  width: 4rem; height: 2px;
  background: var(--border);
  transition: background 0.2s;
}
.step-line.done { background: var(--accent); }
.step-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 0.4rem;
}
.step-dot.active + * .step-label, .step-dot.active ~ .step-label { color: var(--foreground); }

.step-panel { display: none; }
.step-panel.active { display: block; }

/* ── STRIPE PAYMENT FORM ────────────────────────────────── */
.stripe-form {
  background: var(--card);
  border: 1px solid rgba(196,151,58,0.3);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.stripe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.stripe-logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
}
.stripe-secure {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted-fg);
}
.stripe-order-summary {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.stripe-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.stripe-order-row + .stripe-order-row {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.stripe-order-total {
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
}
.stripe-input {
  width: 100%;
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s;
  font-family: 'Inter', sans-serif;
}
.stripe-input:focus { border-color: var(--accent); }
.stripe-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.stripe-footer-note {
  font-size: 0.72rem;
  color: var(--muted-fg);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.6;
}
.stripe-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--muted-fg);
  margin-top: 0.75rem;
}

/* ── TIER OPTION CARDS ──────────────────────────────────── */
.tier-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--background);
  position: relative;
}
.tier-option:hover { border-color: var(--accent); }
.tier-option.selected {
  border-color: var(--accent);
  background: rgba(196,151,58,0.05);
}
.tier-option.selected::after {
  content: '✓';
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.tier-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1;
}
.tier-price sup { font-size: 1rem; font-weight: 600; vertical-align: super; }
.tier-price sub { font-size: 0.75rem; font-weight: 400; font-family: 'Inter', sans-serif; color: var(--muted-fg); }
.tier-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(196,151,58,0.15);
  color: var(--accent);
  border: 1px solid rgba(196,151,58,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.25rem;
}

/* ── ARTICLE PAGE ───────────────────────────────────────── */
.article-header { padding: 5rem 0 3rem; background: var(--foreground); }
.article-banner-placeholder { height: 360px; position: relative; overflow: hidden; }
.article-body-wrap { max-width: 720px; margin: 0 auto; padding: 3rem 0; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1.25rem; color: var(--muted-fg); line-height: 1.8; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--card);
  font-style: italic;
  color: var(--foreground);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-inline-img {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.article-gate {
  position: relative;
  overflow: hidden;
}
.article-gate-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(245,241,232,0) 0%, rgba(245,241,232,1) 100%);
  pointer-events: none;
}
.article-gate-card {
  background: var(--card);
  border: 1px solid rgba(196,151,58,0.35);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.reactions-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
  flex-wrap: wrap;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.875rem;
  color: var(--muted-fg);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.reaction-btn:hover { border-color: var(--accent); color: var(--foreground); }
.reaction-btn.reacted { border-color: var(--accent); background: rgba(196,151,58,0.1); color: var(--foreground); }
.comment-thread { margin-top: 2.5rem; }
.comment-item {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212,191,149,0.35);
}
.comment-item:last-child { border-bottom: none; }
.comment-body { flex: 1; }
.comment-author { font-size: 0.82rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.25rem; }
.comment-date { font-size: 0.72rem; color: var(--muted-fg); margin-left: 0.5rem; font-weight: 400; }
.comment-text { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
.comment-reply-btn { font-size: 0.72rem; color: var(--accent); margin-top: 0.35rem; cursor: pointer; font-weight: 600; }

/* ── SUCCESS / CONFIRMATION ──────────────────────────────── */
.success-wrap { text-align: center; padding: 2rem 0; }
.success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(196,151,58,0.1);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}
@keyframes cardReveal {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.card-reveal { animation: cardReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3  { grid-template-columns: repeat(2,1fr); }
  .grid-4  { grid-template-columns: repeat(2,1fr); }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col-sidebar { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 640px) {
  .grid-3  { grid-template-columns: 1fr; }
  .grid-2  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { align-items: center; }
  .footer-right { text-align: center; }
  .hero-dark { padding: 4rem 0 3rem; }
  .nav-inner { padding: 0.9rem 1rem; }
  .container { padding: 0 1rem; }
}
