/* ============================================
   Hesappla.net - Ana Stil Dosyası
   ============================================ */

/* ── Variables ── */
:root {
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #d97706;
  --secondary-light: #fef3c7;
  --success: #16a34a;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --neutral: #64748b;

  --bg: #f1f5f9;
  --bg-dark: #0f172a;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.08);
  --shadow: 0 4px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.06);
  --shadow-md: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.06);

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

  --header-h: 70px;
  --ticker-h: 44px;
  --transition: .2s ease;
  --result-bg: linear-gradient(135deg, var(--primary-light) 0%, #eff6ff 100%);
  --result-border: #bfdbfe;
  --result-row-bg: #ffffff;
  color-scheme: light;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e3a5f;
  --secondary: #f59e0b;
  --secondary-light: #422006;
  --success: #22c55e;
  --success-light: #14532d;
  --danger: #f87171;
  --danger-light: #450a0a;
  --neutral: #94a3b8;

  --bg: #0b1220;
  --bg-dark: #020617;
  --card: #111827;
  --border: #1e293b;
  --border-light: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --shadow: 0 4px 6px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
  --shadow-md: 0 10px 25px rgba(0,0,0,.4), 0 4px 10px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.45), 0 8px 16px rgba(0,0,0,.3);

  --result-bg: linear-gradient(135deg, #0f1c33 0%, #13233f 100%);
  --result-border: #1e3a5f;
  --result-row-bg: #0b1220;
  color-scheme: dark;
}

