/* ════════════════════════════════════════════════
   ICT Trading Insights — Curation Site
   Design System & Styles
   ════════════════════════════════════════════════ */

/* ── IMPORTS ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

/* ── TOKENS ── */
:root {
  --bg-primary: #050506;
  --bg-secondary: #0a0a0c;
  --bg-surface: #0f0f12;
  --bg-surface-2: #141418;
  --bg-surface-3: #1a1a1f;
  --bg-glass: rgba(15, 15, 18, 0.72);
  --bg-glass-2: rgba(20, 20, 24, 0.65);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(245, 158, 11, 0.3);

  --gold: #f59e0b;
  --gold-dim: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --purple: #8b5cf6;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --green: #22c55e;
  --sky: #38bdf8;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --text-dim: #3f3f46;

  --nav-bg: rgba(5, 5, 6, 0.85);
  --nav-bg-strong: rgba(5, 5, 6, 0.95);
  --mobile-menu-bg: rgba(5, 5, 6, 0.97);
  --card-glow-1: rgba(255, 255, 255, 0.06);
  --card-glow-2: rgba(255, 255, 255, 0.02);
  --shadow-soft: rgba(0, 0, 0, 0.24);

  --coin-btc: #f97316;
  --coin-eth: #89b4e8;
  --coin-sol: #b89ee8;
  --coin-xrp: #7ecfcf;

  --theme-ict: var(--gold);
  --theme-wyckoff: var(--blue);
  --theme-indicator: var(--purple);
  --theme-risk: var(--green);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --font-sans: 'Space Grotesk', 'Noto Sans KR', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease);
}

html[data-theme="light"] {
  --bg-primary: #f6efe6;
  --bg-secondary: #fdf8f1;
  --bg-surface: #fffaf4;
  --bg-surface-2: #f4eadc;
  --bg-surface-3: #eadbc7;
  --bg-glass: rgba(255, 250, 244, 0.78);
  --bg-glass-2: rgba(244, 234, 220, 0.76);

  --border: rgba(126, 82, 36, 0.12);
  --border-hover: rgba(126, 82, 36, 0.2);
  --border-accent: rgba(199, 119, 0, 0.28);

  --gold: #c77700;
  --gold-dim: #964f00;
  --gold-glow: rgba(199, 119, 0, 0.12);
  --blue: #2563eb;
  --cyan: #0891b2;
  --purple: #7c3aed;
  --orange: #ea580c;
  --red: #dc2626;
  --pink: #db2777;
  --green: #16a34a;
  --sky: #0284c7;

  --text-primary: #21160f;
  --text-secondary: #5e4d40;
  --text-muted: #8a7361;
  --text-dim: #b29d8d;

  --nav-bg: rgba(246, 239, 230, 0.88);
  --nav-bg-strong: rgba(246, 239, 230, 0.96);
  --mobile-menu-bg: rgba(253, 248, 241, 0.98);
  --card-glow-1: rgba(199, 119, 0, 0.08);
  --card-glow-2: rgba(255, 255, 255, 0.52);
  --shadow-soft: rgba(135, 88, 35, 0.12);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-link.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-color: var(--border-accent);
}

.nav-x-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.nav-x-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-3);
  transform: translateY(-1px);
}

.nav-x-btn svg {
  width: 14px;
  height: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0.95rem;
}

.theme-toggle-label {
  white-space: nowrap;
}

