/* ===== VisitBasis-Inspired Design ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0274be;
  --primary-dark: #015e9b;
  --primary-light: #e6f0fa;
  --primary-mid: #b3d4f0;
  --accent: #fb941c;
  --accent-hover: #e8850a;
  --accent-light: #fef2e0;
  --success: #0d8b4a;
  --success-light: #e3f4ea;
  --warning: #d9980a;
  --warning-light: #fef2d6;
  --danger: #c5221f;
  --danger-light: #fde8e7;
  --gray-50: #F5F5F5;
  --gray-100: #E8E8E8;
  --gray-200: #D0D0D0;
  --gray-300: #B0B0B0;
  --gray-400: #909090;
  --gray-500: #707070;
  --gray-600: #505050;
  --gray-700: #3a3a3a;
  --gray-800: #2a2a2a;
  --gray-900: #1a1a1a;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-pill: 100px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 10px -2px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12);
  --transition: all .2s ease;
  --sidebar-width: 240px;
  --header-height: 60px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400;
}

/* ===== Wrapper ===== */
#appContainer { display: flex; min-height: 100vh; }

/* ===== SIDEBAR (VisitBasis-inspired) ===== */
.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 200;
}
[dir="rtl"] .sidebar { right: 0; border-left: 1px solid var(--gray-100); }
[dir="ltr"] .sidebar { left: 0; border-right: 1px solid var(--gray-100); }
.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo svg { flex-shrink: 0; }
.sidebar-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
}
.sidebar-logo-sub {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 12px 12px 8px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
}
.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.sidebar-user-role { font-size: 11px; color: var(--gray-500); margin-top: 1px; }
.sidebar-nav {
  flex: 1;
  padding: 4px 10px;
  overflow-y: auto;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  margin-bottom: 1px;
}
[dir="rtl"] .sidebar-nav-item { text-align: right; }
[dir="ltr"] .sidebar-nav-item { text-align: left; }
.sidebar-nav-item:hover { background: var(--gray-50); color: var(--gray-800); }
.sidebar-nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-nav-item .nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar-nav-item .badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  margin-inline-start: auto;
}
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--gray-100);
}
.sidebar-footer .sidebar-nav-item { color: var(--gray-500); font-size: 12px; }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-height: 100vh;
}
[dir="rtl"] .main-content { margin-right: var(--sidebar-width); }
[dir="ltr"] .main-content { margin-left: var(--sidebar-width); }
.screen { display: none; }
.screen.active { display: block; }

/* ===== TOP HEADER ===== */
.top-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  padding: 0 32px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.top-header-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
}
.top-header-subtitle {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 400;
  margin-top: 2px;
}
.top-header-actions { display: flex; align-items: center; gap: 10px; }
.header-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  color: var(--gray-600);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.header-btn:hover { background: #e8e8e8; border-color: var(--gray-200); }
.header-btn .badge {
  position: absolute;
  top: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 8px;
  line-height: 1;
}
[dir="rtl"] .header-btn .badge { left: -4px; }
[dir="ltr"] .header-btn .badge { right: -4px; }
.header-btn-back {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  color: var(--gray-400);
  transition: var(--transition);
}
[dir="rtl"] .header-btn-back { margin-left: 12px; }
[dir="ltr"] .header-btn-back { margin-right: 12px; }
.header-btn-back:hover { color: var(--gray-700); }

/* ===== CONTENT AREA ===== */
.content-area {
  padding: 28px 32px 60px;
  max-width: 1200px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  flex: 1;
  min-width: 160px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-card .stat-icon { width: 22px; height: 22px; margin-bottom: 8px; color: var(--primary); }
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== CARDS (VisitBasis-style) ===== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 22px 24px; }
.card-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--gray-700); }
.card-footer {
  padding: 0 24px 20px;
  display: flex;
  gap: 8px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== BUTTONS (VisitBasis pill style) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 11px; letter-spacing: .2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0a7a3f; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a81e1c; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid var(--gray-200);
  text-transform: uppercase;
  letter-spacing: .5px;
}
[dir="rtl"] .data-table th { text-align: right; }
[dir="ltr"] .data-table th { text-align: left; }
.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== ROUTE / STORE ITEMS ===== */
.route-list-item, .route-card, .store-list-item, .store-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}
.route-list-item:last-child, .route-card:last-child,
.store-list-item:last-child, .store-item:last-child { border-bottom: none; }
.route-list-item:hover, .route-card:hover,
.store-list-item:hover, .store-item:hover { background: var(--gray-50); }
.route-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.route-info { flex: 1; min-width: 0; }
.route-info h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.route-info .route-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.route-arrow { color: var(--gray-300); font-size: 16px; }
.store-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.store-status-icon.pending { background: var(--danger-light); }
.store-status-icon.checkedin { background: var(--warning-light); }
.store-status-icon.visited { background: var(--success-light); }
.store-info h4 { font-size: 13px; font-weight: 500; color: var(--gray-800); }
.store-info .store-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.store-chevron { color: var(--gray-300); font-size: 14px; }

