/* =====================================================================
   EV2W Customer Mobile Prototype — styles.css
   Tokens · Utilities · Components
   Brand: EV2W (Electronic Vehicle 2 Wheels Rental System)
   Viewport: 375 × 812 (iPhone reference)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --brand-primary-dark: #0ED400;
  --brand-primary-light: #89E291;
  --brand-primary-text: #058A00;
  --brand-secondary: #1E2022;
  --brand-secondary-light: #3A3D40;

  /* Surface */
  --surface-page: #f9fafb;
  --surface-card: #ffffff;
  --surface-secondary: #f3f4f6;
  --surface-inverse: #111827;

  /* Border */
  --border-default: #e5e7eb;
  --border-secondary: #d1d5db;
  --border-focused: var(--brand-primary-text);

  /* Text */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-on-brand: #1E2022;
  --text-inverse: #ffffff;

  /* Status */
  --success: #16a34a;       --success-bg: #f0fdf4;
  --warning: #ba7517;       --warning-bg: #fefce8;
  --error: #dc2626;         --error-bg: #fef2f2;
  --info: #0069d2;          --info-bg: #eff6ff;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-default: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 48px;
  --space-5xl: 64px;
  --space-6xl: 80px;
  --space-7xl: 96px;

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-default: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --fs-label-xs: 11px;
  --fs-label-sm: 12px;
  --fs-body-sm: 13px;
  --fs-body-base: 14px;
  --fs-body-md: 15px;
  --fs-heading-xs: 16px;
  --fs-heading-sm: 18px;
  --fs-heading-md: 20px;
  --fs-heading-lg: 24px;
  --fs-heading-xl: 30px;
  --fs-display-sm: 36px;
  --fs-display-lg: 48px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(17,24,39,0.04), 0 1px 2px rgba(17,24,39,0.06);
  --shadow-md: 0 4px 12px rgba(17,24,39,0.08), 0 2px 4px rgba(17,24,39,0.04);
  --shadow-brand: 0 4px 12px rgba(14,212,0,0.20);
  --shadow-modal: 0 24px 48px -12px rgba(17,24,39,0.18);

  /* Misc */
  --tab-bar-height: 64px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body-base);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- LAYOUT — MOBILE FRAME ---------- */
.app-frame {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface-card);
  position: relative;
  overflow-x: hidden;
}
@media (min-width: 768px) {
  body { background: #e5e7eb; padding: 24px 0; }
  .app-frame {
    max-width: 375px;
    min-height: 812px;
    height: 812px;
    box-shadow: 0 30px 80px rgba(17,24,39,0.18);
    border-radius: 32px;
    overflow: hidden;
  }
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--surface-card);
}
@media (min-width: 768px) {
  .screen { height: 812px; }
}
.screen--page-bg { background: var(--surface-page); }

.screen__header {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--space-default);
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-default);
  position: sticky; top: 0; z-index: 10;
}
.screen__header--clean { border-bottom: none; }
.screen__header--64 { height: 64px; }
.screen__back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-left: -8px;
  border-radius: var(--radius-default);
}
.screen__back:hover { background: var(--surface-secondary); }
.screen__title {
  flex: 1;
  font-size: var(--fs-heading-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-align: center;
  margin: 0 var(--space-sm);
}
.screen__close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-default);
}
.screen__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}
.screen__body--no-pad { padding: 0; }

