/* =====================================================
   Makanika Online v2 – Premium Design System
   ===================================================== */
:root {
  --primary: #0057D9;
  --primary-dark: #0D47A1;
  --primary-hover: #0046B0;
  --accent: #00C853;
  --accent-dark: #00A844;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #00C853;
  --warning: #F59E0B;
  --error: #EF4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.85rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
.lead { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--text-muted); line-height: 1.7; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); transition: all var(--transition);
  white-space: nowrap; border: 2px solid transparent; line-height: 1.4;
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(0, 87, 217, 0.35);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 87, 217, 0.4); }
.btn-secondary {
  background: white; color: var(--primary); border-color: var(--border); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); background: #F0F7FF; transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; box-shadow: 0 4px 14px rgba(0, 200, 83, 0.3); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); padding: 10px 16px; }
.btn-ghost:hover { background: var(--bg-alt); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light); z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 500;
  font-size: 0.9rem; color: var(--text-muted); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: #F0F7FF; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: flex; background: var(--bg-alt); border-radius: var(--radius-full);
  padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 5px 11px; border-radius: var(--radius-full); font-size: 0.78rem;
  font-weight: 700; color: var(--text-muted); transition: all var(--transition);
}
.lang-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.menu-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001;
  margin-left: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2.5px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.desktop-auth { display: none; }
@media (min-width: 992px) {
  .nav-links { display: flex; }
  .desktop-auth { display: flex; align-items: center; gap: 8px; }
  .menu-toggle { display: none; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: 0; width: min(300px, 85vw); height: 100vh;
  background: white; z-index: 999; padding: 88px 20px 40px;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl); overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block; padding: 14px 16px; font-weight: 500; color: var(--text);
  border-radius: var(--radius); margin-bottom: 2px;
}
.mobile-menu a:hover, .mobile-menu a.active { background: #F0F7FF; color: var(--primary); }
.mobile-menu .mobile-auth { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 998;
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
}
.overlay.show { opacity: 1; visibility: visible; }

/* Hero – fixed spacing so badge never overlaps headline */
.hero {
  padding: calc(var(--nav-height) + 40px) 0 56px;
  background: linear-gradient(160deg, #E8F1FF 0%, #F8FAFC 50%, #F0FDF4 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -15%; right: -8%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 87, 217, 0.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero { padding: calc(var(--nav-height) + 64px) 0 80px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: white;
  padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.82rem;
  font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm);
  margin-bottom: 16px; border: 1px solid var(--border-light);
  /* prevent overlap */
  position: relative; z-index: 1;
}
.hero-badge .dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}
.hero h1 { margin-bottom: 14px; position: relative; z-index: 1; }
.hero .lead { margin-bottom: 28px; max-width: 460px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: white; border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 400px;
  border: 1px solid var(--border-light); position: relative;
}
.hero-illustration {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(145deg, #E8F1FF, #F0FDF4);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; font-size: 4.5rem; margin-bottom: 16px;
}
.floating-badge {
  position: absolute; background: white; padding: 8px 14px;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
  animation: float 3.5s ease-in-out infinite;
}
.floating-badge.top-right { top: -10px; right: -8px; }
.floating-badge.bottom-left { bottom: 56px; left: -12px; animation-delay: 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-header h2 { margin-bottom: 10px; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.service-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 24px 20px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  transition: all var(--transition); display: flex; flex-direction: column; height: 100%;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: rgba(0, 87, 217, 0.2);
}
.service-icon {
  width: 52px; height: 52px; background: linear-gradient(135deg, #E8F1FF, #F0F7FF);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 14px; color: var(--primary);
}
.service-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; margin-bottom: 16px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.timeline-step {
  display: flex; gap: 16px; padding: 16px 18px; background: white;
  border-radius: var(--radius-lg); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px; height: 44px; min-width: 44px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: white;
}
.step-content h4 { margin-bottom: 4px; font-size: 1rem; }
.step-content p { font-size: 0.88rem; color: var(--text-muted); }

/* Pricing – new device-based system */
.pricing-intro {
  background: white; border-radius: var(--radius-xl); padding: 28px 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  max-width: 720px; margin: 0 auto 40px; text-align: center;
}
.pricing-intro h3 { margin-bottom: 10px; }
.pricing-intro p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 8px; }
.wallet-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #ECFDF5;
  color: #047857; font-weight: 600; font-size: 0.9rem; padding: 8px 16px;
  border-radius: var(--radius-full); margin-top: 12px;
}
.device-pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 600px) { .device-pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .device-pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.device-card {
  background: white; border-radius: var(--radius-lg); padding: 24px 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  text-align: center; transition: all var(--transition);
}
.device-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.device-icon { font-size: 2.2rem; margin-bottom: 10px; }
.device-card h3 { font-size: 1rem; margin-bottom: 16px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border-light); font-size: 0.9rem;
}
.price-row:first-of-type { border-top: none; }
.price-label { color: var(--text-muted); text-align: left; }
.price-value { font-weight: 800; color: var(--text); }
.price-value small { font-weight: 500; font-size: 0.75rem; color: var(--text-muted); }
.pricing-notes {
  max-width: 720px; margin: 36px auto 0; display: grid; gap: 12px;
}
.note-card {
  background: white; border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid var(--border-light); display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.9rem; color: var(--text-muted);
}
.note-card strong { color: var(--text); display: block; margin-bottom: 2px; }
.note-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Payments */
.payments-box {
  background: white; border-radius: var(--radius-xl); padding: 36px 24px;
  text-align: center; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  max-width: 640px; margin: 0 auto;
}
.payment-logos { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 24px 0; }
.payment-logo {
  background: var(--bg); padding: 14px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.secure-badge { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: white; transition: all var(--transition); color: var(--text);
}
.form-control:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 87, 217, 0.12);
}
.form-control::placeholder { color: var(--text-light); }