/* ===== PROGRESS ===== */
.progress-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}
.progress-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--pct), var(--gray-200) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.progress-ring-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.progress-detail h4 { font-size: 14px; font-weight: 600; }
.progress-detail p { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ===== STORE DETAIL ===== */
.store-header { padding: 24px; display: flex; align-items: center; gap: 16px; }
.store-avatar {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.store-avatar svg { width: 26px; height: 26px; }
.store-header-info h2 { font-size: 18px; font-weight: 700; color: var(--gray-800); }
.store-header-info p { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ===== MAP ===== */
.map-wrapper { margin: 0 24px 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); }
.map-wrapper #storeMap { height: 220px; }
.map-wrapper #fullMap { height: 400px; }
.location-info { display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 12px; color: var(--gray-500); }
.location-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.location-dot.proximity { background: var(--success); }
.location-dot.away { background: var(--danger); }
.location-dot.searching { background: var(--warning); }

/* ===== FORMS ===== */
.form-section { padding: 22px 24px; }
.form-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--gray-700); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
select, input[type="text"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  transition: var(--transition);
  outline: none;
}
select:focus, input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; }

/* ===== STARS ===== */
.stars-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.stars-row:last-child { border-bottom: none; }
.stars-row span { font-size: 13px; font-weight: 500; }
.stars { display: flex; gap: 2px; direction: ltr; }
.stars .star { font-size: 26px; cursor: pointer; color: var(--gray-200); transition: var(--transition); }
.stars .star.active { color: var(--accent); }
.stars .star:hover { transform: scale(1.2); }

/* ===== PHOTO ===== */
.photo-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}
.photo-upload:hover { border-color: var(--primary); background: var(--primary-light); }
.photo-upload .upload-icon { width: 32px; height: 32px; color: var(--gray-400); margin-bottom: 4px; }
.photo-upload p { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.photo-preview { margin-top: 8px; }
.photo-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius); }

/* ===== TIMELINE ===== */
.timeline { padding: 6px 0; }
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { background: var(--gray-50); }
.timeline-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; margin-top: 2px;
}
.timeline-badge.done { background: var(--success-light); }
.timeline-badge.pending { background: var(--warning-light); }
.timeline-content { flex: 1; min-width: 0; }
.timeline-content h4 { font-size: 13px; font-weight: 500; color: var(--gray-800); }
.timeline-content .meta { font-size: 11px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.timeline-score {
  font-size: 16px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius);
  flex-shrink: 0;
}
.timeline-score.good { color: var(--success); background: var(--success-light); }
.timeline-score.medium { color: var(--accent); background: var(--accent-light); }
.timeline-score.low { color: var(--danger); background: var(--danger-light); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; gap: 6px;
  padding: 0 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.filter-bar::-webkit-scrollbar { height: 3px; }
.filter-bar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--gray-600);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== REPORT FILTERS ===== */
.report-filters-card { margin-bottom: 16px; }
.report-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.report-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  flex: 1;
}
.report-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.report-filter-select, .report-filter-input {
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
  cursor: pointer;
  min-height: 38px;
}
.report-filter-select:hover, .report-filter-input:hover { border-color: var(--gray-300); }
.report-filter-select:focus, .report-filter-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.report-filter-date-field { min-width: 130px; flex: 0 1 160px; }
.report-filter-actions { flex: 0 0 auto; justify-content: flex-end; flex-direction: row; align-items: center; }

@media (max-width: 768px) {
  .report-filters-row { gap: 8px; }
  .report-filter-field { min-width: 100px; }
  .report-filter-select, .report-filter-input { font-size: 12px; padding: 6px 8px; min-height: 34px; }
  .report-filter-date-field { flex: 0 1 130px; }
}

