@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --primary: #F96A00;
  --primary-rgb: 249, 106, 0;
  --primary-dark: #e05e00;
  --secondary: #032C5C;
  --secondary-rgb: 3, 44, 92;
  --secondary-light: #05407a;
  --bg: #F4F5F7;
  --bg-alt: #EDEEF2;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #10B981;
  --success-rgb: 16, 185, 129;
  --danger: #EF4444;
  --danger-rgb: 239, 68, 68;
  --warning: #F59E0B;
  --warning-rgb: 245, 158, 11;
  --info: #3B82F6;
  --info-rgb: 59, 130, 246;
  --gold: #F5B301;
  --white: #FFFFFF;
  --shadow-xs: 0 1px 2px rgba(3,44,92,0.04);
  --shadow-sm: 0 1px 3px rgba(3,44,92,0.06), 0 1px 2px rgba(3,44,92,0.04);
  --shadow: 0 4px 6px rgba(3,44,92,0.05), 0 2px 4px rgba(3,44,92,0.04);
  --shadow-md: 0 10px 15px rgba(3,44,92,0.06), 0 4px 6px rgba(3,44,92,0.04);
  --shadow-lg: 0 20px 25px rgba(3,44,92,0.08), 0 8px 10px rgba(3,44,92,0.04);
  --shadow-xl: 0 30px 40px rgba(3,44,92,0.1);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font-heading: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --font-number: 'Tajawal', sans-serif;
  --sidebar-width: 270px;
  --header-height: 72px;
  --transition: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* أسماء بديلة للـ admin login */
  --navy: var(--secondary);
  --orange: var(--primary);
  --muted: var(--text-tertiary);
  --ff-head: var(--font-heading);
  --ff-num: var(--font-number);

  /* أسماء بديلة مستخدمة في صفحات عامة (بحث، بطاقات) */
  --line: var(--border, #e9ecef);
  --bg-soft: #F4F5F7;
  --muted-light: #a9b4c0;

  /* سلّم المسافات (spacing scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* نظام الحاوية الموحّد */
  --container: 1200px;      /* عرض المحتوى القياسي */
  --container-wide: 1400px; /* حاوية عريضة (هيدر/هيرو) */
  --gutter: clamp(16px, 4vw, 40px); /* المسافة عن حواف الشاشة */
}

/* ========== الحاوية الموحّدة ========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 900px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: 0.01em;
}

::selection { background: rgba(var(--primary-rgb), 0.2); color: var(--white); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
.font-number { font-family: var(--font-number); font-variant-numeric: tabular-nums; }
.body-large { font-size: 1.05rem; }
.body-small { font-size: 0.85rem; color: var(--text-secondary); }
.text-muted { color: var(--text-secondary); }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  display: flex; align-items: center;
  padding: 0 32px;
  transition: all var(--transition);
}
.header--navy, .header--white {
  background: rgba(244, 245, 247, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header--navy .logo { color: var(--secondary); }
.header--white .logo { color: var(--secondary); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1400px; margin: 0 auto;
}
.logo {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 6px 0;
  letter-spacing: 0.01em; transition: opacity var(--transition);
}
.header--navy .nav a, .header--white .nav a { opacity: 0.7; color: var(--text); }
.header--navy .nav a:hover, .header--navy .nav a.nav--active,
.header--white .nav a:hover, .header--white .nav a.nav--active { opacity: 1; color: var(--secondary); }
/* خط سفلي باللون الرئيسي تحت التبويب المفعّل */
.nav a::after {
  content: ""; position: absolute; right: 0; bottom: -2px; left: 0;
  height: 2px; background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--transition);
}
.nav a:hover::after { transform: scaleX(0.6); }
.nav a.nav--active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  font-size: 1.1rem; transition: all var(--transition);
  position: relative;
}
.header--navy .icon-btn, .header--white .icon-btn { color: var(--text-secondary); }
.icon-btn:hover { background: rgba(var(--primary-rgb), 0.1); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger);
  animation: pulse 2s infinite;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; color: inherit; }
.hamburger span { width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); right: 0; left: 0; background: rgba(244,245,247,0.98); backdrop-filter: blur(20px); padding: 24px 20px; gap: 20px; z-index: 99; border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--text); }
  .nav.is-open a { color: var(--secondary) !important; opacity: 1 !important; }
  .nav--open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); right: 0; left: 0; background: rgba(244,245,247,0.98); backdrop-filter: blur(20px); padding: 24px 20px; gap: 20px; z-index: 99; border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--text); }
  .nav--open a { color: var(--secondary) !important; opacity: 1 !important; }
  .burger { display: flex; }
  .hamburger { display: flex; }
  .header { padding: 0 16px; }
  .header__actions .btn--ghost-light, .header__actions .btn--primary { display: none; }
  .nav.is-open .mobile-only-auth { display: flex !important; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; font-size: 0.95rem; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 8px; padding-top: 16px; }
}

/* ========== LAYOUT ========== */
.layout { display: flex; min-height: calc(100vh - var(--header-height)); }

/* ========== SIDEBAR (User/Driver) ========== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  border: none; background: none; width: 100%; text-align: right;
}
.sidebar__item:hover { background: rgba(var(--primary-rgb), 0.05); color: var(--text); }
.sidebar__item--active { background: rgba(var(--primary-rgb), 0.08); color: var(--primary); font-weight: 700; border-right: 3px solid var(--primary); }

/* ========== SIDEBAR (Admin) ========== */
.sidebar--admin {
  width: 250px;
  min-width: 250px;
  background: var(--secondary);
  color: var(--white);
  border-left: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.sidebar--admin .sidebar__logo {
  font-size: 1.3rem; font-weight: 700;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar--admin .sidebar__nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 10px; flex: 1;
}
.sidebar--admin .sidebar__item {
  padding: 10px 14px; border-radius: 6px;
  font-size: 0.9rem; color: rgba(255,255,255,0.75);
  text-decoration: none; display: flex; align-items: center;
  gap: 10px; cursor: pointer; transition: all 0.2s;
  border: none; background: none; width: 100%;
}
.sidebar--admin .sidebar__item:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.sidebar--admin .sidebar__item--active { background: rgba(255,255,255,0.12); color: var(--white); font-weight: 600; border-right: 3px solid var(--primary); border-radius: 6px 0 0 6px; }
.sidebar--admin .sidebar__item--logout { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; margin-top: 16px; }

/* ========== RIGHT SIDE (Admin) ========== */
.right-side {
  flex: 1; display: flex; flex-direction: column;
  margin-right: 250px; min-height: 100vh;
}

/* ========== TOPBAR (Admin) ========== */
.topbar {
  height: 60px; background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__hamburger { font-size: 1.3rem; cursor: pointer; background: none; border: none; color: var(--text); display: none; }
.topbar__title { font-size: 1rem; font-weight: 600; }
.topbar__left { display: flex; align-items: center; gap: 18px; }
.topbar__icon { font-size: 1.15rem; position: relative; cursor: pointer; color: var(--text-secondary); text-decoration: none; }
.topbar__dot {
  position: absolute; top: -3px; left: -3px;
  width: 8px; height: 8px; background: var(--danger);
  border-radius: 50%; border: 2px solid var(--white);
}
.topbar__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--secondary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; cursor: pointer;
}

/* ========== MAIN CONTENT ========== */
.main-content { flex: 1; padding: 30px; overflow-x: hidden; }

/* ========== PAGE HEADER ========== */
.page-header { margin-bottom: 24px; }
.page-header h1 { display: flex; align-items: center; gap: 10px; }
.page-header .code-badge {
  background: var(--secondary); color: var(--white);
  font-size: 0.7rem; font-weight: 600;
  padding: 2px 10px; border-radius: 20px;
  font-family: var(--font-number);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius); border: none;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
}
.btn--primary:hover { box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45); }

.btn--dark { background: var(--secondary); color: var(--white); }
.btn--dark:hover { background: var(--secondary-light); }

.btn--ghost-light { background: transparent; border: 2px solid rgba(3,44,92,0.25); color: var(--secondary); }
.btn--ghost-light:hover { border-color: var(--secondary); background: rgba(3,44,92,0.06); }

.btn--outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }

