/* ===================================
   2026 연말정산 절세 도우미
   Golden Wealth Design System
   =================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1535;
  --bg-tertiary: #1a1f4e;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);

  --gold-1: #FFD700;
  --gold-2: #FFA500;
  --gold-3: #DAA520;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  --gold-gradient-text: linear-gradient(135deg, #FFD700, #FFC125, #FFA500);
  --gold-glow: 0 0 20px rgba(255, 215, 0, 0.3);

  --text-primary: #f0f0f0;
  --text-secondary: #8892b0;
  --text-muted: #5a6280;

  --success: #48bb78;
  --success-bg: rgba(72, 187, 120, 0.1);
  --danger: #fc8181;
  --danger-bg: rgba(252, 129, 129, 0.1);
  --info: #63b3ed;
  --info-bg: rgba(99, 179, 237, 0.1);
  --warning: #f6ad55;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.15);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 800px;
  --header-height: 64px;
}

/* ---- Light Mode ---- */
[data-theme="light"] {
  --bg-primary: #f5f5f0;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8e0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --gold-gradient: linear-gradient(135deg, #B8860B 0%, #DAA520 50%, #CD853F 100%);
  --gold-gradient-text: linear-gradient(135deg, #B8860B, #CD853F, #8B6914);
  --gold-glow: 0 0 20px rgba(184, 134, 11, 0.2);
  --gold-1: #B8860B;
  --gold-2: #DAA520;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 20px rgba(184, 134, 11, 0.1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold-1);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--gold-2); }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }

/* ---- Particle Canvas ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 14, 39, 0.8);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-height);
  transition: background var(--transition-base);
}
[data-theme="light"] .header {
  background: rgba(245, 245, 240, 0.85);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: var(--gold-1);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}
.theme-toggle:hover {
  background: var(--glass-bg-hover);
  border-color: var(--gold-1);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}
.hero-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #0a0e27;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.gold-text {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}
.glass-card:hover {
  border-color: rgba(255, 215, 0, 0.15);
}

/* ---- Calculator Section ---- */
.calculator-section {
  margin-bottom: var(--space-2xl);
}
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}
.section-title .icon { font-size: 1.4rem; }

/* ---- Input Groups ---- */
.input-group {
  margin-bottom: var(--space-lg);
}
.input-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.input-group label .unit {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}
.input-wrapper {
  position: relative;
}
.input-wrapper input[type="text"],
.input-wrapper input[type="number"],
.input-wrapper select {
  width: 100%;
  padding: 14px 60px 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: var(--transition-fast);
  outline: none;
}
[data-theme="light"] .input-wrapper input[type="text"],
[data-theme="light"] .input-wrapper input[type="number"],
[data-theme="light"] .input-wrapper select {
  background: rgba(0, 0, 0, 0.02);
}
.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--gold-1);
  box-shadow: var(--gold-glow);
  background: rgba(255, 215, 0, 0.03);
}
.input-wrapper .suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-wrapper select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  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='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.input-wrapper select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
[data-theme="light"] .input-wrapper select option {
  background: #fff;
  color: #1a1a2e;
}
.input-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  padding-left: 2px;
}

/* ---- Slider ---- */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--glass-border);
  border-radius: var(--radius-full);
  outline: none;
  margin-top: var(--space-sm);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gold-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  transition: transform var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--gold-gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold-gradient);
  color: #0a0e27;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-group {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.btn-full { width: 100%; }

/* ---- Result Section ---- */
.result-section {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.result-section.hidden { display: none; }

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-base);
  animation: slideUp var(--transition-slow) ease-out both;
}
.summary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: var(--shadow-gold);
}
.summary-card .card-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}
.summary-card .card-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.summary-card .card-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}
.summary-card.refund .card-value { color: var(--success); }
.summary-card.additional .card-value { color: var(--danger); }
.summary-card.deduction .card-value { color: var(--gold-1); }
.summary-card.neutral .card-value { color: var(--text-primary); }

/* Detail Cards */
.detail-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  animation: slideUp var(--transition-slow) ease-out both;
}
.detail-card:nth-child(2) { animation-delay: 100ms; }
.detail-card:nth-child(3) { animation-delay: 200ms; }
.detail-card:nth-child(4) { animation-delay: 300ms; }
.detail-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