.screen__footer-sticky {
  position: sticky;
  bottom: 0;
  padding: var(--space-default) var(--space-xl) var(--space-xl);
  background: linear-gradient(180deg, transparent 0%, var(--surface-card) 30%);
}

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.t-display-sm { font-size: var(--fs-display-sm); font-weight: var(--fw-bold); line-height: 1.15; }
.t-heading-xl { font-size: var(--fs-heading-xl); font-weight: var(--fw-bold); line-height: 1.2; }
.t-heading-lg { font-size: var(--fs-heading-lg); font-weight: var(--fw-bold); line-height: 1.25; }
.t-heading-md { font-size: var(--fs-heading-md); font-weight: var(--fw-semibold); line-height: 1.3; }
.t-heading-sm { font-size: var(--fs-heading-sm); font-weight: var(--fw-semibold); line-height: 1.35; }
.t-heading-xs { font-size: var(--fs-heading-xs); font-weight: var(--fw-semibold); line-height: 1.4; }
.t-body-md { font-size: var(--fs-body-md); }
.t-body-base { font-size: var(--fs-body-base); }
.t-body-sm { font-size: var(--fs-body-sm); }
.t-label-sm { font-size: var(--fs-label-sm); font-weight: var(--fw-medium); letter-spacing: 0.4px; }
.t-label-xs { font-size: var(--fs-label-xs); font-weight: var(--fw-medium); letter-spacing: 0.4px; text-transform: uppercase; }

.t-secondary { color: var(--text-secondary); }
.t-tertiary { color: var(--text-tertiary); }
.t-brand { color: var(--brand-primary-text); }
.t-success { color: var(--success); }
.t-error { color: var(--error); }
.t-warning { color: var(--warning); }
.t-mono { font-family: var(--font-mono); }
.t-bold { font-weight: var(--fw-bold); }
.t-medium { font-weight: var(--fw-medium); }
.t-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 48px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-default);
  font-size: var(--fs-heading-xs);
  font-weight: var(--fw-semibold);
  transition: transform 100ms ease, opacity 150ms;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--brand-primary-text); outline-offset: 2px; }
.btn--full { width: 100%; }
.btn--primary {
  background: var(--brand-primary-dark);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: #0DC100; }
.btn--primary:disabled, .btn--primary[disabled] {
  background: var(--border-default);
  color: var(--text-tertiary);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--secondary {
  background: transparent;
  color: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
}
.btn--secondary:hover { background: var(--surface-secondary); }
.btn--ghost {
  background: transparent;
  color: var(--brand-primary-text);
}
.btn--ghost:hover { background: var(--surface-secondary); }
.btn--white {
  background: var(--surface-card);
  color: var(--brand-secondary);
}
.btn--destructive {
  background: var(--error);
  color: white;
}
.btn--sm { height: 36px; padding: 0 var(--space-default); font-size: var(--fs-body-base); }

/* ---------- INPUT ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: var(--fs-label-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.field__input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-default);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  font-size: var(--fs-body-md);
  color: var(--text-primary);
  transition: border-color 150ms, box-shadow 150ms;
}
.field__input:focus {
  outline: none;
  border-color: var(--brand-primary-text);
  box-shadow: 0 0 0 3px rgba(137, 226, 145, 0.4);
}
.field__input::placeholder { color: var(--text-tertiary); }

/* Native <select> gets a consistent custom chevron (parity across platforms) */
select.field__input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
  padding-right: 44px; cursor: pointer;
}
select.field__input::-ms-expand { display: none; }

.field__input--textarea {
  height: auto;
  min-height: 96px;
  padding: var(--space-md) var(--space-default);
  resize: vertical;
  font-family: var(--font-body);
}
.field--error .field__input { border-color: var(--error); }
.field--error .field__input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }
.field__helper {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.field--error .field__helper { color: var(--error); }
.field__input-group { position: relative; }
.field__input-group .field__input { padding-right: 48px; }
.field__input-trailing {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-default);
  color: var(--text-secondary);
}

/* ---------- CHECKBOX ---------- */
.checkbox { display: flex; align-items: flex-start; gap: var(--space-md); cursor: pointer; }
.checkbox__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms;
  margin-top: 2px;
}
.checkbox__input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__input:checked + .checkbox__box {
  background: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}
