/* =====================================================
   調剤報酬 改定ナビ 2026
   Modern Monochrome × Cyan Accent Design System
   ===================================================== */

/* ===== CSS Custom Properties ===== */
:root {
  /* Core palette */
  --black:        #0A0A0A;
  --gray-950:     #111111;
  --gray-900:     #1A1A1A;
  --gray-800:     #262626;
  --gray-700:     #404040;
  --gray-600:     #525252;
  --gray-500:     #737373;
  --gray-400:     #A3A3A3;
  --gray-300:     #D4D4D4;
  --gray-200:     #E5E5E5;
  --gray-100:     #F5F5F5;
  --gray-50:      #FAFAFA;
  --white:        #FFFFFF;

  /* Accent — Electric Cyan */
  --accent:       #00D4FF;
  --accent-dim:   rgba(0,212,255,0.15);
  --accent-glow:  0 0 20px rgba(0,212,255,0.35);
  --accent-dark:  #00A8CC;

  /* Semantic */
  --bg:           var(--white);
  --bg-sub:       var(--gray-50);
  --bg-dark:      var(--gray-900);
  --text:         var(--gray-950);
  --text-sub:     var(--gray-500);
  --text-muted:   var(--gray-400);
  --border:       var(--gray-200);
  --border-dark:  var(--gray-700);

  /* Change type colors (kept minimal) */
  --c-new:        #22C55E;
  --c-del:        #EF4444;
  --c-pts:        #3B82F6;
  --c-req:        #F59E0B;
  --c-name:       #8B5CF6;
  --c-merge:      #6B7280;
  --c-warn:       #F97316;

  /* Spacing & Shape */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --duration:     0.18s;

  /* Header height */
  --header-h:     60px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI',
               'Meiryo UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; }
.container    { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width:  760px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Keyframes ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,212,255,0); }
}

.fade-in { animation: fade-up 0.28s var(--ease) both; }

/* ===== Spinner ===== */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
.loading {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 3rem 1rem;
  color: var(--text-sub); font-size: 14px;
}

/* ===================================================
   HEADER
=================================================== */
.app-header {
  background: var(--black);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--gray-800);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 1.5rem;
  max-width: 1100px; margin: 0 auto;
}

/* Logo */
.header-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.header-logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
  color: var(--black);
  flex-shrink: 0;
}
.header-logo-text {
  font-size: 14px; font-weight: 700;
  color: var(--white); line-height: 1.2;
}
.header-logo-year {
  font-size: 10px; color: var(--accent);
  font-weight: 600; letter-spacing: 0.04em;
}

/* Desktop nav */
.header-nav {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-link {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: var(--gray-800); text-decoration: none; }
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-link i { font-size: 12px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-btn {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  color: var(--gray-300); font-size: 13px;
  transition: all var(--duration) var(--ease);
}
.header-btn:hover { background: var(--gray-700); color: var(--white); }
.text-xs { font-size: 11px; font-weight: 700; color: var(--accent); }

/* ===================================================
   BOTTOM NAV (mobile)
=================================================== */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--black);
  border-top: 1px solid var(--gray-800);
  z-index: 200;
}
.bottom-nav-inner {
  display: flex;
  max-width: 600px; margin: 0 auto;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.2rem; padding: 0.55rem 0.25rem;
  text-decoration: none;
  font-size: 10px; font-weight: 600;
  color: var(--gray-500);
  transition: color var(--duration) var(--ease);
}
.bottom-nav-item i { font-size: 18px; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item:hover { color: var(--gray-300); text-decoration: none; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .bottom-nav { display: block; }
  .page { padding-bottom: 64px; }
}

/* ===================================================
   FOOTER
=================================================== */
.app-footer {
  background: var(--gray-950);
  border-top: 1px solid var(--gray-800);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: center;
  max-width: 800px; margin: 0 auto 1rem;
}
.footer-nav a {
  font-size: 12px; color: var(--gray-500);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.footer-nav a:hover { color: var(--gray-300); }
.app-footer > p {
  text-align: center; font-size: 11px;
  color: var(--gray-600); line-height: 1.8;
}

/* ===================================================
   HERO SECTION
=================================================== */
.hero {
  background: var(--black);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%,
    rgba(0,212,255,0.10) 0%,
    transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 780px; margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900; line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero > .hero-inner > p {
  font-size: 16px; color: var(--gray-400);
  margin-bottom: 2rem;
}

/* Search tags */
.search-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.25rem;
}
.search-tag {
  background: transparent;
  border: 1px solid var(--gray-700);
  color: var(--gray-400);
  font-size: 12px; font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}
.search-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===================================================
   SEARCH BAR (Hero)
=================================================== */
.search-wrap { position: relative; }
.search-bar {
  width: 100%;
  padding: 1rem 3rem 1rem 3.25rem;
  background: var(--gray-900);
  border: 2px solid var(--gray-700);
  border-radius: var(--radius-xl);
  font-size: 15px; color: var(--white);
  outline: none;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.search-bar:focus {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.search-bar::placeholder { color: var(--gray-600); }
.search-bar-icon {
  position: absolute; left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500); font-size: 15px;
  pointer-events: none;
}
.search-bar-clear {
  position: absolute; right: 0.85rem; top: 50%;
  transform: translateY(-50%);
  background: var(--gray-700); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--gray-300); font-size: 13px;
  transition: background var(--duration) var(--ease);
}
.search-bar-clear:hover { background: var(--gray-600); color: var(--white); }
.search-bar-clear.visible { display: flex; }

/* Inline search (non-hero) */
.search-bar-wrap { position: relative; }
.search-bar-inline {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px; color: var(--text);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}
.search-bar-inline:focus { border-color: var(--accent); }

/* Suggest dropdown */
.search-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300; display: none; overflow: hidden;
}
.search-suggest.visible { display: block; }
.suggest-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 14px; color: var(--gray-300);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.suggest-item:hover { background: var(--gray-800); color: var(--white); }
.suggest-item i { color: var(--gray-500); font-size: 12px; }

/* ===================================================
   SECTION HEADERS
=================================================== */
.section { margin-bottom: 3rem; padding-top: 2.5rem; }
.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem; gap: 1rem;
}
.section-title {
  font-size: 19px; font-weight: 800;
  color: var(--text); letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-title i { color: var(--accent); font-size: 16px; }
.section-subtitle { font-size: 13px; color: var(--text-sub); margin-top: 0.2rem; }
.see-all {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 13px; font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}
.see-all:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  text-decoration: none;
}