/* Progress Bars */
.progress-item { margin-bottom: var(--space-md); }
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.progress-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.progress-value {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}
[data-theme="light"] .progress-bar {
  background: rgba(0, 0, 0, 0.06);
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.progress-fill.success { background: linear-gradient(90deg, #48bb78, #38a169); }
.progress-fill.info { background: linear-gradient(90deg, #63b3ed, #4299e1); }
.detail-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: var(--space-md) 0;
}

/* Recommendations */
.recommendation-list { list-style: none; }
.recommendation-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  border-left: 3px solid var(--gold-1);
  transition: var(--transition-fast);
  animation: slideUp var(--transition-slow) ease-out both;
}
[data-theme="light"] .recommendation-item {
  background: rgba(0, 0, 0, 0.02);
}
.recommendation-item:hover {
  background: rgba(255, 215, 0, 0.03);
}
.recommendation-item .rec-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.recommendation-item .rec-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.recommendation-item .rec-text strong { color: var(--gold-1); font-weight: 600; }
.recommendation-item.success { border-left-color: var(--success); }
.recommendation-item.success .rec-text strong { color: var(--success); }
.recommendation-item.warning { border-left-color: var(--warning); }
.recommendation-item.danger { border-left-color: var(--danger); }
.recommendation-item.danger .rec-text strong { color: var(--danger); }
.recommendation-item.info { border-left-color: var(--info); }

/* ---- Ad Slots ---- */
.ad-slot {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
}

/* ---- Disclaimer ---- */
.disclaimer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}
[data-theme="light"] .disclaimer {
  background: rgba(0, 0, 0, 0.02);
}
.disclaimer-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: var(--space-sm);
}
.disclaimer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .logo { margin-bottom: var(--space-sm); }
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 300px;
}
.footer-links {
  display: flex;
  gap: var(--space-2xl);
}
.footer-link-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.footer-link-group ul { list-style: none; }
.footer-link-group li { margin-bottom: var(--space-sm); }
.footer-link-group a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-link-group a:hover { color: var(--gold-1); }
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}
[data-theme="light"] .modal {
  background: #fff;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body p,
.modal-body ol {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}
.modal-body ol { padding-left: var(--space-lg); }
.modal-body li { margin-bottom: var(--space-sm); }

/* ---- Coin Rain ---- */
.coin {
  position: fixed;
  top: -40px;
  font-size: 1.5rem;
  z-index: 9999;
  pointer-events: none;
  animation: coinFall linear forwards;
}
@keyframes coinFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ---- Animations ---- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.animate-slide-up { animation: slideUp var(--transition-slow) ease-out both; }

/* ---- Content Pages ---- */
.content-page {
  padding: var(--space-2xl) 0;
  min-height: calc(100vh - var(--header-height) - 200px);
}
.content-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
}
.content-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--gold-1);
}
.content-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}
.content-page p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}
.content-page ul,
.content-page ol {
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}
.content-page li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}
.content-page strong { color: var(--text-primary); }
.content-page .last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Guide Table */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.9rem;
}
.guide-table th {
  background: var(--glass-bg);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gold-1);
  color: var(--text-primary);
}
.guide-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.guide-table tr:hover td {
  background: rgba(255, 215, 0, 0.02);
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
  user-select: none;
}
.accordion-header:hover { background: var(--glass-bg-hover); }
.accordion-header .arrow {
  transition: transform var(--transition-fast);
  font-size: 0.8rem;
}
.accordion-item.open .accordion-header .arrow { transform: rotate(180deg); }
.accordion-body {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}
.accordion-item.open .accordion-body {
  max-height: 3000px;
  padding: var(--space-lg);
}

/* Contact Form */
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: var(--transition-fast);
}
.contact-form textarea:focus {
  border-color: var(--gold-1);
  box-shadow: var(--gold-glow);
}

/* Hometax link button */
.hometax-link-btn {
  background: none;
  border: none;
  color: var(--gold-1);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}
.hometax-link-btn:hover { color: var(--gold-2); }

/* ---- Utility ---- */
.text-gold { color: var(--gold-1); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
  }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-lg);
    gap: var(--space-md);
    z-index: 99;
  }
  .menu-toggle { display: block; }
  .summary-cards { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .footer-content { flex-direction: column; }
  .footer-links { flex-direction: column; gap: var(--space-lg); }
  .glass-card { padding: var(--space-lg); }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .summary-card .card-value { font-size: 1.3rem; }
}
