/* ============================================================
   Metrekare Boya Hesaplayıcı — Premium Design System v2
   Senior-level static CSS — zero dependencies
   ============================================================ */

/* === TOKENS === */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eef1f8;
  --card: #ffffff;
  --card-hover: #fafbff;
  --text: #111827;
  --text-secondary: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f1f3;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-lighter: #dbeafe;
  --accent-glow: rgba(37,99,235,.12);
  --accent2: #f59e0b;
  --accent2-hover: #d97706;
  --accent2-light: #fffbeb;
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #faf5ff 50%, #fffbeb 100%);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-accent: 0 4px 14px rgba(37,99,235,.25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: .3s cubic-bezier(.4,0,.2,1);
  --max-w: 1200px;
  --max-w-narrow: 780px;
  --header-h: 68px;
  --section-gap: 5rem;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #111827;
  --card: #1a2332;
  --card-hover: #1f2b3d;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-light: #64748b;
  --border: #2a3548;
  --border-light: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: #172554;
  --accent-lighter: #1e3a5f;
  --accent-glow: rgba(59,130,246,.15);
  --accent2-light: #451a03;
  --success-light: #064e3b;
  --danger-light: #450a0a;
  --warning-light: #451a03;
  --gradient-hero: linear-gradient(135deg, #0b1120 0%, #1a1040 50%, #1a0f00 100%);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow: 0 1px 3px rgba(0,0,0,.2), 0 1px 2px rgba(0,0,0,.15);
  --shadow-md: 0 4px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.35);
  --shadow-accent: 0 4px 14px rgba(59,130,246,.3);
}

/* === RESET === */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale }
img, svg, video { display: block; max-width: 100% }
a { color: var(--accent); text-decoration: none; transition: color var(--transition) }
a:hover { color: var(--accent-hover) }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none }
table { border-collapse: collapse; width: 100% }
::selection { background: var(--accent); color: #fff }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--text) }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3 }
h4 { font-size: 1.1rem; font-weight: 600 }
p { margin-bottom: 1rem }
strong { font-weight: 600 }
mark { background: var(--accent-lighter); color: var(--accent); padding: .05em .2em; border-radius: 3px }

/* === LAYOUT === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem }
main { flex: 1 }
.section { padding: var(--section-gap) 0 }
.section--alt { background: var(--card) }

/* === HEADER === */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .header { background: rgba(11,17,32,.82) }
.header .container { display: flex; align-items: center; justify-content: space-between }

.logo {
  font-size: 1.15rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: .6rem;
  letter-spacing: -.01em;
}
.logo:hover { color: var(--text); text-decoration: none }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent); flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; color: #fff }

.nav { display: flex; align-items: center; gap: .15rem }
.nav a {
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .9rem; color: var(--muted);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav a:hover, .nav a.active { background: var(--accent-light); color: var(--accent); text-decoration: none }
.nav a.active::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: .5rem }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--text); border-radius: var(--radius-xs) }
.hamburger svg { width: 24px; height: 24px }
.hamburger:hover { background: var(--bg-alt) }
@media (max-width: 768px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem; gap: .25rem;
    transform: translateY(-120%); opacity: 0;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s; z-index: 99;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); opacity: 1 }
  .nav a { padding: .85rem 1rem; width: 100%; border-radius: var(--radius-sm); font-size: 1rem }
  .nav a.active::after { display: none }
  .hamburger { display: flex; align-items: center; justify-content: center }
}

/* Theme Toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); background: var(--bg);
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-light); transform: rotate(15deg) }
.theme-toggle svg { width: 18px; height: 18px; color: var(--text) }
[data-theme="dark"] .theme-toggle .icon-sun { display: block }
[data-theme="dark"] .theme-toggle .icon-moon { display: none }
.theme-toggle .icon-sun { display: none }
.theme-toggle .icon-moon { display: block }

/* === HERO === */
.hero {
  padding: 5rem 0 4rem; text-align: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent);
  pointer-events: none;
}
.hero h1 { margin-bottom: 1rem; position: relative }
.hero h1 .gradient-text {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 1.2rem; color: var(--muted); max-width: 640px;
  margin: 0 auto 2rem; line-height: 1.7; position: relative;
}
.hero .hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; position: relative }
.hero .hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem;
  position: relative;
}
.hero .hero-stat { text-align: center }
.hero .hero-stat__value { font-size: 1.75rem; font-weight: 800; color: var(--accent) }
.hero .hero-stat__label { font-size: .85rem; color: var(--muted); margin-top: .15rem }
@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem }
  .hero .hero-stats { gap: 1.5rem; flex-wrap: wrap }
}