/* ===================================================
   QUICK ACTIONS
=================================================== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.quick-card {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 0.75rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: all var(--duration) var(--ease);
}
.quick-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--accent-glow);
  transform: translateY(-2px);
  text-decoration: none;
}
.quick-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.quick-card span {
  font-size: 13px; font-weight: 700;
  line-height: 1.4; color: var(--text);
}
.quick-card small {
  font-size: 11px; color: var(--text-sub);
  margin-top: -0.25rem;
}
@media (max-width: 640px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ===================================================
   CATEGORY CHIPS
=================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: 0.4rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: all var(--duration) var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ===================================================
   ITEM CARDS (grid)
=================================================== */
.cards-hscroll {
  display: flex; gap: 1rem;
  overflow-x: auto; padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cards-hscroll::-webkit-scrollbar { height: 4px; }
.cards-hscroll::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 2px; }
.cards-hscroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.item-card {
  flex-shrink: 0;
  width: 300px; /* for hscroll */
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: flex; flex-direction: column; gap: 0.6rem;
  scroll-snap-align: start;
}
.items-grid .item-card { width: auto; }
.item-card:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.item-card-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 0.5rem;
}
.item-card-meta { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.item-name {
  font-size: 14px; font-weight: 700;
  color: var(--text); line-height: 1.4;
}
.mt-1 { margin-top: 0.25rem; }
.item-summary {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-impact {
  display: flex; gap: 0.4rem; align-items: flex-start;
  font-size: 12px; color: var(--text-sub);
  background: var(--gray-50); border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
}
.item-impact i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.item-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: auto; padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.item-detail-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 12px; font-weight: 600;
  color: var(--gray-500); background: none; border: none;
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}
.item-detail-btn:hover { color: var(--accent); }

/* ===================================================
   ITEM LIST CARDS
=================================================== */
.items-list { display: flex; flex-direction: column; gap: 0.5rem; }
.item-list-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.item-list-card:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}
.item-list-info { flex: 1; min-width: 0; }
.item-list-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-list-summary {
  font-size: 12px; color: var(--text-sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-list-arrow {
  color: var(--gray-400); font-size: 12px; flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}
.item-list-card:hover .item-list-arrow { transform: translateX(3px); color: var(--accent); }

/* ===================================================
   BADGES
=================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap; flex-shrink: 0;
  border: 1px solid transparent;
}
.badge i { font-size: 9px; }

.badge-新設   { background: rgba(34,197,94,0.12);  color: var(--c-new); border-color: rgba(34,197,94,0.25); }
.badge-廃止   { background: rgba(239,68,68,0.10);  color: var(--c-del); border-color: rgba(239,68,68,0.22); }
.badge-点数変更 { background: rgba(59,130,246,0.10); color: var(--c-pts); border-color: rgba(59,130,246,0.22); }
.badge-要件変更 { background: rgba(245,158,11,0.10); color: var(--c-req); border-color: rgba(245,158,11,0.22); }
.badge-名称変更 { background: rgba(139,92,246,0.10); color: var(--c-name); border-color: rgba(139,92,246,0.22); }
.badge-統合   { background: rgba(107,114,128,0.10); color: var(--c-merge); border-color: rgba(107,114,128,0.22); }
.badge-一本化  { background: rgba(107,114,128,0.10); color: var(--c-merge); border-color: rgba(107,114,128,0.22); }
.badge-注意   { background: rgba(249,115,22,0.10);  color: var(--c-warn); border-color: rgba(249,115,22,0.22); }

/* Category label */
.category-label {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-xs);
  font-size: 10px; font-weight: 600;
  color: var(--gray-600);
}

/* Importance dots */
.importance { display: flex; gap: 2px; align-items: center; }
.importance-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.importance-dot.filled  { background: var(--accent); }
.importance-dot.empty   { background: var(--gray-200); }

/* Fav button */
.fav-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  color: var(--text-sub);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.fav-btn:hover { border-color: var(--gray-400); color: var(--text); }
.fav-btn.saved { border-color: var(--c-del); color: var(--c-del); background: rgba(239,68,68,0.06); }

/* ===================================================
   EMPTY STATE
=================================================== */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 4rem 1.5rem; gap: 0.75rem;
}
.empty-icon { font-size: 48px; opacity: 0.35; }
.empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.empty-sub { font-size: 13px; color: var(--text-sub); }

