:root {
  --primary: #FF6B35;
  --secondary: #FFD700;
  --accent: #4ECDC4;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --card: #0f3460;
  --text: #e0e0e0;
  --text-muted: #a0a0b0;
  --white: #ffffff;
  --success: #2ecc71;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
}

/* NAV */
nav {
  background: var(--dark2);
  border-bottom: 2px solid var(--primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--dark2) 0%, #1a0a2e 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(255,107,53,0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(78,205,196,0.06) 0%, transparent 40%);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
}
.stat-item span { font-size: 0.85rem; color: var(--text-muted); }

/* MAIN */
main { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }

/* SECTION */
.section { margin-bottom: 60px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.section-icon.orange { background: rgba(255,107,53,0.2); }
.section-icon.teal   { background: rgba(78,205,196,0.2); }
.section-icon.yellow { background: rgba(255,215,0,0.2); }
.section-icon.purple { background: rgba(155,89,182,0.2); }
.section-icon.green  { background: rgba(46,204,113,0.2); }

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}
.section-title span { color: var(--text-muted); font-size: 0.9rem; font-weight: 400; margin-left: 8px; }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
  transform: scaleX(0);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,0.15); }
.card:hover::before { transform: scaleX(1); }

.card-emoji { font-size: 2rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--white); }
.card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: auto;
  width: fit-content;
}
.tag-hot { background: rgba(255,107,53,0.2); color: var(--primary); }
.tag-new { background: rgba(78,205,196,0.2); color: var(--accent); }
.tag-fun { background: rgba(255,215,0,0.2); color: var(--secondary); }
.tag-free { background: rgba(46,204,113,0.2); color: var(--success); }

/* BANNER AD PLACEHOLDER */
.ad-banner {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 32px 0;
}

/* FOOTER */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer strong { color: var(--primary); }

/* PAGE HEADER (inner pages) */
.page-header {
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 32px 24px;
}
.page-header .breadcrumb { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.page-header .breadcrumb a { color: var(--primary); text-decoration: none; }
.page-header h1 { font-size: 1.8rem; font-weight: 900; color: var(--white); }
.page-header p { color: var(--text-muted); margin-top: 6px; }

/* CALCULATOR TOOL */
.tool-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}
.tool-card label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 16px;
}
.tool-card label:first-child { margin-top: 0; }
.tool-card input, .tool-card select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.tool-card select option {
  background: #1a1a2e;
  color: #e0e0e0;
}
.tool-card input:focus, .tool-card select:focus {
  border-color: var(--primary);
}
.btn-primary {
  display: block;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.result-box {
  background: rgba(255,107,53,0.08);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  display: none;
}
.result-box.show { display: block; }
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--text-muted); }
.result-row .value { font-weight: 700; color: var(--white); }
.result-row.highlight .value { color: var(--secondary); font-size: 1.1rem; }

/* ─────────────────────────────────────────
   CALCULATOR V2 — shared shell
───────────────────────────────────────── */
.calc-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}
.input-panel {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.result-panel {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

/* Field styles */
.field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.num-field, .date-field, .pill-group { display: flex; flex-direction: column; gap: 8px; }

/* Large number input */
.num-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 18px;
  transition: border-color 0.2s;
}
.num-wrap:focus-within { border-color: var(--primary); background: rgba(255,107,53,0.04); }
.num-wrap input {
  background: none; border: none; outline: none;
  color: var(--white); font-size: 1.6rem; font-weight: 900;
  font-family: inherit; letter-spacing: -0.03em;
  width: 100%; min-width: 0;
}
.num-wrap input::placeholder { color: rgba(255,255,255,0.15); }
.num-wrap .unit { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }

/* Small number input (secondary) */
.sm-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.sm-wrap:focus-within { border-color: var(--primary); }
.sm-wrap input {
  background: none; border: none; outline: none;
  color: var(--white); font-size: 1.1rem; font-weight: 700;
  font-family: inherit; width: 100%; min-width: 0;
}
.sm-wrap input::placeholder { color: rgba(255,255,255,0.2); }
.sm-wrap .unit { font-size: 0.82rem; color: var(--text-muted); flex-shrink: 0; }

/* Date input */
.date-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 11px 18px;
  transition: border-color 0.2s;
}
.date-wrap:focus-within { border-color: var(--primary); }
.date-wrap input[type="date"] {
  background: none; border: none; outline: none;
  color: var(--white); font-size: 1rem; font-weight: 700;
  font-family: inherit; width: 100%; cursor: pointer;
}
.date-wrap input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.4; cursor: pointer; }

