/* ============================================================
   ÇAĞLAYAN LOJİSTİK - CSS
   Mobil-öncelikli, açık/koyu tema destekli lojistik uygulaması
   ============================================================ */

/* ── CSS Değişkenleri ── */
:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e3a55;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --accent-dark: #d35400;
  --success: #27ae60;
  --success-light: #2ecc71;
  --danger: #c0392b;
  --danger-light: #e74c3c;
  --warning: #f39c12;

  /* Açık Tema (varsayılan) */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f0f3f7;
  --bg-hover: #e8ecf1;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #8895a7;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --nav-bg: #ffffff;
  --header-bg: #ffffff;
  --overlay: rgba(0,0,0,0.5);
  --welcome-gradient: linear-gradient(145deg, #1a5276 0%, #2980b9 50%, #1a5276 100%);
  --stat-bg: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  --badge-shipper-bg: #e8f5e9;
  --badge-shipper-text: #2e7d32;
  --badge-carrier-bg: #fff3e0;
  --badge-carrier-text: #e65100;
}

[data-theme="dark"] {
  --bg-primary: #0f1923;
  --bg-secondary: #1a2836;
  --bg-card: #1e3044;
  --bg-input: #243447;
  --bg-hover: #2a3f54;
  --text-primary: #e8edf2;
  --text-secondary: #a8b8c8;
  --text-muted: #6b7f92;
  --border: #2a3f54;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --nav-bg: #1a2836;
  --header-bg: #1a2836;
  --overlay: rgba(0,0,0,0.7);
  --welcome-gradient: linear-gradient(145deg, #0a1929 0%, #132f4c 50%, #0a1929 100%);
  --stat-bg: linear-gradient(135deg, #1a2836 0%, #1e3044 100%);
  --badge-shipper-bg: #1b3a2a;
  --badge-shipper-text: #66bb6a;
  --badge-carrier-bg: #3a2a1a;
  --badge-carrier-text: #ffb74d;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -- Mobil Cerceve -- */
.mobile-frame {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  body {
    background: var(--bg-primary);
  }
  .mobile-frame {
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (min-width: 769px) {
  body {
    background: #1a1a2e;
  }
  .mobile-frame {
    max-height: 932px;
    border-radius: 24px;
    margin: 16px 0;
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
  }
}

/* ── Sayfalar ── */
.page {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-primary);
  animation: pageIn 0.25s ease-out;
}

.page.active {
  display: flex;
  flex-direction: column;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Hoşgeldin Sayfası ── */
.welcome-bg {
  flex: 1;
  background: var(--welcome-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.welcome-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(230,126,34,0.08) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.welcome-content {
  text-align: center;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.welcome-logo {
  margin-bottom: 48px;
}

.logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: #ffffff;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.welcome-logo h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.welcome-logo h1 span {
  font-weight: 300;
  opacity: 0.85;
}

.welcome-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-top: 8px;
  font-style: italic;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 300px;
  margin: 0 auto;
}

.theme-toggle-welcome {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.theme-toggle-welcome:hover {
  background: rgba(255,255,255,0.25);
}

.theme-toggle-welcome svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.hidden {
  display: none !important;
}

/* ── Butonlar ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #ffffff;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: var(--danger-light);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background: var(--success-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px;
}

/* ── Auth Sayfaları ── */
.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  overflow-y: auto;
}

.back-btn {
  background: var(--bg-input);
  border: none;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
  margin-bottom: 16px;
}

.back-btn:hover {
  background: var(--bg-hover);
}

.back-btn svg {
  width: 22px;
  height: 22px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-small {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-bottom: 32px;
}

.auth-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ── Form Elemanları ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.2s;
  font-family: inherit;
}

.input-wrapper select {
  appearance: none;
  cursor: pointer;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 80px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

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

.form-error {
  background: rgba(192,57,43,0.1);
  color: var(--danger-light);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  border: 1px solid rgba(192,57,43,0.2);
}

/* ── Uygulama Başlık ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-left h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
}

.header-right {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-input);
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.back-btn-header {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.back-btn-header:hover {
  background: var(--bg-input);
}

.back-btn-header svg {
  width: 22px;
  height: 22px;
}

/* ── Sayfa Gövdesi ── */
.page-body {
  flex: 1;
  padding: 20px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page-body-with-header {
  padding-top: 16px;
}

/* ── Karşılama ── */
.greeting-section {
  margin-bottom: 24px;
}

.greeting-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── İstatistik Kartları ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--stat-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Bölüm Başlığı ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── İlan Kartları ── */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.job-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.job-card:active {
  transform: scale(0.99);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.job-card-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cargo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(41,128,185,0.1);
  color: var(--primary-light);
}

[data-theme="dark"] .cargo-icon {
  background: rgba(41,128,185,0.2);
}

.job-card-type h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.job-card-type .weight {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.job-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.job-route {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.route-city {
  flex: 1;
  text-align: center;
}

.route-city .city-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.route-city .city-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.route-arrow svg {
  width: 24px;
  height: 24px;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.job-date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-date svg {
  width: 14px;
  height: 14px;
}

.job-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: rgba(39,174,96,0.12);
  color: var(--success);
}

.status-pending {
  background: rgba(243,156,18,0.12);
  color: var(--warning);
}

.status-done {
  background: rgba(41,128,185,0.12);
  color: var(--primary-light);
}

.status-rejected {
  background: rgba(192,57,43,0.12);
  color: var(--danger);
}

/* ── Boş Durum ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  margin-bottom: 20px;
  font-size: 0.92rem;
}

/* ── Alt Navigasyon ── */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  padding: 8px 4px;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 8px));
  z-index: 20;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 10px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--primary-light);
}

.nav-item.active svg {
  stroke-width: 2.5;
}

.nav-item:hover:not(.active) {
  color: var(--text-secondary);
}

/* ── Tab Bar ── */
.tab-bar {
  display: flex;
  background: var(--bg-input);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.tab {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--bg-secondary);
  color: var(--primary-light);
  box-shadow: var(--shadow);
}

/* ── Arama Çubuğu ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
}

.search-bar svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  font-size: 0.92rem;
  color: var(--text-primary);
  font-family: inherit;
}

.search-bar input:focus {
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* ── Profil ── */
.profile-card {
  text-align: center;
  padding: 24px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

.profile-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-shipper {
  background: var(--badge-shipper-bg);
  color: var(--badge-shipper-text);
}

.badge-carrier {
  background: var(--badge-carrier-bg);
  color: var(--badge-carrier-text);
}

.profile-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.info-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -- Ilan Detay -- */
.detail-header {
  text-align: center;
  padding: 16px 0 12px;
}

.detail-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.detail-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.detail-route .route-city {
  text-align: center;
  flex: 1;
}

.detail-route .city-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-route .city-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-route .city-detail {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.detail-route .route-arrow svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.detail-info-list {
  display: flex;
  flex-direction: column;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.detail-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-info-row:first-child {
  padding-top: 0;
}

.detail-info-row .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-info-row .value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-price-box {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
  color: #ffffff;
}

.detail-price-box .label {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 4px;
}

.detail-price-box .price {
  font-size: 1.7rem;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.detail-publisher-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Teklif Kartları (Yük Sahibi İçin) ── */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.offer-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.offer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.offer-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.offer-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.offer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  background: var(--bg-input);
  border-radius: 10px;
  font-size: 0.82rem;
}

.offer-details .label {
  color: var(--text-muted);
}

.offer-details .value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.offer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.offer-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 10px 12px;
}

/* ── Toast ── */
.toast {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 100;
  animation: toastIn 0.3s ease-out;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Tema İkonları ── */
.theme-icon-inline {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] #theme-icon-sun {
  display: none;
}

[data-theme="dark"] #theme-icon-moon {
  display: block !important;
}

/* ── Scrollbar ── */
.page::-webkit-scrollbar,
.page-body::-webkit-scrollbar {
  width: 0;
}

/* -- Responsive -- */
@media (max-height: 700px) {
  .welcome-logo {
    margin-bottom: 24px;
  }
  .logo-icon {
    width: 56px;
    height: 56px;
  }
  .welcome-logo h1 {
    font-size: 1.5rem;
  }
  .welcome-content {
    padding: 24px 24px;
  }
  .welcome-buttons {
    gap: 10px;
  }
  .btn-lg {
    padding: 12px 24px;
    font-size: 0.92rem;
  }
}

@media (max-height: 600px) {
  .welcome-logo {
    margin-bottom: 16px;
  }
  .logo-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .welcome-logo h1 {
    font-size: 1.3rem;
  }
  .welcome-tagline {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .stats-row {
    gap: 6px;
  }
  .stat-card {
    padding: 12px 6px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
  .detail-price-box .price {
    font-size: 1.4rem;
  }
  .offer-actions {
    flex-direction: column;
  }
  .offer-actions .btn {
    width: 100%;
  }
}

/* ── Yükleniyor Animasyonu ── */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Cargo Type İkonları ── */
.cargo-icon-emoji {
  font-size: 1.2rem;
}

/* -- Modal -- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-primary, #fff);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary, #666);
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close:hover {
  background: var(--bg-secondary, #f0f0f0);
}

.modal-content .form-group {
  margin-bottom: 16px;
}

.modal-content textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color, #e0e0e0);
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--bg-secondary, #f8f8f8);
  color: var(--text-primary, #333);
  resize: vertical;
  font-family: inherit;
}

.modal-content textarea:focus {
  outline: none;
  border-color: var(--primary, #1a3a5c);
}

/* -- Commission Info -- */
.commission-info {
  margin-top: 8px;
  padding: 12px;
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e0e0e0);
  font-size: 0.85rem;
}

.commission-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--text-secondary, #666);
}

.commission-row.commission-total {
  font-weight: 700;
  color: var(--primary, #1a3a5c);
  border-top: 1px solid var(--border-color, #e0e0e0);
  margin-top: 4px;
  padding-top: 6px;
  font-size: 0.9rem;
}

.commission-row.commission-note {
  font-size: 0.8rem;
  color: var(--text-secondary, #999);
  font-style: italic;
}

.commission-detail {
  font-size: 0.8rem;
  color: var(--text-secondary, #888);
  margin-top: 4px;
}

/* -- Map -- */
.map-container {
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-view {
  width: 100%;
  height: 220px;
  background: var(--bg-input);
}

.map-distance {
  padding: 10px 14px;
  background: var(--bg-card);
  font-size: 0.88rem;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
}

.marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.marker-pin > * {
  transform: rotate(45deg);
}

.marker-green {
  background: var(--success, #27ae60);
}

.marker-red {
  background: var(--danger, #c0392b);
}

/* -- Estimate Box -- */
.estimate-box {
  margin: 12px 0;
  padding: 14px;
  background: linear-gradient(135deg, rgba(26,82,118,0.06) 0%, rgba(41,128,185,0.08) 100%);
  border: 1px solid rgba(41,128,185,0.2);
  border-radius: 14px;
  font-size: 0.85rem;
}

.estimate-title {
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--text-secondary);
}

.estimate-row.estimate-total {
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
  font-size: 0.92rem;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* -- Card Notification Badge -- */
.card-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger, #c0392b);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(192,57,43,0.4);
  z-index: 5;
}

/* -- Warning Button -- */
.btn-warning {
  background: #e67e22;
  color: #fff;
  border: none;
}

.btn-warning:hover {
  background: #d35400;
}

/* -- Offer Card Extras -- */
.offer-price-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary, #1a3a5c);
  margin-left: auto;
  white-space: nowrap;
}

.offer-note {
  padding: 8px 0;
}

.offer-note p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
  line-height: 1.4;
}
