/* FILE: styles.css */
/* CamioApp - Futuristic Tech Design v2 */

/* ========== VARIABLES ========== */
:root {
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --bg-input: #0d1321;
  
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(14, 165, 233, 0.3);
  
  --accent-cyan: #22d3ee;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(148, 163, 184, 0.1);
  --border-glow: rgba(14, 165, 233, 0.5);
  
  --glow-sm: 0 0 10px var(--primary-glow);
  --glow-md: 0 0 20px var(--primary-glow);
  
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  
  --sponsor-height: 36px;
  --header-height: 56px;
  --bottom-nav-height: 70px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--primary-light); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* ========== SPONSOR BANNER (TOP) ========== */
.sponsor-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--sponsor-height);
  overflow: hidden;
  z-index: 101;
}

.sponsor-banner .sponsor-track {
  display: flex;
  height: 100%;
  animation: scrollSponsors 12s linear infinite;
}

.sponsor-banner .sponsor-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sponsor-slide.scania { background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%); }
.sponsor-slide.cocacola { background: #e50914; }
.sponsor-slide.zafirus { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); }

.sponsor-text {
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.sponsor-subtext {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
}

@keyframes scrollSponsors {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(-100%); }
  66%, 96% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

/* ========== APP SHELL ========== */
#app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ========== HEADER ========== */
.app-header {
  position: fixed;
  top: var(--sponsor-height);
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

.app-header.no-sponsor { top: 0; }

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

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-light);
  font-size: 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.header-btn:active { transform: scale(0.95); }

.header-logo-svg {
  width: 32px;
  height: 32px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* ========== CONTENT ========== */
.app-content {
  flex: 1;
  margin-top: calc(var(--sponsor-height) + var(--header-height));
  margin-bottom: var(--bottom-nav-height);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.app-content.no-sponsor { margin-top: var(--header-height); }
.app-content.no-bottom-nav { margin-bottom: 0; }
.app-content.desktop-mode { margin-bottom: 0; }

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  z-index: 100;
}

.bottom-nav.hidden { display: none; }

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  gap: 4px;
  transition: all 0.3s;
  position: relative;
}

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

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.nav-item .nav-icon { font-size: 22px; }

/* ========== VIEWS ========== */
.view {
  padding: 16px;
  min-height: 100%;
}

.view-header { margin-bottom: 20px; }

.view-title {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.view-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== DESKTOP LAYOUT (Admin) ========== */
@media (min-width: 768px) {
  .desktop-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
  }
  
  .desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .desktop-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .desktop-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .desktop-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
  
  .desktop-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .desktop-table th,
  .desktop-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  
  .desktop-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-input);
  }
  
  .desktop-table tr:hover td {
    background: var(--bg-card-hover);
  }
  
  .desktop-table .actions {
    display: flex;
    gap: 8px;
  }
}

/* ========== BI DASHBOARD ========== */
.bi-dashboard {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .bi-dashboard {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .bi-card.span-2 { grid-column: span 2; }
  .bi-card.span-3 { grid-column: span 3; }
  .bi-card.span-4 { grid-column: span 4; }
}

.bi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s;
}

.bi-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
}

.bi-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.bi-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
}

.bi-value.highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.bi-change {
  font-size: 13px;
  margin-top: 8px;
}

.bi-change.positive { color: var(--accent-green); }
.bi-change.negative { color: var(--accent-red); }

.bi-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 20px;
}

.bi-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  transition: height 0.5s ease;
}

/* ========== FILTERS BAR ========== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

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

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filter-select {
  padding: 8px 32px 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-glow);
}

.card-body { padding: 16px; }

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== TRIP/SHIPMENT CARDS ========== */
.trip-card, .shipment-card, .request-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.trip-card:active, .shipment-card:active, .request-card:active {
  transform: scale(0.98);
  border-color: var(--border-glow);
}

.route-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.route-city {
  font-weight: 600;
  font-size: 16px;
}

.route-arrow {
  color: var(--primary);
  font-size: 20px;
}

