/* =============================================
   Net-Brüt Hesap — Premium Design System v2
   Senior Frontend Developer Quality
   ============================================= */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --bg: #f5f7fa;
  --bg-subtle: #eef1f6;
  --card: #ffffff;
  --card-hover: #fafbfd;
  --text: #111827;
  --text-secondary: #374151;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --accent-ultra-light: #eff6ff;
  --accent2: #7c3aed;
  --accent2-light: #ede9fe;
  --success: #059669;
  --success-light: #d1fae5;
  --warn: #d97706;
  --warn-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
  --gradient-card: linear-gradient(145deg, rgba(37,99,235,.03) 0%, rgba(124,58,237,.03) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.7) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.1);
  --shadow-accent: 0 8px 30px rgba(37,99,235,.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --max-w: 1200px;
  --header-h: 72px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-bounce: .4s cubic-bezier(.34,1.56,.64,1);
}

html.dark {
  --bg: #0a0c14;
  --bg-subtle: #111320;
  --card: #161929;
  --card-hover: #1c2035;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-light: #64748b;
  --border: #1e293b;
  --border-light: #1a2236;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: #172554;
  --accent-ultra-light: #0f1d3d;
  --accent2: #a78bfa;
  --accent2-light: #1e1545;
  --success-light: #064e3b;
  --warn-light: #451a03;
  --danger-light: #450a0a;
  --gradient-glass: linear-gradient(135deg, rgba(22,25,41,.95) 0%, rgba(22,25,41,.8) 100%);
  --gradient-card: linear-gradient(145deg, rgba(59,130,246,.04) 0%, rgba(167,139,250,.04) 100%);
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.5);
  --shadow-accent: 0 8px 30px rgba(59,130,246,.2);
}

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

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

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-light); color: var(--accent); }

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -.01em;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.02); color: var(--text); }
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .875rem;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-ultra-light); }
.nav-links a.active { color: var(--accent); background: var(--accent-ultra-light); font-weight: 600; }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .875rem;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-dropdown-trigger:hover { color: var(--accent); background: var(--accent-ultra-light); }
.nav-dropdown-trigger::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}
.nav-dropdown:hover .nav-dropdown-trigger::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .75rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--accent-ultra-light);
  color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-ultra-light); transform: scale(1.05); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--card);
  z-index: 99;
  padding: 1rem 1.25rem;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: .95rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-xs);
  color: var(--text);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.mobile-nav a:hover { background: var(--accent-ultra-light); color: var(--accent); }
.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: .4rem 0;
}

/* ---------- MAIN ---------- */
main { flex: 1; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ---------- HERO (HOME) ---------- */
.hero-home {
  position: relative;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  padding: 4rem 2.5rem 3.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(59,130,246,.2), transparent),
    radial-gradient(ellipse 500px 300px at 80% 30%, rgba(124,58,237,.2), transparent);
  pointer-events: none;
}
.hero-home::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  letter-spacing: .02em;
}
.hero-home h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.hero-home h1 .grad-text {
  background: linear-gradient(135deg, #93c5fd, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-home p {
  position: relative;
  font-size: 1.15rem;
  opacity: .85;
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- HERO (INNER) ---------- */
.hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ---------- STAT CARDS ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: -1.5rem 0 2.5rem;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto .75rem;
}
.stat-icon.blue { background: var(--accent-light); color: var(--accent); }
.stat-icon.purple { background: var(--accent2-light); color: var(--accent2); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.amber { background: var(--warn-light); color: var(--warn); }
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.2;
}
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem;
  font-weight: 500;
}

/* ---------- INLINE MINI CALCULATOR ---------- */
.mini-calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.mini-calc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--text);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .875rem;
  background: var(--accent-ultra-light);
  color: var(--accent);
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.card-desc {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .875rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.card-link:hover { gap: .6rem; }

/* ---------- SECTION HEADINGS ---------- */
.section-header {
  margin-bottom: 2rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--accent-ultra-light);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 100px;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 540px;
}
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ---------- CALCULATOR ---------- */
.calc-wrap { max-width: 660px; margin: 0 auto; }

.mode-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.mode-tab {
  flex: 1;
  padding: .875rem;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all var(--transition);
  font-family: var(--font);
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem 1.5rem;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn-primary:hover::after { background: rgba(255,255,255,.1); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(37,99,235,.25); }
.btn-primary:active { transform: scale(.98); }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--accent); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- RESULT ---------- */
.result-card {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  color: #fff;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.result-label { font-size: .9rem; opacity: .85; margin-bottom: .35rem; font-weight: 500; }
.result-amount {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.result-currency { font-size: 1.1rem; opacity: .75; margin-left: .35rem; }

/* ---------- BREAKDOWN TABLE ---------- */
.breakdown-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0;
}
.breakdown-table th,
.breakdown-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
}
.breakdown-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.breakdown-table td:last-child {
  text-align: right;
  font-weight: 600;
  font-family: var(--mono);
  font-size: .88rem;
}
.breakdown-table tr:hover td { background: var(--accent-ultra-light); }
.breakdown-table tr.total td {
  font-weight: 700;
  border-top: 2px solid var(--accent);
  border-bottom: none;
  background: transparent;
}