.checkbox__input:checked + .checkbox__box::after {
  content: '';
  width: 12px; height: 6px;
  border-left: 2px solid var(--text-on-brand);
  border-bottom: 2px solid var(--text-on-brand);
  transform: rotate(-45deg) translate(1px, -1px);
}
.checkbox__label { font-size: var(--fs-body-sm); color: var(--text-secondary); line-height: 1.5; }
.checkbox__label a { color: var(--brand-primary-text); font-weight: var(--fw-semibold); text-decoration: underline; }

/* ---------- CHIP / RADIO PILL ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 var(--space-md);
  background: var(--surface-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 150ms;
}
.chip:hover { background: var(--border-default); }
.chip--active {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary-dark);
  color: var(--text-on-brand);
}
.chip--lg { height: 40px; padding: 0 var(--space-default); font-size: var(--fs-body-base); }

/* ---------- CARD ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.card--no-pad { padding: 0; }
.card--shadow { border: none; box-shadow: var(--shadow-sm); }

/* ---------- CHECKBOX ---------- */
.checkbox__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--border-secondary, #d1d5db);
  border-radius: var(--radius-sm, 4px);
  background: var(--surface-card, white);
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms;
  margin-top: 2px;
}
.checkbox__input {
  position: absolute; opacity: 0;
  width: 20px; height: 20px; cursor: pointer;
}
.checkbox__input:checked + .checkbox__box {
  background: var(--success, #16a34a);
  border-color: var(--success, #16a34a);
}
.checkbox__input:checked + .checkbox__box::after {
  content: '';
  width: 12px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------- ALERT ---------- */
.alert {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-default);
  border-radius: var(--radius-default);
  background: var(--info-bg);
  color: var(--info);
}
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--warning { background: var(--warning-bg); color: var(--warning); }
.alert--error { background: var(--error-bg); color: var(--error); }
.alert__icon { flex-shrink: 0; }
.alert__body { color: var(--text-primary); font-size: var(--fs-body-sm); line-height: 1.5; }
.alert__title { font-weight: var(--fw-semibold); margin-bottom: 4px; color: inherit; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 var(--space-sm);
  background: var(--surface-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--fs-label-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.badge--brand { background: var(--brand-primary-light); color: var(--text-on-brand); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--error { background: var(--error-bg); color: var(--error); }
.badge--info { background: var(--info-bg); color: var(--info); }

/* ---------- BOTTOM TAB BAR ---------- */
.tab-bar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  height: var(--tab-bar-height);
  background: var(--surface-card);
  border-top: 1px solid var(--border-default);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
.tab-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-secondary);
  font-size: var(--fs-label-xs);
  font-weight: var(--fw-medium);
  text-transform: none;
  letter-spacing: 0;
}
.tab-bar__item--active { color: var(--brand-primary-text); }
.tab-bar__icon { width: 24px; height: 24px; }

/* ---------- TIMER / COUNTDOWN ---------- */
.countdown {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.countdown--display { font-size: var(--fs-display-sm); }
.countdown--lg { font-size: var(--fs-heading-lg); }
.countdown--md { font-size: var(--fs-heading-md); }
.countdown--warning { color: var(--warning); }
.countdown--expired { color: var(--error); }

/* ---------- KYC PROGRESS DOTS ---------- */
.kyc-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-default) 0;
}
.kyc-progress__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-default);
}
.kyc-progress__dot--done { background: var(--brand-primary-text); }
.kyc-progress__dot--active { background: var(--brand-primary-dark); transform: scale(1.4); }
.kyc-progress__line {
  flex: 1;
  height: 1px;
  background: var(--border-default);
}
.kyc-progress__line--done { background: var(--brand-primary-text); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: 90%;
  max-width: 327px;
  padding: var(--space-md) var(--space-default);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius-default);
  font-size: var(--fs-body-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
  pointer-events: none;
  z-index: 1000;
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { border-left: 4px solid var(--brand-primary-dark); }
.toast--error { border-left: 4px solid var(--error); }

/* ---------- HERO BLOCK (Flip/Jenius style — white card, brand accent) ---------- */
.hero {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-primary-dark);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.hero--receipt {
  background: var(--surface-card);
  border-radius: 0;
  box-shadow: none;
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
  text-align: center;
  color: var(--text-primary);
}
.hero__check {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--brand-primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 24px rgba(14,212,0,0.25);
}

/* ---------- HELPERS ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-default { gap: var(--space-default); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }
.flex-1 { flex: 1; }
.full { width: 100%; }
.rel { position: relative; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-default { margin-top: var(--space-default); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mt-4xl { margin-top: var(--space-4xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-default { margin-bottom: var(--space-default); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.divider { height: 1px; background: var(--border-default); margin: var(--space-default) 0; }
.divider--strong { height: 1px; background: var(--border-secondary); }

.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }
.icon-40 { width: 40px; height: 40px; }
.icon-48 { width: 48px; height: 48px; }
.icon-64 { width: 64px; height: 64px; }

/* ---------- SPLASH (Flip/Jenius style — white-dominated, brand accents) ---------- */
.splash {
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
  background: var(--surface-card);
  color: var(--text-primary);
  text-align: center;
}
.splash__logo {
  margin: var(--space-7xl) auto 0;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-primary-dark);
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(14,212,0,0.20);
}
@media (min-width: 768px) {
  .splash { min-height: 812px; }
}