.mobile-menu-theme {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.mobile-menu-theme .theme-toggle {
  width: 100%;
  justify-content: center;
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 130px 0 56px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.hero-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: border-color var(--transition);
}

.hero-stat-card:hover {
  border-color: var(--border-hover);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 120px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease) both;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
  word-break: keep-all;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero-title .gradient {
  background: linear-gradient(135deg, var(--gold), #fbbf24, var(--gold-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  border: none;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════ */
.stats-bar {
  padding: 0 0 60px;
  animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 24px;
  text-align: center;
  transition: background var(--transition);
}

.stat-card:hover {
  background: var(--bg-surface);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-value.gold { color: var(--gold); }
.stat-value.green { color: var(--green); }
.stat-value.blue { color: var(--blue); }
.stat-value.purple { color: var(--purple); }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════════════════
   SECTION HEADER
   ════════════════════════════════════════════════ */
.section {
  padding: 44px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ════════════════════════════════════════════════
   FEATURED POSTS
   ════════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.featured-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.featured-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.featured-card:hover::before { opacity: 1; }

.featured-num {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.featured-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.featured-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.featured-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag.gold { color: var(--gold); background: var(--gold-glow); border-color: var(--border-accent); }

/* Badge Styles */
.tier-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tier-badge.free {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tier-badge.paid {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.status-badge.published {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.upcoming {
  background: rgba(82, 82, 91, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

.filter-btn.active {
  color: var(--gold);
  border-color: var(--border-accent);
  background: var(--gold-glow);
}

.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  transition: all var(--transition);
}

.filter-search::placeholder {
  color: var(--text-dim);
}

.filter-search:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ════════════════════════════════════════════════
   TIMELINE / ARTICLES GRID
   ════════════════════════════════════════════════ */
.part-group {
  margin-bottom: 48px;
}

.part-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.part-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
}

.part-info {
  flex: 1;
}

.part-name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.part-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ════════════════════════════════════════════════
   CATEGORIES GRID (Studio Landing)
   ════════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.levelup-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .levelup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .levelup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 236px;
}

.category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.32);
}

/* 준비 중 카드 */
.category-card.upcoming {
  opacity: 0.65;
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cat-icon {
  font-size: 22px;
}

.cat-name {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cat-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  gap: 8px;
}

.cat-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-count.upcoming {
  color: var(--text-dim);
}

.cat-count .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.cat-arrow {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition);
}

.category-card:hover .cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ════════════════════════════════════════════════
   ARTICLE CARD
   ════════════════════════════════════════════════ */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
  overflow: hidden;
}

.article-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.article-card:hover::after { opacity: 1; }

.article-card.has-link { cursor: pointer; }

.article-card[data-part="1"]::after { background: rgba(245, 158, 11, 0.04); }
.article-card[data-part="2"]::after { background: rgba(59, 130, 246, 0.04); }
.article-card[data-part="3"]::after { background: rgba(6, 182, 212, 0.04); }
.article-card[data-part="4"]::after { background: rgba(139, 92, 246, 0.04); }
.article-card[data-part="5"]::after { background: rgba(249, 115, 22, 0.04); }
.article-card[data-part="6"]::after { background: rgba(239, 68, 68, 0.04); }
.article-card[data-part="7"]::after { background: rgba(236, 72, 153, 0.04); }
.article-card[data-part="8"]::after { background: rgba(34, 197, 94, 0.04); }

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.article-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.article-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card-summary {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.article-card-part {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

.article-card-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}

.article-card:hover .article-card-action { gap: 8px; }

.article-card-action.upcoming {
  color: var(--text-dim);
}

.read-here-btn {
  color: var(--text-muted) !important;
  font-size: 0.7rem !important;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface-2);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  z-index: 2;
}

.read-here-btn:hover {
  color: var(--gold) !important;
  border-color: var(--border-accent);
  background: var(--gold-glow);
}

.article-card-action svg {
  width: 12px;
  height: 12px;
}

/* X Post embed inside card */
.x-embed-container {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.x-embed-container .twitter-tweet {
  margin: 0 !important;
}

/* ════════════════════════════════════════════════
   X FEED SECTION
   ════════════════════════════════════════════════ */
.x-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.x-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

.x-post-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.x-post-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
}

.x-post-placeholder svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.x-post-placeholder p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   ROADMAP / ABOUT
   ════════════════════════════════════════════════ */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.roadmap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 2px;
}

.roadmap-card[data-part="1"]::before { background: var(--gold); }
.roadmap-card[data-part="2"]::before { background: var(--blue); }
.roadmap-card[data-part="3"]::before { background: var(--cyan); }
.roadmap-card[data-part="4"]::before { background: var(--purple); }
.roadmap-card[data-part="5"]::before { background: var(--orange); }
.roadmap-card[data-part="6"]::before { background: var(--red); }
.roadmap-card[data-part="7"]::before { background: var(--pink); }
.roadmap-card[data-part="8"]::before { background: var(--green); }

.roadmap-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.roadmap-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.roadmap-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.roadmap-count-info {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.roadmap-progress {
  margin-top: 14px;
  height: 3px;
  background: var(--bg-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.roadmap-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s var(--ease);
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.footer-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--gold); }

/* ════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* .reveal.visible overrides hover transforms due to cascade order — restore them */
.category-card.reveal:hover { transform: translateY(-3px); }
.featured-card.reveal:hover { transform: translateY(-4px); }
.article-card.reveal:hover  { transform: translateY(-3px); }

/* ════════════════════════════════════════════════
   NAV HAMBURGER & MOBILE MENU
   ════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.mobile-menu-x {
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-x-btn { display: none; }
  .nav-actions { gap: 8px; }
  .theme-toggle { padding: 8px 10px; }
  .theme-toggle-label { display: none; }

  .hero { padding: 110px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .hero-title { font-size: 2rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .featured-grid { grid-template-columns: 1fr; }

  .articles-grid { grid-template-columns: 1fr; }

  .x-feed-grid { grid-template-columns: 1fr; }

  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-search { min-width: auto; }

  .section-header { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.7rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    justify-content: center;
    min-height: 48px;
  }
}

/* ════════════════════════════════════════════════
   SCROLL ROW WRAP — swipe indicator
   ════════════════════════════════════════════════ */
.scroll-row-wrap {
  position: relative;
}

.scroll-dots {
  display: none;
}

.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-hover, #444);
  transition: all 0.25s;
  flex-shrink: 0;
}

.scroll-dot.active {
  background: var(--gold, #f59e0b);
  width: 16px;
  border-radius: 3px;
}

@media (max-width: 640px) {
  /* right-side fade to hint at more content */
  .scroll-row-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: calc(100% - 28px); /* above dots */
    background: linear-gradient(to right, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 2;
  }

  .scroll-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    height: 16px;
  }
}

/* ════════════════════════════════════════════════
   CATEGORIES & LEVELUP — MOBILE COMPACT HORIZONTAL ROW
   ════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .levelup-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .levelup-grid::-webkit-scrollbar { display: none; }
}

@media (max-width: 640px) {
  .categories-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
    /* hide scrollbar */
    scrollbar-width: none;
  }
  .categories-grid::-webkit-scrollbar { display: none; }

  .category-card {
    min-width: 130px;
    max-width: 130px;
    min-height: unset;
    padding: 16px 14px;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .cat-icon-wrap {
    width: 36px; height: 36px;
    margin-bottom: 10px;
  }
  .cat-icon { font-size: 18px; }
  .cat-name { font-size: 0.82rem; margin-bottom: 0; }
  .cat-desc { display: none; }
  .cat-footer {
    padding-top: 10px;
    margin-top: 10px;
  }
  .cat-count { font-size: 0.65rem; }
  .cat-arrow { display: none; }
}

/* ════════════════════════════════════════════════
   BTC 시황 SECTION (index.html)
   ════════════════════════════════════════════════ */
.btc-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.btc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .btc-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .btc-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
    margin-top: 16px;
  }
  .btc-grid::-webkit-scrollbar { display: none; }

  .btc-card {
    min-width: 130px;
    max-width: 130px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 14px 12px;
  }

  .btc-card-price { font-size: 0.95rem; }
  .btc-card-preview { display: none; }
}

.btc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--coin-accent, var(--orange));
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition);
}

