:root {
  --bg: #020617;
  --bg-card: #020617;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.2);
  --border-soft: rgba(148, 163, 184, 0.35);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition-fast: 0.15s ease-out;
  --transition-med: 0.22s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #0b1020 0, #020617 40%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

/* HEADER */

.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, #a855f7, #6366f1 45%, #22c55e 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 10px 25px rgba(30, 64, 175, 0.7);
}

.logo-text-main {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--text-soft);
}

/* ADS */

.ad {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-soft);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-top {
  height: 70px;
  margin-bottom: 16px;
}

.ad-side {
  min-height: 260px;
  width: 260px;
}

.ad-bottom {
  height: 70px;
  margin-top: 16px;
}

.ad-label {
  opacity: 0.9;
}

/* LAYOUT */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) auto;
  gap: 18px;
  align-items: flex-start;
}

.main-card {
  width: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD */

.card {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
}

.card-header {
  margin-bottom: 10px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 3px;
}

/* TABS */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;              /* üst boşluk kalksın */
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  justify-content: center; 
}

.tabs-top {
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.tab-button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-soft);
  padding: 7px 13px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.tab-button:hover {
  border-color: rgba(129, 140, 248, 0.9);
  color: #e5e7eb;
  transform: translateY(-0.5px);
}

.tab-button.active {
  background: radial-gradient(circle at 20% 0, #a855f7, #4f46e5 45%, #22c55e 100%);
  color: #f9fafb;
  border-color: transparent;
}

/* TAB PANELS */

.tab-panel {
  margin-top: 6px;
  display: none;
}

.tab-panel.active {
  display: block;
}

/* GRID LAYOUTS */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 16px;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FORM ELEMENTS */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.select,
.input,
.textarea {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
}

.textarea {
  resize: vertical;
  min-height: 190px;
  line-height: 1.55;
}

.select:focus,
.input:focus,
.textarea:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.6);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-0.5px);
}

.tiny-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* BUTTONS */

.btn-primary {
  border-radius: var(--radius-pill);
  border: none;
  padding: 11px 22px;
  background: radial-gradient(circle at 20% 0, #a855f7, #4f46e5 40%, #22c55e 90%);
  color: #f9fafb;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.65);
  transition: transform var(--transition-med), box-shadow var(--transition-med), filter var(--transition-med);
  margin-top: 2px;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 18px 42px rgba(79, 70, 229, 0.85);
}

.btn-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  filter: brightness(1.1);
}

/* RESULTS CARD */

.result-card {
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(129, 140, 248, 0.7);
  padding: 14px 14px 12px;
  overflow: hidden;
}

/* glow */
.result-card::before {
  content: "";
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from 220deg,
    rgba(129, 140, 248, 0.45),
    transparent,
    rgba(236, 72, 153, 0.35),
    transparent,
    rgba(56, 189, 248, 0.35),
    transparent
  );
  opacity: 0.3;
  filter: blur(26px);
  pointer-events: none;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.badge {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.result-price-block {
  text-align: right;
}

.price-main {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.price-sub {
  font-size: 11px;
  color: #cbd5f5;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.result-pill {
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.result-pill-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.result-pill-value {
  font-size: 13px;
  font-weight: 600;
}

.summary-box {
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  font-size: 11px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.summary-box p {
  flex: 1;
  margin: 0;
}

.summary-box-compact {
  margin-top: 8px;
}

/* COMPARE */

.double-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compare-result {
  margin-top: 12px;
}

.compare-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compare-col {
  padding: 8px 9px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.75);
}

.compare-model-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.compare-main {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
}

.compare-sub {
  font-size: 11px;
  color: var(--text-soft);
}

/* MODELS TABLE */

.models-card {
  margin-top: 18px;
}

.models-header {
  margin-bottom: 8px;
}

.table-wrapper {
  max-height: 260px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.98);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

thead {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.98);
  z-index: 1;
}

th,
td {
  padding: 7px 9px;
  text-align: left;
  white-space: nowrap;
}

th {
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.9);
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.96);
}

tbody tr:hover {
  background: rgba(30, 64, 175, 0.38);
}

td {
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
  color: #e5e7eb;
}

/* FOOTER */

.footer {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* UTILS */

.hidden {
  display: none !important;
}



/* ====== Global layout shell for static pages (About / Privacy / Contact) ====== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), transparent 60%),
    radial-gradient(circle at bottom right, rgba(94, 234, 212, 0.25), transparent 55%),
    #020617;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* ====== Top Navigation ====== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.top-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #38bdf8;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.35), transparent 60%);
}

.nav-logo-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #e5e7eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #cbd5f5;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(51, 65, 85, 0.9), rgba(15, 23, 42, 0.95));
  color: #f9fafb;
}

.nav-link-active {
  border-color: rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.9), rgba(15, 23, 42, 0.95));
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 18px 40px -24px rgba(56, 189, 248, 0.7);
}

/* ====== Page layout & card ====== */

.page-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px 40px;
}

.page-card {
  width: 100%;
  max-width: 960px;
  border-radius: 20px;
  padding: 22px 20px 24px;
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.88), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 22px 60px rgba(15, 23, 42, 0.95);
}

/* Kart başlıkları */