/* ===== LOGIN (VisitBasis-inspired clean SaaS) ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 24px;
  position: relative;
}
.login-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--gray-100);
}
.login-card .login-logo { margin-bottom: 24px; }
.login-card h1 { font-size: 20px; font-weight: 700; color: var(--gray-800); }
.login-card p { font-size: 13px; color: var(--gray-500); margin-top: 4px; margin-bottom: 24px; }
.login-card .login-lang-row {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 24px;
}
.login-card .login-lang-btn {
  flex: 1; max-width: 60px;
  padding: 6px 4px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--gray-50);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  color: var(--gray-600);
}
.login-card .login-lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.login-card .login-lang-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.login-card .login-field {
  text-align: right;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  text-align: right;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
  margin-bottom: 16px;
}
.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.login-card .btn { padding: 14px; font-size: 14px; margin-top: 4px; }
.login-error {
  font-size: 12px;
  color: var(--danger);
  margin: 12px 0 0 0;
  display: none;
}

/* ===== RANGE SLIDER ===== */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  height: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

/* ===== LIGHTBOX ===== */
#lightbox { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-500); }
.empty-state .empty-icon { width: 44px; height: 44px; margin: 0 auto 12px; opacity: .3; color: var(--gray-400); }
.empty-state h4 { font-size: 16px; color: var(--gray-700); font-weight: 600; margin-bottom: 6px; }
.empty-state p { font-size: 12px; }

/* ===== ALERTS ===== */
.alert-box {
  background: #fff8f0;
  border: 1px solid #f0d6a0;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 13px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav { display: none; }

/* ===== LANG BUTTON SM ===== */
.lang-btn-sm {
  transition: all .2s ease;
  padding: 4px 7px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--gray-50);
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  color: var(--gray-600);
}
.lang-btn-sm.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== CHART ===== */
.chart-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
}
.chart-box h4 { font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 16px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-grid .chart-box:last-child:nth-child(3) { grid-column: 1 / -1; }

/* ===== SCHEDULE BADGE ===== */
.schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.schedule-badge.daily { background: var(--primary-light); color: var(--primary); }
.schedule-badge.weekly { background: var(--accent-light); color: var(--accent-hover); }
.schedule-badge.monthly { background: var(--warning-light); color: var(--warning); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; --header-height: 52px; }
  .sidebar { display: none; }
  .main-content { margin: 0; }
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bottom-nav .nav-item {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 8px 10px 6px;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 10px;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
    min-width: 60px;
  }
  .bottom-nav .nav-item .nav-icon { width: 22px; height: 22px; }
  .bottom-nav .nav-item.active { color: var(--primary); }
  .bottom-nav .nav-item:last-child { padding-right: 16px; }
  [dir="ltr"] .bottom-nav .nav-item:last-child { padding-right: 10px; padding-left: 16px; }
  .top-header { padding: 0 16px; height: var(--header-height); }
  .top-header-title { font-size: 14px; }
  .content-area { padding: 16px 16px 80px; }
  .stats-bar { gap: 8px; }
  .stat-card { padding: 14px 16px; min-width: 100px; }
  .stat-card .stat-value { font-size: 20px; }
  .stat-card .stat-label { font-size: 11px; }
  .card-body { padding: 16px 18px; }
  .card-header { padding: 16px 18px 0; }
  .route-card, .store-item, .route-list-item, .store-list-item { padding: 12px 16px; }
  .timeline-item { padding: 12px 16px; }
  .form-section { padding: 16px 18px; }
  .login-card { padding: 36px 24px 32px; }
  .filter-bar { gap: 4px; }
  .filter-btn { padding: 6px 14px; font-size: 11px; }
  .map-wrapper { margin: 0 16px 10px; }
  .map-wrapper #fullMap { height: 240px; }
  .location-info { padding: 8px 16px; }
  .store-header { padding: 16px; }
  .progress-card { padding: 14px 16px; }
  .progress-ring { width: 48px; height: 48px; }
  .progress-ring-inner { width: 38px; height: 38px; font-size: 11px; }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-bar { flex-direction: row; gap: 6px; }
  .stat-card { min-width: 0; padding: 12px 10px; }
  .stat-card .stat-value { font-size: 18px; }
  .stat-card .stat-label { font-size: 10px; }
  .chart-grid { grid-template-columns: 1fr; }
}

@media print {
  .sidebar, .bottom-nav, .top-header, .header-btn, .btn { display: none !important; }
  .main-content { margin: 0; }
  .card { border: 1px solid var(--gray-200); box-shadow: none; }
}
