:root {
  --bg-color: #f3f5f9;
  --corp-blue: #1A2849;
  --corp-orange: #F05A28;
  --white: #ffffff;
  --text-main: #333333;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #ea580c;
  --indigo: #667eea;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { zoom: 0.67; scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg-color); color: var(--text-main); height: calc(100vh / 0.67); overflow: hidden; max-width: 100%; overflow-x: hidden; }

/* Vitrin açıldığında uygulamanın scroll kilidini açar */
body:has(#landingScreen:not(.hidden)) {
  overflow-y: auto !important;
  height: auto !important;
}

.hidden { display: none !important; }
.muted { color: #a3aed1; }

/* ---------- GİRİŞ EKRANI ---------- */
.login-container { height: calc(100vh / 0.67); display: flex; justify-content: center; align-items: center; background: var(--corp-blue); }
.login-box { background: var(--white); padding: 40px; border-radius: 8px; width: 380px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.brand-logo { width: 75%; max-width: 260px; height: auto; margin: 0 auto 22px; display: block; object-fit: contain; }
.login-box h2 { font-size: 16px; color: var(--text-muted); margin-bottom: 25px; font-weight: 500; letter-spacing: 0.5px; }
.login-box input { width: 100%; padding: 14px; margin: 10px 0; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; outline: none; }
.login-box input:focus { border-color: var(--corp-orange); }
.login-box button { width: 100%; padding: 14px; background: var(--corp-orange); color: var(--white); border: none; border-radius: 4px; font-weight: 600; font-size: 16px; cursor: pointer; transition: 0.2s; }
.login-box button:hover { background: #d94b1f; }

/* ---------- DASHBOARD / SIDEBAR ---------- */
.dashboard-container { display: flex; height: calc(100vh / 0.67); }
.sidebar { width: 260px; background: var(--white); padding: 25px 20px; border-right: 1px solid var(--border); display: flex; flex-direction: column; height: calc(100vh / 0.67); overflow: hidden; }
.sidebar-logo { max-width: 200px; margin: 0 auto 12px; display: block; }
.sidebar ul { list-style: none; flex: 1 1 auto; overflow-y: auto; min-height: 0; margin: 0 -8px; padding: 0 8px; }
.sidebar ul::-webkit-scrollbar { width: 6px; }
.sidebar ul::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.sidebar li { padding: 14px 18px; margin-bottom: 8px; border-radius: 6px; cursor: pointer; color: var(--text-muted); font-weight: 500; font-size: 15px; transition: 0.2s; }
.sidebar li:hover { background: #f9fafb; color: var(--corp-blue); }
.active-menu { background: var(--corp-blue) !important; color: var(--white) !important; }
.logout-btn { background: transparent; color: var(--red); border: 1px solid var(--red); padding: 12px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.logout-btn:hover { background: var(--red); color: var(--white); }

/* Kullanıcı rozeti + roller */
.user-badge { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.role-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.role-admin { background: #dbeafe; color: #1d4ed8; }
.role-viewer { background: #fef3c7; color: #b45309; }

/* SALT-OKUNUR ORTAK GÖRÜNÜMÜ: veri girişi öğeleri gizlenir */
.viewer-mode .admin-only { display: none !important; }

.content { flex: 1; padding: 40px; overflow-y: auto; }
.page { animation: pageIn 0.35s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
h2 { color: var(--corp-blue); font-weight: 600; font-size: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 20px; flex-wrap: wrap; }
.btn-inline { width: 200px !important; }
.filter-select { width: 240px; margin: 0; }

/* ---------- İSTATİSTİK KARTLARI ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 25px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--corp-blue); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,40,73,0.08); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--corp-blue); line-height: 1; }

/* ---------- KART / PANEL ---------- */
.card { background: var(--white); padding: 25px; border-radius: 8px; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.card h3 { font-size: 16px; color: var(--corp-blue); margin-bottom: 20px; font-weight: 600; }
.accent-left { border-left: 4px solid var(--corp-orange); }
.reminder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
.warn-box { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 14px 18px; border-radius: 4px; font-size: 14px; color: #92400e; margin-bottom: 20px; line-height: 1.6; }
.fuel-price-banner { background: #eef2ff; border: 1px solid #c7d2fe; padding: 10px 18px; border-radius: 8px; display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); flex-wrap: wrap; }

/* ---------- FORM ---------- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; align-items: end; }
.form-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; }
.group-box { border: 1px solid var(--border); padding: 15px; border-radius: 8px; }
.panel-gray { background: #f9fafb; padding: 15px; border-radius: 8px; margin: 15px 0; border: 1px solid var(--border); }
.modal-section { color: var(--corp-blue); margin: 16px 0 10px; font-size: 14px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.modal-section:first-child { margin-top: 0; }

input, select, textarea { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; outline: none; background: var(--white); }
input:focus, select:focus, textarea:focus { border-color: var(--corp-blue); box-shadow: 0 0 0 3px rgba(26,40,73,0.08); }
.readonly-input { background-color: #e5e7eb; cursor: not-allowed; font-weight: bold; }
.readonly-input.highlight { color: #d94b1f; }
.date-group { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; background: #f9fafb; padding: 5px 10px; border-radius: 4px; border: 1px solid var(--border); }
.date-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); width: 48%; }
.date-group input { margin-bottom: 0; border: none; background: transparent; width: 52%; padding: 8px; }
.date-group input:focus { box-shadow: none; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; margin-bottom: 15px; cursor: pointer; }
.checkbox-label input { width: auto; margin: 0; transform: scale(1.2); }

/* ---------- BUTONLAR ---------- */
.btn-primary { background: var(--corp-blue); color: var(--white); border: none; padding: 14px; border-radius: 4px; width: 100%; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-primary:hover:not(:disabled) { background: #111a30; }
.btn-accent { background: var(--corp-orange); color: var(--white); border: none; padding: 14px; border-radius: 4px; width: 100%; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-accent:hover:not(:disabled) { background: #d94b1f; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-danger:hover:not(:disabled) { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--corp-blue); border: 1px solid var(--border); border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; padding: 12px; }
.btn-ghost:hover:not(:disabled) { background: #f9fafb; border-color: var(--corp-blue); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 8px 12px !important; width: auto !important; font-size: 12px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- GENEL TABLO ---------- */
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px; border-bottom: 1px solid var(--border); }
th { background: #f9fafb; font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap; }
td { font-size: 14px; color: var(--text-main); vertical-align: middle; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: #f9fafb; }
tbody tr:last-child td { border-bottom: none; }
.empty-cell { text-align: center; color: #a3aed1; padding: 35px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; }
.badge-warn { background-color: #f59e0b; }
.badge-ok { background-color: #10b981; }
.badge-danger { background-color: var(--red); }
.badge-neutral { background-color: #9ca3af; }

/* ---------- SEFER DETAY IZGARASI ---------- */
.detail-cells-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.detail-cell { background: #f9fafb; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.detail-cell-label { font-size: 10px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.5px; }
.detail-cell-value { font-size: 14px; font-weight: 600; margin-top: 4px; color: var(--text-main); overflow-wrap: anywhere; }

/* ---------- MODAL ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.is-open { display: flex; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { width: 740px; max-width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); background: #fff; border-radius: 8px; padding: 25px; animation: modalBoxIn 0.22s ease; }
@keyframes modalBoxIn { from { transform: translateY(14px) scale(0.985); opacity: 0.6; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-close { position: absolute; right: 20px; top: 20px; cursor: pointer; font-size: 18px; opacity: 0.7; transition: 0.2s; }
.modal-close:hover { opacity: 1; }

/* ============ TOAST BİLDİRİMLERİ ============ */
.toast {
  position: fixed; right: 20px; bottom: 20px; min-width: 300px; max-width: 480px; padding: 14px 18px;
  border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; justify-content: space-between; align-items: center;
  gap: 12px; animation: toastSlideIn 0.25s ease-out; z-index: 10000;
}
.toast + .toast { bottom: 90px; }
.toast + .toast + .toast { bottom: 160px; }
.toast-success  { background: linear-gradient(135deg, #10b981, #059669); }
.toast-error    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-warning  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.toast-info     { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.toast button {
  background: rgba(255,255,255,0.25); border: 0; color: #fff; width: 24px; height: 24px; border-radius: 50%;
  cursor: pointer; font-size: 16px; line-height: 1; flex-shrink: 0;
}
.toast button:hover { background: rgba(255,255,255,0.45); }
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============ ERROR NOTIFICATION & GLOBAL LOADER ============ */
.error-notification { position: fixed; bottom: 20px; right: 20px; background: #dc2626; color: white; padding: 14px 18px; border-radius: 6px; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); display: flex; align-items: center; gap: 12px; z-index: 3000; animation: slideIn 0.3s ease; font-weight: 500; max-width: 400px; }
.error-notification button { background: none; border: none; color: white; cursor: pointer; font-size: 18px; font-weight: bold; margin-left: auto; padding: 0; line-height: 1; }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.global-loader { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; z-index: 2500; backdrop-filter: blur(2px); }
.global-loader.hidden { display: none; }
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.spinner { width: 45px; height: 45px; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: white; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loaderText { color: white; font-weight: 600; font-size: 14px; text-align: center; }

/* ============ VİTRİN (LANDING PAGE) ============ */
.landing-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto; overflow-x: hidden;
  background: var(--bg-color); display: block;
  z-index: 5000;
  scroll-behavior: smooth;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bg-light { background-color: #f9fafb; }
.text-center { text-align: center; }

.landing-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 40px; background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow 0.25s, padding 0.25s;
}
.landing-nav.scrolled { box-shadow: 0 6px 24px rgba(26,40,73,0.14); padding: 8px 40px; }
.landing-logo-wrapper { display: flex; align-items: center; gap: 12px; }
.landing-logo-img { height: 85px; width: auto; object-fit: contain; transition: height 0.25s; }
.landing-nav.scrolled .landing-logo-img { height: 60px; }

.landing-menu { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.landing-menu a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 14px; transition: color 0.2s; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.landing-menu a:hover { color: var(--corp-orange); }
.landing-menu a.active { color: var(--corp-orange); border-bottom-color: var(--corp-orange); }

.landing-section { padding: 80px 0; }
.section-title { font-size: 32px; color: var(--corp-blue); margin-bottom: 25px; font-weight: 800; }
.section-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.landing-hero {
  text-align: center; padding: 140px 20px;
  background-size: cover; background-position: center; background-attachment: fixed; color: var(--white);
}
.hero-content { max-width: 800px; margin: 0 auto; }
.landing-hero h1 { font-size: 48px; margin-bottom: 20px; color: var(--white); font-weight: 800; line-height: 1.2; }
.landing-hero p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; line-height: 1.6; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* Kaydırınca beliren bölümler (JS yoksa her şey görünür kalır) */
body.js-enabled .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
body.js-enabled .reveal.visible { opacity: 1; transform: translateY(0); }

/* Yukarı dön butonu */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 6000;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--corp-orange); color: #fff; font-size: 22px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(240,90,40,0.4);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #d94b1f; }

.responsive-img { width: 100%; height: auto; border-radius: 8px; }
.shadow-img { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 20px; }
.service-list-card { background: var(--white); padding: 30px; border-radius: 8px; border-top: 4px solid var(--corp-blue); box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: transform 0.25s, box-shadow 0.25s; }
.service-list-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(26,40,73,0.10); }
.custom-list { list-style: none; padding: 0; margin: 0; }
.custom-list li { margin-bottom: 12px; color: var(--text-muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.custom-list li::before { content: "✔"; color: var(--corp-orange); font-weight: bold; }

.form-wrapper { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); max-width: 900px; margin: 0 auto; }
.contact-info-list { display: flex; flex-direction: column; gap: 25px; margin-top: 20px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item .icon { font-size: 24px; background: #eef2ff; padding: 10px; border-radius: 50%; }
.phone-link { color: var(--corp-blue); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }
.phone-link:hover { color: var(--corp-orange); }

.landing-footer { background: var(--corp-blue); color: var(--white); padding: 40px 20px 20px; margin-top: auto; }
.landing-footer a:hover { color: #fff !important; }

/* ============ RESPONSIVE (MOBİL UYUM) ============ */
@media (max-width: 1100px) {
  .form-grid-3, .form-grid-4, .form-grid-2 { grid-template-columns: 1fr; }
  .content { padding: 25px; }
  .balance-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 992px) {
  .section-grid-2 { grid-template-columns: 1fr; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-item { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
  .section-image { order: -1; margin-bottom: 20px; }
}

@media (max-width: 768px) {
  html { zoom: 1 !important; }
  body { height: 100vh !important; }
  /* Panel ve şoför portalında mobilde sayfayı aşağı kaydırmayı aç */
  body:has(#dashboard:not(.hidden)),
  body:has(#driverPortal:not(.hidden)) { overflow-y: auto !important; height: auto !important; }
  .dashboard-container { height: auto !important; min-height: 100vh; flex-direction: column; }
  .login-container { height: 100vh !important; padding: 20px; }
  .login-box { width: 100% !important; max-width: 380px; padding: 30px 24px; }

  .sidebar { width: 100% !important; height: auto !important; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; background: #fff; }
  .sidebar-logo { max-width: 120px; margin: 0 0 10px 0; }
  .user-badge { margin-bottom: 8px; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; max-height: 180px; overflow-y: auto !important; }
  .sidebar li { flex: 0 0 auto; padding: 8px 12px; font-size: 12px; margin: 0; }

  .content { padding: 16px 12px !important; overflow-y: visible; }
  .page-header { flex-direction: column !important; align-items: stretch !important; gap: 12px; }
  .filter-select, .btn-inline { width: 100% !important; }
  .stat-grid, .form-grid-2 { grid-template-columns: 1fr !important; }

  table { font-size: 11px !important; min-width: 600px; }
  th, td { padding: 8px 6px !important; }
  .modal-box { width: 92vw !important; max-width: 92vw !important; max-height: 90vh; overflow-y: auto; }

  .landing-nav { flex-direction: column; padding: 15px; gap: 15px; position: static; }
  .landing-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .login-trigger-btn { width: 100%; }
  .landing-hero { background-attachment: scroll; }
  .landing-hero h1 { font-size: 32px; }
  .landing-hero p { font-size: 15px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .landing-section { padding: 40px 0; }
  .form-wrapper { padding: 20px; }
  .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

@media (max-width: 480px) {
  .content { padding: 12px 8px !important; }
  h2 { font-size: 16px !important; }
  .stat-value { font-size: 18px !important; }
  .sidebar li { font-size: 11px; padding: 6px 10px; }
  .sidebar ul { max-height: 140px; }
}

/* ============ HONEYPOT (bot tuzağı — yana kaydırmaya yol açmayan gizleme) ============ */
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; opacity: 0 !important; pointer-events: none; }

/* ============ NAV EK BUTONLAR + MENÜ ROZETİ ============ */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-driver-btn { background: #eef2ff; color: var(--corp-blue); border: 1px solid #c7d2fe; }
.nav-driver-btn:hover:not(:disabled) { background: #e0e7ff; border-color: var(--corp-blue); }
.menu-badge { display: inline-block; background: var(--corp-orange); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 5px; margin-left: 4px; }

/* ============ ŞOFÖR PORTALI ============ */
.driver-portal { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--bg-color); z-index: 5000; }
.driver-portal-header { display: flex; align-items: center; gap: 18px; background: var(--corp-blue); color: #fff; padding: 16px 30px; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.driver-portal-header .dp-logo { height: 54px; width: auto; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px 8px; }
.dp-user { flex: 1; }
.dp-name { font-size: 20px; font-weight: 800; }
.dp-sub { font-size: 12px; opacity: 0.85; }
.dp-logout { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 10px 18px; }
.dp-logout:hover { background: var(--red); border-color: var(--red); }
.driver-portal-body { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }
.dp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dp-stat { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.dp-stat-label { font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.dp-stat-value { font-size: 22px; font-weight: 800; color: var(--corp-blue); margin-top: 6px; overflow-wrap: anywhere; }
.dp-stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
  .nav-actions { flex-direction: column; width: 100%; }
  .nav-driver-btn, .login-trigger-btn { width: 100%; }
  .driver-portal-header { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .driver-portal-header .dp-logo { height: 44px; }
  .driver-portal-body { padding: 16px 12px 40px; }
}

/* Elle yakıt girişini vurgulama (açılışta çekilemediğinde) */
.flash { animation: flashHi 1.6s ease; }
@keyframes flashHi { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px rgba(240, 90, 40, 0.55); } }

/* Hareket azaltma tercihi olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  body.js-enabled .reveal { opacity: 1; transform: none; }
}