.page-card .card-header {
  margin-bottom: 18px;
}

.page-card .card-title {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #f9fafb;
}

.page-card .card-subtitle {
  font-size: 14px;
  color: #cbd5f5;
  max-width: 640px;
}

/* Badge */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.badge-soft {
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

/* İçerik blokları */

.card-body {
  border-radius: 16px;
  padding: 16px 14px 4px;
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.section-block {
  margin-bottom: 18px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.section-text {
  font-size: 14px;
  line-height: 1.6;
  color: #d1d5db;
}

/* Liste stilleri */

.bullet-list {
  margin: 0 0 10px 18px;
  padding: 0;
  list-style: disc;
}

.bullet-list li {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 4px;
}

.contact-list {
  margin: 0 0 8px 16px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  font-size: 14px;
  margin-bottom: 4px;
  color: #d1d5db;
}

.contact-list a {
  color: #38bdf8;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Muted metin */

.muted {
  font-size: 12px;
  color: #9ca3af;
}

/* Özellik kutuları (About sayfası) */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.feature-card {
  border-radius: 14px;
  padding: 10px 10px 11px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.feature-text {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5f5;
}

/* ====== Contact page layout ====== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.contact-info {
  padding-right: 6px;
  border-right: 1px solid rgba(30, 64, 175, 0.7);
}

.contact-form-wrapper {
  padding-left: 4px;
}

/* Form stilleri */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 13px;
  color: #e5e7eb;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  padding: 7px 9px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6b7280;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

/* Buton */

.primary-button {
  align-self: flex-end;
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.96), rgba(37, 99, 235, 0.96));
  color: #f9fafb;
  box-shadow:
    0 12px 32px rgba(37, 99, 235, 0.8),
    0 0 0 1px rgba(56, 189, 248, 0.4);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(37, 99, 235, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.65);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow:
    0 10px 24px rgba(30, 64, 175, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.55);
}

/* ====== Footer ====== */

.site-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  padding: 10px 16px 14px;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ====== Responsive tweaks ====== */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-info {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(30, 64, 175, 0.7);
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .contact-form-wrapper {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .top-nav-inner {
    padding-inline: 12px;
  }

  .nav-links {
    gap: 6px;
  }

  .page-card {
    padding: 18px 14px 18px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}




/* RESPONSIVE */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ad-side {
    width: 100%;
    min-height: 90px;
  }
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
  .result-price-block {
    text-align: left;
    margin-top: 4px;
  }
  .compare-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ad-top,
  .ad-bottom {
    height: 60px;
  }
}





/* ====== Unified Footer (matches homepage) ====== */

.site-footer {
  margin-top: auto;
  backdrop-filter: blur(12px);
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
  border-top: 1px solid rgba(56, 189, 248, 0.35);
  padding: 24px 16px;
  text-align: center;
  color: #cbd5f5;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.7);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #38bdf8;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.site-footer a:hover {
  color: #f9fafb;
  opacity: 0.9;
}


/* === Compare & Optimizer layouts === */

.panel-header {
  margin-bottom: 12px;
}

.panel-header h2 {
  font-size: 18px;
  color: #f9fafb;
  margin-bottom: 4px;
}

.panel-header p {
  font-size: 13px;
  color: #9ca3af;
}

.compare-grid,
.optimizer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
}

.compare-input,
.optimizer-input {
  border-radius: 16px;
  padding: 12px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.compare-output,
.optimizer-output {
  border-radius: 16px;
  padding: 12px;
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.99));
  border: 1px solid rgba(30, 64, 175, 0.9);
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.field textarea,
.field input,
.field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 13px;
  padding: 7px 9px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-summary {
  font-size: 13px;
  color: #d1d5db;
}

/* Compare table */

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 8px;
}

.compare-table th,
.compare-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.6);
}

.compare-table th {
  text-align: left;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.compare-table td {
  color: #cbd5f5;
}

.highlight-good {
  color: #bbf7d0;
}

.compare-insight {
  font-size: 12px;
  color: #9ca3af;
}

/* Optimizer metrics */

.opt-metrics-card {
  border-radius: 12px;
  padding: 10px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.99));
  border: 1px solid rgba(30, 64, 175, 0.8);
  margin-bottom: 10px;
}

.opt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.opt-metric {
  padding: 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.opt-metric-savings {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.95));
  border-color: rgba(34, 197, 94, 0.5);
}

.opt-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.opt-value {
  font-size: 17px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 3px;
}

.opt-sub {
  font-size: 12px;
  color: #9ca3af;
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .compare-grid,
  .optimizer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-inline {
    grid-template-columns: minmax(0, 1fr);
  }

  .opt-metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ad-hidden {
  display: none;
}

/* MOBILE TABS IMPROVEMENTS */
@media (max-width: 640px) {
  .tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .tabs::-webkit-scrollbar {
    display: none; /* Chrome / Safari scrollbar'ı gizle */
  }

  .tab-button {
    flex: 0 0 auto;           /* Her buton sabit genişlikte, satır kırma yok */
    font-size: 11px;          /* Mobilde biraz daha küçük font */
    padding: 6px 10px;        /* Daha kompakt padding */
    white-space: nowrap;      /* Metin tek satırda kalsın */
  }
}
