/* ============================================================
   FX配信Lab - Global Stylesheet
   黒基調 + ゴールドアクセント
   ============================================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* ----- CSS Variables ----- */
:root {
  --bg:        #0a0a0a;
  --bg2:       #141414;
  --bg3:       #1e1e1e;
  --bg4:       #282828;
  --accent:    #f0a500;
  --accent-dk: #c98b00;
  --text:      #e5e5e5;
  --muted:     #888;
  --border:    #2a2a2a;
  --white:     #ffffff;
  --danger:    #e53e3e;
  --success:   #38a169;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --header-h:  64px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
ul, ol { padding-left: 1.5rem; }

/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-wrap {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,10,10,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  color: var(--muted);
  font-size: .85rem;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: var(--bg3); }

.header-cta {
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.header-cta:hover { background: var(--accent-dk); transform: translateY(-1px); }

/* hamburger (mobile) */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: all .3s;
}

/* ============================================================
   HERO / FEATURED
   ============================================================ */
.hero {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg2);
}
.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  opacity: .7;
}
.hero-placeholder {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-placeholder-text {
  text-align: center;
  font-size: 4rem;
  opacity: .15;
}
.hero-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.hero-cat {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
  max-width: 720px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 24px;
}
.section-header h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
}
.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   ARTICLE GRID (3 column BuzzFeed style)
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(240,165,0,.15);
}
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; }
.card-cat {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--muted);
}

/* ============================================================
   LINE CTA BANNER
   ============================================================ */
.line-cta {
  background: linear-gradient(135deg, #06c755 0%, #05a845 100%);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}
.line-cta h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.line-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; font-size: 1rem; }
.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #06c755;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}
.line-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); color: #06c755; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}
.article-main {}
.article-eyecatch {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.article-cat-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.article-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
/* Article Body Typography */
.article-body { font-size: 1.05rem; line-height: 1.9; }
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  margin: 40px 0 16px;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg2);
  border-radius: 0 6px 6px 0;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol { margin-bottom: 1.2rem; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg2);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.article-body th { background: var(--bg3); color: var(--accent); padding: 10px 16px; text-align: left; }
.article-body td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.article-body tr:hover td { background: var(--bg2); }
.article-body code {
  background: var(--bg3);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: 'Courier New', monospace;
}
.article-body pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

/* Sidebar */
.article-sidebar {}
.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* LINE誘導バナー */
.inline-line-cta {
  background: linear-gradient(135deg, #06c755, #05a845);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 40px 0;
}
.inline-line-cta p { color: #fff; font-weight: 700; margin-bottom: 12px; }

/* ============================================================
   SALES / LP PAGE
   ============================================================ */
.lp-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, #0a0a0a 0%, #0f1a2e 100%);
}
.lp-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.lp-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 20px;
}
.lp-hero h1 .accent { color: var(--accent); }
.lp-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.lp-price-box {
  display: inline-block;
  background: var(--bg2);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 24px 48px;
  margin: 32px 0;
}
.lp-price-label { font-size: .9rem; color: var(--muted); }
.lp-price-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.lp-price-num small { font-size: 1.2rem; }

/* Benefit list */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.benefit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.benefit-icon { font-size: 2.5rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.benefit-card p { font-size: .85rem; color: var(--muted); }

/* Number stats */
.stat-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 48px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 20px 24px;
  background: var(--bg2);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 1.4rem; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  color: var(--muted);
  font-size: .95rem;
}
.faq-item.open .faq-a { max-height: 400px; padding: 16px 24px 20px; }

/* Payment buttons */
.pay-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}
.btn-stripe {
  display: inline-flex; align-items: center; gap: 10px;
  background: #635bff; color: #fff;
  font-weight: 700; font-size: 1.1rem;
  padding: 16px 40px; border-radius: 8px;
  transition: opacity .2s, transform .1s;
}
.btn-stripe:hover { opacity: .9; transform: translateY(-2px); color: #fff; }
.btn-airpay {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg3); color: var(--white);
  border: 1px solid var(--border);
  font-weight: 700; font-size: 1rem;
  padding: 16px 32px; border-radius: 8px;
  transition: border-color .2s;
}
.btn-airpay:hover { border-color: var(--accent); color: var(--white); }

/* ============================================================
   MEMBER AREA
   ============================================================ */
.member-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h));
}
.member-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.member-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s, background .2s;
}
.member-sidebar-nav a:hover,
.member-sidebar-nav a.active {
  color: var(--accent);
  background: rgba(240,165,0,.07);
}
.member-sidebar-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--border);
  padding: 16px 24px 6px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.member-content { padding: 40px; }
.member-content h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.member-content .subtitle { color: var(--muted); margin-bottom: 32px; }