/* ---------- FLIP-STYLE GREETING HERO (solid brand fill + illustration) ---------- */
.greet-hero {
  background: var(--brand-primary-dark);
  border-radius: 20px;
  padding: 20px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 132px;
}
.greet-hero__title {
  color: white;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}
.greet-hero__body {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.4;
  max-width: 60%;
}
.greet-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}
.greet-hero__illustration {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 130px;
  opacity: 0.95;
  pointer-events: none;
}
/* Decorative curly white shape — characteristic Flip element */
.greet-hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.greet-hero::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ---------- FLIP-STYLE BALANCE / STATUS CARD (white card + colored action tiles) ---------- */
.balance-card {
  background: white;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}
.balance-card__amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.balance-card__sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.balance-actions {
  display: flex;
  gap: 8px;
}
.balance-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  height: 60px;
  border-radius: 12px;
  background: var(--brand-primary-dark);
  color: white;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: transform 100ms;
}
.balance-action:active { transform: scale(0.96); }
.balance-action--secondary { background: var(--brand-secondary); }

/* ---------- FLIP-STYLE MULTI-COLOR QUICK ACTION GRID ---------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.action-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: transform 100ms;
}
.action-tile:active .action-tile__icon { transform: scale(0.94); }
.action-tile__icon--brand   { background: var(--brand-primary-dark); }
.action-tile__icon--orange  { background: #f97316; }
.action-tile__icon--blue    { background: var(--info); }
.action-tile__icon--purple  { background: #8b5cf6; }
.action-tile__icon--pink    { background: #ec4899; }
.action-tile__icon--cyan    { background: #06b6d4; }
.action-tile__icon--gray    { background: #6b7280; }
.action-tile__label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ---------- FLIP-STYLE PROMO CARD (solid brand fill with illustration) ---------- */
.promo-card {
  background: var(--brand-primary-dark);
  border-radius: 20px;
  padding: 20px 24px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  align-items: center;
}
.promo-card--secondary { background: var(--brand-secondary); }
.promo-card__content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}
.promo-card__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}
.promo-card__title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  line-height: 1.35;
}
.promo-card__title strong { font-weight: 800; }
.promo-card__illustration {
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.promo-card::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.promo-card__dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.promo-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-default);
}
.promo-card__dot--active {
  background: var(--brand-primary-dark);
  width: 18px;
  border-radius: 3px;
}

/* =====================================================================
   AGENT-SPECIFIC OPERATIONAL DESIGN LANGUAGE
   Distinct from Customer Mobile — dark header, data-dense, scan-first.
   ===================================================================== */