/* Track */
.track-card {
  background: white; border-radius: var(--radius-xl); padding: 32px 24px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
  max-width: 480px; margin: 0 auto;
}
.or-divider {
  display: flex; align-items: center; gap: 14px; margin: 16px 0;
  color: var(--text-muted); font-size: 0.85rem;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.status-card {
  background: white; border-radius: var(--radius-xl); padding: 28px 24px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow);
  margin-top: 28px; display: none;
}
.status-card.show { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.status-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600;
}
.status-badge.in-progress { background: #FEF3C7; color: #B45309; }
.status-badge.completed { background: #D1FAE5; color: #047857; }
.status-badge.pending { background: #E0E7FF; color: #3730A3; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.status-item label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 3px; }
.status-item strong { font-size: 0.95rem; }

/* Auth */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(160deg, #E8F1FF 0%, #F8FAFC 50%, #F0FDF4 100%);
}
.auth-card {
  background: white; border-radius: var(--radius-xl); padding: 36px 28px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .logo { justify-content: center; margin-bottom: 10px; }
.auth-logo h1 { font-size: 1.4rem; margin-bottom: 4px; }
.auth-logo p { color: var(--text-muted); font-size: 0.92rem; }
.checkbox-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-size: 0.88rem;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-muted); }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.forgot-link { color: var(--primary); font-weight: 500; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-weight: 600; background: white; color: var(--text);
  transition: all var(--transition); margin-top: 12px;
}
.btn-google:hover { background: var(--bg); border-color: var(--text-light); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.92rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Dashboard */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; background: white; border-right: 1px solid var(--border);
  padding: 20px 12px; position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100; transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.open { transform: translateX(0); }
@media (min-width: 992px) { .sidebar { transform: translateX(0); } }
.sidebar.dark { background: #0F172A; border-right-color: #1E293B; color: #E2E8F0; }
.sidebar.dark .sidebar-link { color: #94A3B8; }
.sidebar.dark .sidebar-link:hover,
.sidebar.dark .sidebar-link.active { background: #1E293B; color: white; }
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  margin-bottom: 28px; font-weight: 700; font-size: 1.1rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--radius); font-weight: 500; color: var(--text-muted);
  transition: all var(--transition); font-size: 0.92rem;
}
.sidebar-link:hover, .sidebar-link.active { background: #F0F7FF; color: var(--primary); }
.sidebar-link .icon { font-size: 1.15rem; width: 22px; text-align: center; }
.main-content { flex: 1; margin-left: 0; padding: 20px 16px; background: var(--bg); }
@media (min-width: 992px) { .main-content { margin-left: 250px; padding: 28px; } }
.dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
}
.welcome h1 { font-size: 1.4rem; margin-bottom: 2px; }
.welcome p { color: var(--text-muted); font-size: 0.92rem; }
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.stat-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.stat-card .label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .value { font-size: 1.6rem; font-weight: 800; }
.stat-card .trend { font-size: 0.78rem; margin-top: 4px; color: var(--accent); font-weight: 600; }
.dashboard-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.dashboard-card h3 { margin-bottom: 14px; font-size: 1.05rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: white; border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
}
.stars { color: #FBBF24; font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { font-size: 0.92rem; margin-bottom: 16px; line-height: 1.6; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.95rem;
}
.reviewer-info strong { display: block; font-size: 0.9rem; }
.reviewer-info span { font-size: 0.78rem; color: var(--text-muted); }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px; background: white;
  padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.contact-icon {
  width: 44px; height: 44px; background: #E8F1FF; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { margin-bottom: 2px; font-size: 0.95rem; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 0.9rem; }
.contact-item a:hover { color: var(--primary); }
.map-placeholder {
  background: var(--bg-alt); border-radius: var(--radius-lg); height: 280px;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  border: 1px solid var(--border); font-size: 0.9rem;
}

/* Chat FAB */
.chat-fab {
  position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px;
  background: var(--primary); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 87, 217, 0.4); z-index: 900;
  transition: all var(--transition); border: none;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  position: fixed; bottom: 88px; right: 16px; width: min(360px, calc(100vw - 24px));
  height: 440px; background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); z-index: 901; display: none; flex-direction: column;
  overflow: hidden; border: 1px solid var(--border);
}
.chat-panel.open { display: flex; animation: fadeUp 0.3s ease; }
.chat-header {
  background: var(--primary); color: white; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header h4 { color: white; font-size: 0.95rem; }
.chat-body { flex: 1; padding: 16px; overflow-y: auto; background: var(--bg); }
.chat-message {
  background: white; padding: 10px 14px; border-radius: var(--radius);
  margin-bottom: 10px; font-size: 0.88rem; box-shadow: var(--shadow-sm); max-width: 85%;
}
.chat-message.bot { background: #E8F1FF; }
.chat-footer { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-footer input {
  flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
}
.chat-footer button {
  background: var(--primary); color: white; padding: 10px 14px;
  border-radius: var(--radius); font-weight: 600;
}

/* Footer */
.footer { background: #0F172A; color: #94A3B8; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; max-width: 260px; }
.footer h4 { color: white; font-size: 0.9rem; margin-bottom: 12px; font-weight: 600; }
.footer-links a {
  display: block; padding: 5px 0; font-size: 0.88rem; color: #94A3B8;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1E293B; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 0.85rem;
}

/* Upload */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 32px 20px; text-align: center; background: var(--bg);
  transition: all var(--transition); cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: #F0F7FF; }
.upload-zone .icon { font-size: 2.2rem; margin-bottom: 10px; }
.upload-zone p { color: var(--text-muted); font-size: 0.92rem; }
.upload-zone .hint { font-size: 0.78rem; margin-top: 6px; color: var(--text-light); }

/* Utils */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.hidden { display: none !important; }
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Logo image */
.logo img, .logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.auth-logo .logo img {
  height: 72px;
  margin: 0 auto 12px;
}
.sidebar-brand img {
  height: 36px;
  width: auto;
}
.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* v5 enhancements */
.logo-img, .logo img { height: 44px !important; width: auto; max-width: 160px; object-fit: contain; }
@media (max-width: 480px) {
  .logo-img, .logo img { height: 38px !important; max-width: 130px; }
}
.nav-profile {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  background: var(--bg-alt); border-radius: var(--radius-full); cursor: pointer;
  border: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.nav-profile:hover { border-color: var(--primary); background: #F0F7FF; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-profile-name { font-size: 0.85rem; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .nav-profile-name { display: none; } }

.toast-wrap {
  position: fixed; top: 84px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px));
}
.toast {
  background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary); display: flex; gap: 12px; align-items: flex-start;
  animation: fadeUp 0.3s ease;
}
.toast.success { border-left-color: var(--accent); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }
.toast-msg { font-size: 0.9rem; flex: 1; line-height: 1.4; }
.toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }

.help-fab {
  position: fixed; bottom: 88px; right: 20px; z-index: 890;
  background: #25D366; color: #fff; border: none; border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex; align-items: center; justify-content: center;
}
.help-fab:hover { transform: scale(1.06); }

.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.social-row a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: #1E293B; border-radius: 8px; font-size: 0.85rem; color: #E2E8F0;
}
.social-row a:hover { background: #334155; color: #fff; }

.passkey-box {
  max-width: 400px; margin: 80px auto; background: #1E293B; padding: 32px;
  border-radius: 16px; color: #E2E8F0;
}

/* =====================================================
   v5.2 additions – icon set, trust/FAQ, agent cards, tabs
   ===================================================== */
.icn { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icn-sm { width: 16px; height: 16px; }
.icn-lg { width: 30px; height: 30px; stroke-width: 1.6; }

/* Map embed */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 260px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

/* Trust badges */
.trust-badges { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .trust-badges { grid-template-columns: repeat(3, 1fr); } }
.trust-badge-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; display: flex; gap: 12px; align-items: flex-start; text-align: left;
}
.trust-badge-card .icn { color: var(--accent); margin-top: 2px; }
.trust-badge-card h4 { font-size: 0.95rem; margin-bottom: 3px; }
.trust-badge-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* FAQ accordion (native <details>) */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 0.98rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icn { color: var(--text-muted); transition: transform 0.2s ease; }
.faq-item[open] summary .icn { transform: rotate(180deg); color: var(--primary); }
.faq-item p { padding: 0 0 18px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* Agent cards (client dashboard "find an agent") */
.agent-cards-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .agent-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .agent-cards-grid { grid-template-columns: repeat(3, 1fr); } }
.agent-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.agent-card-top { display: flex; align-items: center; gap: 12px; }
.agent-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem;
}
.agent-online-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 2px #fff; }
.agent-card-name { font-size: 0.98rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.agent-card-role { font-size: 0.78rem; color: var(--text-muted); }
.agent-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-tag { background: var(--bg-alt); color: var(--text-muted); font-size: 0.74rem; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-full); }
.agent-card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; color: var(--text-muted); }
.agent-card-rating .stars { font-size: 0.8rem; margin: 0; }

/* Dashboard tabs (agent portal: Requests / Earnings / Profile) */
.tab-row { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-btn {
  padding: 10px 16px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap; background: none;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Earnings summary cards */
.earnings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .earnings-row { grid-template-columns: repeat(4, 1fr); } }
.earnings-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.earnings-card .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.earnings-card .value { font-size: 1.35rem; font-weight: 800; }
.sidebar.dark .earnings-card, .sidebar.dark ~ .main-content .earnings-card {}
.dark-card { background: #1E293B; border: 1px solid #334155; color: #E2E8F0; }
.dark-card .label { color: #94A3B8; }
.dark-card .value { color: #fff; }

/* Agent profile edit */
.avatar-upload-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar-upload-row .agent-avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-upload-row input[type="file"] { display: none; }
.avatar-upload-btn { font-size: 0.85rem; font-weight: 600; color: var(--primary); cursor: pointer; padding: 8px 14px; border: 1.5px solid var(--primary); border-radius: var(--radius-full); }
.avatar-upload-btn:hover { background: #F0F7FF; }

/* Escrow explainer strip */
.escrow-strip {
  display: flex; gap: 12px; align-items: flex-start; background: #F0F7FF; border: 1px solid #BFDBFE;
  border-radius: var(--radius); padding: 14px 16px; margin-top: 16px; font-size: 0.85rem; color: var(--text);
}
.escrow-strip .icn { color: var(--primary); margin-top: 1px; }

/* Admin agent list rows */
.admin-agent-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #334155;
}
.admin-agent-row .agent-avatar { width: 40px; height: 40px; font-size: 0.9rem; }

/* WhatsApp pre-question form (uses .mk- classes from notifications.js) */
.mk-select { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1.5px solid #E2E8F0; border-radius: 12px; font-size: 1rem; margin-bottom: 14px; font-family: inherit; background: #fff; }
.mk-label { display: block; font-size: 0.82rem; font-weight: 600; color: #475569; margin-bottom: 6px; }

/* Makanika loading */
.mk-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 28px 16px; color: #64748B; font-size: 0.9rem;
}
.mk-spinner {
  width: 36px; height: 36px; border: 3px solid #E2E8F0; border-top-color: #0057D9;
  border-radius: 50%; animation: mkSpin 0.75s linear infinite;
}
@keyframes mkSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mk-spinner { animation: none; border-top-color: #0057D9; opacity: 0.7; }
}
.mk-skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%; animation: mkPulse 1.2s ease infinite;
  border-radius: 8px; height: 14px; margin: 6px 0;
}
@keyframes mkPulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Request detail contrast */
#requestDetail {
  background: #0F172A !important;
  color: #E2E8F0 !important;
  border-color: #334155 !important;
}
#requestDetail h3, #requestDetail strong { color: #F8FAFC !important; }
#requestDetail p, #requestDetail li { color: #CBD5E1 !important; }
#requestDetail .btn-primary { background: #0057D9; color: #fff; }
#requestDetail .btn-secondary { background: #334155; color: #E2E8F0; border: none; }