.btn--success { background: var(--success); color: var(--white); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn--success:hover { background: #059669; }

.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: #dc2626; }

.btn--sm { padding: 8px 18px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 12px 32px; font-size: 1rem; border-radius: var(--radius); }

/* Admin legacy button names */
.btn--navy { background: var(--secondary); color: var(--white); }
.btn--navy:hover { background: var(--secondary-light); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { opacity: 0.9; }
.btn--green { background: var(--success); color: var(--white); }
.btn--green:hover { opacity: 0.9; }
.btn--red { background: var(--danger); color: var(--white); }
.btn--red:hover { opacity: 0.9; }

.btn--block { width: 100%; }
.btn:disabled, .btn--disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.select-sm { padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.8rem; background: var(--white); cursor: pointer; }

/* ========== BADGES ========== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.6;
}
.badge--success { background: #DCFCE7; color: #16A34A; }
.badge--warning { background: #FEF3C7; color: #D97706; }
.badge--danger { background: #FEE2E2; color: #DC2626; }
.badge--info { background: #DBEAFE; color: #2563EB; }
.badge--green { background: #DCFCE7; color: #16A34A; }
.badge--yellow { background: #FEF3C7; color: #D97706; }
.badge--red { background: #FEE2E2; color: #DC2626; }
.badge--gray { background: #F1F5F9; color: #64748B; }
.badge--gold { background: #FEF3C7; color: #D97706; }
.badge--blue { background: #DBEAFE; color: #2563EB; }

/* ========== CARDS ========== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card--primary { border-top: 3px solid var(--primary); }
.card--success { border-top: 3px solid var(--success); }
.card--warning { border-top: 3px solid var(--warning); }
.card--danger { border-top: 3px solid var(--danger); }
.card--flat { box-shadow: none; border-color: var(--border); }
.card--flat:hover { box-shadow: none; }
.card--glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
}
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ========== INPUTS ========== */
.input-field {
  width: 100%; height: 44px;
  background: #F7F8FA;
  border: 1.5px solid #D8DEE6;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12); }
.input-field::placeholder { color: var(--text-secondary); opacity: 0.6; }
.input-field--error { border-color: var(--danger); }
.input-field--error:focus { box-shadow: 0 0 0 4px rgba(var(--danger-rgb), 0.12); }
.input-field--success { border-color: var(--success); }
.input-field--success:focus { box-shadow: 0 0 0 4px rgba(var(--success-rgb), 0.12); }
.input-field:disabled { opacity: 0.5; cursor: not-allowed; background: #f0f0f0; }
textarea.input-field { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
select.input-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235B6B7B' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.field-success { color: var(--success); font-size: 0.78rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-group + .form-group { margin-top: 16px; }

.search-input {
  height: 44px; border-radius: 22px;
  background: #F7F8FA; border: 1.5px solid #D8DEE6;
  padding: 0 20px 0 44px;
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: all var(--transition);
  width: 100%; max-width: 400px;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12); }

/* Admin form control */
.form-control {
  width: 100%; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.9rem; outline: none; transition: border 0.2s;
  font-family: var(--font-body);
}
.form-control:focus { border-color: var(--secondary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== TABLES ========== */
.table-wrapper {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px;
}
.table-wrapper__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.table-wrapper__header h3 { font-size: 1rem; font-weight: 600; }

.table-dash { width: 100%; border-collapse: collapse; }
.table-dash th {
  background: #F4F3FB;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}
.table-dash td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.table-dash tr:last-child td { border-bottom: none; }
.table-dash tr:hover td { background: rgba(var(--primary-rgb), 0.03); }

/* ========== STATS ========== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 28px 24px;
  text-align: center; transition: all 0.2s ease;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card__value { font-family: var(--font-number); font-size: 2rem; font-weight: 700; color: var(--secondary); font-variant-numeric: tabular-nums; }
.stat-card__label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* Admin KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.kpi-card__icon { font-size: 2rem; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.kpi-card__info h4 { font-size: 1.4rem; font-weight: 700; color: var(--secondary); }
.kpi-card__info p { font-size: 0.85rem; color: var(--text-secondary); }

/* ========== CHAT ========== */
.chat-container { display: flex; height: 600px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); }
.chat-list { width: 300px; border-left: 1px solid var(--border); overflow-y: auto; flex-shrink: 0; }
.chat-list__item { padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--transition); }
.chat-list__item:hover, .chat-list__item--active { background: rgba(var(--primary-rgb), 0.05); }
.chat-list__item--active { border-right: 3px solid var(--primary); }
.chat-conversation { flex: 1; display: flex; flex-direction: column; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 75%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; position: relative; }
.chat-msg--received { background: #F0F0F0; border-bottom-right-radius: 4px; align-self: flex-start; }
.chat-msg--sent { background: var(--primary); color: var(--white); border-bottom-left-radius: 4px; align-self: flex-end; }
.chat-msg__time { font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }
.chat-input-area { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.chat-input-area input { flex: 1; }

.offer-card { background: var(--white); border: 2px solid var(--primary); border-radius: var(--radius-sm); padding: 16px; }
.offer-card__price { font-family: var(--font-number); font-size: 1.3rem; font-weight: 700; color: var(--primary); }

/* ========== GPS / MAP ========== */
.map-placeholder {
  background: #e8ecf0; border-radius: var(--radius);
  height: 350px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-secondary); position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 40px),
              repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 40px);
}

/* ========== PROGRESS ========== */
.progress-steps { display: flex; align-items: center; justify-content: space-between; position: relative; padding: 20px 0; }
.progress-steps::before { content: ''; position: absolute; top: 50%; left: 30px; right: 30px; height: 3px; background: var(--border); transform: translateY(-50%); z-index: 0; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.progress-step__circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; border: 3px solid var(--border); background: var(--white); color: var(--text-secondary); }
.progress-step--active .progress-step__circle { border-color: var(--primary); background: var(--primary); color: var(--white); }
.progress-step--done .progress-step__circle { border-color: var(--success); background: var(--success); color: var(--white); }
.progress-step__label { font-size: 0.75rem; color: var(--text-secondary); text-align: center; }

/* ========== PAYMENT ========== */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.payment-method { border: 2px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--white); }
.payment-method:hover { border-color: var(--primary); }
.payment-method--selected { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.payment-method__icon { font-size: 2.5rem; margin-bottom: 8px; }

/* ========== SWITCH ========== */
.switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider { position: absolute; inset: 0; background: #ccc; border-radius: 12px; cursor: pointer; transition: var(--transition); }
.switch__slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: white; top: 3px; right: 3px; transition: var(--transition); }
.switch input:checked + .switch__slider { background: var(--success); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }

/* ========== PAGINATION ========== */
.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 20px; }
.pagination__item { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-size: 0.85rem; cursor: pointer; transition: all var(--transition); background: var(--white); }
.pagination__item:hover { border-color: var(--primary); color: var(--primary); }
.pagination__item--active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== DROPDOWN ========== */
.dropdown { position: relative; }
.dropdown__trigger { cursor: pointer; }
.dropdown__menu { display: none; position: absolute; top: 100%; left: 0; z-index: 50; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border); min-width: 200px; padding: 8px 0; }
.dropdown--open .dropdown__menu { display: block; }
.dropdown__item { padding: 10px 20px; font-size: 0.9rem; cursor: pointer; transition: background var(--transition); display: flex; align-items: center; gap: 10px; }
.dropdown__item:hover { background: rgba(var(--primary-rgb), 0.05); }

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, #F4F5F7 0%, #EDEEF2 100%);
  padding: 50px 32px; text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%);
}
.newsletter__inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.newsletter h3 { font-size: 1.4rem; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.newsletter p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 24px; }
.newsletter__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter__form input {
  flex: 1; height: 48px; border-radius: 24px; border: 1px solid var(--border);
  background: var(--white); padding: 0 20px; font-family: var(--font-body);
  font-size: 0.95rem; color: var(--text); outline: none; transition: all 0.2s;
}
.newsletter__form input::placeholder { color: var(--text-tertiary); }
.newsletter__form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.newsletter__form .btn { height: 48px; border-radius: 24px; padding: 0 28px; flex-shrink: 0; }

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, #F4F5F7 0%, #EDEEF2 100%);
  color: var(--text); padding: 60px 32px 0;
}
.footer__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer__col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--secondary); opacity: 0.9; }
.footer__col p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
.footer__col a { display: block; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 8px; transition: all 0.2s; }
.footer__col a:hover { color: var(--primary); padding-right: 4px; }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; font-size: 0.85rem; color: var(--text-tertiary); }
.footer .footer-newsletter-input { flex:1; height:38px; border-radius:19px; border:1px solid var(--border); background:var(--white); padding:0 14px; font-family:inherit; font-size:0.85rem; color:var(--text); outline:none; }
.footer .footer-newsletter-input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(var(--primary-rgb),0.1); }
.footer .footer-newsletter-btn { height:38px; border-radius:19px; padding:0 16px; border:none; background:var(--primary); color:var(--white); cursor:pointer; flex-shrink:0; font-size:0.85rem; font-family:inherit; }
.footer .footer-newsletter-btn:hover { background:var(--primary-dark); }
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 40px 20px 0; }
}

