/* ═══════════════════════════════════════════════
   WE Cafe — Will's English Cafe | style.css
   3 Themes: light / green / dark
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* ─── CSS Variables ─── */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --header-h: 70px;
}

/* ─── LIGHT MODE (default) ─── */
body[data-theme="light"], body {
  --bg:           #f0f5ff;
  --bg-card:      #ffffff;
  --bg-nav:       rgba(255,255,255,0.96);
  --bg-overlay:   rgba(255,255,255,0.94);
  --primary:      #1558d6;
  --primary-light:#2d6ef0;
  --accent:       #f59e0b;
  --accent-hover: #d97706;
  --text:         #111827;
  --text-muted:   #4b5878;
  --text-light:   #8fa0c0;
  --border:       #dde6f8;
  --border-focus: #1558d6;
  --badge-bg:     #e8f0fe;
  --badge-text:   #1558d6;
  --hero-gradient: linear-gradient(135deg, #0f3a8c 0%, #1558d6 50%, #2d80f0 100%);
  --card-hover:   #f0f5ff;
  --scrollbar-thumb: #1558d6;
}

/* ─── GREEN MODE (눈보호 · 아주 연한 밝은 그린) ─── */
body[data-theme="green"] {
  --bg:           #f6fff6;
  --bg-card:      #fafffa;
  --bg-nav:       rgba(246,255,246,0.96);
  --bg-overlay:   rgba(246,255,246,0.94);
  --primary:      #2e7d52;
  --primary-light:#3a9a68;
  --accent:       #27ae60;
  --accent-hover: #1e8449;
  --text:         #1a2e22;
  --text-muted:   #4a7060;
  --text-light:   #88aA98;
  --border:       #d4edda;
  --border-focus: #2e7d52;
  --badge-bg:     #eafaf1;
  --badge-text:   #1e6040;
  --hero-gradient: linear-gradient(135deg, #145a32 0%, #1e8449 55%, #27ae60 100%);
  --card-hover:   #f0faf3;
  --scrollbar-thumb: #2e7d52;
}

/* ─── DARK MODE ─── */
body[data-theme="dark"] {
  --bg:           #080c14;
  --bg-card:      #0f1622;
  --bg-nav:       rgba(8,12,20,0.95);
  --bg-overlay:   rgba(8,12,20,0.92);
  --primary:      #4da6ff;
  --primary-light:#6bb8ff;
  --accent:       #ffd166;
  --accent-hover: #ffbe33;
  --text:         #e8eef8;
  --text-muted:   #8899bb;
  --text-light:   #556688;
  --border:       #1e2d44;
  --border-focus: #4da6ff;
  --badge-bg:     #1a2a44;
  --badge-text:   #4da6ff;
  --hero-gradient: linear-gradient(135deg, #020508 0%, #0a1628 50%, #0d1f3c 100%);
  --card-hover:   #131d2e;
  --scrollbar-thumb: #4da6ff;
}

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

html {
  scroll-behavior: auto;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ─── Stars Canvas (dark mode) ─── */
#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s;
}
body[data-theme="dark"] #stars-canvas { opacity: 1; }

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 16px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--hero-gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  font-family: var(--font-body);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--badge-bg);
}
.nav-link .arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
  padding: 6px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all var(--transition);
}
.dropdown a:hover {
  color: var(--primary);
  background: var(--badge-bg);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}
.header-right .nav-link {
  font-size: 0.78rem;
  padding: 5px 9px;
}

/* Single Cycle Theme Button */
.theme-cycle-btn {
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}
.theme-cycle-btn:hover {
  border-color: var(--primary);
  background: var(--badge-bg);
  transform: rotate(20deg) scale(1.08);
}

/* Mobile theme cycle button */
.mobile-theme-cycle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  background: var(--badge-bg);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-theme-cycle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Buy nav button */
.buy-nav-btn {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  transition: all var(--transition);
}
.buy-nav-btn:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* QR floating widget */
.qr-float {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 800;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}
.qr-float:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.qr-float-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qr-float-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.qr-float-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.qr-float-dl {
  font-size: 0.68rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.qr-float-dl:hover { color: var(--primary-light); text-decoration: underline; }
@media (max-width: 768px) { .qr-float { display: none; } }

/* Page body offset for fixed header */
.page-body { padding-top: var(--header-h); }

.hero-title-line1 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.hero-title-line2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 32px rgba(0,0,0,0.18);
  margin-bottom: 24px;
}