/* === CARDS === */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); position: relative;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md) }
.card--link { display: block; color: inherit; cursor: pointer }
.card--link:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-lg); border-color: var(--accent);
}
.card--link:hover .card__title { color: var(--accent) }
.card--featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              var(--gradient) border-box;
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
  background: var(--accent-light); color: var(--accent);
}
.card__icon--warm { background: var(--accent2-light); color: var(--accent2) }
.card__icon--green { background: var(--success-light); color: var(--success) }
.card__tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .65rem; border-radius: 99px;
  background: var(--accent-light); color: var(--accent);
  margin-bottom: .85rem;
}
.card__tag--warm { background: var(--accent2-light); color: var(--accent2) }
.card__tag--green { background: var(--success-light); color: var(--success) }
.card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; transition: color var(--transition); line-height: 1.4 }
.card__desc { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0 }
.card__meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted-light); margin-top: .85rem }
.card__arrow {
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  color: var(--muted-light); transition: all var(--transition);
}
.card--link:hover .card__arrow { color: var(--accent); transform: translateY(-50%) translateX(4px) }

/* === GRID === */
.grid { display: grid; gap: 1.5rem }
.grid--2 { grid-template-columns: repeat(2, 1fr) }
.grid--3 { grid-template-columns: repeat(3, 1fr) }
.grid--4 { grid-template-columns: repeat(4, 1fr) }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr } }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 2.5rem }
.section-header h2 { margin-bottom: .75rem }
.section-header p { color: var(--muted); font-size: 1.1rem; max-width: 580px; margin: 0 auto }
.section-header .badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); background: var(--accent-light);
  padding: .3rem .85rem; border-radius: 99px; margin-bottom: .85rem;
}

/* === TABS === */
.tabs {
  display: flex; gap: .3rem; background: var(--bg-alt);
  border-radius: var(--radius-md); padding: .3rem;
  border: 1px solid var(--border);
}
.tab-btn {
  flex: 1; padding: .75rem 1.25rem; border: none; background: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all var(--transition); color: var(--muted);
}
.tab-btn:hover { color: var(--text); background: rgba(255,255,255,.5) }
[data-theme="dark"] .tab-btn:hover { background: rgba(255,255,255,.05) }
.tab-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
}
.tab-panel { display: none; padding-top: 1.75rem }
.tab-panel.active { display: block; animation: fadeIn .3s ease }

/* === FORM ELEMENTS === */
.form-group { margin-bottom: 1.35rem }
.form-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .45rem; color: var(--text) }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: .3rem }
.form-input, .form-select {
  width: 100%; padding: .75rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); transition: all var(--transition);
  font-size: .95rem; color: var(--text);
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-input::placeholder { color: var(--muted-light) }
.form-input.error { border-color: var(--danger) }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .35rem; display: none }
.form-error.show { display: block }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr } }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr }
@media (max-width: 600px) { .form-row--3 { grid-template-columns: 1fr } }
.inline-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap }
.inline-group label { font-size: .875rem; display: flex; align-items: center; gap: .4rem; cursor: pointer }

/* Checkbox / Radio */
.form-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.75rem; border: none;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all var(--transition); line-height: 1.4;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); text-decoration: none }
.btn:active { transform: translateY(0) }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,.35) }
.btn--primary-lg {
  background: var(--gradient); color: #fff;
  padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-accent);
}
.btn--primary-lg:hover { box-shadow: 0 8px 25px rgba(37,99,235,.4); color: #fff }
.btn--secondary { background: var(--card); color: var(--text); border: 2px solid var(--border); box-shadow: var(--shadow-xs) }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light) }
.btn--accent2 { background: var(--accent2); color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,.25) }
.btn--accent2:hover { background: var(--accent2-hover); color: #fff }
.btn--outline { background: transparent; border: 2px solid var(--accent); color: var(--accent) }
.btn--outline:hover { background: var(--accent); color: #fff }
.btn--ghost { background: transparent; color: var(--muted); border: none }
.btn--ghost:hover { color: var(--accent); background: var(--accent-light) }
.btn--sm { padding: .5rem 1rem; font-size: .82rem }
.btn--block { width: 100% }
.btn--danger { background: var(--danger); color: #fff }
.btn--icon { padding: .6rem; min-width: 40px }
.btn svg { width: 18px; height: 18px; flex-shrink: 0 }

/* === ROOM LIST === */
.room-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem }
.room-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem;
  transition: border-color var(--transition);
}
.room-item:focus-within { border-color: var(--accent) }
.room-item__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .85rem }
.room-item__title { font-weight: 700; font-size: .9rem; color: var(--accent) }
.room-item__remove { background: none; border: none; color: var(--danger); cursor: pointer; padding: .35rem; border-radius: 6px; font-size: 1.1rem; line-height: 1; transition: background var(--transition) }
.room-item__remove:hover { background: var(--danger-light) }

