/* ==========================================================================
   SELF-HOSTED WEBFONTS (Jost & JetBrains Mono)
   ========================================================================== */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* AUTOMOTIVE PARTS FINDER & VIN LOOKUP THEME */
:root {
  --font-main: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #0b192c;
  --navy-dark: #06101e;
  --primary-red: #1c69d4;
  --primary-red-hover: #0653b6;
  --bmw-blue: #1c6dd0;
  --bmw-blue-hover: #1555a5;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

html {
  font-size: 16.5px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.brand-logo-text, .brand-word, .section-heading h2,
.finder-hero-title, .panel-heading h1, .auth-card h1,
.card h2, legend, .form-intro h1 {
  color: var(--ink);
  font-family: var(--font-main) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

button, input, select, textarea, label,
.button, nav a, .header-btn-link, .finder-tab,
.cat-card strong, .trust-card strong, .trust-badge-item,
.form-progress > span, .stat-row, .user-row, .pagination a {
  font-family: var(--font-main);
}

/* Teknik & Kod Monospace Fontu (JetBrains Mono) */
code, pre, kbd, samp,
.mono,
#vin, input[name="vin"], .vin-input-wrapper input,
input[name="item_oem[]"],
#vehicle_cc, #vehicle_power, #vehicle_engine,
#phone, input[type="tel"],
.request-number, .vin-char-count,
.table-scroll table td code, table td code, table th code,
.recovery-codes li, #totp-secret,
.trust-number, .step-number, .visual-top, .vin-highlight b,
.oem-code, .sku-code, .torque-val, .tech-spec, [data-mono] {
  font-family: var(--font-mono) !important;
  font-feature-settings: "zero" 1, "cv01" 1;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* TOP UTILITY */
.utility {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.utility .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.utility a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.utility a:hover {
  color: var(--ink);
}

/* SITE HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--primary-red);
  line-height: 1;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* HEADER TRUST BADGES */
.header-trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.trust-badge-item strong {
  color: var(--navy);
  font-weight: 600;
}
.header-action-cta {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}
.header-action-cta:hover {
  background: var(--navy-dark) !important;
}

/* VIN INPUT WRAPPER & COUNTER */
.vin-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.vin-input-wrapper input {
  padding-right: 64px !important;
  font-size: 1.12rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #0f172a !important;
}
.vin-char-count {
  position: absolute;
  right: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.vin-char-count.valid {
  color: #16a34a;
  background: #dcfce7;
}

/* FORM READONLY & FIELD ENHANCEMENTS */
.input-readonly {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  cursor: default !important;
}
.field-category-select select {
  font-weight: 600 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  font-size: 0.95rem !important;
  background-color: #fff !important;
}

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.header-btn-link:hover {
  color: var(--primary-red);
}

/* CATEGORY SUB-NAV */
.cat-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding-block: 8px;
  white-space: nowrap;
}
.cat-nav a {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
  text-decoration: none;
  padding: 4px 6px;
}
.cat-nav a:hover, .cat-nav a.highlight {
  color: var(--primary-red);
}

/* HERO AUTOMOTIVE FINDER */
.finder-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding-block: 44px 56px;
}
.finder-hero-title {
  text-align: center;
  color: #fff;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* FINDER WIDGET CARD */
.finder-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  max-width: 960px;
  margin-inline: auto;
  overflow: hidden;
}

/* FINDER TABS */
.finder-tabs {
  display: flex;
  background: #f8fafc;
  border-bottom: 2px solid var(--line);
}
.finder-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.finder-tab.active {
  color: var(--primary-red);
  background: #fff;
  border-bottom-color: var(--primary-red);
}

.finder-tab-content {
  padding: 28px 32px;
}
.finder-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.finder-header-info h2 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.finder-header-info p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.finder-steps-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.finder-steps-badge span.active-step {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}

/* FINDER GRID */
.finder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin-bottom: 20px;
}
.finder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.finder-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.finder-field select, .finder-field input {
  height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
  width: 100%;
}
.finder-field select:focus, .finder-field input:focus {
  border-color: var(--primary-red);
  outline: none;
}

/* VIN DEDICATED TAB */
.vin-finder-box {
  background: #fdf2f8;
  border: 1.5px dashed #f43f5e;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.vin-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vin-input-group label {
  font-weight: 800;
  font-size: 0.92rem;
  color: #881337;
}
.vin-input-group input {
  height: 52px;
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid #e11d48;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  background: #fff;
}
.vin-card-preview {
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.82rem;
  color: #881337;
}
.vin-card-preview strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

/* FINDER SUBMIT BTN */
.finder-submit-btn {
  width: 100%;
  height: 52px;
  background: var(--primary-red);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.finder-submit-btn:hover {
  background: var(--primary-red-hover);
}

.finder-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}

/* POPULAR CATEGORIES SECTION */
.home-section {
  padding-block: 48px;
}
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}
.section-title-wrap h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-red);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.cat-card-icon {
  font-size: 32px;
  line-height: 1;
}
.cat-card strong {
  font-size: 0.88rem;
  font-weight: 700;
}

/* TRUST BANNER */
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 24px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-card-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.trust-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.trust-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-block: 48px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h3 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 8px;
}
.footer a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer address {
  font-style: normal;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #94a3b8;
}
.disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 16px;
}