.btc-card:hover {
  border-color: var(--coin-accent, var(--orange));
  background: var(--bg-surface-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btc-card-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--coin-accent, var(--orange));
  font-family: var(--font-mono);
}

.btc-card-date {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.btc-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--coin-accent, var(--orange));
  line-height: 1;
}

.btc-card-preview {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.btc-card-arrow {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0;
  transition: opacity var(--transition);
  align-self: flex-end;
}

.btc-card:hover .btc-card-arrow { opacity: 1; }

.btc-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  text-decoration: none;
  transition: all var(--transition);
}

.btc-view-all:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--orange);
}

.coin-row {
  margin-bottom: 32px;
}
.coin-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.coin-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coin-accent, var(--orange));
}
.coin-view-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coin-accent, var(--orange));
  text-decoration: none;
}
.coin-view-all:hover { opacity: 0.75; }

/* ════════════════════════════════════════════════
   FORECAST SECTION (index.html)
   ════════════════════════════════════════════════ */
.forecast-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 6px;
}

.forecast-section-copy {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: -6px;
  margin-bottom: 14px;
  max-width: 560px;
}

.forecast-disclaimer {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.forecast-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 18px;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.forecast-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, var(--card-glow-1), transparent 30%),
    linear-gradient(180deg, var(--card-glow-2), rgba(255,255,255,0)),
    var(--bg-surface);
  min-height: 280px;
  transition: all var(--transition);
}