/* ===================================================
   BACK LINK
=================================================== */
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 13px; font-weight: 600;
  color: var(--text-sub); text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  transition: all var(--duration) var(--ease);
}
.back-link:hover { border-color: var(--gray-400); color: var(--text); text-decoration: none; }

/* ===================================================
   DETAIL PAGE
=================================================== */
.detail-title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 900; color: var(--text);
  line-height: 1.3; letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.detail-meta {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.detail-section-title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-sub);
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.detail-section-title i { color: var(--accent); }

/* One-liner box */
.oneliner-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 14px; line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Comparison card */
.comparison-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.comparison-header {
  display: grid; grid-template-columns: 1fr 1fr;
}
.comparison-col {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.year2024 { background: var(--gray-100); color: var(--gray-600); }
.year2026 { background: var(--black); color: var(--accent); }
.comparison-body { display: grid; grid-template-columns: 1fr 1fr; }
.comparison-cell {
  padding: 1rem;
  font-size: 13px; line-height: 1.65;
}
.comparison-cell.year2024 { border-right: 1px solid var(--border); }
.comparison-cell.year2026 { background: rgba(0,212,255,0.03); }
.comparison-points {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.6rem;
}
.point-label {
  font-size: 10px; font-weight: 700;
  background: var(--gray-200); color: var(--gray-600);
  padding: 0.1rem 0.4rem; border-radius: var(--radius-xs);
}
.point-value { font-size: 14px; font-weight: 800; color: var(--text); }
.point-value.old { color: var(--gray-400); text-decoration: line-through; }
.point-arrow { color: var(--accent); font-size: 11px; }
.diff-summary-box {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--accent-dim);
  border-top: 1px solid rgba(0,212,255,0.2);
  font-size: 13px; color: var(--text);
  line-height: 1.6;
}
.diff-summary-box i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* Impact box */
.impact-box {
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.impact-box-title {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--gray-100);
  font-size: 12px; font-weight: 700;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.impact-box p { padding: 0.85rem 1rem; font-size: 13px; line-height: 1.7; }

/* Beginner box */
.beginner-box {
  display: flex; gap: 0.85rem;
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--c-new);
  border-radius: var(--radius);
  padding: 1rem;
}
.beginner-icon { font-size: 22px; flex-shrink: 0; }
.beginner-title {
  font-size: 12px; font-weight: 700;
  color: var(--c-new); margin-bottom: 0.3rem;
}
.beginner-content p { font-size: 13px; line-height: 1.7; }