/* ---------- OPS HEADER (dark hero — operational version of greet-hero) ---------- */
.ops-header {
  background: var(--brand-secondary);          /* dark #1E2022 instead of brand green */
  border-radius: 14px;
  padding: 14px 16px;                          /* compact: was 18px 20px */
  color: white;
  position: relative;
  overflow: hidden;
}
.ops-header::before {
  /* Subtle brand-color glow on right — signals "online / live" */
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,212,0,0.22) 0%, transparent 70%);
}
.ops-header__row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;                          /* compact: was 14px */
  position: relative; z-index: 1;
}
.ops-header__title {
  font-size: 12px;                              /* compact: was 13px */
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ops-header__live {
  /* Compact: pulse dot only, no LIVE label — saves vertical + horizontal space */
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-primary-dark);
  animation: pulse 2s ease-in-out infinite;
  font-size: 0;                                 /* hide any text content */
  line-height: 0;
}
.ops-header__live::before { content: none; }

/* Ops stat row inside header */
.ops-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ops-stat {
  display: flex; flex-direction: column;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 10px;
}
.ops-stat:first-child { border-left: none; padding-left: 0; }
.ops-stat__value {
  font-family: var(--font-mono);
  font-size: 20px;                              /* compact: was 22px */
  font-weight: 800;
  color: white;
  line-height: 1;
}
.ops-stat__value--brand { color: var(--brand-primary-dark); }
.ops-stat__value--warn  { color: #fbbf24; }
.ops-stat__value--error { color: #f87171; }
.ops-stat__label {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;                              /* compact: was 4px */
  font-weight: 600;
}

/* ---------- SCAN ACTION GRID (2 big primary actions — Pickup + Return) ---------- */
.scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scan-action {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: white;
  border: 2px solid var(--border-default);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 100ms, border-color 150ms;
}
.scan-action:active { transform: scale(0.97); }
.scan-action:hover  { border-color: var(--brand-primary-text); }
.scan-action--pickup { border-top: 4px solid var(--brand-primary-dark); }
.scan-action--return { border-top: 4px solid #f97316; }
.scan-action__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.scan-action__icon--pickup { background: var(--brand-primary-dark); }
.scan-action__icon--return { background: #f97316; }
.scan-action__label {
  font-size: 14px;
  font-weight: 700;
}
.scan-action__sub {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- OPS CHIP (status indicator for rentals) ---------- */
.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 4px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  text-transform: uppercase;
}
.ops-chip--active  { background: rgba(14,212,0,0.12);  color: var(--brand-primary-text); }
.ops-chip--warn    { background: var(--warning-bg);    color: var(--warning); }
.ops-chip--overdue { background: var(--error-bg);      color: var(--error); }
.ops-chip--done    { background: var(--info-bg);       color: var(--info); }

/* ---------- LIVE RENTAL CARD (compact, data-dense) ---------- */
.live-rental {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 12px;
  align-items: center;
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
}
.live-rental:hover { border-color: var(--brand-primary-text); }
.live-rental__indicator {
  width: 4px;
  align-self: stretch;
  background: var(--brand-primary-dark);
  border-radius: 4px;
  margin: -12px 0;
}
.live-rental__indicator--overdue { background: var(--error); }
.live-rental__indicator--warn    { background: var(--warning); }
.live-rental__body { min-width: 0; }
.live-rental__top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.live-rental__name { font-size: 13px; font-weight: 600; }
.live-rental__id   { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary); }
.live-rental__meta {
  display: flex; gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.live-rental__meta strong { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }
.live-rental__cta {
  font-size: 12px;
  color: var(--brand-primary-text);
  font-weight: 600;
}

/* ---------- OPS TIMELINE (compact recent activity) ---------- */
.ops-timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-default);
  align-items: center;
}
.ops-timeline-item:last-child { border-bottom: none; }
.ops-timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-primary-dark);
  margin: 0 auto;
}
.ops-timeline-dot--done { background: var(--success); }
.ops-timeline-dot--warn { background: var(--warning); }
.ops-timeline-dot--info { background: var(--info); }
.ops-timeline-text { font-size: 13px; }
.ops-timeline-time { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }

/* ---------- TAB BAR override — active tab with brand bar on top ---------- */
.tab-bar__item--active {
  position: relative;
}
.tab-bar__item--active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 3px;
  background: var(--brand-primary-dark);
  border-radius: 0 0 3px 3px;
}

/* ---------- MC CARD ---------- */
.mc-card {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms, box-shadow 150ms;
}
.mc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mc-card__image { width: 100%; height: 140px; object-fit: cover; background: var(--surface-secondary); }
.mc-card__body { padding: var(--space-default); display: flex; flex-direction: column; gap: var(--space-sm); }
.mc-card__title-row { display: flex; align-items: center; justify-content: space-between; }
.mc-card__price-row { display: flex; align-items: baseline; gap: var(--space-sm); }
.mc-card__price-base {
  font-size: var(--fs-label-sm);
  color: var(--text-tertiary);
  text-decoration: line-through;
}
.mc-card__price-current { font-size: var(--fs-heading-md); font-weight: var(--fw-bold); }
.mc-card__cta-row { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-sm); }

/* ---------- COST BREAKDOWN ---------- */
.cost-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) 0; }
.cost-row__label { color: var(--text-secondary); font-size: var(--fs-body-base); }
.cost-row__value { font-weight: var(--fw-medium); color: var(--text-primary); font-size: var(--fs-body-base); }
.cost-row--total { border-top: 1px solid var(--border-default); padding-top: var(--space-default); margin-top: var(--space-sm); }
.cost-row--total .cost-row__label { font-size: var(--fs-heading-xs); font-weight: var(--fw-semibold); color: var(--text-primary); }
.cost-row--total .cost-row__value { font-size: var(--fs-heading-md); font-weight: var(--fw-bold); }

/* ---------- SWITCH ---------- */
.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute; inset: 0;
  background: var(--border-default);
  border-radius: var(--radius-full);
  transition: background 200ms;
  cursor: pointer;
}
.switch__slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  top: 2px; left: 2px;
  background: white;
  border-radius: var(--radius-full);
  transition: transform 200ms;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .switch__slider { background: var(--brand-primary-dark); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }

/* ---------- COUNTDOWN RING ---------- */
.countdown-ring { position: relative; width: 144px; height: 144px; margin: 0 auto; }
.countdown-ring svg { transform: rotate(-90deg); }
.countdown-ring__circle-bg { stroke: var(--border-default); }
.countdown-ring__circle-fg { stroke: var(--brand-primary-dark); transition: stroke-dashoffset 1s linear, stroke 200ms; }
.countdown-ring__circle-fg--warning { stroke: var(--warning); }
.countdown-ring__circle-fg--expired { stroke: var(--error); }
.countdown-ring__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}

/* ---------- BANK ROW ---------- */
.bank-row {
  display: flex; align-items: center; gap: var(--space-default);
  padding: var(--space-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-default);
  background: var(--surface-card);
  cursor: pointer;
  transition: border-color 150ms;
}
.bank-row:hover { border-color: var(--brand-primary-text); }
.bank-row__logo {
  width: 40px; height: 40px;
  border-radius: var(--radius-default);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
  color: white;
}
.bank-row__name { flex: 1; font-weight: var(--fw-medium); }
.bank-row__chev { color: var(--text-tertiary); }

/* ---------- BANNER ---------- */
.banner {
  padding: var(--space-md) var(--space-default);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  text-align: center;
}
.banner--info { background: var(--info-bg); color: var(--info); }
.banner--error { background: var(--error-bg); color: var(--error); }

/* ---------- ANIMATIONS ---------- */
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; color: var(--brand-primary-dark); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 300ms ease-out; }
