/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --success: #10b981;
  --border: #e2e8f0;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #111827;
  --surface-strong: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.18);
  --success: #34d399;
  --border: #334155;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}
.container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 24px;
}
.page-title {
  font-size: clamp(2rem, 2.6vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.section {
  padding: 64px 0;
}
.section-sm {
  padding: 40px 0;
}
.grid {
  display: grid;
  gap: 24px;
}
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.95rem 1.75rem;
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover,
.button:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.hero {
  display: grid;
  gap: 32px;
  padding: 88px 0;
}
.hero-copy {
  max-width: 680px;
}
.hero-copy p {
  color: var(--muted);
  margin-top: 1.25rem;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2rem;
}
.card,
.tool-card,
.blog-card,
.result-card,
.wide-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.tool-card header,
.blog-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1rem;
}
.tool-badge,
.blog-tag,
.feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-grid .card {
  min-height: 180px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
html[data-theme='dark'] .header {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(51, 65, 85, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.site-brand {
  font-weight: 800;
  font-size: 1.2rem;
}
.site-brand span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a,
.footer-links a {
  color: var(--text);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.footer-links a:hover {
  color: var(--accent);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  padding: 0.8rem 1rem;
  border-radius: 999px;
}
.banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: var(--text);
  padding: 24px;
  border-radius: 24px;
}
.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}
.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 2.3vw, 2.75rem);
}
.tool-grid,
.blog-grid,
.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid {
  display: grid;
  gap: 18px;
}
.input-group {
  display: grid;
  gap: 10px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 16px;
}
textarea {
  resize: vertical;
  min-height: 140px;
}
.label {
  font-weight: 600;
}
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: grid;
  gap: 24px;
}
.footer-links {
  display: grid;
  gap: 12px;
}
.footer-legal {
  color: var(--muted);
  font-size: 0.94rem;
}
.newsletter-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}
.search-panel {
  margin-top: 1rem;
}
.search-panel input {
  width: 100%;
  padding: 16px 18px;
}
.search-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  margin-bottom: 12px;
}
.search-card:hover {
  border-color: var(--accent);
}
.search-empty {
  color: var(--muted);
}
.faq-list {
  display: grid;
  gap: 16px;
}
.faq-item {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
}
@media (max-width: 900px) {
  .hero-grid,
  .tool-grid,
  .blog-grid,
  .features,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
.admin-panel {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 24px;
}
.admin-panel textarea {
  min-height: 260px;
}
.admin-panel table {
  width: 100%;
  border-collapse: collapse;
}
.admin-panel th,
.admin-panel td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.admin-panel input {
  width: 100%;
}

/* ── AdSense ad unit wrapper ── */
.ad-unit-wrap {
  width: 100%;
  max-width: 728px;
  margin: 2rem auto;
  text-align: center;
  overflow: hidden;
}