/* === RESULTS === */
.results { display: none; margin-top: 2.5rem }
.results.show { display: block; animation: fadeIn .4s ease }
.results__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem }
.result-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.result-card:hover { box-shadow: var(--shadow-md) }
.result-card__label { font-size: .82rem; color: var(--muted); margin-bottom: .4rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em }
.result-card__value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.2 }
.result-card__unit { font-size: .82rem; color: var(--muted); font-weight: 500; margin-top: .2rem }
.result-card--highlight { border-color: var(--accent); background: var(--accent-light) }
.result-card--highlight .result-card__value { color: var(--accent) }

/* Bucket Table */
.bucket-table { width: 100%; margin-bottom: 1.5rem; font-size: .9rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border) }
.bucket-table th, .bucket-table td { padding: .75rem 1rem; text-align: left }
.bucket-table th { font-weight: 600; background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--border) }
.bucket-table td { border-bottom: 1px solid var(--border-light) }
.bucket-table tr:last-child td { border-bottom: none }
.bucket-table .highlight { background: var(--accent-light); font-weight: 600 }

/* Cost Section */
.cost-section { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem }
.cost-section__title { font-weight: 700; margin-bottom: .75rem; font-size: .95rem }

/* Action Buttons */
.action-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem }

/* === BREADCRUMB === */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); padding: 1.25rem 0; flex-wrap: wrap }
.breadcrumb a { color: var(--muted) }
.breadcrumb a:hover { color: var(--accent) }
.breadcrumb__sep { color: var(--border); font-size: .7rem }
.breadcrumb__current { color: var(--text); font-weight: 500 }

/* === ACCORDION (FAQ) === */
.accordion { display: flex; flex-direction: column; gap: .6rem }
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--card); transition: border-color var(--transition) }
.accordion-item:hover { border-color: var(--accent) }
.accordion-item.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow) }
.accordion-btn {
  width: 100%; text-align: left; padding: 1.15rem 1.35rem;
  background: none; border: none; cursor: pointer;
  font-weight: 600; font-size: .95rem; display: flex;
  justify-content: space-between; align-items: center;
  gap: 1rem; color: var(--text); transition: background var(--transition);
}
.accordion-btn:hover { background: var(--bg) }
.accordion-btn svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s; color: var(--muted) }
.accordion-item.open .accordion-btn svg { transform: rotate(180deg); color: var(--accent) }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1) }
.accordion-body__inner { padding: 0 1.35rem 1.35rem; color: var(--text-secondary); line-height: 1.75 }
.accordion-body__inner p { margin-bottom: .75rem }
.accordion-body__inner p:last-child { margin-bottom: 0 }

/* === PRESET BADGE === */
.preset-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent-light); color: var(--accent);
  padding: .35rem .85rem; border-radius: 99px;
  font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
}
.preset-badge svg { width: 14px; height: 14px }

/* === ARTICLE / GUIDE === */
.article { max-width: var(--max-w-narrow); margin: 0 auto }
.article h2 { margin: 2.5rem 0 1rem }
.article h3 { margin: 2rem 0 .75rem }
.article p { margin-bottom: 1rem; line-height: 1.85; color: var(--text-secondary) }
.article ul, .article ol { margin-bottom: 1rem; padding-left: 1.5rem }
.article li { margin-bottom: .5rem; line-height: 1.75; color: var(--text-secondary) }
.article blockquote { border-left: 4px solid var(--accent); padding: 1rem 1.35rem; margin: 1.5rem 0; background: var(--accent-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); font-style: italic }
.article .tip-box { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--radius-md); padding: 1.15rem 1.35rem; margin: 1.75rem 0; font-size: .9rem; line-height: 1.7 }
.article .warn-box { background: var(--warning-light); border: 1px solid var(--warning); border-radius: var(--radius-md); padding: 1.15rem 1.35rem; margin: 1.75rem 0; font-size: .9rem; line-height: 1.7 }
.article table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .9rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border) }
.article th, .article td { padding: .7rem 1rem; text-align: left }
.article th { background: var(--bg-alt); font-weight: 600; border-bottom: 1px solid var(--border) }
.article td { border-bottom: 1px solid var(--border-light) }