/* ========== RATING STARS ========== */
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; cursor: pointer; }
.star-rating { direction: ltr; display: inline-flex; gap: 4px; font-size: 1.5rem; }
.star-rating span { cursor: pointer; color: #ddd; transition: color 0.2s; }
.star-rating span.active, .star-rating span:hover { color: var(--gold); }

/* ========== NOTIFICATIONS ========== */
.notif-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.notif-list h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.notif-item:last-child { border-bottom: none; }

/* ========== TABS ========== */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tabs__item { padding: 10px 20px; font-size: 0.9rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; color: var(--text-secondary); background: none; border-top: none; border-left: none; border-right: none; }
.tabs__item--active { color: var(--secondary); border-bottom-color: var(--secondary); font-weight: 600; }
.lang-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.lang-tab { padding: 8px 24px; border: 1px solid var(--border); background: var(--white); cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.lang-tab:first-child { border-radius: 0 6px 6px 0; }
.lang-tab:last-child { border-radius: 6px 0 0 6px; }
.lang-tab--active { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

/* ========== CHART ========== */
.chart-placeholder { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 20px; }
.chart-bar { flex: 1; border-radius: 6px 6px 0 0; min-width: 30px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; padding-top: 8px; font-size: 0.7rem; color: var(--text-secondary); position: relative; }

/* ========== SETTINGS ========== */
.settings-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.settings-form h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ========== DETAIL / DISPUTE ========== */
.detail-panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.detail-panel h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-item__label { font-size: 0.8rem; color: var(--text-secondary); }
.detail-item__value { font-size: 0.95rem; font-weight: 500; }
.radio-group { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ========== SEVERITY ========== */
.severity-high { color: var(--danger); font-weight: 600; }
.severity-medium { color: var(--warning); font-weight: 600; }
.severity-low { color: var(--success); font-weight: 600; }

/* ========== SEARCH BAR ========== */
.search-bar { margin-bottom: 20px; }

/* ========== BREADCRUMB ========== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); font-weight: 500; }
.breadcrumb__sep { color: var(--border); font-size: 0.7rem; }

/* ========== TIMELINE ========== */
.timeline { position: relative; padding-right: 20px; }
.timeline::before {
  content: ''; position: absolute; right: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 20px; padding-right: 20px; }
.timeline__item::before {
  content: ''; position: absolute; right: -14px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
}
.timeline__item--active::before { border-color: var(--primary); background: var(--primary); }
.timeline__item--done::before { border-color: var(--success); background: var(--success); }
.timeline__title { font-weight: 600; font-size: 0.9rem; }
.timeline__desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }

/* ========== ALERTS / NOTICES ========== */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; margin-bottom: 16px;
}
.alert--info { background: rgba(var(--info-rgb), 0.1); color: var(--info); border: 1px solid rgba(var(--info-rgb), 0.2); }
.alert--success { background: rgba(var(--success-rgb), 0.1); color: var(--success); border: 1px solid rgba(var(--success-rgb), 0.2); }
.alert--warning { background: rgba(var(--warning-rgb), 0.1); color: var(--warning); border: 1px solid rgba(var(--warning-rgb), 0.2); }
.alert--danger { background: rgba(var(--danger-rgb), 0.1); color: var(--danger); border: 1px solid rgba(var(--danger-rgb), 0.2); }

/* ========== TAGS / CHIPS ========== */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--bg); color: var(--text-secondary);
}
.tag--primary { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.tag--success { background: rgba(var(--success-rgb), 0.1); color: var(--success); }
.tag--danger { background: rgba(var(--danger-rgb), 0.1); color: var(--danger); }

/* ========== DIVIDER ========== */
.divider {
  height: 1px; background: var(--border);
  margin: 20px 0; border: none;
}
.divider--primary { height: 2px; background: var(--primary); width: 60px; margin: 16px 0; }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state__icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state__title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state__desc { font-size: 0.9rem; margin-bottom: 20px; }

/* ========== AVATAR ========== */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  flex-shrink: 0;
}
.avatar--primary { background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }
.avatar--secondary { background: rgba(var(--secondary-rgb), 0.12); color: var(--secondary); }
.avatar--sm { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.5rem; }

/* ========== TOOLTIP (pure CSS) ========== */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute;
  bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--white);
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.75rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ========== PROGRESS BAR ========== */
.progress-bar {
  height: 8px; background: var(--border); border-radius: 4px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%; border-radius: 4px;
  background: var(--primary); transition: width 0.4s;
}
.progress-bar__fill--success { background: var(--success); }
.progress-bar__fill--warning { background: var(--warning); }

/* ========== LOADING SPINNER ========== */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.spinner--lg { width: 40px; height: 40px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== SIDEBAR BADGE ========== */
.sidebar__badge {
  margin-right: auto;
  background: var(--primary); color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; padding: 0 6px;
}

/* ========== TABLE RESPONSIVE ========== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}

/* ========== DRIVER LAYOUT ========== */
.app-layout { min-height: 100vh; display: flex; flex-direction: column; }

.app-layout .header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  flex-shrink: 0;
}
.app-layout .header__logo { display: flex; align-items: center; gap: 8px; }
.app-layout .header__logo-icon { font-size: 1.5rem; }
.app-layout .header__logo-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.app-layout .header__nav { display: flex; align-items: center; gap: 20px; }
.app-layout .header__nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color var(--transition); }
.app-layout .header__nav-link:hover,
.app-layout .header__nav-link--active { color: var(--primary); }
.app-layout .header__actions { display: flex; align-items: center; gap: 16px; }
.app-layout .header__bell { position: relative; font-size: 1.2rem; color: var(--text-secondary); cursor: pointer; }
.app-layout .header__bell-dot {
  position: absolute; top: -4px; left: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--white);
  animation: pulse 2s infinite;
}
.app-layout .header__user { font-size: 1.5rem; color: var(--text-secondary); cursor: pointer; }
.app-layout .header__hamburger {
  display: none; background: none; border: none;
  font-size: 1.3rem; cursor: pointer; color: var(--text);
}

.layout-body { display: flex; flex: 1; }

.app-layout .sidebar {
  width: 250px;
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
}
.app-layout .sidebar .sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}
.app-layout .sidebar .sidebar__item:hover { background: rgba(var(--primary-rgb), 0.05); color: var(--text); }
.app-layout .sidebar .sidebar__item--active { background: rgba(var(--primary-rgb), 0.08); color: var(--primary); font-weight: 700; border-right: 3px solid var(--primary); }
.app-layout .sidebar .sidebar__item--logout { margin-top: auto; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.app-layout .sidebar__icon { font-size: 1.1rem; }
.app-layout .sidebar__arrow { margin-right: auto; font-size: 0.7rem; color: var(--text-secondary); }
.app-layout .sidebar .sidebar__item--dropdown { display: flex; align-items: center; }

.app-layout .main-content { flex: 1; padding: 24px; background: var(--bg); overflow-x: hidden; }

.dashboard__welcome { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dashboard__welcome h1 { font-size: 1.5rem; display: flex; align-items: center; gap: 8px; }
.dashboard__subtitle { font-size: 0.85rem; color: var(--text-secondary); font-weight: 400; }
.dashboard__status { display: flex; align-items: center; gap: 10px; }
.dashboard__status-label { font-size: 0.85rem; color: var(--text-secondary); }
.dashboard__status-badge { font-weight: 600; font-size: 0.9rem; }
.dashboard__status-badge--online { color: var(--success); }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; margin-top: 24px; }
.section-header h2 { font-size: 1.15rem; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow); flex-wrap: wrap; gap: 12px;
}
.order-card__route { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; }
.order-card__city { color: var(--text); }
.order-card__arrow { color: var(--primary); }
.order-card__details { display: flex; gap: 20px; flex-wrap: wrap; }
.order-card__detail { display: flex; flex-direction: column; gap: 2px; }
.order-card__label { font-size: 0.75rem; color: var(--text-secondary); }
.order-card__value { font-size: 0.9rem; font-weight: 500; }
.order-card__value--price { color: var(--primary); font-family: var(--font-number); font-weight: 700; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.quick-action-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  text-align: center; cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.quick-action-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(var(--secondary-rgb),0.08); }
.quick-action-card__icon { font-size: 1.8rem; }
.quick-action-card__text { font-size: 0.85rem; font-weight: 500; }

.app-layout .footer { background: var(--secondary); color: var(--white); text-align: center; padding: 20px; font-size: 0.85rem; }