/* Pill buttons */
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  padding: 7px 15px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted); font-size: 0.83rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.pill:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }
.pill.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pill.active.teal { background: var(--accent); border-color: var(--accent); }
.pill.active.gold { background: var(--secondary); border-color: var(--secondary); color: #1a1a2e; }

/* Input note */
.input-note {
  font-size: 0.74rem; color: var(--text-muted); line-height: 1.65;
  padding: 10px 14px;
  background: rgba(78,205,196,0.06); border: 1px solid rgba(78,205,196,0.15);
  border-radius: 10px;
}
.input-note strong { color: var(--accent); }

/* ── Result panel ── */
.res-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 28px; text-align: center; gap: 12px;
}
.res-empty-icon { font-size: 2.8rem; opacity: 0.35; }
.res-empty p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.res-filled { display: none; flex-direction: column; }

/* Hero value block */
.res-hero {
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,215,0,0.05));
}
.res-hero-label {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: 8px;
}
.res-hero-value {
  font-size: 2.5rem; font-weight: 900; color: var(--secondary);
  letter-spacing: -0.04em; display: block; line-height: 1;
}
.res-hero-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.res-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 16px;
  background: rgba(78,205,196,0.08); border: 1px solid rgba(78,205,196,0.2);
  border-radius: 10px; font-size: 0.82rem;
}
.res-hero-badge .bl { color: var(--text-muted); }
.res-hero-badge .bv { font-weight: 800; color: var(--accent); }

/* Breakdown toggle */
.res-toggle {
  width: 100%; background: none;
  border: none; border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
  font-family: inherit; padding: 13px 28px; cursor: pointer;
  text-align: left; display: flex; align-items: center;
  justify-content: space-between; transition: color 0.2s;
}
.res-toggle:hover { color: var(--white); }
.res-toggle .arr { transition: transform 0.25s; }
.res-toggle.open .arr { transform: rotate(180deg); }
.res-rows { display: none; flex-direction: column; padding: 0 28px 18px; }
.res-rows.open { display: flex; }

/* Breakdown rows */
.res-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.83rem;
}
.res-row:last-child { border-bottom: none; }
.res-row .rl { color: var(--text-muted); }
.res-row .rv { font-weight: 700; color: var(--white); }
.res-row.ac .rv  { color: var(--accent); }
.res-row.err .rv { color: #e74c3c; }
.res-row.hi { border-top: 1px solid rgba(255,107,53,0.25); margin-top: 4px; padding-top: 12px; }
.res-row.hi .rl { font-weight: 700; color: var(--text); }
.res-row.hi .rv { color: var(--secondary); font-size: 1.05rem; }

/* Info card at bottom */
.calc-info {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 900px;
  margin: 20px auto 0;
}
.calc-info h3 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.calc-info .ci-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.84rem;
}
.calc-info .ci-row:last-of-type { border-bottom: none; }
.calc-info .ci-row .cl { color: var(--text-muted); }
.calc-info .ci-row .cv { font-weight: 700; color: var(--accent); }
.calc-info p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.7; margin-top: 10px; }

/* Responsive */
@media(max-width:720px) {
  .calc-shell { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .res-hero-value { font-size: 2rem; }
  .num-wrap input { font-size: 1.3rem; }
}
@media(max-width:480px) {
  .input-panel { padding: 18px 16px; }
  .res-hero { padding: 20px; }
  .res-toggle, .res-rows { padding-left: 18px; padding-right: 18px; }
}

/* ═══════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════ */
.theme-toggle-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 6px 10px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.32);
}
html.light .theme-toggle-btn {
  border-color: rgba(0,0,0,0.14);
}
html.light .theme-toggle-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.28);
}