/* ---------- ACCORDION ---------- */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1rem 0;
}
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--card);
  border: none;
  text-align: left;
  font-size: .93rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.accordion-trigger:hover { background: var(--bg-subtle); }
.accordion-trigger::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform .3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.accordion-trigger.open::after { content: "\2212"; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-body { padding: 1rem 1.25rem 1.25rem; font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }

/* ---------- DISCLAIMER ---------- */
.disclaimer {
  background: var(--warn-light);
  border: 1px solid rgba(217,119,6,.15);
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.disclaimer strong { color: var(--text); }

/* ---------- CHIPS ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--accent-ultra-light);
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; }
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

/* ---------- PRESET LINKS ---------- */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}
.preset-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.125rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.preset-link::before {
  content: '\2192';
  color: var(--muted-light);
  font-size: .85rem;
  transition: color var(--transition), transform var(--transition);
}
.preset-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.preset-link:hover::before { color: var(--accent); transform: translateX(2px); }

/* ---------- SEARCH ---------- */
.search-input-wrap { position: relative; margin-bottom: 1.5rem; }
.search-input-wrap input {
  width: 100%;
  padding: 1.1rem 1rem 1.1rem 3.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08), var(--shadow-md);
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.15rem;
}
.search-results { margin-top: 1rem; }
.search-result-item {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.search-result-item:hover { background: var(--accent-ultra-light); }
.search-result-item h3 { font-size: 1rem; margin-bottom: .3rem; }
.search-result-item p { font-size: .87rem; color: var(--muted); }

/* ---------- ARTICLE ---------- */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .83rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 2.25rem 0 .75rem; letter-spacing: -.01em; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
.article-body p { margin-bottom: 1.1rem; color: var(--text-secondary); line-height: 1.8; }
.article-body ul, .article-body ol { margin: .75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .5rem; font-size: .93rem; line-height: 1.7; }
.article-body code {
  background: var(--bg-subtle);
  padding: .2em .45em;
  border-radius: 5px;
  font-size: .87em;
  font-family: var(--mono);
  color: var(--accent);
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.25rem 0;
  background: var(--accent-ultra-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--muted);
}
.update-label {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  background: var(--accent-ultra-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding: .5rem 0;
}
.breadcrumb a { color: var(--accent); font-weight: 500; }
.breadcrumb span { color: var(--muted-light); }

/* ---------- QUICK LINKS ---------- */
.quick-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.quick-links a {
  padding: .45rem .95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.quick-links a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-ultra-light); }

/* ---------- TOGGLE ---------- */
.toggle-wrap { display: flex; align-items: center; gap: .6rem; margin: .75rem 0; }
.toggle-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.toggle-wrap label { font-size: .87rem; color: var(--muted); cursor: pointer; }

/* ---------- AD BLOCK ---------- */
.ad-block { margin: 2rem 0; text-align: center; min-height: 90px; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: var(--bg);
  padding: .8rem 1.75rem;
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-xl);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- POPULAR SECTION ---------- */
.popular-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.popular-tab {
  padding: .45rem 1rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: var(--font);
  transition: all var(--transition);
}
.popular-tab:hover { border-color: var(--accent); color: var(--accent); }
.popular-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item .t-icon { font-size: 1.1rem; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.cta-banner h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; position: relative; }
.cta-banner p { opacity: .85; margin-bottom: 1.5rem; position: relative; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.footer-brand span { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .875rem;
}
.footer-col a {
  display: block;
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: .5rem;
  transition: color var(--transition), transform var(--transition);
}
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted-light);
}

/* ---------- FORM ---------- */
.form-static textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--card);
  color: var(--text);
  resize: vertical;
  min-height: 120px;
  transition: all var(--transition);
}
.form-static textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .hero-home { padding: 2.5rem 1.5rem 2rem; }
  .hero-home h1 { font-size: 1.8rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: -1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.35rem; }
  .result-amount { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container, .container-narrow { padding: 1.5rem 1rem; }
  .trust-bar { gap: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-white,
  .hero-actions .btn-ghost { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .preset-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; gap: .75rem; }
}

/* ---------- STEPS ROW ---------- */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.step-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-accent);
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}
.step-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps-row { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .site-footer, .ad-block, .theme-toggle, .mobile-toggle,
  .btn-secondary, .quick-links, .hero-home::before, .hero-home::after,
  .trust-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .hero-home { background: #1e3a8a !important; }
  .result-card { background: #eee !important; color: #000 !important; box-shadow: none; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