.stat-card__currency { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* Driver: Bid card in D02 */
.bid-row { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.bid-row:last-child { border: none; }
.bid-row__driver { font-weight: 600; }
.bid-row__rating { color: var(--gold); }
.bid-row__price { font-family: var(--font-number); font-weight: 700; color: var(--primary); margin-right: auto; }

/* Driver wallet */
.wallet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.wallet-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; }
.wallet-card__icon { font-size: 2rem; margin-bottom: 8px; }
.wallet-card__value { font-family: var(--font-number); font-size: 1.6rem; font-weight: 700; color: var(--secondary); }
.wallet-card__label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* Driver vehicles */
.fleet-stats { display: flex; gap: 16px; margin-bottom: 20px; }
.fleet-stat { background: var(--white); border-radius: var(--radius); padding: 16px 24px; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.fleet-stat__icon { font-size: 1.5rem; }
.fleet-stat__value { font-size: 1.1rem; font-weight: 700; }
.fleet-stat__label { font-size: 0.8rem; color: var(--text-secondary); }

.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vehicle-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.vehicle-card__img { height: 140px; background: #e8ecf0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.vehicle-card__body { padding: 16px; }
.vehicle-card__title { font-weight: 700; margin-bottom: 8px; }
.vehicle-card__info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.85rem; }
.vehicle-card__info-item { display: flex; flex-direction: column; }
.vehicle-card__info-label { color: var(--text-secondary); font-size: 0.75rem; }
.vehicle-card__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Withdrawal methods */
.withdraw-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.withdraw-method { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--white); }
.withdraw-method:hover { border-color: var(--primary); }
.withdraw-method--selected { border-color: var(--primary); background: rgba(var(--primary-rgb), 0.05); }
.withdraw-method__icon { font-size: 2rem; margin-bottom: 6px; }
.withdraw-method__label { font-size: 0.85rem; font-weight: 500; }

/* ========== ANIMATIONS ========== */
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.7; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }

/* ========== UTILITY ========== */
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-primary { color: var(--primary); }
.w-full { width: 100%; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .sidebar { display: none; }
  .sidebar--open { display: flex; position: fixed; top: var(--header-height); right: 0; bottom: 0; z-index: 90; box-shadow: 0 0 30px rgba(0,0,0,0.15); animation: slideInRight 0.2s; }
  .sidebar--admin { display: none; }
  .sidebar--admin.sidebar--open { display: flex; top: 0; }
  .sidebar--admin.sidebar--open + .right-side { margin-right: 0; }
  .sidebar--admin.sidebar--open + .right-side::before {
    content: ''; position: fixed; inset: 0; z-index: 80;
    background: rgba(0,0,0,0.3);
  }
  .hamburger { display: flex; }
  .burger { display: flex; }
  .topbar__hamburger { display: block; }
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); right: 0; left: 0; background: var(--secondary); padding: 20px; z-index: 99; color: var(--white); }
  .nav.is-open a { color: rgba(255,255,255,0.85) !important; }
  .nav.is-open a:hover, .nav.is-open a.nav--active { color: var(--white) !important; opacity: 1 !important; }
  .nav--open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); right: 0; left: 0; background: var(--secondary); padding: 20px; z-index: 99; color: var(--white); }
  .nav--open a { color: rgba(255,255,255,0.85) !important; }
  .nav--open a:hover, .nav--open a.nav--active { color: var(--white) !important; opacity: 1 !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .payment-methods { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
  .chat-list { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .wallet-cards { grid-template-columns: repeat(2, 1fr); }
  .right-side { margin-right: 0; }
}

@media (max-width: 768px) {
  .sidebar { width: 200px; }
  .sidebar--admin { width: 240px; min-width: 240px; }
  .right-side { margin-right: 0; }
  .app-layout .sidebar { width: 200px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .wallet-cards { grid-template-columns: 1fr; }
  .withdraw-methods { grid-template-columns: 1fr; }
  .order-card { flex-direction: column; align-items: flex-start; }
  .order-card__details { width: 100%; }
  .fleet-stats { flex-direction: column; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== MODAL / OVERLAY ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s;
}
.modal-overlay--open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius);
  max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.25s ease;
}
.modal--sm { max-width: 400px; }
.modal--lg { max-width: 700px; }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.modal__title { font-size: 1.15rem; font-weight: 700; font-family: var(--font-heading); }
.modal__close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-secondary); transition: all 0.2s;
}
.modal__close:hover { background: var(--danger); color: var(--white); }
.modal__body { padding: 20px 24px; }
.modal__footer {
  display: flex; gap: 12px; justify-content: flex-end;
  padding: 0 24px 20px;
}

/* ========== TOAST ========== */
.toast-container {
  position: fixed; top: 20px; left: 20px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--white); border-radius: var(--radius-xs);
  padding: 14px 20px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 10px;
  min-width: 300px; max-width: 420px;
  border-right: 4px solid var(--border);
  animation: slideInLeft 0.3s ease;
  font-size: 0.9rem;
}
.toast--success { border-right-color: var(--success); }
.toast--danger { border-right-color: var(--danger); }
.toast--warning { border-right-color: var(--warning); }
.toast--info { border-right-color: var(--info); }
.toast__icon { font-size: 1.2rem; flex-shrink: 0; }
.toast--success .toast__icon { color: var(--success); }
.toast--danger .toast__icon { color: var(--danger); }
.toast--warning .toast__icon { color: var(--warning); }
.toast--info .toast__icon { color: var(--info); }
.toast__dismiss {
  margin-right: auto; background: none; border: none;
  cursor: pointer; font-size: 1.1rem; color: var(--text-secondary);
  padding: 0 4px;
}

/* ========== SKELETON LOADER ========== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f0f1f2 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.skeleton--text { height: 14px; width: 100%; margin-bottom: 8px; }
.skeleton--text-sm { height: 10px; width: 60%; }
.skeleton--title { height: 20px; width: 70%; margin-bottom: 12px; }
.skeleton--avatar { width: 44px; height: 44px; border-radius: 50%; }
.skeleton--card { height: 120px; width: 100%; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ========== NOTIFICATION BADGE (icon dot) ========== */
.icon-badge {
  position: relative; display: inline-flex;
}
.icon-badge__dot {
  position: absolute; top: -4px; left: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--white);
  font-size: 0.55rem; font-weight: 800; color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.icon-badge__dot--pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ========== TABLE ENHANCEMENTS ========== */
.table--striped tbody tr:nth-child(odd) { background: rgba(4,41,77,0.02); }
.table--hover tbody tr:hover { background: rgba(var(--primary-rgb), 0.04); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after {
  content: ' ↕'; font-size: 0.7rem; opacity: 0.3;
}
th.sortable.sort-asc::after { content: ' ↑'; opacity: 1; color: var(--primary); }
th.sortable.sort-desc::after { content: ' ↓'; opacity: 1; color: var(--primary); }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination__item {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  cursor: pointer; font-size: 0.85rem; font-family: var(--font-number);
  transition: all 0.2s ease; user-select: none; background: var(--white);
  color: var(--text-secondary);
}
.pagination__item:hover { border-color: var(--primary); color: var(--primary); }
.pagination__item--active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== STEPPER ========== */
.stepper { display: flex; align-items: flex-start; gap: 0; margin-bottom: 32px; }
.stepper__step {
  flex: 1; text-align: center; position: relative;
}
.stepper__step:not(:last-child)::after {
  content: ''; position: absolute; top: 16px; right: calc(50% + 18px);
  left: calc(50% + 18px); height: 2px; background: var(--border);
}
.stepper__step--done:not(:last-child)::after { background: var(--primary); }
.stepper__circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px; font-size: 0.8rem; font-weight: 700;
  background: var(--border); color: var(--text-secondary);
}
.stepper__step--active .stepper__circle { background: var(--primary); color: var(--white); }
.stepper__step--done .stepper__circle { background: var(--success); color: var(--white); }
.stepper__label { font-size: 0.78rem; color: var(--text-secondary); }
.stepper__step--active .stepper__label { color: var(--text); font-weight: 600; }

/* ========== FLOATING ACTION BUTTON ========== */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
  transition: all 0.2s; z-index: 50;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.45); }

