/* =========================================================
   DropSwift – Custom Stylesheet
   Design tokens: blue #2563EB, orange #F97316
   ========================================================= */

/* ---------- Google Fonts (Inter) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --ds-primary:        #2563EB;
  --ds-primary-dark:   #1E40AF;
  --ds-primary-light:  #DBEAFE;
  --ds-accent:         #F97316;
  --ds-accent-dark:    #EA580C;
  --ds-success:        #10B981;
  --ds-danger:         #EF4444;
  --ds-warning:        #F59E0B;
  --ds-bg:             #F8FAFC;
  --ds-card-bg:        #FFFFFF;
  --ds-text:           #0F172A;
  --ds-text-muted:     #64748B;
  --ds-border:         #E2E8F0;
  --ds-white:          #FFFFFF;
  --ds-shadow:         0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --ds-shadow-lg:      0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.06);
  --ds-radius:         0.75rem;
  --ds-radius-sm:      0.5rem;
  --ds-radius-lg:      1rem;
  --ds-transition:     all 0.2s ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ds-text);
  background: var(--ds-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilities ---------- */
.text-primary-ds   { color: var(--ds-primary) !important; }
.text-accent       { color: var(--ds-accent)  !important; }
.text-muted-ds     { color: var(--ds-text-muted) !important; }
.bg-primary-ds     { background-color: var(--ds-primary) !important; }
.bg-accent         { background-color: var(--ds-accent) !important; }
.bg-light-ds       { background-color: var(--ds-bg) !important; }