.trip-meta, .shipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trip-footer, .shipment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.price-tag {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

/* Company info in cards */
.company-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.company-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.company-name {
  font-weight: 600;
  font-size: 15px;
}

.company-rating {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
  color: white;
}

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

.btn-ghost {
  background: transparent;
  color: var(--primary-light);
}

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

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

.form-section { margin-bottom: 24px; }

.form-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Date picker custom */
input[type="date"] {
  position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
}

/* ========== OPTION CARDS ========== */
.option-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.option-card input { display: none; }
.option-icon { font-size: 24px; }
.option-title { font-weight: 600; }
.option-desc { font-size: 12px; color: var(--text-muted); }

/* ========== BADGES ========== */
.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: rgba(245, 158, 11, 0.2); color: var(--accent-orange); }
.status-active, .status-approved, .status-available { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.status-rejected, .status-cancelled { background: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.status-completed { background: rgba(148, 163, 184, 0.2); color: var(--text-secondary); }
.status-in-progress, .status-in_progress { background: rgba(14, 165, 233, 0.2); color: var(--primary-light); }
.status-paid { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); }

/* ========== TABS ========== */
.tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab.active {
  background: var(--primary);
  color: white;
}

/* ========== LISTS ========== */
.list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.list-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.list-item:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.list-item:only-child { border-radius: var(--radius); }

.list-item:active { background: var(--bg-card-hover); }

.list-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.list-content { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 14px; }
.list-subtitle { font-size: 12px; color: var(--text-muted); }
.list-arrow { color: var(--text-muted); font-size: 18px; }

/* ========== EMPTY STATE ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  text-align: center;
}

.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.empty-text { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ========== ALERTS ========== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
}

.alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--accent-green); }
.alert-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: var(--accent-red); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: var(--accent-orange); }
.alert-info { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.3); color: var(--primary-light); }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-card);
}

.modal-title { font-size: 17px; font-weight: 600; }

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body { padding: 20px; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}

/* ========== MAP ========== */
.map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  height: 220px;
  position: relative;
}

.map-container.satellite {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.map-svg { width: 100%; height: 100%; }

.map-route {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--primary));
}

.map-marker {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.map-marker.origin { fill: var(--accent-green); }
.map-marker.destination { fill: var(--accent-red); }
.map-marker.current { 
  fill: var(--primary);
  animation: pulseMarker 1.5s ease-in-out infinite;
}

@keyframes pulseMarker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Satellite tracking view */
.satellite-view {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius);
  overflow: hidden;
}

.satellite-truck {
  position: absolute;
  font-size: 32px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px var(--primary));
  animation: truckPulse 2s infinite;
}

@keyframes truckPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.satellite-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ========== OFFERS ========== */
.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.offer-card.pending { border-color: var(--accent-orange); }
.offer-card.accepted { border-color: var(--accent-green); }

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

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

.offer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.offer-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.offer-message {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

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

/* ========== TRACKING ========== */
.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.tracking-header {
  padding: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.tracking-route { font-size: 18px; font-weight: 700; }

.tracking-timeline { padding: 20px; }

.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.timeline-dot.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 20px var(--primary-glow); }
}

.timeline-title { font-weight: 600; font-size: 14px; }
.timeline-time { font-size: 12px; color: var(--text-muted); }

.connection-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-input);
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.connection-dot.online { 
  background: var(--accent-green);
  animation: blink 2s infinite;
}

.connection-dot.offline { background: var(--text-muted); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========== PROFILE ========== */
.profile-header {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 32px;
}

.profile-name { font-size: 20px; font-weight: 700; }
.profile-role { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.profile-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--accent-orange);
}

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

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

.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }

.stat-card.highlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(34, 211, 238, 0.1) 100%);
  border-color: var(--primary);
}

.stat-card.highlight .stat-value {
  color: var(--accent-cyan);
}

/* ========== PAYMENT ========== */
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-method.selected {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.payment-method-icon { font-size: 24px; }
.payment-method-name { font-weight: 600; }

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.payment-row.total {
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 700;
}

/* ========== AUTH ========== */
.auth-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 16px;
}

.auth-logo-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.4));
}

.auth-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-light);
}

.auth-form { flex: 1; }

.auth-footer {
  text-align: center;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-footer a { font-weight: 600; margin-left: 6px; }

.demo-box {
  background: rgba(14, 165, 233, 0.05);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

.demo-box-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.demo-box code {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== BIOMETRIC ========== */
.biometric-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.biometric-scanner {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  animation: pulseBio 2s ease-in-out infinite;
}

.biometric-scanner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes pulseBio {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow); }
}

@keyframes scanLine {
  0% { top: 20%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 80%; opacity: 0; }
}

.biometric-icon { font-size: 64px; z-index: 1; }

/* ========== FAB ========== */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  font-size: 28px;
  font-weight: 300;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab:active { transform: scale(0.95); }

/* ========== LOADING ========== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 1000;
  animation: fadeInUp 0.3s;
}

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

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-light); }
.text-sm { font-size: 13px; }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.p-4 { padding: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none !important; }
.w-full { width: 100%; }

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 14px 0;
}

.stars { color: var(--accent-orange); letter-spacing: 1px; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