/* ========== SIDEBAR OVERLAY (mobile) ========== */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(0,0,0,0.3); display: none;
  animation: fadeIn 0.2s;
}
.sidebar-overlay--visible { display: block; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@media (max-width: 576px) {
  .app-layout .header { padding: 0 12px; }
  .app-layout .header__nav { display: none; }
  .app-layout .header__hamburger { display: block; }
  .burger { display: flex; }
  .app-layout .sidebar { display: none; }
  .app-layout .sidebar.sidebar--open { display: flex; position: fixed; top: var(--header-height); right: 0; bottom: 0; z-index: 90; box-shadow: 0 0 30px rgba(0,0,0,0.15); }
  .app-layout .main-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .vehicle-grid { grid-template-columns: 1fr; }
}

/* ========== ADMIN ROLE TABS ========== */
.admin-role-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 4px; box-shadow: var(--shadow);
  width: fit-content;
}
.admin-role-tab {
  padding: 10px 24px; border: none; background: none;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  border-radius: 8px; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.admin-role-tab:hover { color: var(--text); background: var(--bg); }
.admin-role-tab--active { background: var(--secondary); color: var(--white); }
.admin-role-tab--active:hover { background: var(--secondary-light); color: var(--white); }

/* ========== CONTENT TABS ========== */
.admin-content-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 24px; overflow-x: auto; flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
.admin-content-tab {
  padding: 10px 18px; border: none; background: none;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.admin-content-tab:hover { color: var(--text); }
.admin-content-tab--active { color: var(--secondary); border-bottom-color: var(--secondary); font-weight: 700; }

/* ========== KPI TREND INDICATORS ========== */
.kpi-card { position: relative; }
.kpi-trend {
  font-size: 0.75rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 2px;
  margin-right: 6px;
}
.kpi-trend--up { color: var(--success); }
.kpi-trend--down { color: var(--danger); }
.kpi-card__value-row { display: flex; align-items: baseline; gap: 4px; }
.kpi-card__info h4 { font-size: 1.5rem; font-weight: 800; font-family: var(--font-number); }

/* ========== TABLE TOOLBAR ========== */
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.table-toolbar__left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-toolbar__right { display: flex; align-items: center; gap: 8px; }
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-bar .search-input { max-width: 220px; }
.filter-bar select, .filter-bar input[type="date"] {
  padding: 8px 12px; border: 1.5px solid #D8DEE6; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.85rem;
  background: #F7F8FA; outline: none; transition: border 0.2s;
  height: 40px;
}
.filter-bar select:focus, .filter-bar input[type="date"]:focus { border-color: var(--primary); }
.btn-export {
  padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); cursor: pointer; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.btn-export:hover { border-color: var(--primary); color: var(--primary); }

/* ========== ROLE BADGE ========== */
.role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700;
}
.role-badge--admin { background: rgba(var(--secondary-rgb), 0.1); color: var(--secondary); }
.role-badge--support { background: rgba(var(--info-rgb), 0.1); color: var(--info); }
.role-badge--accounting { background: rgba(var(--success-rgb), 0.1); color: var(--success); }

/* ========== DONUT CHART ========== */
.donut-chart {
  width: 180px; height: 180px; border-radius: 50%;
  position: relative; margin: 0 auto;
}
.donut-chart__center {
  position: absolute; top: 35px; left: 35px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--white); display: flex;
  flex-direction: column; align-items: center; justify-content: center;
}
.donut-chart__value { font-family: var(--font-number); font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.donut-chart__label { font-size: 0.75rem; color: var(--text-secondary); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.chart-legend__item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.chart-legend__dot { width: 12px; height: 12px; border-radius: 3px; }

/* ========== ENHANCED BAR CHART ========== */
.chart-container { padding: 20px; }
.chart-bars { 
  display: flex; align-items: flex-end; gap: 8px; 
  height: 200px; padding-top: 20px; 
  border-bottom: 2px solid var(--border);
}
.chart-bar {
  flex: 1; border-radius: 6px 6px 0 0;
  min-width: 36px; position: relative;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transition: height 0.4s; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.chart-bar:hover { opacity: 0.85; }
.chart-bar__value {
  position: absolute; top: -22px;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text); font-family: var(--font-number);
}
.chart-bar__label {
  position: absolute; bottom: -22px;
  font-size: 0.75rem; color: var(--text-secondary);
  white-space: nowrap;
}

/* ========== MAP CONTAINER ========== */
.map-container {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 20px;
}
.map-container .leaflet-container { border-radius: var(--radius); }

/* ========== QUICK ACTIONS GRID ========== */
.quick-actions-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.quick-action-card {
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--border); padding: 20px 16px;
  text-align: center; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-action-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 8px 20px rgba(4,41,77,0.1);
  border-color: var(--primary);
}
.quick-action-card__icon { font-size: 2rem; }
.quick-action-card__text { font-size: 0.8rem; font-weight: 600; color: var(--text); }

/* ========== CONTENT PANEL ========== */
.content-panel { display: none; }
.content-panel--active { display: block; }
.role-section { display: none; }
.role-section--active { display: block; }

/* ========== PAYMENT METHODS ADMIN ========== */
.payment-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.payment-admin-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.payment-admin-card__header {
  display: flex; align-items: center; justify-content: space-between;
}
.payment-admin-card__name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.payment-admin-card__icon { font-size: 2rem; }
.payment-admin-card__body { display: flex; flex-direction: column; gap: 8px; }
.payment-admin-card__row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.payment-admin-card__label { color: var(--text-secondary); }
.payment-admin-card__actions { display: flex; gap: 8px; margin-top: 8px; }

/* ========== CONTENT MANAGEMENT CARDS ========== */
.content-mgmt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.content-mgmt-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 20px;
  box-shadow: var(--shadow);
}
.content-mgmt-card__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.content-mgmt-card__title { font-weight: 700; font-size: 1rem; }
.content-mgmt-card__meta { font-size: 0.8rem; color: var(--text-secondary); }
.content-mgmt-card__preview {
  font-size: 0.85rem; color: var(--text-secondary);
  margin: 8px 0; line-height: 1.6;
}

/* ========== NOTIFICATION ITEMS ========== */
.notif-list-modern { display: flex; flex-direction: column; gap: 0; }
.notif-item-modern {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.notif-item-modern:last-child { border-bottom: none; }
.notif-item-modern__dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
}
.notif-item-modern__content { flex: 1; }
.notif-item-modern__text { font-size: 0.9rem; }
.notif-item-modern__time { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

/* ========== FLEET MAP TABLE ========== */
.fleet-table-wrapper { margin-top: 16px; }
.fleet-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.fleet-status-badge--active { background: rgba(var(--success-rgb), 0.1); color: var(--success); }
.fleet-status-badge--idle { background: rgba(var(--warning-rgb), 0.1); color: var(--warning); }
.fleet-status-badge--offline { background: rgba(var(--danger-rgb), 0.1); color: var(--danger); }

/* ========== EMPTY TAB MESSAGE ========== */
.empty-tab-message {
  text-align: center; padding: 60px 20px;
  color: var(--text-secondary); font-size: 1.1rem;
}

/* ========== KPI FINANCIAL ========== */
.kpi-card--financial .kpi-card__info h4 { color: var(--primary); }

/* ========== TAB CONTENT TRANSITIONS ========== */
.role-section, .content-panel {
  animation: fadeIn 0.25s ease;
}

/* ========== CHART ROW ========== */
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 768px) { .chart-row { grid-template-columns: 1fr; } }

/* ========== PAGE: HOME (g01) ========== */
.hero-search {
  color: var(--white); padding: 100px 30px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-search::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1720811559337-c59b75acc4de?w=1600&h=900&fit=crop') center center / cover no-repeat;
  filter: brightness(0.4) saturate(1.1) contrast(1.1);
  pointer-events: none;
}
.hero-search::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(3,44,92,0.85) 0%, rgba(3,44,92,0.4) 50%, rgba(249,106,0,0.15) 100%);
  pointer-events: none;
}
.hero-search__inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.hero-search h1 { font-size: 2.8rem; margin-bottom: 12px; letter-spacing: -0.02em; font-weight: 800; }
.hero-search h1 span { background: linear-gradient(135deg, var(--primary), #F5B301); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-search .subtitle { font-size: 1.15rem; opacity: 0.8; margin-bottom: 40px; font-weight: 400; max-width: 600px; margin-left: auto; margin-right: auto; }
.search-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
  max-width: 900px; margin: 0 auto; text-align: right;
  border: 1px solid rgba(255,255,255,0.15);
}
.search-card .search-field label {
  color: rgba(255,255,255,0.7);
}
.search-card .search-field select, .search-card .search-field input {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
}
.search-card .search-field select:hover, .search-card .search-field input:hover {
  border-color: var(--white);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.search-card .search-field select:focus, .search-card .search-field input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}
.search-card__bottom .more-options {
  color: rgba(255,255,255,0.5);
}
.search-card__bottom .more-options:hover {
  color: var(--white);
}
.search-card__bottom span {
  color: rgba(255,255,255,0.4);
}
.search-card__row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.search-card__row:last-child { margin-bottom: 0; }
.search-field { position: relative; flex: 1; min-width: 130px; }
.search-field label {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 6px; padding-right: 2px;
  letter-spacing: 0.02em;
}
.search-field label .fi { font-size: 0.75rem; }
.search-field select, .search-field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 0.85rem;
  background: var(--white); color: var(--text);
  cursor: pointer; transition: all 0.25s ease; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center; padding-left: 30px;
}
.search-field select:hover, .search-field input:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.06); }
.search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12); }
.search-field .btn {
  height: 46px; width: 100%; border-radius: var(--radius); font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.search-card__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.search-card__bottom .more-options { font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; cursor: pointer; transition: color 0.2s; }
.search-card__bottom .more-options:hover { color: var(--primary); }
.search-card .search-field--wide { flex: 1.5; }
.hero-stats {
  display: flex; gap: 56px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat { text-align: center; }
.hero-stat__value { font-family: var(--font-number); font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--gold), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat__label { font-size: 0.88rem; opacity: 0.6; margin-top: 4px; }

.section { padding: 80px 30px; }
.section--white { background: var(--secondary); }
.section--white .driver-cta__content h2 { color: var(--white); }
.section--white .driver-cta__content p { color: rgba(255,255,255,0.7); }
.section--white .driver-cta__benefits li { color: rgba(255,255,255,0.8); }
.section--dark { background: var(--secondary); }
.section--dark .about-text h2 { color: var(--white); }
.section--dark .about-text h2 span { color: var(--primary); }
.section--dark .about-text p { color: rgba(255,255,255,0.7); }
.section--dark .section__title h2 { color: var(--white); }
.section__title_1 h2 { color: var(--white); }
.section__title_1 h2 { color: var(--white); }
.section--dark .section__title p { color: rgba(255,255,255,0.6); }
.section--accent { background: var(--bg-alt); }
.section--accent .section__title h2 { color: var(--secondary); }
.section--accent .section__title p { color: var(--text-secondary); }
.section__inner { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section__title { text-align: center; margin-bottom: 52px; }
.section__title h2 { font-size: 2rem; position: relative; display: inline-block; font-weight: 800; }
.section__title h2::after {
  content: ''; display: block; width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold)); margin: 14px auto 0; border-radius: 2px;
}
.section__title p { color: var(--text-secondary); margin-top: 10px; font-size: 0.95rem; max-width: 560px; margin-left: auto; margin-right: auto; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 28px 40px; text-align: center;
  border: 1px solid var(--border);
  transition: all 0.35s ease; position: relative; box-shadow: var(--shadow-sm);
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step-card__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: var(--white); font-family: var(--font-number);
  font-size: 1.35rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.25);
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }

.section .drivers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.section .driver-card { text-align: center; border-radius: var(--radius-lg); padding: 24px 20px; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.section .driver-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section .driver-card__top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.section .driver-card__avatar {
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--border-light);
  overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.section .driver-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.section .driver-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.section .driver-card__company { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 6px; }
.section .driver-card__rating { font-size: 0.9rem; color: var(--gold); margin-bottom: 6px; }
.section .driver-card__city { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 4px; justify-content: center; }
.section .driver-card .btn { width: 100%; border-radius: var(--radius); }

.orders-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.section .order-card { border-radius: var(--radius-lg); padding: 0; transition: all 0.3s ease; overflow: hidden; background: var(--white); }
.section .order-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.order-card__img { width: 100%; height: 140px; overflow: hidden; }
.order-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order-card__body { padding: 16px 20px 20px; }
.order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.order-card__route { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--secondary); }
.order-card__meta { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.order-card__budget { font-family: var(--font-number); font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.order-card__date { font-size: 0.75rem; color: var(--text-secondary); margin-top: 12px; display: flex; align-items: center; gap: 4px; }
.order-card__user { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-secondary); margin-top: 8px; }
.order-card__user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.section .stats-grid { gap: 24px; }

.online-drivers-bar {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 20px 28px; margin: -28px auto 0; max-width: 860px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.online-drivers-bar__count { display: flex; align-items: center; gap: 10px; }
.online-drivers-bar__count .num { font-family: var(--font-number); font-size: 1.5rem; font-weight: 800; color: var(--success); }
.online-drivers-bar__count .label { font-size: 0.88rem; color: var(--text-secondary); }
.online-drivers-bar__avatars { display: flex; align-items: center; }
.online-drivers-bar__avatars img {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--white);
  margin-left: -10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.online-drivers-bar__avatars .more { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); border: 2px solid var(--white); }
.online-drivers-bar .btn { flex-shrink: 0; }

.map-section { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.map-section #truck-map { height: 340px; width: 100%; }
.map-section .leaflet-container { border-radius: var(--radius-xl); }

.driver-cta {
  display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto;
}
.driver-cta__content { flex: 1; }
.driver-cta__content h2 { font-size: 1.9rem; margin-bottom: 16px; color: var(--secondary); font-weight: 800; }
.driver-cta__content p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 24px; line-height: 1.8; }
.driver-cta__benefits { list-style: none; margin-bottom: 28px; }
.driver-cta__benefits li { padding: 10px 0; font-size: 0.92rem; color: var(--text); display: flex; align-items: center; gap: 10px; }
.driver-cta__benefits li i { color: var(--primary); width: 20px; text-align: center; }
.driver-cta__image { flex: 0 0 400px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

@media (max-width: 1024px) {
  .section .drivers-grid { grid-template-columns: repeat(2, 1fr); }
  .orders-grid { grid-template-columns: repeat(2, 1fr); }
  .section .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-search h1 { font-size: 1.8rem; }
  .search-card { padding: 20px; border-radius: var(--radius-md); }
  .search-card__row { flex-direction: column; margin-bottom: 0; }
  .search-field { min-width: 100%; }
  .search-card__bottom { flex-direction: column; text-align: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .section .drivers-grid { grid-template-columns: 1fr; }
  .orders-grid { grid-template-columns: 1fr; }
  .section .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 28px; }
  .section { padding: 60px 20px; }
  .hero-search { padding: 70px 20px 50px; }
  .driver-cta { flex-direction: column; text-align: center; gap: 30px; }
  .driver-cta__image { display: none; }
  .online-drivers-bar { flex-direction: column; text-align: center; padding: 20px; }
  .online-drivers-bar__avatars { justify-content: center; }
}

/* ========== HOME: AVAILABLE DRIVERS SECTION ========== */
.drivers-available-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.driver-avail-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 20px;
  transition: all 0.25s ease; position: relative;
}
.driver-avail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary); }
.driver-avail-card__online {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--success);
  margin-bottom: 14px; position: absolute; top: 14px; left: 14px;
}
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation: pulse 2s infinite; }
.driver-avail-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.driver-avail-card__header img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.driver-avail-card__header h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1px; }
.driver-avail-card__company { font-size: 0.78rem; color: var(--text-secondary); }
.driver-avail-card__info { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.driver-avail-card__info span { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.driver-avail-card__info span i { color: var(--primary); font-size: 0.75rem; }
.driver-avail-card__footer { display: flex; gap: 8px; }
.driver-avail-card__footer .btn { flex: 1; font-size: 0.8rem; }
.drivers-available-cta { text-align: center; }

@media (max-width: 1024px) {
  .drivers-available-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .drivers-available-grid { grid-template-columns: 1fr; }
  .driver-avail-card { padding: 16px; }
}

/* ========== PAGE: DRIVERS LIST (g02) ========== */
.page--drivers .main-content { max-width: var(--container); margin: 0 auto; padding: var(--space-10) var(--gutter); }
.page--drivers .page-header { margin-bottom: 32px; }
.page--drivers .page-header h1 { font-size: 2rem; margin-bottom: 8px; color: var(--secondary); font-weight: 800; }
.page--drivers .page-header p { color: var(--text-secondary); font-size: 1rem; }

.page--drivers .filter-bar {
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
}
.page--drivers .filter-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.page--drivers .filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.page--drivers .filter-group label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.page--drivers .filter-group label i { font-size: 0.75rem; opacity: 0.7; }
.page--drivers .filter-group select,
.page--drivers .filter-group .input-field {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.88rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 32px;
}
.page--drivers .filter-group select option { background: var(--secondary); color: var(--white); }
.page--drivers .filter-group select:focus,
.page--drivers .filter-group .input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25); }
.page--drivers .filter-bar .btn { min-width: 120px; height: 42px; border-radius: var(--radius); margin-bottom: 0; align-self: flex-end; }

