/* ============================================================
   FLOW ZONE — Design System
   Version: 1.0.0
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #6C63FF;
  --primary-dark: #5a52d5;
  --primary-light: #ede9ff;
  --secondary: #FF6584;
  --secondary-dark: #e0556e;
  --success: #43D98E;
  --success-dark: #32c07a;
  --success-light: #e6faf3;
  --warning: #FFB347;
  --warning-dark: #e09a30;
  --warning-light: #fff4e0;
  --danger: #FF4D6D;
  --danger-dark: #e03a58;
  --danger-light: #ffe5ea;
  --dark: #1A1A2E;
  --dark-mid: #2d2d4e;
  --gray-900: #1e1e30;
  --gray-800: #374151;
  --gray-700: #4B5563;
  --gray-600: #6B7280;
  --gray-500: #9CA3AF;
  --gray-400: #D1D5DB;
  --gray-300: #E5E7EB;
  --gray-200: #F3F4F6;
  --gray-100: #F9FAFB;
  --white: #ffffff;
  --card-bg: #ffffff;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-sm: 6px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-primary: 0 4px 14px rgba(108,99,255,0.35);
  --transition: all 0.2s ease;
  --navbar-height: 64px;
  --bottom-nav-height: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font);
}

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: var(--dark); }
h2 { font-size: 1.5rem;   font-weight: 700; line-height: 1.3; color: var(--dark); }
h3 { font-size: 1.25rem;  font-weight: 600; line-height: 1.4; color: var(--dark); }
h4 { font-size: 1rem;     font-weight: 600; line-height: 1.5; color: var(--dark); }
h5 { font-size: 0.875rem; font-weight: 600; line-height: 1.5; color: var(--gray-700); }

.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success-dark); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning-dark); }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex        { display: flex; }
.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; }
.gap-6  { gap: 24px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.w-full   { width: 100%; }
.h-full   { height: 100%; }

.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-1  { margin-bottom: 4px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.p-2  { padding: 8px; }
.p-3  { padding: 12px; }
.p-4  { padding: 16px; }
.p-6  { padding: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

.hidden   { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

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

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(108,99,255,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger-dark);
  border-color: var(--danger-dark);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: var(--dark);
  border-color: var(--warning);
}
.btn-warning:hover {
  background: var(--warning-dark);
  transform: translateY(-1px);
}

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

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-outline-danger:hover {
  background: var(--danger-light);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--gray-200);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  color: var(--gray-700);
}
.btn-icon:hover {
  background: var(--gray-300);
}

/* Loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}
.btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 6px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 16px;
}

.card-header {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--dark);
}

.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.stat-card.stat-success::before { background: var(--success); }
.stat-card.stat-warning::before { background: var(--warning); }
.stat-card.stat-danger::before  { background: var(--danger); }
.stat-card.stat-secondary::before { background: var(--secondary); }

.stat-card .stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.stat-card .stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  opacity: 0.25;
}

.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 6px;
}

/* ── Provider Card ──────────────────────────────────────────── */
.provider-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
  cursor: pointer;
}

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

.provider-card .provider-info {
  flex: 1;
}