/* MOBILE BAR */
.mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .finder-grid { grid-template-columns: 1fr; }
  .vin-finder-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
}

@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--ink);
  }
  .mobile-bar a.primary {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
  }
}

/* ==========================================================================
   KURUMSAL TİPOGRAFİ VE BOYUTLANDIRMA SİSTEMİ (FRONTEND & BACKEND)
   - Ana Kurumsal Font: Jost (Başlıklar, butonlar, menüler, genel metinler)
   - Teknik & Kod Fontu: JetBrains Mono (OEM, Bosch SKU, Şasi/VIN, teknik değerler)
   ========================================================================== */

/* Genel Form & Input Boyutlandırma */
.field > label,
label:not(.checkbox) {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font-family: var(--font-main);
  font-size: 1.02rem;
  min-height: 48px;
  line-height: 1.5;
  border-radius: 6px;
  padding: 11px 14px;
}

.help {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.button {
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 6px;
}

.button-small {
  font-size: 0.88rem;
  padding: 10px 18px;
}

.form-card {
  padding: 36px 32px;
}

.form-intro h1 {
  font-size: 2.8rem;
  line-height: 1.15;
}

.form-intro > p {
  font-size: 1.02rem;
  line-height: 1.6;
}

.form-progress > span {
  font-size: 0.92rem;
  font-weight: 700;
  padding-bottom: 12px;
}

legend {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   BACKEND (YÖNETİM PANELİ) TİPOGRAFİ & BÜYÜTÜLMÜŞ BOYUTLAR (.is-panel)
   ========================================================================== */

.is-panel {
  font-family: var(--font-main);
  font-size: 1.02rem;
  background: #f8fafc;
  color: #0f172a;
}

.panel-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 20px 36px;
}

.panel-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.panel-header nav > a {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.15s;
}

.panel-header nav > a:hover {
  color: var(--bmw-blue);
}

.panel-main {
  max-width: 1440px;
  padding: 36px 36px 80px;
}

.panel-heading {
  margin-bottom: 30px;
}

.panel-heading h1 {
  font-family: var(--font-main) !important;
  font-size: 2.4rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: #0f172a;
}

.panel-heading .eyebrow {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 8px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card h2 {
  font-family: var(--font-main) !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.period-links {
  gap: 12px;
  margin-bottom: 24px;
}

.period-links a {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
}

/* Panel Metrik Kartları & Dashboard Tasarımı */
.period-links {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.period-links a {
  padding: 8px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  transition: all 0.15s ease;
}
.period-links a:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}
.period-links a.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -8px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.12);
}

/* Renkli üst aksan çizgileri & zemin ışıltısı */
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #94a3b8;
}

a.metric-card { text-decoration: none; color: inherit; cursor: pointer; }
a.metric-card * { text-decoration: none !important; }