.page--drivers .drivers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px;
}
.page--drivers .driver-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
  transition: all 0.35s ease; overflow: hidden; box-shadow: var(--shadow-sm);
}
.page--drivers .driver-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.page--drivers .driver-card__banner {
  position: relative; height: 110px; overflow: hidden;
}
.page--drivers .driver-card__banner > img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: block; transition: transform 0.4s ease; }
.page--drivers .driver-card:hover .driver-card__banner > img { transform: scale(1.05); }
.page--drivers .driver-card__avatar-wrap {
  position: relative; display: flex; justify-content: center; margin-top: -40px; margin-bottom: 12px;
}
.page--drivers .driver-card__avatar-wrap img {
  width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.page--drivers .driver-card__content { padding: 0 24px 24px; }
.page--drivers .driver-card h3 { font-size: 1.15rem; margin-bottom: 4px; font-weight: 700; }
.page--drivers .driver-card__company { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.page--drivers .driver-card__rating { color: var(--gold); font-size: 0.95rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.page--drivers .driver-card__rating span { color: var(--text-secondary); font-size: 0.8rem; }
.page--drivers .driver-card .badge { margin-bottom: 12px; display: inline-block; }
.page--drivers .driver-card__vehicle {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 10px 0 12px;
}
.page--drivers .driver-card__vehicle img { width: 64px; height: 38px; border-radius: 6px; }
.page--drivers .driver-card__vehicle-label { font-size: 0.85rem; color: var(--text-secondary); }
.page--drivers .driver-card__price {
  font-family: var(--font-number); font-size: 1.2rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 16px;
}
.page--drivers .driver-card__price small { font-weight: 400; font-size: 0.78rem; color: var(--text-secondary); }
.page--drivers .driver-card__actions { display: flex; gap: 10px; justify-content: center; }
.page--drivers .driver-card__actions .btn { flex: 1; font-size: 0.85rem; border-radius: var(--radius); }

.page--drivers .pagination { margin-top: 40px; }
.page--drivers .pagination__item { user-select: none; font-family: var(--font-number); }

.online-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--success); font-weight: 600; padding: 4px 14px; background: rgba(var(--success-rgb), 0.08); border-radius: 20px; }
.online-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; animation: pulse 2s infinite; }

@media (max-width: 1024px) { .page--drivers .drivers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .page--drivers .drivers-grid { grid-template-columns: 1fr; }
  .page--drivers .filter-bar { padding: 20px; }
  .page--drivers .filter-row { flex-direction: column; }
  .page--drivers .filter-group { min-width: 100%; }
  .page--drivers .filter-bar .btn { width: 100%; align-self: stretch; }
  .page--drivers .main-content { padding: 24px 16px; }
}

/* ========== PAGE: DRIVER PROFILE (g03) ========== */
.page--profile .main-content { max-width: var(--container); margin: 0 auto; padding: var(--space-10) var(--gutter); }
.page--profile .breadcrumb { margin-bottom: 28px; }
.hero-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 36px; display: flex; align-items: center; gap: 32px;
  margin-bottom: 32px; box-shadow: var(--shadow-md);
}
.hero-card__avatar { flex-shrink: 0; }
.hero-card__avatar img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.hero-card__info { flex: 1; }
.hero-card__info h2 { font-size: 1.75rem; margin-bottom: 4px; font-weight: 800; }
.hero-card__info .company { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.hero-card__info .location { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.hero-card__info .rating { color: var(--gold); font-size: 1.05rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hero-card__info .rating span { color: var(--text-secondary); font-size: 0.88rem; }
.hero-card__actions { flex-shrink: 0; display: flex; gap: 10px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.section-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.section-card h3 { font-size: 1.15rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--secondary); }
.section-card h3::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.detail-item__label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }
.detail-item__value { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.vehicle-card {
  display: flex; align-items: center; gap: 18px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; background: var(--bg); transition: all var(--transition);
}
.vehicle-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.06); }
.vehicle-card:last-child { margin-bottom: 0; }
.vehicle-card__img { width: 88px; height: 52px; border-radius: var(--radius-xs); flex-shrink: 0; object-fit: cover; }
.vehicle-card__info { flex: 1; }
.vehicle-card__info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.vehicle-card__meta { font-size: 0.82rem; color: var(--text-secondary); display: flex; gap: 18px; flex-wrap: wrap; }
.reviews-section { margin-bottom: 32px; }
.review-card { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.review-card:last-child { border-bottom: none; }
.review-card:first-child { padding-top: 0; }
.review-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.review-card__user { font-weight: 600; font-size: 0.92rem; }
.review-card__date { font-size: 0.78rem; color: var(--text-secondary); margin-right: auto; }
.review-card .stars { font-size: 0.88rem; }
.review-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8; }
@media (max-width: 768px) {
  .hero-card { flex-direction: column; text-align: center; padding: 24px; }
  .hero-card__actions { width: 100%; justify-content: center; }
  .hero-card__actions .btn { width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .page--profile .main-content { padding: 20px 16px; }
}

/* ========== PAGE: TRANSPORT REQUESTS (g04) ========== */
.page--requests .main-content { max-width: var(--container); margin: 0 auto; padding: var(--space-10) var(--gutter); }
.page--requests .page-title { text-align: right; padding: 10px 0 24px; }
.page--requests .page-title h1 { font-size: 2rem; color: var(--secondary); font-weight: 800; }
.page--requests .page-title p { color: var(--text-secondary); margin-top: 6px; font-size: 1rem; }
.page--requests .filter-bar { margin-bottom: 36px; }
.page--requests .filter-bar__inner {
  background: var(--white); border-radius: var(--radius-md); padding: 16px 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
}
.page--requests .filter-bar__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
}
.page--requests .filter-bar__row + .filter-bar__row { margin-top: 0; }
.page--requests .filter-bar__row--actions {
  display: flex; flex-wrap: nowrap; gap: 8px; align-items: flex-end;
}
.page--requests .filter-bar .filter-group { display: flex; flex-direction: column; gap: 4px; }
.page--requests .filter-bar .filter-group label {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap;
}
.page--requests .filter-bar .filter-group label i { font-size: 0.7rem; color: var(--primary); }
.page--requests .filter-bar .filter-group select,
.page--requests .filter-bar .filter-group input {
  padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.8rem;
  background: var(--bg); color: var(--text); min-width: 120px;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 10px center; padding-left: 24px;
}
.page--requests .filter-bar .filter-group select:hover { border-color: var(--primary); }
.page--requests .filter-bar .filter-group select:focus,
.page--requests .filter-bar .filter-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); background: var(--white); }
.page--requests .filter-bar__actions { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.page--requests .filter-bar__actions .btn {
  height: 34px; border-radius: var(--radius-sm); min-width: 80px;
  font-size: 0.82rem; padding: 0 14px;
}
.results-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.results-header__count { font-size: 0.92rem; color: var(--text-secondary); }
.results-header__count strong { color: var(--text); }
.results-header select { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.85rem; background: var(--white); color: var(--text); }
.requests-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.request-card {
  background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); position: relative;
  transition: all 0.3s ease; overflow: hidden;
}
.request-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.request-card__img {
  width: 100%; height: 170px; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.request-card:hover .request-card__img { transform: scale(1.03); }
.request-card__body { padding: 24px; }
.request-card__badge {
  position: absolute; top: 14px; left: 14px; font-size: 0.78rem; z-index: 2;
}
.request-card__sender {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.request-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border-light);
}
.request-card__sender-info { display: flex; flex-direction: column; line-height: 1.4; }
.request-card__sender-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.request-card__date { font-size: 0.78rem; color: var(--text-secondary); }
.request-card__route {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px;
  font-family: var(--font-heading);
}
.request-card__arrow { color: var(--primary); font-size: 1.3rem; }
.request-card__budget {
  font-family: var(--font-number); font-size: 1.7rem; font-weight: 800; color: var(--secondary);
  margin-bottom: 16px;
}
.request-card__details { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.request-card__detail { display: flex; flex-direction: column; gap: 4px; min-width: 85px; }
.request-card__label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; }
.request-card__value { font-size: 0.9rem; font-weight: 600; }
.request-card__footer { display: flex; align-items: center; justify-content: space-between; }
.request-card__offers { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); }
.request-card__offers strong { color: var(--text); }
.request-card .btn { flex-shrink: 0; border-radius: var(--radius); }
.urgency-high { color: var(--danger); font-weight: 600; }
.urgency-medium { color: var(--gold); font-weight: 600; }
.urgency-low { color: var(--success); font-weight: 600; }
@media (max-width: 768px) {
  .requests-grid { grid-template-columns: 1fr; }
  .page--requests .filter-bar__row { flex-direction: column; }
  .page--requests .filter-bar .filter-group { min-width: 100%; }
  .page--requests .filter-bar__actions { flex-direction: column; }
  .page--requests .filter-bar__actions .btn { width: 100%; }
  .page--requests .main-content { padding: 20px 16px; }
}

/* ========== PAGE: REQUEST DETAIL (g05) ========== */
.detail-page .breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 24px 30px 0;
}
.detail-page .breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.detail-page .breadcrumb a:hover { color: var(--primary); }
.detail-page .breadcrumb span { margin: 0 8px; color: var(--border); }
.detail-page .breadcrumb .current { color: var(--text); font-weight: 600; }