/* Checklist ul */
.checklist {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.6;
}
.checklist li::before {
  content: '✓';
  color: var(--c-new); font-weight: 800;
  flex-shrink: 0; margin-top: 1px;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  display: inline-flex; align-items: center;
  background: var(--gray-100);
  border: none; border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 12px; font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.tag:hover { background: var(--accent-dim); color: var(--accent); }

/* Source btn */
.source-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: var(--black);
  border: none; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700;
  color: var(--white); text-decoration: none;
  transition: all var(--duration) var(--ease);
}
.source-btn:hover {
  background: var(--gray-800);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.mt-2 { margin-top: 0.5rem; }
.text-sm { font-size: 13px; }
.text-sub { color: var(--text-sub); }

/* ===================================================
   CHANGES PAGE HEADER
=================================================== */
.changes-header {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative; overflow: hidden;
}
.changes-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%,
    rgba(0,212,255,0.08) 0%, transparent 70%);
}
.changes-header .container { position: relative; }
.changes-header h1 {
  font-size: 28px; font-weight: 900;
  letter-spacing: -0.02em; margin-bottom: 0.35rem;
}
.changes-header p { font-size: 14px; color: var(--gray-400); }

/* ===================================================
   CT CHIPS (change type filter)
=================================================== */
.ct-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.ct-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.ct-chip:hover, .ct-chip.active {
  background: var(--black); border-color: var(--black);
  color: var(--white);
}

/* ===================================================
   GLOSSARY
=================================================== */
.glossary-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.glossary-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}
.glossary-card:hover, .glossary-card.open { border-color: var(--gray-400); }
.glossary-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.1rem;
}
.glossary-term { font-size: 15px; font-weight: 800; color: var(--text); }
.glossary-reading { font-size: 11px; color: var(--text-sub); margin-top: 0.1rem; }
.glossary-short { font-size: 13px; color: var(--text-sub); margin-top: 0.3rem; }
.glossary-toggle {
  color: var(--gray-400); font-size: 13px; flex-shrink: 0;
  margin-top: 3px;
  transition: transform var(--duration) var(--ease);
}
.glossary-card.open .glossary-toggle { transform: rotate(180deg); }
.glossary-detail {
  display: none; padding: 0 1.1rem 1rem;
  font-size: 13px; color: var(--text-sub); line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.glossary-card.open .glossary-detail { display: block; }
.glossary-related-label {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-sub);
  margin-bottom: 0.4rem;
}
.glossary-related { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.glossary-related a {
  font-size: 12px; color: var(--accent-dark);
  text-decoration: underline;
}

/* ===================================================
   BEGINNER PAGE
=================================================== */
.beginner-header {
  background: var(--black);
  color: var(--white);
  text-align: center; padding: 3.5rem 1.5rem 3rem;
  position: relative; overflow: hidden;
}
.beginner-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 400px at 50% 50%,
    rgba(0,212,255,0.08) 0%, transparent 70%);
}
.beginner-header h1 {
  font-size: 26px; font-weight: 900;
  margin-bottom: 0.5rem; position: relative;
}
.beginner-header p {
  font-size: 14px; color: var(--gray-400); position: relative;
}

/* ===================================================
   FAVORITES EMPTY
=================================================== */
.fav-empty-hint {
  font-size: 12px; color: var(--text-sub);
}

/* ===================================================
   MEDIA 2-COLUMN LAYOUT (/search, /changes)
=================================================== */
main.media-bg { background: var(--gray-50); min-height: calc(100vh - var(--header-h)); }

.media-layout {
  display: grid;
  grid-template-columns: 1fr 256px;
  gap: 0;
  max-width: 1100px; margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  align-items: start;
}
.media-main {
  min-width: 0;
  padding-right: 1.5rem;
}