/* Progress bar */
.lesson-progress {
  background: var(--bg3);
  border-radius: 50px;
  height: 6px;
  margin: 8px 0 24px;
}
.lesson-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 50px;
  transition: width 1s ease;
}

/* Lesson cards */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.lesson-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s;
}
.lesson-card:hover { border-color: var(--accent); }
.lesson-card.locked { opacity: .5; cursor: not-allowed; }
.lesson-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.lesson-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.lesson-card p { font-size: .85rem; color: var(--muted); }
.lesson-tag {
  display: inline-block;
  background: rgba(240,165,0,.15);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 12px;
}

/* Lesson content body */
.lesson-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 860px;
}
.lesson-body h1 { font-size: 2rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.lesson-body .lesson-subtitle { color: var(--muted); margin-bottom: 40px; font-size: .95rem; }
.lesson-body h2 {
  font-size: 1.3rem; font-weight: 900; color: var(--white);
  margin: 40px 0 16px;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg3);
  border-radius: 0 6px 6px 0;
}
.lesson-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 28px 0 12px; }
.lesson-body h4 { font-size: 1rem; font-weight: 700; color: var(--accent); margin: 20px 0 10px; }
.lesson-body p { margin-bottom: 1.1rem; }
.lesson-body ul, .lesson-body ol { margin-bottom: 1.1rem; }
.lesson-body li { margin-bottom: 6px; }
.lesson-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg3);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-style: italic;
}
.lesson-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9rem; }
.lesson-body th { background: var(--bg3); color: var(--accent); padding: 10px 14px; text-align: left; font-size: .85rem; }
.lesson-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.lesson-body tr:hover td { background: rgba(255,255,255,.02); }
.lesson-body code {
  background: var(--bg3); color: var(--accent);
  padding: 2px 6px; border-radius: 4px;
  font-size: .88em; font-family: 'Courier New', monospace;
}
.lesson-body pre {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; overflow-x: auto; margin: 20px 0;
  font-size: .88rem;
}

/* Flow chart in lesson */
.flow-chart {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0;
  font-family: 'Courier New', monospace;
}
.flow-step {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 10px 20px;
  margin: 4px 0;
  color: var(--white);
  font-size: .95rem;
  font-family: 'Noto Sans JP', sans-serif;
}
.flow-arrow { text-align: center; color: var(--accent); font-size: 1.2rem; padding: 4px 0; }

.revenue-box {
  background: linear-gradient(135deg, rgba(240,165,0,.1), rgba(240,165,0,.05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.revenue-box strong { color: var(--accent); }
.revenue-big { font-size: 1.6rem; font-weight: 900; color: var(--accent); }

/* ============================================================
   LOGIN / FORMS
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 8px; font-size: 1.5rem; font-weight: 900; color: var(--white); }
.auth-logo span { color: var(--accent); }
.auth-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #000; width: 100%; padding: 14px; }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.alert {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: .9rem;
}
.alert-error { background: rgba(229,62,62,.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: rgba(56,161,105,.1); border: 1px solid var(--success); color: var(--success); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--header-h));
}
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: var(--muted); font-size: .9rem;
  transition: color .2s, background .2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  color: var(--accent); background: rgba(240,165,0,.07);
}
.admin-content { padding: 32px; }
.admin-content h1 { font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: 24px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.stat-card .label { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-card .sub { font-size: .75rem; color: var(--muted); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { background: var(--bg3); color: var(--muted); padding: 10px 16px; text-align: left; font-weight: 700; font-size: .8rem; letter-spacing: .05em; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--bg2); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .75rem; font-weight: 700;
}
.badge-paid { background: rgba(56,161,105,.15); color: var(--success); }
.badge-pending { background: rgba(229,62,62,.15); color: var(--danger); }
.badge-admin { background: rgba(240,165,0,.15); color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { font-size: 1.2rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.footer-nav h4 { font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-nav a { display: block; color: var(--muted); font-size: .85rem; padding: 4px 0; }
.footer-nav a:hover { color: var(--accent); }
.footer-cta {
  background: linear-gradient(135deg, rgba(240,165,0,.1), rgba(240,165,0,.05));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}
.footer-cta h4 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.footer-cta p { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.tag {
  display: inline-block; background: var(--bg3); color: var(--muted);
  font-size: .75rem; padding: 3px 10px; border-radius: 20px; margin: 2px;
}

/* Loading spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--bg3); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .member-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .main-nav { display: none; }
  .hamburger { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .member-layout { grid-template-columns: 1fr; }
  .member-sidebar { position: static; height: auto; }
  .admin-layout { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 1.8rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.4rem; }
  .lesson-body { padding: 24px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .pay-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .auth-box { padding: 32px 20px; }
}