.provider-card .provider-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.provider-card .provider-category {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.provider-card .provider-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

.provider-card .provider-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* ── Category Card ──────────────────────────────────────────── */
.category-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.category-card .cat-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-pending {
  background: var(--warning-light);
  color: var(--warning-dark);
}

.badge-accepted {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-in_progress {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-completed {
  background: var(--success-light);
  color: var(--success-dark);
}

.badge-cancelled {
  background: var(--danger-light);
  color: var(--danger-dark);
}

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar-sm  { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md  { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg  { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar-xl  { width: 80px; height: 80px; font-size: 1.5rem; }

.avatar-primary   { background: var(--primary); }
.avatar-secondary { background: var(--secondary); }
.avatar-success   { background: var(--success); }
.avatar-warning   { background: var(--warning); color: var(--dark); }
.avatar-dark      { background: var(--dark); }

/* ── Rating Stars ───────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  font-size: 0.9rem;
  color: var(--gray-300);
  cursor: default;
}

.star.filled {
  color: #FBBF24;
}

.star.half {
  color: #FBBF24;
}

.star-interactive {
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.1s;
}

.star-interactive:hover {
  transform: scale(1.2);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

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

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.12);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-control:read-only {
  background: var(--gray-100);
  cursor: default;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrap .form-control {
  padding-left: 38px;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-800);
  background: transparent;
}

.search-bar input::placeholder { color: var(--gray-400); }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-brand .brand-dot {
  color: var(--secondary);
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-chip {
  background: rgba(108,99,255,0.2);
  border: 1px solid rgba(108,99,255,0.35);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Admin Topnav */
.topnav {
  background: var(--dark);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--navbar-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-right: 32px;
  white-space: nowrap;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav-links::-webkit-scrollbar { display: none; }

.topnav-link {
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}

.topnav-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

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

.topnav-right {
  margin-left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Bottom Tab Bar ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-400);
  padding: 6px;
  position: relative;
}

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

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.bottom-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-nav-item .nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: 20%;
  background: var(--secondary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Page Layout ────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--navbar-height);
  z-index: 50;
}

.page-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.page-content {
  padding: 16px;
}

/* ── Screen Sections ────────────────────────────────────────── */
.screen {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--white);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  animation: slideUp 0.25s ease;
}

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

.modal-center {
  align-items: center;
  padding: 16px;
}

.modal-center .modal {
  border-radius: var(--radius-card);
  max-width: 420px;
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}

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

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 10px;
}

.btn-close {
  background: var(--gray-200);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 1rem;
  transition: var(--transition);
}

.btn-close:hover {
  background: var(--gray-300);
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.875rem;
}

table thead {
  background: var(--gray-100);
}

table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: middle;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover td {
  background: var(--gray-100);
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  background: var(--gray-200);
  border-radius: var(--radius-btn);
  padding: 4px;
  gap: 2px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  border: none;
  background: none;
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ── Toggle Switch ──────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}

.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle input:checked + .toggle-slider {
  background: var(--success);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* ── Loading Spinner ────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

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

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 12px;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 10px;
  color: var(--gray-500);
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

/* ── Toast Notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 400px;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-card);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  pointer-events: all;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast.toast-success { background: var(--success-dark); }
.toast.toast-error   { background: var(--danger); }
.toast.toast-warning { background: var(--warning-dark); }

.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-msg  { flex: 1; }

/* ── Money Display ──────────────────────────────────────────── */
.money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.money-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.money-positive { color: var(--success-dark); }
.money-negative { color: var(--danger); }

.balance-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.balance-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

.balance-card .balance-label {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 500;
  margin-bottom: 8px;
}

.balance-card .balance-amount {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.balance-card .balance-sub {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* ── Transaction Item ───────────────────────────────────────── */
.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tx-icon.credit { background: var(--success-light); color: var(--success-dark); }
.tx-icon.debit  { background: var(--danger-light);  color: var(--danger); }

.tx-info { flex: 1; }
.tx-desc { font-size: 0.875rem; font-weight: 500; color: var(--gray-800); }
.tx-date { font-size: 0.75rem; color: var(--gray-500); }
.tx-amount { font-weight: 700; font-size: 0.95rem; }

/* ── Back button ────────────────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 0;
}

.btn-back:hover { opacity: 0.8; }

/* ── Auth Page ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, var(--dark) 0%, #2d2d5e 100%);
}

.auth-hero {
  padding: 48px 24px 32px;
  text-align: center;
  color: var(--white);
}

.auth-hero .brand-logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth-hero .brand-logo span { color: var(--primary); }

.auth-hero p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.auth-card {
  flex: 1;
  background: var(--gray-100);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}

.auth-toggle {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-btn);
  padding: 4px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.auth-toggle-btn {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  background: none;
}

.auth-toggle-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

/* ── Hero Banner ────────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-card);
  padding: 20px;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '⚡';
  position: absolute;
  right: 16px;
  bottom: -8px;
  font-size: 4rem;
  opacity: 0.15;
}

.hero-banner h2 { color: var(--white); font-size: 1.1rem; }
.hero-banner p  { font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }

/* ── Section Title ──────────────────────────────────────────── */
.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title .see-all {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}

/* ── Job Card ───────────────────────────────────────────────── */
.job-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.job-card.pending    { border-color: var(--warning); }
.job-card.accepted   { border-color: var(--primary); }
.job-card.in_progress { border-color: var(--primary); }
.job-card.completed  { border-color: var(--success); }
.job-card.cancelled  { border-color: var(--danger); }

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

.job-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.job-meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 3px;
}

.job-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.job-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ── Availability Pill ──────────────────────────────────────── */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.availability-pill.available {
  background: var(--success-light);
  color: var(--success-dark);
}

.availability-pill.unavailable {
  background: var(--danger-light);
  color: var(--danger);
}

/* ── Bar Chart ──────────────────────────────────────────────── */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 0 4px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  background: var(--primary-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  min-height: 4px;
  transition: height 0.6s ease;
}

.bar:hover {
  background: var(--primary);
}

.bar-label {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-align: center;
  white-space: nowrap;
}

/* ── Filters row ────────────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-600);
  background: var(--white);
}

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

/* ── Section Panel (admin) ──────────────────────────────────── */
.admin-section {
  padding: 24px;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-content {
  flex: 1;
  overflow: auto;
  padding-top: var(--navbar-height);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}

.divider-text {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.8rem;
  position: relative;
  margin: 16px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--gray-300);
}

.divider-text::before { left: 0; }
.divider-text::after  { right: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 24px; }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .modal { max-width: 520px; }
}

@media (min-width: 1024px) {
  :root { --bottom-nav-height: 0px; }
  .bottom-nav { display: none; }
  .page { padding-bottom: 0; }
}

/* ── Utilities ──────────────────────────────────────────────── */
.rounded    { border-radius: var(--radius-btn); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.shadow     { box-shadow: var(--shadow-md); }
.shadow-sm  { box-shadow: var(--shadow-sm); }
.bg-white   { background: var(--white); }
.bg-light   { background: var(--gray-100); }

.highlight-row {
  background: var(--primary-light) !important;
}

/* Inline flex center shorthand */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.icon-btn:hover { background: var(--gray-300); }

/* Range input */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  outline: none;
}

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 6px rgba(108,99,255,0.4);
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE — v2
═══════════════════════════════════════════════════════════ */

#screen-landing {
  display: none;
  min-height: 100vh;
  background: #fff;
  font-family: var(--font);
}

/* ── Header ── */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,.06);
  gap: 16px;
}

.landing-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.landing-logo span { color: var(--primary); }

.landing-nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
}
.landing-nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.landing-nav-link:hover { color: var(--primary); }