/* ?? Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }

/* ?? Typography ── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-muted); }

/* ?? Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }

/* ?? Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  width: 100%;
  max-width: none;
  padding: 0 24px;
  margin: 0;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img,
.logo-img { height: 44px; width: auto; }
.logo-img--dark { display: none; }
[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="dark"] .logo-img--dark { display: block; }
.mobile-menu-header .logo-img { height: 36px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 12px;
  flex-shrink: 0;
}
.nav-link.nav-btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
}
.nav-link.nav-btn-primary {
  background: var(--secondary);
  color: #fff;
}
.nav-link.nav-btn-primary:hover,
.nav-link.nav-btn-primary.active {
  background: #b45309;
  color: #fff;
}
.nav-link.nav-btn-secondary {
  background: var(--primary);
  color: #fff;
}
.nav-link.nav-btn-secondary:hover,
.nav-link.nav-btn-secondary.active {
  background: var(--primary-hover);
  color: #fff;
}
.nav-link.highlight {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
}
.nav-link.highlight:hover { background: #b45309; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  flex: 0 0 260px;
  transition: all var(--transition);
}
.header-search:focus-within {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.header-search svg { color: var(--text-light); flex-shrink: 0; }
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: .875rem;
  color: var(--text);
}
.header-search input::placeholder { color: var(--text-light); }
.header-search input,
.search-modal-input input,
.hero-search input {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.theme-icon { display: block; }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ?? Live Rates Ticker ── */
.rates-ticker {
  position: sticky;
  top: var(--header-h);
  z-index: 99;
  height: var(--ticker-h);
  background: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--secondary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-label .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-content {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  height: var(--ticker-h);
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.15);
}
.ticker-item .t-name { color: rgba(255,255,255,.7); font-size: .7rem; text-transform: uppercase; }
.ticker-item .t-spark { display: inline-flex; align-items: center; line-height: 0; }
.ticker-item .t-val { font-weight: 700; font-size: .9rem; }
.ticker-item .t-change { font-size: .72rem; padding: 2px 6px; border-radius: 4px; }
.ticker-item .t-change.up { background: rgba(22,163,74,.25); color: #86efac; }
.ticker-item .t-change.down { background: rgba(220,38,38,.25); color: #fca5a5; }
.ticker-item .t-change.flat { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

/* ?? Hero ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1e40af 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 span { color: #fbbf24; }
.hero p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 32px; max-width: 500px; }

.hero-search {
  display: flex;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}
.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-light); }
.hero-search button {
  padding: 16px 28px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-search button:hover { background: #b45309; }

.hero-quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-quick-links a {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #e2e8f0;
  font-size: .8rem;
  padding: 7px 14px;
  border-radius: 50px;
  transition: all var(--transition);
}
.hero-quick-links a:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero right - rates preview widget */
.hero-rates {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(10px);
}
.hero-rates-title {
  color: rgba(255,255,255,.6);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-rates-title span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: blink 1.5s infinite;
}
.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.rate-row:last-child { border-bottom: none; }
.rate-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.rate-mid {
  flex: 0 0 64px;
  width: 64px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rate-spark { display: block; overflow: visible; }
.rate-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}
.rate-icon.usd { background: #22c55e1a; color: #4ade80; }
.rate-icon.eur { background: #3b82f61a; color: #60a5fa; }
.rate-icon.gbp { background: #a855f71a; color: #c084fc; }
.rate-icon.gold { background: #f59e0b1a; color: #fbbf24; }
.rate-icon.btc { background: #f973161a; color: #fb923c; }
.rate-icon.silver { background: #94a3b81a; color: #cbd5e1; }
.rate-icon.eth { background: #6366f11a; color: #a5b4fc; }
.rate-icon.chf { background: #ef44441a; color: #fca5a5; }

.rate-name { color: #fff; font-weight: 600; font-size: .95rem; }
.rate-sub { color: rgba(255,255,255,.4); font-size: .72rem; }
.rate-right { text-align: right; }
.rate-val { color: #fff; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rate-chg { font-size: .72rem; padding: 2px 8px; border-radius: 4px; margin-top: 3px; display: inline-block; }
.rate-chg.up { background: #16a34a22; color: #4ade80; }
.rate-chg.down { background: #dc262622; color: #fca5a5; }
.rate-chg.flat { background: rgba(255,255,255,.1); color: rgba(255,255,255,.45); }

.refresh-info {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: rgba(255,255,255,.35);
  font-size: .7rem;
}
.refresh-bar {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.refresh-bar-fill {
  height: 100%;
  background: #4ade80;
  border-radius: 2px;
  animation: refresh-fill 15s linear infinite;
}
@keyframes refresh-fill { 0%{width:0%} 100%{width:100%} }

/* ?? Ad Banner ── */
.ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ad-zone::before {
  content: 'Reklam';
  position: absolute;
  top: 4px; left: 8px;
  font-size: .65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ad-zone-leaderboard { width: 100%; height: 90px; margin: 24px auto; max-width: 728px; }
.ad-zone-billboard { width: 100%; height: 90px; margin: 24px auto; max-width: 970px; }
.ad-zone-rect { width: 300px; height: 250px; }
.ad-zone-half { width: 300px; height: 600px; }
.ad-zone-inline { width: 100%; height: 90px; margin: 24px 0; }

/* ?? Section Headers ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title { color: var(--text); }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.see-all {
  font-size: .875rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  white-space: nowrap;
}
.see-all:hover { gap: 8px; }

/* ?? Calculator Cards ── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.calc-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.calc-widget-body:has(> .calc-card) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.calc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.calc-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.calc-card:hover::before { transform: scaleX(1); }

.calc-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.calc-card-icon.blue { background: #dbeafe; }
.calc-card-icon.gold { background: #fef3c7; }
.calc-card-icon.green { background: #dcfce7; }
.calc-card-icon.purple { background: #f3e8ff; }
.calc-card-icon.red { background: #fee2e2; }
.calc-card-icon.teal { background: #ccfbf1; }
.calc-card-icon.orange { background: #ffedd5; }
.calc-card-icon.pink { background: #fce7f3; }

.calc-card-label { font-size: .65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); }
.calc-card h4 { font-size: 1rem; color: var(--text); line-height: 1.3; }
.calc-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.calc-card-arrow {
  margin-top: auto;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.calc-card:hover .calc-card-arrow { gap: 8px; }

.calc-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #fff;
}
.calc-card.featured h4 { color: #fff; }
.calc-card.featured p { color: rgba(255,255,255,.7); }
.calc-card.featured .calc-card-arrow { color: #fbbf24; }
.calc-card.featured::before { background: #fbbf24; }

/* ?? Live Rates Section ── */
.rates-section { background: var(--bg-dark); padding: 48px 0; }
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.rate-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.rate-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-2px);
}
.rate-card .r-flag {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; line-height: 1;
}
.rate-card .r-flag.usd { background: #22c55e1a; color: #4ade80; }
.rate-card .r-flag.eur { background: #3b82f61a; color: #60a5fa; }
.rate-card .r-flag.gbp { background: #a855f71a; color: #c084fc; }
.rate-card .r-flag.gold { background: #f59e0b1a; color: #fbbf24; }
.rate-card .r-flag.silver { background: #94a3b81a; color: #cbd5e1; }
.rate-card .r-flag.btc { background: #f973161a; color: #fb923c; }
.rate-card .r-flag.eth { background: #6366f11a; color: #a5b4fc; }
.rate-card .r-flag.chf { background: #ef44441a; color: #fca5a5; }
.rate-card .r-name { color: rgba(255,255,255,.5); font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.rate-card .r-val { color: #fff; font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.rate-card .r-spark {
  display: flex;
  justify-content: center;
  margin: 6px 0 8px;
  min-height: 28px;
}
.rate-card .r-chg {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .72rem; padding: 3px 8px; border-radius: 50px;
}
.rate-card .r-chg.up { background: rgba(22,163,74,.2); color: #4ade80; }
.rate-card .r-chg.down { background: rgba(220,38,38,.2); color: #fca5a5; }
.rate-card .r-chg.flat { background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); }
.rate-card .r-updated { color: rgba(255,255,255,.25); font-size: .65rem; margin-top: 8px; }

.rate-card.loading .r-val {
  background: rgba(255,255,255,.1);
  color: transparent;
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%,100% { opacity: .5; }
  50% { opacity: 1; }
}

/* ?? Category Cards ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-card .cat-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cat-card h4 { color: var(--text); margin-bottom: 6px; font-size: 1rem; }
.catalog-category .section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.catalog-count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ?? Calculator Page Layout ── */
.calc-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.calc-main { }
.calc-sidebar { }

.calc-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.calc-widget-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  padding: 24px 28px;
  color: #fff;
}
.calc-widget-header h1,
.calc-widget-header h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; font-weight: 700; }
.calc-widget-header p { color: rgba(255,255,255,.75); font-size: .9rem; margin: 0; }
.calc-widget-body { padding: 28px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-control:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.form-control-group {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.form-control-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-control-group .form-control {
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.form-control-group .form-control:focus { box-shadow: none; }
.input-addon {
  padding: 12px 16px;
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .875rem;
  border-left: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  font-size: 1.05rem;
  padding: 15px 24px;
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(30,58,138,.3); }
.btn-secondary {
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.btn-gold {
  background: var(--secondary);
  color: #fff;
}
.btn-gold:hover { background: #b45309; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }

/* Result Box */
.result-box {
  background: var(--result-bg);
  border: 1.5px solid var(--result-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  display: none;
}
.result-box.show { display: block; }
.result-box-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
}
.result-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.result-sub { font-size: .9rem; color: var(--text-muted); margin: 0; }
.result-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--result-row-bg);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.result-row .r-label { color: var(--text-muted); }
.result-row .r-value { font-weight: 700; color: var(--text); }
.result-row .r-value.positive { color: var(--success); }
.result-row .r-value.negative { color: var(--danger); }

.result-error {
  background: var(--danger-light);
  border: 1.5px solid #fecaca;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--danger);
  font-weight: 500;
  margin-top: 16px;
  display: none;
}
.result-error.show { display: block; }

/* ?? Scientific Calculator ── */
.sci-calc {
  background: #1a1f2e;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin: 0 auto;
}
.sci-display {
  padding: 24px 24px 16px;
  text-align: right;
  background: #12151e;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sci-expr { color: rgba(255,255,255,.4); font-size: .85rem; min-height: 1.2em; word-break: break-all; }
.sci-val {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  line-height: 1.2;
}
.sci-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #0f1117;
}
.sci-btn {
  padding: 18px 10px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all .1s;
  user-select: none;
  border: none;
  color: #fff;
  background: #1a1f2e;
}
.sci-btn:active { transform: scale(.95); }
.sci-btn.btn-num { background: #1e2438; }
.sci-btn.btn-num:hover { background: #252c40; }
.sci-btn.btn-op { background: #1a2d4a; color: #60a5fa; }
.sci-btn.btn-op:hover { background: #1e3a8a; color: #fff; }
.sci-btn.btn-fn { background: #1e2032; color: #94a3b8; font-size: .85rem; }
.sci-btn.btn-fn:hover { background: #262a42; color: #fff; }
.sci-btn.btn-eq {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.sci-btn.btn-eq:hover { background: #b45309; }
.sci-btn.btn-clear { background: #2d1515; color: #fca5a5; }
.sci-btn.btn-clear:hover { background: #3d1a1a; }
.sci-btn.btn-zero { grid-column: span 2; }

/* ?? Amortization Table ── */
.amort-table-wrap { overflow-x: auto; margin-top: 20px; }
.amort-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.amort-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.amort-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.amort-table tr:nth-child(even) td { background: var(--bg); }
.amort-table tr:hover td { background: var(--primary-light); }

/* ── Vaccine schedule ── */
.asi-table td { white-space: normal; vertical-align: top; }
.asi-vaccines { line-height: 1.55; color: var(--text-muted); }
.asi-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.asi-badge-past { background: #e2e8f0; color: #475569; }
.asi-badge-today { background: #fef3c7; color: #b45309; }
.asi-badge-upcoming { background: #dbeafe; color: #1d4ed8; }
.asi-row-past td { opacity: .72; }
.asi-row-next td { background: #eff6ff !important; }
.asi-row-today td { background: #fffbeb !important; }
.form-row .btn-primary { width: auto; flex: 1; }
.form-row .btn-secondary { width: auto; }
.byte-row-active {
  background: var(--primary-light);
  border-radius: 8px;
  margin: 0 -8px;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.byte-row-active .r-value { color: var(--primary); }
.byte-convert-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}
.byte-convert-row .form-group { margin-bottom: 0; }
.byte-swap-btn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.25rem;
  margin-bottom: 0;
  align-self: end;
}
@media (max-width: 640px) {
  .byte-convert-row { grid-template-columns: 1fr; }
  .byte-swap-btn { width: 100%; justify-self: stretch; }
}

/* ?? Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .825rem;
  color: var(--text-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ?? Info Cards ── */
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.info-card h3,
.info-card h4 { margin-bottom: 10px; font-size: 1rem; }
.info-card p, .info-card li { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.info-card ul { padding-left: 16px; list-style: disc; }
.info-card ul li { margin-bottom: 6px; }

/* ?? SEO Content ── */
.seo-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-top: 24px;
  margin-bottom: 16px;
}
.seo-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.35;
}
.seo-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 10px;
  line-height: 1.4;
}
.seo-content p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 12px;
}
.seo-content p:last-child { margin-bottom: 0; }
.seo-content ul {
  padding-left: 18px;
  list-style: disc;
  margin: 0 0 12px;
}
.seo-content li {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}
.seo-content strong { color: var(--text); font-weight: 600; }
.seo-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── Blog ── */
.blog-hero {
  margin: 8px 0 28px;
}
.blog-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.blog-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
  line-height: 1.6;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}
.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-body time {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.blog-card-body h2,
.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0;
}
.blog-card-body p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.blog-card-more {
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
}
.blog-pagination {
  margin-top: 32px;
}
.blog-post {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.blog-post-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.25;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-post-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.blog-post-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.blog-post-body {
  margin-top: 0;
  padding: 32px 36px;
}
.blog-share {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.blog-share-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.blog-share-head strong {
  font-size: 1.05rem;
  color: var(--text);
}
.blog-share-head span {
  font-size: .875rem;
  color: var(--text-muted);
}
.blog-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.blog-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.blog-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

@media (max-width: 768px) {
  .blog-post-body { padding: 22px 18px; }
  .blog-share { padding: 18px; }
  .blog-share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .blog-share-grid { grid-template-columns: 1fr; }
  .blog-share-grid .hb-share-wide { grid-column: auto; }
}
.info-card-title {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Home intro + FAQ ── */
.home-seo-section {
  padding-top: 8px;
}
.home-intro {
  margin-bottom: 32px;
}
.home-faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.home-faq h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.home-faq-lead {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: .95rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq-answer {
  padding: 14px 18px 16px;
}
.faq-answer p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Home zaman section ── */
.section-sub {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 36rem;
  line-height: 1.5;
}

/* ?? Tab System ── */
.tab-list {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: calc(var(--radius) - 2px);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: center;
}
.tab-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ?? Search overlay ── */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.show { display: flex; }
.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-modal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.search-modal-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text);
}
.search-results { max-height: 400px; overflow-y: auto; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-light);
}
.search-result-item:hover { background: var(--bg); }
.search-result-item .sr-icon { font-size: 1.2rem; width: 32px; text-align: center; }
.search-result-item .sr-name { font-weight: 600; font-size: .95rem; }
.search-result-item .sr-cat { font-size: .75rem; color: var(--text-light); }
.search-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-light);
  font-size: .95rem;
}

/* ?? Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 300px;
  height: 100%;
  background: var(--card);
  z-index: 300;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-logo { display: flex; align-items: center; }
.mobile-menu-logo .logo-img { height: 36px; width: auto; }
.mobile-menu-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  font-size: 1.2rem;
}
.mobile-menu-links { padding: 12px; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  font-size: .95rem;
}
.mobile-menu-links a:hover { background: var(--bg); color: var(--primary); }
.mobile-menu-links a .m-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.mobile-menu-links a.mobile-cta {
  margin-top: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.mobile-menu-links a.mobile-cta:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 299;
}
.mobile-overlay.show { display: block; }

/* ?? Footer ── */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,.5); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h5 {
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-disclaimer {
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ?? Utilities ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-mono { font-variant-numeric: tabular-nums; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }

/* ?? Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .4s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ?? Pulse update ── */
@keyframes flashUpdate {
  0% { background: rgba(250,204,21,.2); }
  100% { background: transparent; }
}
.rate-updated { animation: flashUpdate .6s ease; }

/* ?? Print ── */
@media print {
  .site-header, .rates-ticker, .site-footer, .ad-zone,
  .calc-tools, .hb-modal, .hb-toast, .calc-sidebar, .breadcrumb,
  .gold-total-bar { display: none !important; }
  .calc-page { grid-template-columns: 1fr; }
  .gold-bulk-page { padding-bottom: 0 !important; }
}

/* ── Calc page tools ── */
.calc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
  width: 100%;
}
.calc-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1.2;
}
.calc-tool-btn:hover {
  color: var(--primary);
  border-color: #93c5fd;
  background: var(--primary-light);
}
.calc-tool-btn:disabled {
  opacity: .65;
  cursor: wait;
}
.calc-tool-ico { font-size: .95rem; line-height: 1; }

/* ── Modal (hata bildir) ── */
.hb-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hb-modal.show { display: flex; }
.hb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
}
.hb-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.hb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.hb-modal-head h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text);
}
.hb-modal-x {
  border: none;
  background: transparent;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.hb-modal-x:hover { background: var(--bg); color: var(--text); }
.hb-modal-body { padding: 20px; }
.hb-modal-lead {
  margin: 0 0 16px;
  font-size: .9rem;
  color: var(--text-muted);
}
.hb-modal-body textarea.form-control {
  resize: vertical;
  min-height: 96px;
}
.hb-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--text-muted);
  margin: 8px 0 18px;
  cursor: pointer;
  line-height: 1.45;
}
.hb-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.hb-check a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Share modal ── */
.hb-share-panel { width: min(480px, 100%); }
.hb-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.hb-share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}
.hb-share-item:hover {
  border-color: #93c5fd;
  background: var(--primary-light);
  color: var(--primary);
}
.hb-share-wide { grid-column: 1 / -1; }
.hb-share-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.hb-share-ico.li { background: #0a66c2; }
.hb-share-ico.fb { background: #1877f2; }
.hb-share-ico.ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); font-size: .7rem; }
.hb-share-ico.tt { background: #010101; }
.hb-share-ico.pi { background: #e60023; }
.hb-share-ico.x { background: #0f172a; }
.hb-share-ico.wa { background: #25d366; }
.hb-share-ico.tg { background: #229ed9; }
.hb-share-ico.em { background: var(--primary); font-size: 1rem; }
.hb-share-copy {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.hb-share-copy .form-control {
  flex: 1;
  font-size: .8rem;
  color: var(--text-muted);
}
.hb-share-copy .btn { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 480px) {
  .hb-share-grid { grid-template-columns: 1fr; }
  .hb-share-wide { grid-column: auto; }
  .hb-share-copy { flex-direction: column; }
}

/* ── Toast ── */
.hb-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 10060;
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  max-width: min(90vw, 420px);
  text-align: center;
}
.hb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hb-toast.err { background: var(--danger); }
.hb-toast.ok { background: #0f172a; }

.footer-bottom a {
  color: #93c5fd;
  margin-left: 8px;
  text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .calc-tools { gap: 6px; }
  .calc-tool-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 10px 8px;
    font-size: .75rem;
  }
}

/* ── Contact page ── */
.contact-textarea {
  resize: vertical;
  min-height: 140px;
}
.contact-info-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}
.contact-info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0;
  border-bottom: none;
}
.contact-info-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.contact-info-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.contact-info-list a:hover { text-decoration: underline; }
.contact-success {
  text-align: center;
  padding: 28px 12px 8px;
}
.contact-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.contact-success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
}
.contact-success p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-success a {
  color: var(--primary);
  font-weight: 600;
}

/* ?? Responsive ── */
@media (max-width: 1024px) {
  .calc-page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rates { display: none; }
  .hero { padding: 48px 0 40px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .main-nav { display: none; }
  .header-search { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 1.75rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .calc-grid,
  .calc-grid-wide,
  .calc-widget-body:has(> .calc-card) { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .rates-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-quick-links a { font-size: .75rem; }
  .section { padding: 36px 0; }
  .ad-zone-leaderboard { height: 60px; }
}

@media (max-width: 480px) {
  .calc-grid,
  .calc-grid-wide,
  .calc-widget-body:has(> .calc-card) { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .sci-btn { padding: 14px 8px; font-size: .9rem; }
  .result-main { font-size: 1.6rem; }
  .tab-btn { font-size: .8rem; padding: 8px 10px; }
}

/* ── Toplu Altın Hesaplama ── */
.gold-bulk-page { padding-bottom: 120px; }

.gold-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gold-mode-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
  color: var(--text);
}
.gold-mode-btn strong { display: block; font-size: .9rem; }
.gold-mode-btn small { display: block; font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.gold-mode-btn:hover { border-color: var(--secondary); }
.gold-mode-btn.active {
  border-color: var(--secondary);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .15);
}
.gold-mode-ico { font-size: 1.4rem; line-height: 1; }
.gold-mode-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.gold-bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.gold-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gold-tile:hover { border-color: #fcd34d; box-shadow: var(--shadow); }
.gold-tile.has-qty {
  border-color: var(--secondary);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
}

.gold-coin-svg { width: 72px; height: 72px; filter: drop-shadow(0 4px 8px rgba(180, 83, 9, .25)); }
.gold-coin-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(180, 83, 9, .28));
  background: transparent;
}
.gold-tile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  background: transparent;
}

.gold-tile-info { text-align: center; width: 100%; }
.gold-tile-info h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin: 0; }
.gold-tile-info p { font-size: .72rem; color: var(--text-muted); margin: 2px 0 6px; }
.gold-tile-price { font-size: .85rem; font-weight: 700; color: #b45309; }
.gold-tile-price span { font-weight: 500; color: var(--text-light); font-size: .75rem; }

.gold-tile-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.gold-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  line-height: 1;
  transition: var(--transition);
}
.gold-qty-btn:hover { background: var(--secondary-light); border-color: var(--secondary); }
.gold-tile-qty input {
  flex: 1;
  height: 36px;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}
.gold-tile-qty input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .15);
}
.gold-tile-qty input::-webkit-outer-spin-button,
.gold-tile-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gold-tile-qty input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.gold-tile-line {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  min-height: 1.2em;
}
.gold-tile.has-qty .gold-tile-line { color: var(--success); }

.gold-bulk-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius);
}

.gold-inline-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.gold-inline-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.gold-inline-total strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}
.gold-inline-count {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gold-bulk-widget .calc-widget-body { padding-bottom: 8px; }
.gold-bulk-widget .gold-mode-bar {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.gold-total-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, .25);
  transform: translateY(0);
  transition: box-shadow .2s ease;
}
.gold-total-bar.active { box-shadow: 0 -8px 40px rgba(217, 119, 6, .35); }
.gold-total-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gold-total-label {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
  font-weight: 600;
}
.gold-total-count { font-size: .85rem; opacity: .85; }
.gold-total-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.gold-total-mode { font-size: .75rem; opacity: .7; }
.gold-total-right { text-align: right; }

@media (max-width: 768px) {
  .gold-mode-meta { width: 100%; align-items: flex-start; margin-left: 0; }
  .gold-bulk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gold-coin-svg, .gold-coin-img { width: 64px; height: 64px; }
  .gold-tile-visual { min-height: 72px; }
  .gold-total-value { font-size: 1.3rem; }
  .gold-bulk-page { padding-bottom: 110px; }
}

@media (max-width: 480px) {
  .gold-bulk-grid { grid-template-columns: 1fr 1fr; }
  .gold-mode-btn { flex: 1; min-width: calc(50% - 6px); padding: 8px 10px; }
  .gold-bulk-actions { flex-direction: column; align-items: stretch; }
  .gold-bulk-actions .btn { width: 100%; }
}

/* ── Dark mode component overrides ── */
[data-theme="dark"] .asi-row-today td { background: #422006 !important; }
[data-theme="dark"] .gold-mode-btn.active {
  background: linear-gradient(135deg, #422006, #78350f);
}
[data-theme="dark"] .gold-tile.has-qty {
  background: linear-gradient(180deg, #422006 0%, var(--card) 60%);
}
[data-theme="dark"] .gold-bulk-actions {
  background: linear-gradient(135deg, #422006, #78350f);
  border-color: #b45309;
}
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, .35);
}
[data-theme="dark"] .search-modal-input input {
  background: transparent;
}
[data-theme="dark"] .alert-success {
  background: var(--success-light);
  color: #86efac;
  border-color: #166534;
}
[data-theme="dark"] .alert-danger {
  background: var(--danger-light);
  color: #fca5a5;
  border-color: #7f1d1d;
}
[data-theme="dark"] select.form-control option {
  background: var(--card);
  color: var(--text);
}
[data-theme="dark"] .hb-share-item:hover {
  border-color: #3b82f6;
}

/* ── Auth / Account ── */
.header-user { position: relative; flex-shrink: 0; }
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.user-menu-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.user-menu-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-menu-initials {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 120;
}
.user-menu-meta {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.user-menu-meta strong { display: block; font-size: .9rem; }
.user-menu-meta span { font-size: .78rem; color: var(--text-muted); word-break: break-all; }
.user-menu-dropdown a,
.user-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  cursor: pointer;
}
.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-modal.is-open,
.auth-modal:not([hidden]) { display: flex; }
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg, 0 20px 40px rgba(0,0,0,.18));
  padding: 24px;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.is-active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-title { margin: 0 0 6px; font-size: 1.25rem; }
.auth-lead { margin: 0 0 18px; color: var(--text-muted); font-size: .9rem; }
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}
.auth-google-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-light);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-form .form-group { margin-bottom: 12px; }
.auth-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  margin: 4px 0 14px;
  color: var(--text-muted);
}
.auth-submit { width: 100%; }
body.auth-modal-open { overflow: hidden; }

.mobile-auth-btn,
.mobile-logout-form button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.mobile-auth-btn:hover,
.mobile-logout-form button:hover { background: var(--bg); }

.calc-widget-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.calc-widget-heading h1 { margin: 0; flex: 1; }
.fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.fav-toggle:hover,
.fav-toggle.is-active {
  color: #b45309;
  border-color: #f59e0b;
  background: #fffbeb;
}
[data-theme="dark"] .fav-toggle:hover,
[data-theme="dark"] .fav-toggle.is-active {
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
}

.account-section { padding-top: 2rem; padding-bottom: 3rem; }
.account-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.account-hero h1 { margin: 0 0 4px; font-size: 1.5rem; }
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.account-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
}
.account-nav a.is-active,
.account-nav a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.account-card-head h2 { margin: 0; font-size: 1.05rem; }
.account-card-head a { font-size: .85rem; color: var(--primary); font-weight: 600; }
.account-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.account-list-item:first-of-type { border-top: 0; }
.account-list-item p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: .875rem;
}
.account-list-item time {
  font-size: .78rem;
  color: var(--text-light);
}
.account-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-sm {
  padding: 6px 12px;
  font-size: .8rem;
}
.account-delete-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
}
.account-delete-btn:hover {
  color: #b91c1c;
  border-color: #fca5a5;
}
.account-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.account-fav-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.account-fav-item h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.account-fav-item h2 a { color: var(--text); }
.account-fav-item h2 a:hover { color: var(--primary); }
.account-fav-cat {
  display: inline-block;
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.account-fav-item p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: .875rem;
}
.account-pagination { margin-top: 1.5rem; }

@media (max-width: 768px) {
  .account-grid { grid-template-columns: 1fr; }
  .calc-widget-heading { flex-direction: column; align-items: stretch; }
  .fav-toggle { align-self: flex-start; }
}