.forecast-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--forecast-accent, var(--gold));
  pointer-events: none;
  opacity: 0.18;
}

.forecast-card:hover {
  border-color: var(--forecast-accent, var(--gold));
  transform: translateY(-3px);
  box-shadow: 0 14px 32px var(--shadow-soft);
}

.forecast-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.forecast-symbol {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--forecast-accent, var(--gold));
  margin-bottom: 4px;
}

.forecast-name {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.forecast-badge {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 6px 10px;
  white-space: nowrap;
}

.forecast-badge.up {
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
}

.forecast-badge.down {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
}

.forecast-price-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.forecast-price-block {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  padding: 14px;
}

.forecast-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.forecast-price-block strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.forecast-change {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.forecast-change.up {
  color: var(--green);
}

.forecast-change.down {
  color: var(--red);
}

.forecast-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.forecast-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forecast-levels span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  padding: 6px 10px;
  background: var(--bg-surface-2);
}

.forecast-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.forecast-point {
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  padding: 10px;
}

.forecast-point span {
  display: block;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.forecast-point strong {
  font-size: 0.84rem;
  letter-spacing: -0.02em;
}

.forecast-empty {
  width: 100%;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  background: var(--bg-surface);
}

.forecast-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.forecast-empty p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .forecast-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .forecast-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .forecast-grid::-webkit-scrollbar {
    display: none;
  }

  .forecast-card,
  .forecast-empty {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .forecast-card {
    min-height: 268px;
    padding: 16px;
  }

  .forecast-price-strip {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════
   SKELETON LOADING
   ════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-2) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════
   BACK TO TOP
   ════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--gold);
}

/* ════════════════════════════════════════════════
   THREADS NAV BUTTON
   ════════════════════════════════════════════════ */
.nav-threads-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-threads-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-3);
  transform: translateY(-1px);
}

.nav-threads-btn svg {
  width: 14px;
  height: 14px;
}

/* ════════════════════════════════════════════════
   REFERRAL SECTION
   ════════════════════════════════════════════════ */
.section-referrals {
  padding-top: 0;
}

.referral-grid {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.referral-card {
  flex: 0 0 auto;
  min-width: 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
  overflow: hidden;
}

.referral-card:hover {
  border-color: var(--brand, var(--border-hover));
  background: var(--bg-surface-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.referral-logo-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.referral-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.referral-logo-rounded {
  border-radius: 6px;
}

.referral-card .referral-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.referral-cta {
  display: none;
}

.referral-card:hover .referral-cta {
  color: var(--brand, var(--gold));
}