/* ── Hero ── */
.landing-hero {
  background: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 40%, #312e81 70%, #1e1b4b 100%);
  color: #fff;
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -150px; right: -100px;
}
.hero-glow-2 {
  width: 350px; height: 350px;
  background: var(--secondary);
  bottom: -100px; left: -80px;
}

.landing-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,99,255,.2);
  border: 1px solid rgba(108,99,255,.4);
  color: #a5a0ff;
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.landing-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #a5a0ff, #ff6584, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA buttons */
.landing-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto 24px;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: all .2s;
  width: 100%;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
}
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(108,99,255,.4); }

.btn-hero-secondary {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }

.btn-hero-icon { font-size: 1.4rem; flex-shrink: 0; }

.btn-hero-primary strong,
.btn-hero-secondary strong { display: block; font-size: .95rem; font-weight: 700; }
.btn-hero-primary small,
.btn-hero-secondary small { display: block; font-size: .75rem; opacity: .75; margin-top: 1px; }

.landing-login-hint {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 40px;
}
.landing-login-hint a { color: #a5a0ff; text-decoration: none; }

/* Social proof bar */
.hero-proof {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 40px;
  padding: 10px 24px;
}
.proof-item { text-align: center; }
.proof-item strong { display: block; font-size: 1rem; font-weight: 800; color: #fff; }
.proof-item span { font-size: .7rem; color: rgba(255,255,255,.5); }
.proof-divider { width: 1px; height: 28px; background: rgba(255,255,255,.15); }

/* Floating cards */
.hero-float-cards {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.float-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.float-card small { font-size: .7rem; opacity: .65; font-weight: 400; }
.float-card span { font-size: 1rem; }

/* ── Stats Banner ── */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--primary);
  color: #fff;
}
.stat-banner-item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
}
.stat-banner-item:last-child { border-right: none; }
.stat-banner-value { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; }
.stat-banner-label { font-size: .72rem; opacity: .8; margin-top: 2px; }