/* Sidebar */
.media-sidebar {
  position: sticky; top: calc(var(--header-h) + 12px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Page heading */
.media-page-head { padding: 0.25rem 0 1.25rem; }
.media-page-title {
  font-size: 22px; font-weight: 900;
  color: var(--text); letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.media-page-sub { font-size: 13px; color: var(--text-sub); }

/* Search bar */
.media-search-wrap { position: relative; margin-bottom: 1rem; }
.media-search-icon {
  position: absolute; left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400); font-size: 14px; pointer-events: none;
}
.media-search-input {
  width: 100%; box-sizing: border-box;
  padding: 0.85rem 3rem 0.85rem 2.75rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.media-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.media-search-input::placeholder { color: var(--gray-400); }
.media-search-clear {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: var(--gray-200); border: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 12px;
  transition: background var(--duration) var(--ease);
}
.media-search-clear:hover { background: var(--gray-300); }
.media-search-clear.visible { display: flex; }

/* Count bar */
.media-count-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0 0.85rem;
  font-size: 13px; color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}
.media-count-bar strong {
  font-size: 18px; font-weight: 900; color: var(--text);
}
.media-count-keyword {
  background: var(--gray-100);
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.65rem;
  font-size: 12px; font-weight: 600;
}

/* Media card */
.media-card {
  display: flex; align-items: stretch;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  cursor: pointer;
  overflow: hidden; text-align: left; width: 100%;
  transition: all var(--duration) var(--ease);
}
.media-card:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.media-card-left {
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 0.4rem; padding: 0.85rem 0.6rem;
  min-width: 70px; max-width: 76px;
  background: var(--gray-50);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.media-card-cat {
  font-size: 9px; font-weight: 700;
  color: var(--gray-500); text-align: center;
  line-height: 1.35; word-break: keep-all;
}
.media-card-body {
  flex: 1; padding: 0.75rem 0.85rem;
  min-width: 0; display: flex;
  flex-direction: column; gap: 0.2rem;
}
.media-card-title {
  font-size: 13px; font-weight: 700;
  color: var(--text); line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card-desc {
  font-size: 12px; color: var(--text-sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card-pts {
  display: flex; align-items: center;
  gap: 0.35rem; margin-top: 0.3rem; flex-wrap: wrap;
}
.media-pts-old {
  font-size: 11px; color: var(--gray-400);
  text-decoration: line-through;
}
.media-pts-new { font-size: 12px; font-weight: 800; color: var(--accent-dark); }
.media-card-right {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.85rem 0.75rem; flex-shrink: 0;
}
.media-fav-btn {
  background: none; border: none; cursor: pointer;
  font-size: 17px; color: var(--gray-300);
  transition: color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  line-height: 1; padding: 0.25rem;
}
.media-fav-btn.saved { color: var(--c-del); }
.media-fav-btn:hover { transform: scale(1.2); color: var(--c-del); }
.media-card-arrow { font-size: 11px; color: var(--gray-300); }

/* Sidebar internals */
.sb-block { padding: 0.6rem 0; }
.sb-section-title {
  font-size: 10px; font-weight: 800;
  color: var(--text-sub);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0 1rem 0.4rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.sb-divider {
  border: none; border-top: 1px dashed var(--border);
  margin: 0 1rem;
}
.sb-all-btn {
  display: flex; align-items: center; width: 100%;
  padding: 0.6rem 1rem; background: none; border: none;
  cursor: pointer; font-size: 13px; font-weight: 700;
  color: var(--text); gap: 0.5rem;
  transition: background var(--duration) var(--ease);
}
.sb-all-btn:hover { background: var(--gray-50); }
.sb-all-btn.active { color: var(--black); background: var(--gray-100); }
.sb-all-btn .sb-arrow { margin-left: auto; font-size: 9px; color: var(--gray-400); }
.sb-nav-item {
  display: flex; align-items: center; width: 100%;
  padding: 0.45rem 1rem; background: none; border: none;
  cursor: pointer; font-size: 12px; color: var(--text);
  gap: 0.4rem; text-align: left;
  transition: background var(--duration) var(--ease);
}
.sb-nav-item:hover { background: var(--gray-50); }
.sb-nav-item.active {
  color: var(--black); font-weight: 700;
  background: var(--gray-100);
}
.sb-nav-item .sb-arrow {
  margin-left: auto; font-size: 9px;
  color: var(--gray-400); flex-shrink: 0;
}
.sb-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.1rem 0.75rem 0.5rem;
}
.sb-tag {
  display: inline-flex; align-items: center;
  background: var(--gray-100); border: none;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 11px; font-weight: 600;
  color: var(--text-sub); cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.sb-tag:hover { background: var(--black); color: var(--white); }

/* Empty / skeleton */
.media-empty {
  display: flex; flex-direction: column;
  align-items: center; padding: 3.5rem 1rem;
  color: var(--text-sub); gap: 0.75rem; text-align: center;
}
.media-empty-icon { font-size: 40px; opacity: 0.3; }
.media-empty-text { font-size: 14px; font-weight: 700; }
.media-empty-sub { font-size: 13px; }
.media-skeleton {
  background: var(--gray-100);
  border-radius: var(--radius); height: 76px;
  margin-bottom: 0.6rem; overflow: hidden; position: relative;
}
.media-skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* 2-column mobile */
@media (max-width: 768px) {
  .media-layout {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 5rem;
    gap: 1rem;
  }
  .media-main { padding-right: 0; order: 2; }
  .media-sidebar { position: static; order: 1; }
  .media-card-left { min-width: 60px; max-width: 64px; }
  .media-search-input { font-size: 16px; }
}

/* ===================================================
   SIMULATOR
=================================================== */
.sim-header {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative; overflow: hidden;
}
.sim-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 20% 50%,
    rgba(0,212,255,0.10) 0%, transparent 70%);
}
.sim-header .container { position: relative; }
.sim-header h1 {
  font-size: 26px; font-weight: 900;
  letter-spacing: -0.02em; margin-bottom: 0.35rem;
}
.sim-header p { font-size: 14px; color: var(--gray-400); }

.sim-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  align-items: start;
}
.sim-main { min-width: 0; }
.sim-aside { position: sticky; top: calc(var(--header-h) + 12px); }

.sim-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem; overflow: hidden;
}
.sim-section-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 800;
  color: var(--text);
}
.sim-section-head i { color: var(--accent); }
.sim-section-body { padding: 1rem 1.1rem; }

.sim-fee-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
}
.sim-fee-btn {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 0.2rem;
  padding: 0.75rem; text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.sim-fee-btn:hover { border-color: var(--gray-400); }
.sim-fee-btn.selected {
  border-color: var(--black);
  background: var(--black); color: var(--white);
  box-shadow: var(--shadow-md);
}
.sim-fee-label { font-size: 11px; font-weight: 700; line-height: 1.35; }
.sim-fee-pts { font-size: 12px; font-weight: 800; color: var(--accent); }
.sim-fee-btn.selected .sim-fee-pts { color: var(--accent); }
.sim-fee-diff { font-size: 10px; color: var(--gray-500); }
.sim-fee-btn.selected .sim-fee-diff { color: var(--gray-400); }

.sim-addon-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sim-addon-item {
  display: flex; align-items: center;
  gap: 0.75rem; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.sim-addon-item:hover { border-color: var(--gray-400); }
.sim-addon-item.checked {
  border-color: var(--black);
  background: var(--gray-50);
}
.sim-addon-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; color: transparent;
  transition: all var(--duration) var(--ease);
}
.sim-addon-item.checked .sim-addon-check {
  background: var(--black); border-color: var(--black);
  color: var(--white);
}
.sim-addon-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.sim-addon-item.checked .sim-addon-name { color: var(--text); }
.sim-addon-pts { font-size: 12px; font-weight: 800; color: var(--text-sub); white-space: nowrap; }
.sim-addon-item.checked .sim-addon-pts { color: var(--accent-dark); }

/* Result panel */
.sim-result {
  background: var(--black);
  border: 1.5px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
}
.sim-result-title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 1rem;
}
.sim-result-row {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-800);
  font-size: 13px;
}
.sim-result-row:last-of-type { border-bottom: none; }
.sim-result-label { color: var(--gray-400); }
.sim-result-val { font-size: 14px; font-weight: 800; color: var(--white); }
.sim-result-total {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-700);
}
.sim-result-total-label { font-size: 13px; color: var(--gray-400); }
.sim-result-total-val {
  font-size: 28px; font-weight: 900;
  color: var(--accent); letter-spacing: -0.02em;
}
.sim-result-diff-row {
  display: flex; justify-content: space-between;
  align-items: center; margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--gray-900);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.sim-result-diff-label { color: var(--gray-400); }