.metric-card.card-total::before { background: linear-gradient(90deg, #1c69d4, #3b82f6); }
.metric-card.card-total { background: linear-gradient(180deg, #ffffff 40%, #eef6ff 100%); border-color: #cbd5e1; }

.metric-card.card-new::before { background: linear-gradient(90deg, #2563eb, #38bdf8); }
.metric-card.card-new { background: linear-gradient(180deg, #ffffff 40%, #e0f2fe 100%); border-color: #bae6fd; }

.metric-card.card-contacted::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.metric-card.card-contacted { background: linear-gradient(180deg, #ffffff 60%, #fffbeb 100%); }

.metric-card.card-quoted::before { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.metric-card.card-quoted { background: linear-gradient(180deg, #ffffff 60%, #faf5ff 100%); }

.metric-card.card-won::before { background: linear-gradient(90deg, #10b981, #34d399); }
.metric-card.card-won { background: linear-gradient(180deg, #ffffff 60%, #ecfdf5 100%); }

.metric-card.card-rate::before { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.metric-card.card-rate { background: linear-gradient(180deg, #ffffff 60%, #f0fdfa 100%); }

.metric-card.card-overdue::before { background: linear-gradient(90deg, #e11d48, #fb7185); }
.metric-card.card-overdue { background: linear-gradient(180deg, #ffffff 60%, #fff1f2 100%); }

.metric-card.card-speed::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.metric-card.card-speed { background: linear-gradient(180deg, #ffffff 60%, #f0f9ff 100%); }

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.metric-header > span:first-child {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}
.metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 1.1rem;
}

.metric-card > strong {
  font-family: var(--font-mono) !important;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 8px 0 10px;
  color: #0f172a;
}

.metric-card > strong small {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.color-blue { color: #1d4ed8 !important; }
.color-amber { color: #b45309 !important; }
.color-purple { color: #6d28d9 !important; }
.color-green { color: #047857 !important; }
.color-teal { color: #0f766e !important; }
.color-red { color: #be123c !important; }

.metric-card > small {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.metric-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.metric-link:hover {
  text-decoration: underline;
}

/* Panel Sütunları ve Dağılım Kartları */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
}
.section-title-wrap h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.source-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.stat-count {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}
.stat-lost {
  background: #fee2e2;
  color: #b91c1c;
}

/* Panel Tabloları (Talepler, Kalemler, Kullanıcılar, İşler) */
.table-card {
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-main);
  font-size: 0.95rem;
}

tbody tr:hover {
  background: #f8fafc;
}

th {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 18px;
  background: #f8fafc;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

td {
  padding: 16px 18px;
  font-size: 0.95rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

td code,
table td code,
table th code {
  font-family: var(--font-mono) !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  background: #f1f5f9;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.table-link {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--bmw-blue);
  text-decoration: none;
}

.table-link:hover {
  color: var(--bmw-blue-hover);
  text-decoration: underline;
}

/* Gelişmiş & Renkli Panel Durum Rozetleri */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.status-new {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.status-new::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}
.status-contacted {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.status-contacted::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
}
.status-quoted {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.status-quoted::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b5cf6;
}
.status-won {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.status-won::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}
.status-lost {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.status-spam {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Talep Detay Ekranı */
.detail-grid {
  gap: 28px;
}

.detail-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px 20px;
  font-size: 1rem;
}

.detail-list dt {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
}

.detail-list dd {
  font-family: var(--font-main);
  font-size: 1.02rem;
  font-weight: 500;
  color: #0f172a;
}

.detail-list dd code {
  font-family: var(--font-mono) !important;
  font-size: 1.08rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.copy-button {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #1e293b;
}

.copy-button:hover {
  background: #cbd5e1;
}

/* Filtre Alanı */
.filter-grid .field label {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-grid input,
.filter-grid select {
  font-size: 0.95rem;
  min-height: 44px;
}

.status-filters legend {
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
}

.status-filters .checkbox {
  font-size: 0.88rem;
  font-weight: 500;
}

/* İstatistik & Kullanıcı Satırları */
.stat-row {
  font-size: 0.95rem;
  padding: 12px 0;
}

.stat-row strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.user-row strong {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
}

.user-row p {
  font-size: 0.9rem;
  color: #64748b;
}

.user-row .button,
.user-row select {
  font-size: 0.88rem;
}

.timeline strong {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 650;
}

.timeline small {
  font-size: 0.82rem;
}

.timeline p {
  font-size: 0.95rem;
}

/* Giriş (Auth) Kartı */
.auth-card {
  padding: 36px 32px;
}

.auth-card h1 {
  font-size: 2.2rem;
  font-weight: 750;
}

.auth-card p {
  font-size: 0.95rem;
  color: #64748b;
}

.auth-card .button {
  font-size: 1.05rem;
}

/* ===== Hafif kırmızı–mavi arka plan teması (site.css sonuna eklenir) ===== */
:root{
  --accent:#1c69d4; --accent-hover:#0653b6;           /* app.css turuncusunu ezer */
  --bg-tint-red:rgba(225,29,72,.08);
  --bg-tint-blue:rgba(28,109,208,.09);
  --focus-ring:0 0 0 3px rgba(28,109,208,.28);
}
body:not(.is-panel){
  background-color:#f6f8fc;
  background-image:
    radial-gradient(900px 520px at -10% -5%, var(--bg-tint-red), transparent 62%),
    radial-gradient(900px 560px at 110% 8%, var(--bg-tint-blue), transparent 62%),
    radial-gradient(700px 480px at 50% 105%, rgba(28,109,208,.05), transparent 65%);
  background-repeat:no-repeat;
}
.site-header{
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:saturate(140%) blur(8px); backdrop-filter:saturate(140%) blur(8px);
  border-bottom:0;
  box-shadow:0 1px 0 var(--line);
}
.site-header::after{ /* iki renkli ince şerit: mavi → kırmızı (M şeridi DEĞİL; 3 renk kullanma) */
  content:""; display:block; height:3px;
  background:linear-gradient(90deg,var(--bmw-blue) 0%,var(--bmw-blue) 50%,var(--primary-red) 50%,var(--primary-red) 100%);
}
.form-card{
  background:#fff;
  border:1px solid #e3e8f2;
  box-shadow:0 1px 2px rgba(15,23,42,.04),0 18px 40px -18px rgba(28,109,208,.18),0 10px 30px -20px rgba(225,29,72,.14);
}
.form-progress>span[aria-current=step]{color:var(--primary-red);border-color:var(--primary-red)}
.form-progress{gap:16px;display:flex;border-bottom:1px solid var(--line);margin-bottom:28px}
.form-progress>span{min-width:0;flex:1 1 0;text-align:left}
.button{background:var(--primary-red);border-color:var(--primary-red)}
.button:hover{background:var(--primary-red-hover);border-color:var(--primary-red-hover)}
.button-outline{background:#fff;color:var(--bmw-blue);border-color:var(--bmw-blue)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;border-color:var(--bmw-blue);box-shadow:var(--focus-ring)}
.vin-char-count.valid{background:#dbeafe;color:#1e40af}
.vin-char-count.invalid{background:#fee2e2;color:#991b1b}
.form-assurance > span{border-color:rgba(28,109,208,.35);color:var(--bmw-blue);background:#fff}

/* Input Suffix (CC eki) */
.input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-suffix input {
  padding-right: 48px !important;
}
.input-suffix span {
  position: absolute;
  right: 14px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

/* Statik Marka Rozeti (Sabit Dolu / Hafif Yeşil) */
.brand-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 12px 18px !important;
  background-color: #f0fdf4 !important;
  border: 1.5px solid #4ade80 !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #15803d !important;
  min-height: 48px !important;
  width: 100% !important;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.08) !important;
}
.brand-badge::after {
  content: "✓ BMW";
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Güç ve Birim Birleşik Grid */
.power-unit-group {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}

/* Dosya Seçici Butonu */
.file-upload-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.file-name-indicator {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.file-name-indicator.has-file {
  color: #16a34a !important;
  font-weight: 700 !important;
}

#vin::placeholder {
  letter-spacing: 0.04em;
  text-transform: none;
}

/* P0 mobil taşma düzeltmesi (aynı commit'te) */
@media (max-width:1100px){.header-trust-badges{display:none}}
@media (max-width:640px){
  .header-user-actions{display:none}
  .header-top{gap:12px}
  .form-page{padding-bottom:96px}
}
@media (max-width:360px){.brand-sub{display:none}}
@media (max-width:520px){.form-progress{gap:10px}.form-progress>span{font-size:.72rem;line-height:1.3}}
@media (prefers-reduced-transparency: reduce){.site-header{background:#fff;backdrop-filter:none}}

/* PR-3 / PR-4 Helper classes (CSP compliant, no inline styles) */
.utility-links { display: flex; gap: 16px; }
.footer-brand-wrap { margin-bottom: 12px; }
.footer-brand-logo { color: #fff; }
.footer-brand-sub { font-size: 0.75rem; color: #94a3b8; font-weight: 700; }
.footer-desc { font-size: 0.88rem; color: #94a3b8; line-height: 1.6; margin-bottom: 16px; }
.footer-whatsapp { background: var(--primary-red); color: #fff; text-decoration: none; display: inline-flex; border-radius: 6px; }
.footer-login-link { color: #64748b; }
.panel-brand-text { font-size: 1.2rem; }
.summary-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.notice-hint { color: #b91c1c; font-weight: 500; margin-top: 4px; }
.file-upload-wrap input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.badge.status-trash { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-weight: 600; }
.form-progress { display: flex; width: 100%; }
.form-progress > span { flex: 1 1 0; text-align: left; }

/* ==========================================================================
   FORM ALANLARI GÖRSEL DOLULUK DURUMLARI (HAFİF YEŞİL / HAFİF KIRMIZI)
   ========================================================================== */

/* Geçiş animasyonları */
#request-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]),
#request-form select,
#request-form textarea {
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Boş / Henüz Doldurulmamış Kutular: Hafif Kırmızı */
#request-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]).field-empty,
#request-form select.field-empty,
#request-form textarea.field-empty {
  background-color: #fef2f2 !important;
  border: 1.5px solid #fca5a5 !important;
  color: #0f172a !important;
}

#request-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]).field-empty::placeholder,
#request-form textarea.field-empty::placeholder {
  color: #94a3b8 !important;
}

#request-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]).field-empty:focus,
#request-form select.field-empty:focus,
#request-form textarea.field-empty:focus {
  background-color: #fff8f8 !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.22) !important;
  outline: none !important;
}

/* Dolu / Bilgi Girilmiş Kutular: Hafif Yeşil */
#request-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]).field-filled,
#request-form select.field-filled,
#request-form textarea.field-filled {
  background-color: #f0fdf4 !important;
  border: 1.5px solid #4ade80 !important;
  color: #0f172a !important;
}

#request-form input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="submit"]).field-filled:focus,
#request-form select.field-filled:focus,
#request-form textarea.field-filled:focus {
  background-color: #ecfdf5 !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24) !important;
  outline: none !important;
}

/* Hata Durumu (Geçersiz Değer) */
#request-form input[aria-invalid="true"],
#request-form select[aria-invalid="true"],
#request-form textarea[aria-invalid="true"] {
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Onay Kutusu (Checkbox) */
#request-form input[type="checkbox"]:checked {
  accent-color: #16a34a;
}

/* ==========================================================================
   TEKLİF OLUŞTURMA VE YÖNETİM PANELİ (QUOTE PANEL)
   ========================================================================== */
.button-accent {
  background: var(--bmw-blue) !important;
  border-color: var(--bmw-blue) !important;
  color: #fff !important;
}
.button-accent:hover {
  background: #1557a6 !important;
  border-color: #1557a6 !important;
}
.button-whatsapp {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
}
.button-whatsapp:hover {
  background: #1eb857 !important;
  border-color: #1eb857 !important;
}
.quote-card {
  border-top: 4px solid var(--bmw-blue) !important;
  background: #fff;
  margin-top: 24px;
}
.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.quote-card-header h2 {
  margin: 6px 0 4px !important;
  font-size: 1.35rem !important;
  color: #1e293b;
}
.badge-accent {
  background: #e0f2fe;
  color: #0369a1;
}
.quote-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}
.quote-card .table-scroll { overflow-x: auto; }
.quote-table th {
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 8px;
  white-space: nowrap;
  border: 1px solid var(--line);
}
.quote-table td {
  padding: 6px 6px;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.quote-input {
  min-height: 38px !important;
  padding: 6px 10px !important;
  font-size: 0.88rem !important;
  border-radius: 4px !important;
  width: 100%;
}
.quote-table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.quote-grand-total-wrap {
  display: grid;
  min-width: 290px;
  align-items: stretch;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
}
.quote-grand-total-wrap > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.quote-grand-total-wrap .quote-grand-total {
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
  margin-top: 2px;
}
.quote-grand-total-wrap .quote-grand-total strong {
  color: var(--bmw-blue);
}
.quote-grand-total-wrap span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}
.quote-grand-total-wrap strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-red);
}
.quote-brand-select { background: #fff; cursor: pointer; }
.quote-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.quote-notes-field {
  grid-column: 1 / -1;
}
.quote-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  flex-wrap: wrap;
}
.button-icon {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: bold;
}
.button-icon:hover {
  background: #ef4444;
  color: #fff;
}
.quote-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* Teklif düzenleme ekranı tam genişlik kullanır; işlem geçmişi ayrı akışta tutulmaz. */
.detail-grid:has(.quote-card) { grid-template-columns: 1fr; }
.detail-grid:has(.quote-card) > aside { display: none; }
@media (min-width: 900px) {
  .detail-list {
    grid-template-columns: 120px minmax(220px, 1fr) 120px minmax(260px, 1.25fr);
    column-gap: 18px;
  }
  .detail-list dt:nth-of-type(1), .detail-list dd:nth-of-type(1) { grid-row: 1; }
  .detail-list dt:nth-of-type(2), .detail-list dd:nth-of-type(2) { grid-row: 2; }
  .detail-list dt:nth-of-type(3), .detail-list dd:nth-of-type(3) { grid-row: 3; }
  .detail-list dt:nth-of-type(-n+3) { grid-column: 1; }
  .detail-list dd:nth-of-type(-n+3) { grid-column: 2; }
  .detail-list dt:nth-of-type(n+4) { grid-column: 3; }
  .detail-list dd:nth-of-type(n+4) { grid-column: 4; }
}
.quote-qty { min-width: 64px; text-align: center; }
.quote-row-total { white-space: nowrap; display: inline-block; }
.quote-delivery { min-width: 128px; }
.th-qty { width: 74px; }
.th-price { width: 118px; }
.th-deliv { width: 138px; }
.th-total { width: 118px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.th-num { width: 38px; text-align: center; }
.th-oem { width: 105px; }
.th-brand { width: 125px; }
.th-qty { width: 52px; text-align: center; }
.th-price { width: 105px; text-align: right; }
.th-deliv { width: 112px; }
.th-total { width: 92px; text-align: right; }
.th-act { width: 45px; text-align: center; }





/* BMW MARKET BRAND */
.brand{gap:12px}.brand-logo-frame{display:grid;place-items:center;width:48px;height:48px;padding:2px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(15,23,42,.18),0 3px 8px rgba(15,23,42,.12);flex:none;overflow:hidden}.brand-logo-img{display:block;width:44px;height:44px;border-radius:50%;object-fit:cover}.brand-logo-text{color:#1c69d4;font-size:1.7rem;letter-spacing:-0.02em}.footer-brand-wrap{display:flex;align-items:center;gap:10px}.footer-logo-frame{width:48px;height:48px}.footer-brand-logo{color:#fff!important}.panel-logo-frame{width:40px;height:40px}.panel-logo-frame .brand-logo-img{width:36px;height:36px}.panel-brand-text{font-size:1.3rem}
.header-action-cta{background:#1c69d4!important}.header-action-cta:hover{background:#0653b6!important}
/* CONTENT PAGES COLOR */
.reading h1{color:#0b192c;border-left:6px solid #1c69d4;padding-left:14px}.reading .lead{color:#334155}.content-section{counter-increment:cs;background:linear-gradient(135deg,#f0f6ff 0%,#fff 70%);border:1px solid #d6e4fa;border-left:5px solid #1c69d4;border-radius:12px;padding:18px 22px;margin:14px 0;box-shadow:0 2px 8px rgba(28,105,212,.08)}.content-section:nth-of-type(2n){border-left-color:#0b192c;background:linear-gradient(135deg,#eef2f7 0%,#fff 70%)}.content-section:nth-of-type(3n){border-left-color:#16a34a;background:linear-gradient(135deg,#effaf3 0%,#fff 70%)}.content-section:nth-of-type(4n){border-left-color:#f59e0b;background:linear-gradient(135deg,#fff8ea 0%,#fff 70%)}.content-section h2{color:#0b192c;margin-top:0}

/* INFO TABLE STYLES (Müşteri & Araç Detay Tabloları) */
.info-tables-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.info-table-card { padding: 18px 20px; }
.info-table-card h2 { font-size: 1.05rem; margin-top: 0; margin-bottom: 12px; color: #1c69d4; border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; }
.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table th { width: 110px; background: #f8fafc; color: #475569; font-weight: 700; text-align: left; padding: 8px 12px; border: 1px solid #e2e8f0; }
.info-table td { color: #0f172a; font-weight: 500; padding: 8px 12px; border: 1px solid #e2e8f0; }
@media (max-width: 768px) { .info-tables-wrapper { grid-template-columns: 1fr; } }

/* PARÇA SATIRI KALDIR BUTONU VE ALAN DÜZENİ */
.item-row { display: grid; grid-template-columns: 1fr 100px; gap: 12px 14px; align-items: end; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; background: #fafbf8; }
.item-row .item-description { grid-column: 1; }
.item-row .item-quantity { grid-column: 2; }
.item-row .item-code { grid-column: 1; margin-bottom: 0; }
.item-row .remove-item { grid-column: 2; grid-row: 2; height: 46px; min-height: 46px; margin-bottom: 0; align-self: end; font-size: 0.82rem; font-weight: 700; width: 100%; display: inline-flex; align-items: center; justify-content: center; background: #1c69d4 !important; color: #fff !important; border: none !important; border-radius: 6px !important; }
.item-row .remove-item:hover { background: #0653b6 !important; }

/* ==========================================================================
   MOBİL FORM TASARIMI - HER SATIRDA TEK BİR INPUT (TEK SÜTUN)
   ========================================================================== */
@media (max-width: 768px) {
  /* Her satırda yalnızca 1 input/alan */
  .field-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
  }
  
  .field {
    width: 100% !important;
    margin-bottom: 18px !important;
  }

  .field > label,
  label:not(.checkbox) {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    display: block !important;
    color: var(--ink) !important;
  }

  input:not([type=checkbox]):not([type=file]),
  select,
  textarea,
  .brand-badge,
  .vin-input-wrapper {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }

  .input-suffix {
    width: 100% !important;
    position: relative !important;
  }

  .input-suffix input {
    width: 100% !important;
    padding-right: 50px !important;
  }

  /* Parça Satırları (Her alan ayrı satırda) */
  .item-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    padding: 16px !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
  }

  .item-row .item-description,
  .item-row .item-quantity,
  .item-row .item-code {
    grid-column: auto !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .item-row .remove-item {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 6px !important;
  }

  /* Form Kartı & Kenar Boşlukları */
  .form-card {
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }

  .form-intro {
    margin-bottom: 16px !important;
  }

  .form-intro h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .form-navigation {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .form-navigation .button {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 1rem !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   ÖZEL SEÇİM KUTUSU (CUSTOM SELECT DROPDOWN / BOTTOM SHEET)
   ========================================================================== */
.native-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}

.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100% !important;
  min-height: 48px !important;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-main), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.custom-select-trigger:focus-visible,
.custom-select-trigger:hover {
  border-color: #1c69d4;
  outline: none;
}

.custom-select-trigger.field-empty {
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

.custom-select-trigger.field-filled {
  background-color: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
  font-weight: 700 !important;
}

.custom-select-trigger[aria-invalid="true"] {
  border-color: var(--danger) !important;
  background-color: #fef2f2 !important;
}

.custom-select-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Modal Overlay & Bottom Sheet */
.custom-select-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end; /* Mobilde alttan açılan bottom sheet */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.custom-select-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.custom-select-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  padding-bottom: env(safe-area-inset-bottom, 10px);
}

@media (min-width: 769px) {
  .custom-select-modal {
    align-items: center; /* Masaüstünde ortalanmış dialog */
  }
  .custom-select-panel {
    border-radius: 16px;
    max-height: 75vh;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.22s ease, opacity 0.22s ease;
    padding-bottom: 0;
  }
  .custom-select-modal.is-open .custom-select-panel {
    transform: scale(1) translateY(0);
  }
}

.custom-select-modal.is-open .custom-select-panel {
  transform: translateY(0);
}

.custom-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.custom-select-title {
  font-family: var(--font-main), -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.custom-select-close {
  background: #e2e8f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-select-close:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.custom-select-search-wrap {
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.custom-select-search {
  width: 100% !important;
  min-height: 44px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-family: var(--font-main), sans-serif !important;
  font-size: 0.95rem !important;
  background-color: #fff !important;
  color: #0f172a !important;
}

.custom-select-search:focus {
  border-color: #1c69d4 !important;
  box-shadow: 0 0 0 3px rgba(28, 105, 212, 0.15) !important;
  outline: none !important;
}

.custom-select-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 20px;
  -webkit-overflow-scrolling: touch;
}

.custom-select-optgroup-label {
  padding: 12px 14px 4px;
  font-family: var(--font-main), sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1c69d4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-select-option {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  margin: 3px 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-main), -apple-system, sans-serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-select-option:hover,
.custom-select-option:active {
  background: #f1f5f9;
}

.custom-select-option.is-selected {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1c69d4 !important;
  font-weight: 700 !important;
}

.custom-select-option.is-selected::after {
  content: "✓";
  font-weight: 800;
  font-size: 1.15rem;
  color: #1c69d4;
  margin-left: 8px;
}

.custom-select-empty-msg {
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-main), sans-serif;
}

/* ==========================================================================
   BLOG & SEO REHBERLERİ (LİSTE, DETAY VE DÖNÜŞÜM KUTULARI)
   ========================================================================== */
.blog-page {
  padding-block: 42px 70px;
}

.blog-header {
  margin-bottom: 36px;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #0b192c;
  letter-spacing: -0.025em;
  margin: 6px 0 12px;
}

.blog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.blog-cat-pill:hover,
.blog-cat-pill.is-active {
  background: #1c69d4;
  color: #ffffff;
  border-color: #1c69d4;
}

.blog-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blog-search-form input {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.88rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-width: 240px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: #1c69d4;
  box-shadow: 0 8px 24px rgba(28, 105, 212, 0.1);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.blog-badge-cat {
  background: #eef2ff;
  color: #3730a3;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.blog-badge-series {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.blog-date {
  color: #64748b;
}

.blog-views {
  color: #64748b;
  font-size: 0.8rem;
}

.blog-card h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.blog-card h2 a {
  color: #0b192c;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #1c69d4;
}

.blog-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.blog-read-more {
  color: #1c69d4;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover {
  color: #0653b6;
  text-decoration: underline;
}

/* Blog Detay Sayfası */
.blog-detail-page {
  max-width: 820px;
  padding-block: 36px 70px;
}

.blog-detail-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.blog-detail-header h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: #0b192c;
  letter-spacing: -0.025em;
  margin: 12px 0 14px;
}

.blog-lead {
  font-size: 1.15rem;
  color: #334155;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.blog-content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.blog-content-body h2 {
  font-size: 1.6rem;
  color: #0b192c;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.blog-content-body h3 {
  font-size: 1.25rem;
  color: #1c69d4;
  margin: 26px 0 10px;
}

.blog-content-body ul,
.blog-content-body ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.blog-content-body li {
  margin-bottom: 8px;
}

.blog-content-body blockquote {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
  border-left: 5px solid #1c69d4;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  color: #1e3a8a;
  font-size: 1rem;
}

.blog-content-body hr {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 36px 0;
}

/* Blog İçi Parça Talep CTA Banner */
.blog-cta-banner {
  background: linear-gradient(135deg, #0b192c 0%, #1c69d4 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-block: 40px 20px;
  box-shadow: 0 10px 30px rgba(28, 105, 212, 0.2);
}

.blog-cta-banner h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.blog-cta-banner p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
  max-width: 540px;
  line-height: 1.5;
}

.blog-cta-post-bottom {
  flex-direction: column;
  align-items: stretch;
}

.blog-cta-post-bottom .cta-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.blog-cta-post-bottom .cta-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.blog-cta-post-bottom .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.blog-back-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}