/* ---------- Navbar ---------- */
.ds-navbar {
  background: #fff;
  border-bottom: 1px solid var(--ds-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.ds-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.ds-navbar .navbar-brand img {
  height: 60px;
  width: auto;
}

.ds-navbar .nav-link {
  color: var(--ds-text-muted);
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--ds-radius-sm);
  transition: var(--ds-transition);
}

.ds-navbar .nav-link:hover,
.ds-navbar .nav-link.active {
  color: var(--ds-primary);
  background: var(--ds-primary-light);
}

/* ---------- Buttons ---------- */
.btn-ds-primary {
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: var(--ds-radius-sm);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--ds-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-ds-primary:hover {
  background: var(--ds-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-ds-accent {
  background: var(--ds-accent);
  color: #fff;
  border: none;
  border-radius: var(--ds-radius-sm);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--ds-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-ds-accent:hover {
  background: var(--ds-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.btn-ds-outline {
  background: transparent;
  color: var(--ds-primary);
  border: 2px solid var(--ds-primary);
  border-radius: var(--ds-radius-sm);
  padding: 0.5rem 1.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--ds-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-ds-outline:hover {
  background: var(--ds-primary);
  color: #fff;
}

/* ---------- Hero Section ---------- */
.ds-hero {
  background: linear-gradient(135deg, var(--ds-primary-dark) 0%, var(--ds-primary) 50%, #3B82F6 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.ds-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ds-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.ds-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.ds-hero h1 .highlight {
  color: var(--ds-accent);
}

.ds-hero p.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: 2rem;
}

.ds-hero .hero-img-wrap {
  position: relative;
  text-align: center;
}

.ds-hero .hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--ds-radius-lg);
  padding: 2rem;
  text-align: left;
  color: #fff;
}

/* ---------- Stats Bar ---------- */
.ds-stats {
  background: #fff;
  border-bottom: 1px solid var(--ds-border);
  padding: 1.5rem 0;
}

.ds-stats .stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.ds-stats .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ds-primary);
  line-height: 1;
}

.ds-stats .stat-label {
  font-size: 0.8125rem;
  color: var(--ds-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ---------- Section Headings ---------- */
.ds-section {
  padding: 5rem 0;
}

.ds-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ds-text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ds-section-subtitle {
  font-size: 1.0625rem;
  color: var(--ds-text-muted);
  max-width: 580px;
  margin: 0 auto 3rem;
}

.ds-section-eyebrow {
  display: inline-block;
  color: var(--ds-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ---------- Feature Cards ---------- */
.ds-feature-card {
  background: var(--ds-card-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: var(--ds-transition);
}

.ds-feature-card:hover {
  box-shadow: var(--ds-shadow-lg);
  transform: translateY(-3px);
  border-color: var(--ds-primary-light);
}

.ds-feature-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--ds-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.375rem;
}

.ds-feature-card h5 {
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.ds-feature-card p {
  color: var(--ds-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------- How It Works ---------- */
.ds-steps {
  background: var(--ds-bg);
}

.ds-step {
  text-align: center;
  padding: 1rem;
}

.ds-step .step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ds-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.ds-step h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ds-step p {
  color: var(--ds-text-muted);
  font-size: 0.9375rem;
}

/* ---------- Role Cards ---------- */
.ds-role-card {
  background: #fff;
  border: 2px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--ds-transition);
  height: 100%;
}

.ds-role-card:hover {
  border-color: var(--ds-primary);
  box-shadow: var(--ds-shadow-lg);
  transform: translateY(-2px);
}

.ds-role-card .role-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.ds-role-card h4 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ds-primary);
  margin-bottom: 0.75rem;
}

.ds-role-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.ds-role-card ul li {
  color: var(--ds-text-muted);
  font-size: 0.9375rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ds-role-card ul li::before {
  content: '✓';
  color: var(--ds-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- CTA Section ---------- */
.ds-cta {
  background: linear-gradient(135deg, var(--ds-primary-dark) 0%, var(--ds-primary) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.ds-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.ds-cta p {
  color: rgba(255,255,255,.8);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.ds-footer {
  background: var(--ds-text);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
}

.ds-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ds-footer .footer-brand img {
  height: 44px;
  filter: brightness(0) invert(1);
}

.ds-footer h6 {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.ds-footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
}

.ds-footer a:hover {
  color: #fff;
}

.ds-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Auth Pages (mobile-like split layout) ---------- */
.ds-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1E40AF 0%, #2563EB 55%, #3B82F6 100%);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.ds-auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Wrapper card */
.ds-auth-card {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(30,64,175,.26), 0 8px 16px rgba(15,23,42,.18);
  position: relative;
  z-index: 1;
}

/* Transparent blue hero section */
.ds-auth-hero {
  background: linear-gradient(160deg, #1E40AF 0%, #2563EB 100%);
  padding: 2.75rem 2rem 2.25rem;
  text-align: center;
}

.ds-auth-hero .auth-logo {
  margin-bottom: 1.5rem;
}

.ds-auth-hero .auth-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(37,99,235,0.18);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.ds-auth-hero .auth-logo a:hover {
  background: rgba(255,255,255,0.8);
}

.ds-auth-hero .auth-logo img {
  height: 64px;
  object-fit: contain;
}

.ds-auth-hero h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

.ds-auth-hero .auth-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  margin: 0;
}

/* White form body */
.ds-auth-body {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 2rem 2rem 2rem;
}

/* Mobile: full-screen card */
@media (max-width: 575.98px) {
  .ds-auth-page {
    align-items: flex-start;
    padding: 0;
  }
  .ds-auth-card {
    border-radius: 0;
    box-shadow: none;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .ds-auth-hero {
    padding: 3rem 1.5rem 2rem;
  }
  .ds-auth-body {
    flex: 1;
    border-radius: 24px 24px 0 0;
    padding: 1.75rem 1.5rem 2rem;
  }
}

/* ---------- Form Controls ---------- */
.ds-form-group {
  margin-bottom: 1.25rem;
}

.ds-form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ds-text);
  margin-bottom: 0.375rem;
}

.ds-form-control {
  width: 100%;
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  padding: 0.6875rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--ds-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ds-form-control:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

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

.ds-form-control.is-invalid {
  border-color: var(--ds-danger);
}

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

.input-icon-wrap .ds-form-control {
  padding-left: 2.75rem;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-muted);
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.toggle-password:hover {
  color: var(--ds-primary);
}

.ds-form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ds-form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ds-primary);
  cursor: pointer;
}

.ds-form-check label {
  font-size: 0.875rem;
  color: var(--ds-text-muted);
  cursor: pointer;
}

.ds-form-check label a {
  color: var(--ds-primary);
  font-weight: 500;
}

/* Role selector */
.ds-role-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ds-role-option {
  flex: 1;
}

.ds-role-option input[type="radio"] {
  display: none;
}

.ds-role-option label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  border: 2px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  padding: 1rem 0.875rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ds-text-muted);
  transition: var(--ds-transition);
  text-align: left;
  min-height: 126px;
  background: #fff;
}

.ds-role-option label:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.ds-role-option label .role-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--ds-primary);
  font-size: 1rem;
}

.ds-role-option label .role-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ds-text);
  line-height: 1.2;
}

.ds-role-option label .role-description {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ds-text-muted);
}

.ds-role-option input[type="radio"]:checked + label {
  border-color: var(--ds-primary);
  background: var(--ds-primary-light);
  color: var(--ds-primary);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.ds-role-option input[type="radio"]:checked + label .role-icon {
  background: var(--ds-primary);
  color: #fff;
}

.ds-role-option input[type="radio"]:checked + label .role-title {
  color: var(--ds-primary-dark);
}

.ds-role-option input[type="radio"]:checked + label .role-description {
  color: #1d4ed8;
}

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 1.25rem 0;
  color: var(--ds-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ds-border);
}

/* Auth submit button sizing */
.ds-auth-submit-btn {
  font-size: 1rem !important;
  padding: 0.8125rem 1.5rem !important;
  border-radius: 12px !important;
}

/* Auth footer link */
.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ds-text-muted);
}

.auth-footer-link a {
  color: var(--ds-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* ---------- Alert / Messages ---------- */
.ds-alert {
  border-radius: var(--ds-radius-sm);
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.ds-alert-danger {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.ds-alert-success {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

.ds-alert-info {
  background: var(--ds-primary-light);
  border-color: #BFDBFE;
  color: var(--ds-primary-dark);
}

/* ---------- Password Strength Indicator ---------- */
.password-strength {
  margin-top: 0.5rem;
}

.password-strength .strength-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--ds-border);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.password-strength .strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.password-strength .strength-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- Delivery status badge ---------- */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ds-badge-pending   { background: #FEF9C3; color: #854D0E; }
.ds-badge-active    { background: #DBEAFE; color: #1E40AF; }
.ds-badge-delivered { background: #D1FAE5; color: #065F46; }
.ds-badge-cancelled { background: #FEE2E2; color: #991B1B; }

/* ---------- Mobile Nav Toggle ---------- */
.ds-nav-toggle {
  background: none;
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  color: var(--ds-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: var(--ds-transition);
}

.ds-nav-toggle:hover {
  background: var(--ds-bg);
  color: var(--ds-primary);
}

.ds-nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--ds-border);
  padding: 0.75rem 0;
}

.ds-nav-mobile.open {
  display: flex;
}

.ds-nav-mobile .nav-link {
  padding: 0.625rem 1rem;
  border-radius: 0;
}

.ds-nav-mobile .nav-link:hover {
  background: var(--ds-bg);
}

.ds-nav-mobile .nav-divider {
  height: 1px;
  background: var(--ds-border);
  margin: 0.5rem 0;
}

.ds-nav-mobile .mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
}

/* ---------- Service Sections ---------- */
.ds-services {
  padding: 5rem 0;
}

.ds-service-card {
  background: #fff;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 2.5rem 2rem;
  height: 100%;
  transition: var(--ds-transition);
  position: relative;
  overflow: hidden;
}

.ds-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
}

.ds-service-card.customer::before { background: var(--ds-primary); }
.ds-service-card.rider::before    { background: var(--ds-accent); }
.ds-service-card.business::before { background: #7C3AED; }

.ds-service-card:hover {
  box-shadow: var(--ds-shadow-lg);
  transform: translateY(-4px);
}

.ds-service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--ds-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.ds-service-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.ds-service-card .service-tagline {
  color: var(--ds-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.ds-service-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.ds-service-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  color: var(--ds-text-muted);
}

.ds-service-feature-list li .feat-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ---------- Developer Section ---------- */
.ds-developer {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.ds-developer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ds-developer .dev-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(124, 58, 237, .2);
  border: 1px solid rgba(124, 58, 237, .4);
  color: #A78BFA;
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.ds-developer h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.ds-developer .dev-subtitle {
  color: rgba(255,255,255,.7);
  font-size: 1.0625rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.ds-dev-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.ds-dev-feature .dev-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-sm);
  background: rgba(124, 58, 237, .2);
  border: 1px solid rgba(124, 58, 237, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A78BFA;
  font-size: 1rem;
  flex-shrink: 0;
}

.ds-dev-feature h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #fff;
}

.ds-dev-feature p {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.ds-code-card {
  background: #020617;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}

.ds-code-card .code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ds-code-card .code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.ds-code-card .code-title {
  font-family: inherit;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  margin-left: 0.5rem;
}

.ds-code-card pre {
  margin: 0;
  padding: 1.5rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #E2E8F0;
  overflow-x: auto;
}

.ds-code-card .c-key   { color: #93C5FD; }
.ds-code-card .c-str   { color: #86EFAC; }
.ds-code-card .c-num   { color: #FCA5A5; }
.ds-code-card .c-cmt   { color: rgba(255,255,255,.35); }
.ds-code-card .c-met   { color: #FCD34D; }

/* ---------- Responsive helpers ---------- */
@media (max-width: 991.98px) {
  .ds-hero { padding: 3.5rem 0 3rem; }
  .ds-section { padding: 3.5rem 0; }
  .ds-services { padding: 3.5rem 0; }
  .ds-developer { padding: 3.5rem 0; }
  .ds-stats .stat-item { border-right: none; }
}

@media (max-width: 767.98px) {
  .ds-hero { padding: 2.5rem 0 2rem; }
  .ds-auth-card { max-width: 100%; }
  .ds-auth-body { padding: 1.75rem 1.5rem 2rem; }
  .ds-role-selector { grid-template-columns: 1fr; }
  .ds-footer .footer-bottom { flex-direction: column; text-align: center; }
  .ds-services { padding: 2.5rem 0; }
  .ds-developer { padding: 2.5rem 0; }
}

/* ---------- Sticky table headers ---------- */
.table-sticky-head { overflow: auto; }
.table-sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ds-card-bg, #fff);
}
[data-ds-theme="dark"] .table-sticky-head thead th {
  background: #1E293B;
}

/* ---------- Social sign-in buttons (uniform mobile-like style) ---------- */
.social-auth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
  margin-bottom: .5rem;
}
.btn-social-google,
.btn-social-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  border: 1.5px solid var(--ds-border);
  background: #fff;
  color: var(--ds-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  cursor: pointer;
  font-family: inherit;
}
.btn-social-google:hover,
.btn-social-apple:hover {
  border-color: #c5cbcf;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  color: var(--ds-text);
  transform: translateY(-1px);
}
.btn-social-google:focus-visible,
.btn-social-apple:focus-visible {
  outline: 2px solid var(--ds-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.2);
}
.btn-social-disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}
.social-provider-icon {
  display: inline-block;
  flex-shrink: 0;
}
.btn-social-apple svg,
.btn-social-apple img.social-provider-icon {
  flex-shrink: 0;
}

@media (max-width: 419.98px) {
  .social-auth-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .ds-navbar .navbar-brand img { height: 54px; }
}