.sim-result-diff-val { font-size: 16px; font-weight: 900; }
.sim-result-diff-val.plus  { color: var(--c-new); }
.sim-result-diff-val.minus { color: var(--c-del); }
.sim-count-label {
  font-size: 11px; color: var(--gray-600);
  margin-top: 0.75rem; display: flex;
  align-items: center; gap: 0.4rem;
}
.sim-count-input {
  width: 70px; background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-xs);
  color: var(--white); font-size: 13px; font-weight: 700;
  padding: 0.2rem 0.5rem; text-align: right;
}

@media (max-width: 900px) {
  .sim-layout { grid-template-columns: 1fr; }
  .sim-aside { position: static; }
  .sim-fee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sim-fee-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   CHECKLIST
=================================================== */
.cl-header {
  background: var(--black); color: var(--white);
  padding: 3rem 0 2.5rem; position: relative; overflow: hidden;
}
.cl-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 500px at 80% 50%,
    rgba(0,212,255,0.08) 0%, transparent 70%);
}
.cl-header .container { position: relative; }
.cl-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 0.35rem; }
.cl-header p { font-size: 14px; color: var(--gray-400); }

.cl-wrap { max-width: 860px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }

/* Store tabs */
.cl-store-tabs {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.cl-store-tab {
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cl-store-tab:hover { border-color: var(--gray-400); color: var(--text); }
.cl-store-tab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  font-weight: 800;
}

/* Progress */
.cl-progress-wrap { margin-bottom: 1.5rem; }
.cl-progress-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.5rem;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.cl-progress-bar-bg {
  height: 6px; background: var(--gray-100);
  border-radius: var(--radius-full); overflow: hidden;
}
.cl-progress-bar {
  height: 100%; background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.4s var(--ease);
}
.cl-progress-count { font-size: 12px; color: var(--text-sub); font-weight: 400; }

/* Category groups */
.cl-category { margin-bottom: 1.25rem; }
.cl-category-title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-sub);
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex; align-items: center; gap: 0.4rem;
}
.cl-category-title i { color: var(--accent); }
.cl-items { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }

.cl-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background var(--duration) var(--ease);
}
.cl-item:last-child { border-bottom: none; }
.cl-item.answered { background: var(--gray-50); }

.cl-item-label { flex: 1; }
.cl-item-name { font-size: 13px; font-weight: 700; color: var(--text); }
.cl-item-desc { font-size: 12px; color: var(--text-sub); margin-top: 0.15rem; line-height: 1.6; }

.cl-btns { display: flex; gap: 0.4rem; flex-shrink: 0; align-items: center; }
.cl-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-sub); cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}
.cl-btn:hover { border-color: var(--gray-400); color: var(--text); }
.cl-btn.yes.selected {
  background: var(--black); border-color: var(--black);
  color: var(--white);
}
.cl-btn.no.selected {
  background: var(--c-del); border-color: var(--c-del);
  color: var(--white);
}

/* Summary */
.cl-summary {
  background: var(--black);
  border: 1.5px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.cl-summary-title {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 1rem;
}
.cl-summary-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
.cl-summary-card {
  background: var(--gray-900);
  border-radius: var(--radius-sm);
  padding: 0.85rem; text-align: center;
}
.cl-summary-num {
  font-size: 28px; font-weight: 900; line-height: 1;
  margin-bottom: 0.25rem;
}
.cl-summary-num.yes  { color: var(--c-new); }
.cl-summary-num.no   { color: var(--c-del); }
.cl-summary-num.open { color: var(--gray-500); }
.cl-summary-lbl { font-size: 11px; color: var(--gray-500); font-weight: 600; }

.cl-reset-btn {
  display: flex; align-items: center; gap: 0.4rem;
  margin: 0.75rem auto 0; width: fit-content;
  background: none; border: 1px solid var(--gray-700);
  color: var(--gray-400); font-size: 12px;
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.cl-reset-btn:hover { border-color: var(--gray-500); color: var(--gray-300); }

@media (max-width: 520px) {
  .cl-summary-grid { grid-template-columns: 1fr 1fr; }
  .cl-btns { flex-direction: column; gap: 0.25rem; }
}

/* ===================================================
   QUIZ
=================================================== */
.quiz-header {
  background: var(--black); color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative; overflow: hidden;
}
.quiz-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 400px at 30% 50%,
    rgba(0,212,255,0.10) 0%, transparent 70%);
}
.quiz-header .container { position: relative; }
.quiz-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 0.35rem; }
.quiz-header p  { font-size: 14px; color: var(--gray-400); }

.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }

/* Start screen */
.quiz-start-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem; text-align: center;
}
.quiz-start-icon {
  width: 64px; height: 64px;
  background: var(--black);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--accent);
  margin: 0 auto 1.25rem;
}
.quiz-start-title {
  font-size: 20px; font-weight: 900;
  color: var(--text); margin-bottom: 0.5rem;
}
.quiz-start-desc {
  font-size: 13px; color: var(--text-sub);
  margin-bottom: 1.5rem; line-height: 1.7;
}

/* Filter selects */
.quiz-filters {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 1.5rem;
}
.quiz-filter-select {
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--white);
  outline: none; cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}
.quiz-filter-select:focus { border-color: var(--accent); }

/* Start button */
.quiz-start-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--black);
  border: none; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 800;
  color: var(--white); cursor: pointer;
  transition: all var(--duration) var(--ease);
  animation: pulse-accent 2.5s infinite;
}
.quiz-start-btn:hover {
  background: var(--gray-800);
  animation: none;
  box-shadow: var(--accent-glow);
}

/* Question card */
.quiz-progress-wrap { margin-bottom: 1.25rem; }
.quiz-progress-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.5rem;
}
.quiz-q-num {
  font-size: 12px; font-weight: 700; color: var(--text-sub);
}
.quiz-level-badge {
  font-size: 10px; font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--gray-100); color: var(--gray-600);
}
.quiz-progress-bar-bg {
  height: 4px; background: var(--gray-100);
  border-radius: var(--radius-full); overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s var(--ease);
}