/* ═══════════════════════════════════
   LIGHT MODE
═══════════════════════════════════ */
html.light {
  --dark:       #f5f5fa;
  --dark2:      #eaeaf2;
  --card:       #ffffff;
  --text:       #2c2c3e;
  --text-muted: #6a6a82;
  --white:      #1a1a2e;
  --shadow:     0 4px 20px rgba(0,0,0,0.09);
}

html.light nav {
  box-shadow: 0 1px 10px rgba(0,0,0,0.07);
  border-bottom-color: rgba(0,0,0,0.08);
}
html.light .nav-links a.active { color: #fff; }

/* Card borders */
html.light .card { border-color: rgba(0,0,0,0.09); }
html.light .card:hover { border-color: rgba(255,107,53,0.3); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
html.light .tool-card,
html.light .calc-info,
html.light .input-panel,
html.light .result-panel { border-color: rgba(0,0,0,0.09); }

/* Tool card inputs */
html.light .tool-card input,
html.light .tool-card select {
  background: #f0f0f8;
  border-color: rgba(0,0,0,0.12);
  color: var(--white);
}
html.light .tool-card select option { background: #fff; color: #1a1a2e; }

/* Num / Sm / Date wraps */
html.light .num-wrap,
html.light .sm-wrap,
html.light .date-wrap { background: #f0f0f8; border-color: rgba(0,0,0,0.12); }
html.light .num-wrap:focus-within,
html.light .sm-wrap:focus-within,
html.light .date-wrap:focus-within { border-color: var(--primary); background: rgba(255,107,53,0.04); }
html.light .num-wrap input,
html.light .sm-wrap input,
html.light .date-wrap input[type="date"] { color: var(--white); }
html.light input::placeholder,
html.light textarea::placeholder { color: rgba(0,0,0,0.28) !important; }
html.light .date-wrap input[type="date"]::-webkit-calendar-picker-indicator { filter: none; opacity: 0.5; }

/* Pills */
html.light .pill { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.04); }
html.light .pill:hover { border-color: rgba(0,0,0,0.25); color: var(--white); }

/* Result panel internals */
html.light .res-hero { border-bottom-color: rgba(0,0,0,0.08); }
html.light .res-toggle { border-top-color: rgba(0,0,0,0.07); }
html.light .res-row { border-bottom-color: rgba(0,0,0,0.06); }
html.light .res-row.hi { border-top-color: rgba(255,107,53,0.25); }
html.light .res-row .rv { color: var(--white); }
html.light .calc-info .ci-row { border-bottom-color: rgba(0,0,0,0.06); }

/* Ad banner */
html.light .ad-banner { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.09); }

/* Footer */
html.light footer { border-top-color: rgba(0,0,0,0.08); }

/* Page header */
html.light .page-header { border-bottom-color: rgba(0,0,0,0.08); }

/* Hero (sub-page) */
html.light .hero { background: linear-gradient(135deg, var(--dark2) 0%, #f0eafb 100%); }

/* Shared result-box */
html.light .result-box { border-color: rgba(255,107,53,0.25); }
html.light .result-row { border-bottom-color: rgba(0,0,0,0.06); }
html.light .result-row .value { color: var(--white); }

/* ── Generic page-specific overrides (use !important to win over inline <style>) ── */

/* Inputs */
html.light input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
  background: #f0f0f8 !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: var(--white) !important;
}
html.light select option { background: #fff !important; color: #1a1a2e !important; }

/* Table borders */
html.light th { border-bottom-color: rgba(0,0,0,0.1) !important; border-color: rgba(0,0,0,0.1) !important; }
html.light td { border-bottom-color: rgba(0,0,0,0.06) !important; border-color: rgba(0,0,0,0.06) !important; }

/* Subtle background boxes (notice, info, result items) that use rgba(255,255,255,X) */
html.light .notice,
html.light [class*="notice"],
html.light [class*="info-box"],
html.light [class*="alert-box"],
html.light [class*="ok-box"] { border-left-color: var(--primary); }

/* Pomodoro / stat items with rgba(255,255,255,X) bg */
html.light .stat-item { background: rgba(0,0,0,0.04) !important; }
html.light .dot { background: rgba(0,0,0,0.1) !important; }
html.light .dot.done { background: var(--primary) !important; }
html.light .dot.current { background: var(--secondary) !important; }
html.light .mode-tab { background: rgba(0,0,0,0.05) !important; color: var(--text-muted) !important; }
html.light .mode-tab.active { background: var(--primary) !important; color: #fff !important; }
html.light .mode-tab:hover:not(.active) { background: rgba(0,0,0,0.08) !important; color: var(--white) !important; }
html.light .ring-bg { stroke: rgba(0,0,0,0.08) !important; }
html.light .btn-reset,
html.light .btn-skip { background: rgba(0,0,0,0.06) !important; }
html.light .btn-reset:hover,
html.light .btn-skip:hover { background: rgba(0,0,0,0.1) !important; color: var(--white) !important; }
html.light .setting-row { border-bottom-color: rgba(0,0,0,0.07) !important; }

/* Drop zones */
html.light .drop-zone { border-color: rgba(0,0,0,0.14) !important; background: rgba(0,0,0,0.02) !important; }
html.light .drop-zone:hover { border-color: var(--primary) !important; background: rgba(255,107,53,0.04) !important; }
html.light .drop-text { color: var(--text) !important; }

/* PDF / file items */
html.light .pdf-item,
html.light .file-item { border-color: rgba(0,0,0,0.09) !important; }
html.light .pi-name { color: var(--white) !important; }

/* Toggle switch slider in parental-leave */
html.light .slider { background: rgba(0,0,0,0.15) !important; }
html.light .toggle-row { border-color: rgba(0,0,0,0.1) !important; background: rgba(0,0,0,0.03) !important; }

/* Month rows in parental-leave */
html.light .month-row { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.08) !important; }
html.light .month-row.active { background: rgba(78,205,196,0.07) !important; border-color: rgba(78,205,196,0.2) !important; }

/* Compare grid in salary-negotiation */
html.light .compare-col { background: rgba(0,0,0,0.04) !important; }
html.light .compare-col.right { background: rgba(255,215,0,0.06) !important; }
html.light .diff-box { background: rgba(46,204,113,0.06) !important; border-color: rgba(46,204,113,0.15) !important; }
html.light .diff-row { border-bottom-color: rgba(0,0,0,0.06) !important; }

/* Result items in unemployment */
html.light .result-item { background: rgba(0,0,0,0.04) !important; }

/* Preview card in resignation — already white, ensure text is dark */
html.light .preview-card { background: #fff !important; color: #222 !important; box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important; }
html.light .preview-card .doc-title { color: #111 !important; }
html.light .preview-card .doc-body { color: #222 !important; }

/* ── Game page HUD boxes: rgba(255,255,255,...) borders/backgrounds ── */
/* (covers tetris, snake, 2048, minesweeper, bubble, dodge, stack, wordle) */
html.light .sk-btn,
html.light .g-btn,
html.light .snd-b { border-color: rgba(0,0,0,.1) !important; }

/* Loan / 2048 table header subtle bg */
html.light .schedule-table th,
html.light .loan-table th { background: rgba(0,0,0,.04) !important; }

/* Boss-clicker stat box */
html.light .stat-box { background: rgba(0,0,0,.04) !important; border-color: rgba(0,0,0,.1) !important; }
html.light .stat-box .val,
html.light .stat-val { color: #1a1a2e !important; }

/* Mindmap toolbar — always dark by design, skip; node text on colored bg — fine */

/* Gold/accent accent values: #FFD700 on white has poor contrast, darken */
html.light .val.gold,
html.light .t-val.gold,
html.light .sk-box.best .val,
html.light .g-box.best .val { color: #b8860b !important; text-shadow: none !important; }

/* Neon/cyan values on light bg */
html.light .t-val.cyan,
html.light .sk-box.lvl .val { color: #1a8a80 !important; text-shadow: none !important; }
html.light .sk-box.mul .val { color: #1a7a10 !important; text-shadow: none !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 48px 16px 40px; }
  .hero-stats { gap: 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  main { padding: 32px 16px; }
  .tool-card { padding: 20px; }
}
@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
}