.detail-page { max-width: var(--container); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-16); }
.detail-page .detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; margin-top: 24px; align-items: start; }
.request-detail-card .card-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}
.request-detail-card h2 { font-size: 1.4rem; color: var(--secondary); font-weight: 800; }
.request-detail-card .route-meta { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; color: var(--text-secondary); flex-wrap: wrap; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.meta-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.meta-item:nth-last-child(-n+2) { border-bottom: none; }
.meta-item__label { color: var(--text-secondary); font-weight: 500; }
.meta-item__value { font-weight: 700; font-family: var(--font-number); }
.meta-item__value.currency { color: var(--primary); font-weight: 800; font-size: 1.05rem; }
.detail-page .section-card { margin-top: 24px; }
.detail-page .section-card h3 {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700;
  color: var(--secondary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.detail-page .section-card h3 .icon { color: var(--primary); }
.detail-page .section-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; }
.bids-card h3 {
  font-size: 1.1rem; color: var(--secondary); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.bids-card h3 .count { font-family: var(--font-number); color: var(--primary); }
.bid-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px; transition: all 0.25s ease; position: relative;
  box-shadow: var(--shadow-xs);
}
.bid-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bid-card--best {
  border-color: var(--gold); background: linear-gradient(135deg, rgba(var(--warning-rgb), 0.04), rgba(255,255,255,1));
  box-shadow: 0 4px 16px rgba(var(--warning-rgb), 0.08);
}
.bid-card__best-badge {
  position: absolute; top: -10px; left: 14px;
  background: linear-gradient(135deg, var(--gold), #d99f00); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 3px 12px; border-radius: 50px; font-family: var(--font-heading);
  box-shadow: 0 2px 8px rgba(var(--warning-rgb), 0.2);
}
.bid-card__avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--bg); border: 2px solid var(--border-light);
}
.bid-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bid-card__info { flex: 1; min-width: 0; }
.bid-card__name { font-weight: 700; font-size: 0.9rem; }
.bid-card__rating { font-size: 0.8rem; color: var(--gold); margin-top: 2px; }
.bid-card__meta { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.bid-card__price {
  font-family: var(--font-number); font-size: 1.2rem; font-weight: 800;
  color: var(--primary); white-space: nowrap; text-align: left;
}
.bid-card__price small { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); display: block; }
.bid-card .btn { flex-shrink: 0; border-radius: var(--radius); }
.bid-card__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.info-card-note {
  background: rgba(var(--secondary-rgb), 0.02); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 20px;
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.8; text-align: center;
}
.request-detail-card .payment-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-methods .pm-badge {
  font-size: 0.75rem; padding: 4px 12px; border-radius: 50px;
  background: rgba(var(--primary-rgb), 0.06); color: var(--primary); font-weight: 600;
}
#route-map { height: 300px; width: 100%; border-radius: var(--radius); z-index: 1; border: 1px solid var(--border); }
@media (max-width: 768px) {
  .detail-page .detail-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .meta-item:last-child { border-bottom: none; }
  .bid-card { flex-wrap: wrap; }
  .bid-card__actions { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ========== PAGE: AUTH (g06) ========== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f5f6f8 0%, #eef0f4 100%);
  position: relative;
}
.auth-page::before {
  content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 460px; background: rgba(255,255,255,0.98);
  border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-xl); position: relative; z-index: 1;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 28px; }
.auth-card .auth-logo h2 {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800;
  color: var(--secondary); margin-top: 10px;
}
.auth-card .auth-logo p { font-size: 0.88rem; color: var(--text-secondary); margin-top: 4px; }
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 24px;
  background: var(--bg); border-radius: var(--radius-sm); padding: 4px;
}
.auth-tab {
  flex: 1; padding: 12px 16px; text-align: center; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; color: var(--text-secondary);
  border-radius: 6px; transition: all var(--transition);
  letter-spacing: 0.01em;
}
.auth-tab--active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-form { display: none; }
.auth-form--active { display: block; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.auth-form .forgot-link {
  display: block; text-align: left; font-size: 0.85rem;
  color: var(--primary); font-weight: 500; margin-top: -6px; margin-bottom: 16px;
}
.auth-form .forgot-link:hover { text-decoration: underline; }
.auth-form .checkbox-group {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 18px; cursor: pointer;
}
.auth-form .checkbox-group input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
.auth-form .checkbox-group a { color: var(--primary); font-weight: 500; }
.auth-form .checkbox-group a:hover { text-decoration: underline; }
.auth-divider {
  text-align: center; margin: 24px 0; font-size: 0.85rem;
  color: var(--text-secondary); position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 44%; height: 1px; background: var(--border);
}
.auth-divider::before { right: 0; }
.auth-divider::after { left: 0; }
.auth-footer {
  text-align: center; font-size: 0.78rem; color: var(--text-secondary);
  margin-top: 24px; line-height: 1.8;
}
.auth-footer a { color: var(--primary); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 24px; }
}

/* ========== PAGE: ABOUT (g07) ========== */
.page--about .section { padding: 80px 30px; }
.page--about .section__title { text-align: center; margin-bottom: 52px; }
.page--about .section__title h2 { font-size: 2rem; font-weight: 800; position: relative; display: inline-block; color: var(--secondary); }
.page--about .section__title h2::after { content: ''; display: block; width: 70px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); margin: 16px auto 0; border-radius: 3px; }
.page--about .section__title p { color: var(--text-secondary); margin-top: 12px; font-size: 0.95rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.about-hero { background: linear-gradient(135deg, #032C5C 0%, #05407a 50%, #032C5C 100%); color: var(--white); padding: 100px 30px 80px; text-align: center; position: relative; overflow: hidden; }
.about-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%); }
.about-hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E") repeat; pointer-events: none; }
.about-hero__inner { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.about-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.about-hero p { opacity: 0.85; max-width: 650px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 1.9rem; font-weight: 800; color: var(--secondary); margin-bottom: 24px; }
.about-text h2 span { color: var(--primary); }
.about-text p { color: var(--text-secondary); line-height: 2; font-size: 1rem; margin-bottom: 18px; }
.about-text .btn { margin-top: 12px; }
.vvm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vvm-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px 32px; text-align: center; border: 1px solid var(--border-light); transition: all 0.35s ease; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.vvm-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.vvm-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.vvm-card__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--warning-rgb), 0.1)); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--primary); }
.vvm-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.vvm-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: var(--white); border-radius: var(--radius-lg); padding: 38px 28px; text-align: center; border: 1px solid var(--border-light); transition: all 0.35s ease; box-shadow: var(--shadow-sm); }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.value-card__icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px; background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--white); box-shadow: 0 8px 24px rgba(var(--secondary-rgb), 0.2); }
.value-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 12px; }
.value-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }
@media (max-width: 768px) {
  .about-hero { padding: 60px 20px 50px; }
  .about-hero h1 { font-size: 1.6rem; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid .about-img { order: -1; }
  .vvm-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .page--about .section { padding: 60px 20px; }
}

/* ========== PAGE: CONTACT HERO ========== */
.contact-hero {
  background: linear-gradient(135deg, #032C5C 0%, #05407a 50%, #032C5C 100%);
  color: var(--white); padding: 90px 30px 70px; text-align: center;
  position: relative; overflow: hidden;
}
.contact-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%);
}
.contact-hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.contact-hero__inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.contact-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 14px; }
.contact-hero p { opacity: 0.8; font-size: 1.05rem; line-height: 1.8; }

/* ========== PAGE: CONTACT (g08) ========== */
.contact-page { padding: 80px 30px; }
.contact-page__inner { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.contact-page .page-title { text-align: center; margin-bottom: 52px; }
.contact-page .page-title h1 { font-size: 2rem; color: var(--secondary); margin-bottom: 10px; font-weight: 800; }
.contact-page .page-title p { color: var(--text-secondary); font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.contact-form-box, .contact-info-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border-light); box-shadow: var(--shadow-md); }
.contact-form-box h3, .contact-info-box h3 { font-size: 1.2rem; font-weight: 700; color: var(--secondary); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.contact-page .form-group { margin-bottom: 20px; }
.contact-page .form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.contact-page select.input-field { appearance: auto; }
.contact-item { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius); transition: all var(--transition); }
.contact-item:hover { background: var(--border-light); }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--warning-rgb), 0.1)); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--primary); }
.contact-item__label { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 2px; }
.contact-item__value { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.social-links { display: flex; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.social-link { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; transition: all 0.25s ease; color: var(--text-secondary); border: 1px solid var(--border); }
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.25); border-color: var(--primary); }
.map-box { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.map-box #truck-map { height: 300px; width: 100%; }
@media (max-width: 768px) {
  .contact-hero { padding: 60px 20px 50px; }
  .contact-hero h1 { font-size: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-page { padding: 40px 16px; }
  .contact-form-box, .contact-info-box { padding: 28px; }
}

/* =========================================================
   تحسينات وصولية عامة (accessibility)
   ========================================================= */

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* فئة إخفاء بصري مع إبقاء العنصر لقارئات الشاشة */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