.quiz-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden; margin-bottom: 1rem;
}
.quiz-card-head {
  padding: 0.5rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.quiz-question {
  font-size: 16px; font-weight: 700;
  color: var(--text); line-height: 1.6;
  padding: 1.25rem;
}

.quiz-choices { padding: 0 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-choice {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--white);
  text-align: left; width: 100%;
  transition: all var(--duration) var(--ease);
}
.quiz-choice:hover:not(.answered) {
  border-color: var(--gray-400);
  background: var(--gray-50);
}
.quiz-choice.selected-correct {
  border-color: var(--c-new); background: rgba(34,197,94,0.06);
  color: var(--c-new); font-weight: 700;
}
.quiz-choice.selected-wrong {
  border-color: var(--c-del); background: rgba(239,68,68,0.06);
  color: var(--c-del); font-weight: 700;
}
.quiz-choice.show-correct {
  border-color: var(--c-new); background: rgba(34,197,94,0.04);
  color: var(--c-new);
}
.quiz-choice-marker {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}
.quiz-choice.selected-correct .quiz-choice-marker { background: var(--c-new); border-color: var(--c-new); color: var(--white); }
.quiz-choice.selected-wrong .quiz-choice-marker   { background: var(--c-del); border-color: var(--c-del); color: var(--white); }
.quiz-choice.show-correct .quiz-choice-marker     { background: var(--c-new); border-color: var(--c-new); color: var(--white); }

.quiz-explanation {
  margin: 0 1.25rem 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-sub); line-height: 1.7;
  display: none;
}
.quiz-explanation.visible { display: block; }

.quiz-next-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem; margin: 0 1.25rem 1.25rem auto;
  background: var(--black); border: none;
  border-radius: var(--radius-full);
  font-size: 14px; font-weight: 800; color: var(--white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.quiz-next-btn:hover { background: var(--gray-800); }

/* Result */
.quiz-result-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden; margin-bottom: 1.25rem;
}
.quiz-result-head {
  background: var(--black); color: var(--white);
  padding: 2rem; text-align: center;
}
.quiz-score-num {
  font-size: 64px; font-weight: 900;
  color: var(--accent); line-height: 1;
  letter-spacing: -0.04em;
}
.quiz-score-denom { font-size: 22px; color: var(--gray-400); }
.quiz-score-pct {
  font-size: 18px; font-weight: 700; color: var(--gray-300);
  margin-top: 0.4rem;
}
.quiz-result-msg {
  font-size: 14px; color: var(--gray-400);
  margin-top: 0.75rem; line-height: 1.6;
}
.quiz-result-body { padding: 1.25rem; }
.quiz-result-list { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-result-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.quiz-result-item.correct { border-color: rgba(34,197,94,0.3); }
.quiz-result-item.wrong   { border-color: rgba(239,68,68,0.3); }
.quiz-result-item-head {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.7rem 0.85rem;
}
.quiz-result-item-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.quiz-result-item-num  { font-size: 11px; font-weight: 700; color: var(--text-sub); white-space: nowrap; flex-shrink: 0; }
.quiz-result-item-q    { font-size: 13px; color: var(--text); line-height: 1.5; }
.quiz-result-item-body {
  padding: 0.5rem 0.85rem 0.85rem 2.5rem;
  font-size: 12px; line-height: 1.6;
}
.quiz-result-wrong-ans   { color: var(--c-del); margin-bottom: 0.25rem; }
.quiz-result-correct-ans { color: var(--c-new); font-weight: 700; margin-bottom: 0.5rem; }
.quiz-result-exp { color: var(--text-sub); }
.quiz-result-actions {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.quiz-result-btn-sub {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.85rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 700; cursor: pointer;
  color: var(--text);
  transition: all var(--duration) var(--ease);
}
.quiz-result-btn-sub:hover { background: var(--gray-50); border-color: var(--gray-400); }

/* ===================================================
   RESPONSIVE GLOBAL
=================================================== */
@media (max-width: 768px) {
  .hero-inner { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { font-size: 26px; }
  .section { padding-top: 1.75rem; margin-bottom: 2rem; }
  .detail-title { font-size: 20px; }
  .comparison-header, .comparison-body { grid-template-columns: 1fr; }
  .comparison-cell.year2024 { border-right: none; border-bottom: 1px solid var(--border); }
  .cl-wrap, .quiz-wrap { padding: 1rem 1rem 4rem; }
  .sim-layout { grid-template-columns: 1fr; padding: 1rem 1rem 4rem; }
  .sim-aside { position: static; }
}

@media (max-width: 480px) {
  .section-title { font-size: 16px; }
  .quiz-card { border-radius: var(--radius); }
  .quiz-choice { font-size: 13px; }
}