/* ── Sections ── */
.landing-section {
  padding: 64px 24px;
  text-align: center;
  max-width: 100%;
}
.landing-section-gray { background: #f8f9fc; }

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.landing-section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  color: var(--dark);
}

/* ── Steps Timeline ── */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: left;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  font-size: .7rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 8px;
  padding: 4px 8px;
  flex-shrink: 0;
  margin-top: 4px;
  letter-spacing: .05em;
}

.step-icon-lg { font-size: 1.8rem; margin-bottom: 8px; }

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.step-content p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
  margin-left: 28px;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .2s;
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,.1);
}

.service-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.service-card p {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.service-card-price {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.service-card-more { border-style: dashed; }

/* ── Trust Section ── */
.trust-section {
  background: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 100%);
}
.trust-section .landing-section-title { color: #fff; }

.trust-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.trust-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 20px;
}
.trust-icon { font-size: 1.6rem; margin-bottom: 10px; }
.trust-card h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.trust-card p { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ── Provider Section ── */
.provider-section { text-align: left; }

.provider-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.provider-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.perk-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.perk-check {
  width: 22px; height: 22px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.perk-item strong { display: block; font-size: .9rem; color: var(--dark); margin-bottom: 2px; }
.perk-item p { font-size: .8rem; color: var(--text-muted); margin: 0; }

/* Earnings card */
.earnings-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border: 1.5px solid var(--border);
}
.earnings-card-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.earnings-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.earnings-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.earnings-total {
  font-size: .95rem;
  color: var(--dark);
  font-weight: 700;
}
.earnings-note {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  background: var(--success-light);
  border-radius: 6px;
  padding: 6px;
  color: var(--success-dark);
}
.text-danger { color: #ff4d6d !important; }
.text-success { color: var(--success) !important; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--border);
}
.testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 10px; }
.testimonial-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-author strong { display: block; font-size: .85rem; color: var(--dark); }
.testimonial-author small { display: block; font-size: .72rem; color: var(--text-muted); }

/* ── Final CTA ── */
.final-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #5a52d5 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.final-cta-section h2 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.final-cta-section p {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 32px;
}
.final-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}
.final-cta-section .btn-hero-secondary {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
}

/* ── Footer ── */
.landing-footer {
  background: #0a0a1a;
  padding: 28px 24px;
  font-size: .8rem;
}
.landing-footer a { text-decoration: none; }
.landing-footer a:hover { color: #fff !important; }

/* ── Auth Modal ── */
.modal-center-auth {
  border-radius: 20px !important;
  max-width: 380px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
}

.auth-modal-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
}
.auth-modal-logo span { color: var(--primary); }

.auth-role-badge {
  margin: 12px 16px 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  display: inline-block;
}
.auth-role-badge.client { background: var(--primary-light); color: var(--primary); }
.auth-role-badge.provider { background: #fff4e0; color: #d97706; }

#auth-modal { align-items: center; padding: 16px; }

/* ── Responsive ── */
@media (min-width: 640px) {
  .landing-ctas, .final-cta-btns { flex-direction: row; max-width: 560px; }
  .btn-hero-primary, .btn-hero-secondary { flex: 1; }
  .services-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; }
  .trust-cards { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
  .provider-split { flex-direction: row; align-items: flex-start; }
  .provider-split-left { flex: 1; }
  .provider-split-right { flex: 0 0 280px; }
  .hero-float-cards { flex-wrap: nowrap; }
  .landing-section { padding: 80px 40px; }
}

@media (max-width: 640px) {
  .landing-nav { display: none; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .stat-banner-item:nth-child(2) { border-right: none; }
  .hero-float-cards { display: none; }
}