/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  background: var(--hero-gradient);
  min-height: 48vh;
  padding: 56px 0 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-desc {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* Hero decoration */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42%, 480px);
  z-index: 1;
}
.hero-card-stack {
  position: relative;
  height: 360px;
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.hero-card:nth-child(1) { width: 200px; top: 0; right: 20px; transform: rotate(3deg); }
.hero-card:nth-child(2) { width: 220px; top: 80px; right: 60px; transform: rotate(-2deg); }
.hero-card:nth-child(3) { width: 180px; bottom: 40px; right: 10px; transform: rotate(1deg); }

/* ─── SEARCH BAR ─── */
.search-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  transition: background var(--transition);
}
.search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-input-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--border-focus); }
.search-input::placeholder { color: var(--text-light); }

.grade-select {
  padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899bb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 130px;
  transition: border-color var(--transition);
}
.grade-select:focus { border-color: var(--border-focus); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,68,128,0.25);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,68,128,0.3);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff;
}
.btn-ghost {
  background: var(--badge-bg);
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: 8px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ─── CARDS ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.5);
}
.product-card-body { padding: 16px; }
.product-card-category {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.product-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ─── ACCORDION (Product Detail) ─── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  margin-bottom: 12px;
}
.accordion-item.open { border-color: var(--primary); }
.accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--bg-card);
  transition: background var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--card-hover); }
.accordion-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.accordion-info { flex: 1; }
.accordion-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.accordion-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.accordion-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.accordion-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.accordion-item.open .accordion-body { max-height: 800px; }
.accordion-content {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.sample-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 12px 0;
  max-height: 200px;
  overflow-y: auto;
}

/* ─── BADGES / TAGS ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--badge-bg);
  color: var(--badge-text);
}
.badge-new { background: #fff3e0; color: #e65100; }
.badge-hot { background: #fce4ec; color: #c62828; }
.badge-free { background: #e8f5e9; color: #2e7d32; }

.hashtag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  background: var(--badge-bg);
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.hashtag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  background: var(--hero-gradient);
  padding: 56px 0 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.8rem,4vw,2.6rem); }
.page-header p { opacity: 0.85; font-size: 0.95rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }

/* ─── PROGRAMS PAGE ─── */
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.program-card-header {
  background: var(--hero-gradient);
  padding: 32px 20px;
  text-align: center;
  position: relative;
}
.program-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}
.program-card-header h3 { color: #fff; }
.program-lock {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.program-card-body { padding: 20px; }

/* ─── NOTICE BOARD ─── */
.notice-list { display: flex; flex-direction: column; gap: 2px; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.notice-item:hover {
  background: var(--card-hover);
  border-color: var(--border);
}
.notice-badge { flex-shrink: 0; }
.notice-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.notice-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.notice-pin { color: var(--accent); font-weight: 600; }

/* ─── RESOURCE TABLE ─── */
.resource-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.resource-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.resource-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background var(--transition);
}
.resource-table tr:hover td { background: var(--card-hover); }
.resource-table tr:last-child td { border-bottom: none; }

/* ─── MODAL / POPUP ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.modal-close {
  border: none;
  background: var(--badge-bg);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--primary); color: #fff; }
.modal-body { padding: 24px; }
.modal-tally { padding: 8px 24px 24px; }

/* ─── PASSWORD MODAL ─── */
.password-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--border-focus); }
.form-error {
  font-size: 0.78rem;
  color: #e53e3e;
  display: none;
}
.form-error.show { display: block; }

/* ─── QR CODE ─── */
.qr-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.qr-canvas { border-radius: 6px; }
.qr-info { display: flex; flex-direction: column; gap: 4px; }
.qr-label { font-size: 0.72rem; color: var(--text-muted); }
.qr-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }

/* ─── SCROLL TO TOP ─── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.8;
}
.footer-legal strong { color: var(--text-muted); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* ─── ADMIN PAGE ─── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-h));
}
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}
.admin-sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 10px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  margin-bottom: 2px;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: var(--badge-bg);
  color: var(--primary);
}
.admin-main { padding: 32px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* ─── TOAST NOTIFICATION ─── */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  animation: slideInRight 0.3s forwards;
}
.toast.success { border-left: 3px solid #48bb78; }
.toast.error { border-left: 3px solid #fc8181; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── 모바일 메뉴 기본 숨김 (데스크톱에서 안 보임) ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s;
  z-index: 999;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  margin-left: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .main-nav .nav-link { padding: 6px 8px; font-size: 0.78rem; }
  .header-right .nav-link { font-size: 0.73rem; padding: 5px 7px; }
}
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .main-nav, .header-right, .theme-cycle-btn { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu.open { max-height: 640px; }
  .mobile-menu a, .mobile-menu button {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text);
    border-radius: 8px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    cursor: pointer;
  }
  .mobile-menu a:hover { background: var(--badge-bg); }
  .card-grid, .card-grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 48px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-input-wrap { width: 100%; min-width: unset; }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* ─── Loading skeleton ─── */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--card-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Divider ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ─── Tally Iframe ─── */
.tally-iframe {
  width: 100%;
  border: none;
  min-height: 480px;
  border-radius: var(--radius);
}