/* === INTERNAL LINKS === */
.links-section { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border) }
.links-section h2, .links-section h3 { margin-bottom: 1.15rem }
.link-chips { display: flex; flex-wrap: wrap; gap: .5rem }
.link-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .45rem .95rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 99px;
  font-size: .82rem; font-weight: 500; color: var(--text);
  transition: all var(--transition);
}
.link-chip:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px) }

/* === SEARCH === */
.search-box { position: relative; max-width: 560px; margin: 0 auto 2rem }
.search-box input {
  width: 100%; padding: 1rem 1.35rem 1rem 3.25rem;
  border: 2px solid var(--border); border-radius: 99px;
  font-size: 1rem; background: var(--card);
  box-shadow: var(--shadow);
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md) }
.search-box svg { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted) }
.search-filters { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2rem }
.filter-chip {
  padding: .45rem 1.15rem; border: 1px solid var(--border);
  border-radius: 99px; font-size: .85rem; font-weight: 500;
  cursor: pointer; background: var(--card); color: var(--muted);
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-accent) }
.search-results { display: flex; flex-direction: column; gap: .75rem }
.search-empty { text-align: center; padding: 3rem 1rem; color: var(--muted) }

/* === AD SLOTS === */
.ad-slot {
  background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 1rem; margin: 2.5rem 0;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ad-slot ins { display: block; width: 100% }

/* === FOOTER === */
.footer { background: var(--card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: auto }
.footer__grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem }
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr } }
.footer__brand { color: var(--muted); font-size: .9rem; line-height: 1.7 }
.footer__brand .logo { margin-bottom: 1rem }
.footer__heading { font-weight: 700; font-size: .85rem; margin-bottom: .85rem; color: var(--text); text-transform: uppercase; letter-spacing: .05em }
.footer__links { display: flex; flex-direction: column; gap: .55rem }
.footer__links a { color: var(--muted); font-size: .875rem; transition: color var(--transition) }
.footer__links a:hover { color: var(--accent) }
.footer__bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted-light) }

/* === DISCLAIMER === */
.disclaimer {
  background: var(--warning-light); border: 1px solid var(--warning);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
  font-size: .85rem; color: #92400e; line-height: 1.65; margin: 1.5rem 0;
}
[data-theme="dark"] .disclaimer { background: #451a03; border-color: #b45309; color: #fcd34d }

/* === UTILITY === */
.text-center { text-align: center }
.text-muted { color: var(--muted) }
.mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem } .mt-4 { margin-top: 2rem } .mt-5 { margin-top: 3rem }
.mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem } .mb-4 { margin-bottom: 2rem } .mb-5 { margin-bottom: 3rem }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .5 } }
.fade-in { animation: fadeIn .4s ease both }
.slide-up { animation: slideUp .5s ease both }

/* Staggered animations */
.stagger > * { animation: slideUp .5s ease both }
.stagger > *:nth-child(1) { animation-delay: .05s }
.stagger > *:nth-child(2) { animation-delay: .1s }
.stagger > *:nth-child(3) { animation-delay: .15s }
.stagger > *:nth-child(4) { animation-delay: .2s }
.stagger > *:nth-child(5) { animation-delay: .25s }
.stagger > *:nth-child(6) { animation-delay: .3s }

/* === PRINT === */
@media print {
  .header, .footer, .ad-slot, .action-btns, .tabs, .no-print, nav, .hero::before { display: none !important }
  body { background: #fff; color: #000; font-size: 11pt }
  .card, .result-card { box-shadow: none; border: 1px solid #ddd }
  .results { display: block !important }
  .container { max-width: 100%; padding: 0 }
  .hero { background: none; padding: 2rem 0 }
  @page { margin: 2cm }
}
