/* ═══════════════════════════════════════════════════════════════
   PartTime Mitra — Tri-Platform Design System
   ├── Web / Desktop  →  DaisyUI + Tailwind  (Indigo + Orange)
   ├── Android        →  Material Design 3   (Purple + Teal)
   └── iOS            →  Cupertino / HIG     (Blue + Indigo)
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   SECTION 1 — BASE TOKENS (Web / DaisyUI default)
   ─────────────────────────────────────────────────────────────── */
:root {
  /* Brand — Indigo (DaisyUI primary) */
  --brand:           #6366F1;
  --brand-dark:      #4F46E5;
  --brand-deeper:    #3730A3;
  --brand-light:     #EEF2FF;
  --brand-gradient:  linear-gradient(135deg, #6366F1 0%, #818CF8 100%);

  /* Accent — Orange (DaisyUI secondary) */
  --accent:          #F97316;
  --accent-dark:     #EA580C;
  --accent-light:    #FFF7ED;
  --accent-gradient: linear-gradient(135deg, #F97316 0%, #FB923C 100%);

  /* Semantic palette */
  --ios-blue:        #6366F1;
  --ios-green:       #22C55E;
  --ios-red:         #EF4444;
  --ios-orange:      #F97316;
  --ios-yellow:      #EAB308;
  --ios-purple:      #A855F7;
  --ios-teal:        #14B8A6;
  --ios-indigo:      #6366F1;
  --ios-pink:        #EC4899;

  /* Surfaces */
  --ios-bg:          #F1F5F9;   /* Slate-100 */
  --ios-bg2:         #FFFFFF;
  --ios-bg3:         #F8FAFC;   /* Slate-50  */

  /* Labels */
  --ios-label:       #0F172A;   /* Slate-900 */
  --ios-label2:      #334155;   /* Slate-700 */
  --ios-label3:      #64748B;   /* Slate-500 */
  --ios-label4:      #94A3B8;   /* Slate-400 */

  /* Separators & Fills */
  --ios-separator:   #E2E8F0;   /* Slate-200 */
  --ios-fill:        #E2E8F0;
  --ios-fill2:       #F1F5F9;

  /* Radius */
  --ios-radius:      12px;
  --ios-radius-lg:   16px;
  --ios-radius-xl:   22px;

  /* Shadows */
  --shadow-card:     0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(99,102,241,0.07);
  --shadow-card-hov: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(99,102,241,0.12);
  --shadow-btn:      0 4px 12px rgba(99,102,241,0.35);
  --shadow-accent:   0 4px 12px rgba(249,115,22,0.35);
  --shadow-success:  0 4px 12px rgba(34,197,94,0.3);
  --shadow-nav:      0 1px 0 #E2E8F0, 0 2px 8px rgba(0,0,0,0.04);

  /* Spring easing */
  --spring:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ───────────────────────────────────────────────────────────────
   SECTION 2 — iOS / CUPERTINO OVERRIDES
   ─────────────────────────────────────────────────────────────── */
.platform-ios {
  --brand:           #007AFF;
  --brand-dark:      #0056CC;
  --brand-deeper:    #003D99;
  --brand-light:     rgba(0,122,255,0.10);
  --brand-gradient:  linear-gradient(160deg, #007AFF 0%, #5856D6 100%);

  --accent:          #FF9500;
  --accent-dark:     #CC7700;
  --accent-light:    rgba(255,149,0,0.10);
  --accent-gradient: linear-gradient(160deg, #FF9500 0%, #FF6B00 100%);

  --ios-blue:        #007AFF;
  --ios-green:       #34C759;
  --ios-red:         #FF3B30;
  --ios-orange:      #FF9500;
  --ios-yellow:      #FFCC00;
  --ios-purple:      #AF52DE;
  --ios-teal:        #5AC8FA;
  --ios-indigo:      #5856D6;
  --ios-pink:        #FF2D55;

  --ios-bg:          #F2F2F7;
  --ios-bg2:         #FFFFFF;
  --ios-bg3:         #F2F2F7;

  --ios-label:       #000000;
  --ios-label2:      #3C3C43;
  --ios-label3:      #8E8E93;
  --ios-label4:      #C7C7CC;

  --ios-separator:   #C6C6C8;
  --ios-fill:        #E5E5EA;
  --ios-fill2:       #EBEBF0;

  --ios-radius:      10px;
  --ios-radius-lg:   13px;
  --ios-radius-xl:   20px;

  --shadow-card:     none;
  --shadow-card-hov: none;
  --shadow-btn:      none;
  --shadow-accent:   none;
  --shadow-success:  none;
  --shadow-nav:      none;
}

/* ───────────────────────────────────────────────────────────────
   SECTION 3 — ANDROID / MATERIAL 3 OVERRIDES
   ─────────────────────────────────────────────────────────────── */
.platform-android {
  --brand:           #6750A4;
  --brand-dark:      #4A3880;
  --brand-deeper:    #21005D;
  --brand-light:     #EADDFF;
  --brand-gradient:  linear-gradient(135deg, #6750A4 0%, #00897B 100%);

  --accent:          #FF6D00;
  --accent-dark:     #E65100;
  --accent-light:    #FFF3E0;
  --accent-gradient: linear-gradient(135deg, #FF6D00 0%, #FFD600 100%);

  --ios-blue:        #6750A4;
  --ios-green:       #386A20;
  --ios-red:         #BA1A1A;
  --ios-orange:      #7C5800;
  --ios-yellow:      #695F00;
  --ios-purple:      #7D5260;
  --ios-teal:        #006A6A;
  --ios-indigo:      #4D3D8F;
  --ios-pink:        #9C254D;

  --ios-bg:          #FFFBFE;
  --ios-bg2:         #FFFBFE;
  --ios-bg3:         #F4EFF4;

  --ios-label:       #1C1B1F;
  --ios-label2:      #49454F;
  --ios-label3:      #79747E;
  --ios-label4:      #AEA9B4;

  --ios-separator:   #CAC4D0;
  --ios-fill:        #E7E0EC;
  --ios-fill2:       #F4EFF4;

  --ios-radius:      12px;
  --ios-radius-lg:   16px;
  --ios-radius-xl:   28px;

  --shadow-card:     0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
  --shadow-card-hov: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
  --shadow-btn:      0 1px 2px rgba(0,0,0,0.3), 0 2px 6px rgba(103,80,164,0.25);
  --shadow-accent:   0 1px 2px rgba(0,0,0,0.3), 0 2px 6px rgba(255,109,0,0.25);
  --shadow-success:  0 1px 2px rgba(0,0,0,0.3), 0 2px 6px rgba(56,106,32,0.25);
  --shadow-nav:      0 2px 4px rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Use variables → auto-adapt to all platforms
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── Body ───────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Google Sans',
               'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--ios-bg);
  color: var(--ios-label);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
.platform-android { font-family: 'Google Sans', 'Roboto', Arial, sans-serif; }

/* ── Navbar ─────────────────────────────────────────────────── */
.ios-navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--ios-separator);
  box-shadow: var(--shadow-nav);
}
/* iOS: translucent blur */
.platform-ios .ios-navbar {
  background: rgba(255,255,255,0.85);
  border-bottom-width: 0.5px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: none;
}
/* Android: solid + elevation */
.platform-android .ios-navbar {
  background: var(--ios-bg2);
  border-bottom: none;
  box-shadow: var(--shadow-nav);
}

/* ── Brand Logo ─────────────────────────────────────────────── */
.brand-logo-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.platform-ios .brand-logo-text,
.platform-android .brand-logo-text {
  background: none;
  -webkit-text-fill-color: var(--brand);
  background-clip: unset;
  font-weight: 700;
}

/* ── Cards ──────────────────────────────────────────────────── */
.ios-card {
  background: var(--ios-bg2);
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
/* Web: border + hover lift */
.platform-web .ios-card {
  border: 1px solid var(--ios-separator);
  transition: box-shadow 0.22s var(--spring), transform 0.22s var(--spring), border-color 0.22s;
}
.platform-web .ios-card:hover {
  box-shadow: var(--shadow-card-hov);
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.25);
}
/* iOS: clean, no shadow, hairline separator borders */
.platform-ios .ios-card {
  border-radius: var(--ios-radius-lg);
  box-shadow: none;
  border: none;
}
/* Android: M3 elevation */
.platform-android .ios-card {
  border-radius: var(--ios-radius-lg);
  border: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.platform-android .ios-card:hover { box-shadow: var(--shadow-card-hov); }

/* ── Form Inputs ─────────────────────────────────────────────── */
.ios-input {
  width: 100%; background: transparent; border: none; outline: none;
  font-size: 17px; font-family: inherit; color: var(--ios-label);
  padding: 11px 0; appearance: none; -webkit-appearance: none;
}
.ios-input::placeholder { color: var(--ios-label4); }
.ios-input:focus { outline: none; }

.ios-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; background: var(--ios-bg2);
  border-bottom: 1px solid var(--ios-separator);
  min-height: 44px; transition: background 0.15s;
}
.ios-input-row:last-child { border-bottom: none; }
.ios-input-row label {
  font-size: 17px; white-space: nowrap; flex-shrink: 0;
  min-width: 110px; color: var(--ios-label); font-weight: 500;
}
.ios-input-row .ios-input { text-align: right; }
.ios-input-row .ios-input::placeholder { text-align: right; }
.ios-input-row select.ios-input { text-align: right; cursor: pointer; }

/* Web: highlight row on focus */
.platform-web .ios-input-row:focus-within {
  background: var(--brand-light);
}
.platform-web .ios-input-row { border-bottom-width: 1px; }
/* iOS: hairline */
.platform-ios .ios-input-row { border-bottom-width: 0.5px; }
/* Android: slightly taller */
.platform-android .ios-input-row { min-height: 52px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ios-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 17px; font-weight: 600;
  padding: 13px 24px; border-radius: var(--ios-radius-xl);
  border: none; cursor: pointer; text-decoration: none;
  min-height: 50px; position: relative; overflow: hidden;
  transition: opacity 0.15s var(--spring), transform 0.12s var(--spring),
              box-shadow 0.2s var(--spring), filter 0.15s;
  -webkit-user-select: none; user-select: none;
}
.ios-btn:active { opacity: 0.82; transform: scale(0.97); }

/* Primary */
.ios-btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-btn); }
.platform-web .ios-btn-primary { background: var(--brand-gradient); letter-spacing: 0.01em; }
.platform-web .ios-btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
  transform: translateY(-1px);
}
.platform-ios .ios-btn-primary { background: var(--brand); box-shadow: none; border-radius: 14px; }
.platform-android .ios-btn-primary { border-radius: 20px; letter-spacing: 0.01em; }

/* Success */
.ios-btn-success {
  background: var(--ios-green); color: #fff; box-shadow: var(--shadow-success);
}
.platform-web .ios-btn-success {
  background: linear-gradient(135deg, #22C55E, #16A34A); letter-spacing: 0.01em;
}
.platform-web .ios-btn-success:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(34,197,94,0.4);
  transform: translateY(-1px);
}
.platform-ios .ios-btn-success { background: var(--ios-green); box-shadow: none; }
.platform-android .ios-btn-success { border-radius: 20px; }

/* Danger */
.ios-btn-danger { background: var(--ios-red); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.platform-ios .ios-btn-danger { box-shadow: none; }

/* Secondary */
.ios-btn-secondary { background: var(--ios-fill2); color: var(--brand); box-shadow: none; }
.platform-web .ios-btn-secondary { border: 1.5px solid var(--ios-separator); }
.platform-web .ios-btn-secondary:hover { background: var(--brand-light); border-color: var(--brand); }

/* Ghost */
.ios-btn-ghost { background: transparent; color: var(--brand); padding-left: 8px; padding-right: 8px; box-shadow: none; }

/* Block */
.ios-btn-block { width: 100%; }

/* Android — ripple */
.platform-android .ios-btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.18); border-radius: inherit;
  opacity: 0; transition: opacity 0.25s;
}
.platform-android .ios-btn:active::after { opacity: 1; }

/* ── List Rows ───────────────────────────────────────────────── */
.ios-list-row {
  display: flex; align-items: center;
  padding: 12px 16px; background: var(--ios-bg2);
  border-bottom: 1px solid var(--ios-separator);
  gap: 12px; min-height: 44px;
}
.ios-list-row:last-child { border-bottom: none; }
.platform-ios .ios-list-row { border-bottom-width: 0.5px; }
.platform-android .ios-list-row { min-height: 52px; padding: 14px 16px; }
.platform-web .ios-list-row { transition: background 0.15s; }
.platform-web .ios-list-row:hover { background: var(--brand-light); }

/* ── Segmented Control ───────────────────────────────────────── */
.ios-segmented {
  display: flex; background: var(--ios-fill2);
  border-radius: 10px; padding: 3px; gap: 2px;
}
.ios-segmented-item {
  flex: 1; text-align: center; padding: 7px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; color: var(--ios-label3);
  transition: all 0.2s var(--spring);
}
.ios-segmented-item.active {
  background: #fff; color: var(--brand); font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
}
.platform-android .ios-segmented { border-radius: var(--ios-radius); }
.platform-android .ios-segmented-item.active { color: var(--brand); }

/* ── Toggle ──────────────────────────────────────────────────── */
.ios-toggle {
  appearance: none; -webkit-appearance: none;
  width: 51px; height: 31px; background: var(--ios-fill);
  border-radius: 15.5px; cursor: pointer; position: relative;
  transition: background 0.25s var(--spring); flex-shrink: 0;
}
.ios-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 27px; height: 27px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.25s var(--spring);
}
.ios-toggle:checked { background: var(--ios-green); }
.ios-toggle:checked::after { transform: translateX(20px); }

/* ── Checkbox ────────────────────────────────────────────────── */
.ios-check {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ios-separator); background: #fff;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ios-check:checked { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.platform-ios .ios-check:checked { box-shadow: none; }
.ios-check:checked::after {
  content: ''; position: absolute; top: 4px; left: 7px;
  width: 6px; height: 10px; border: 2px solid #fff;
  border-top: none; border-left: none; transform: rotate(45deg);
}

/* ── Badge ───────────────────────────────────────────────────── */
.ios-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
}

/* ── Progress ────────────────────────────────────────────────── */
.ios-progress { height: 6px; background: var(--ios-fill); border-radius: 3px; overflow: hidden; }
.ios-progress-bar {
  height: 100%; background: var(--brand-gradient); border-radius: 3px;
  transition: width 0.4s var(--spring);
}
.platform-ios .ios-progress-bar { background: var(--brand); }
.platform-android .ios-progress-bar { background: var(--brand); border-radius: 0; }

/* ── Step Indicator ──────────────────────────────────────────── */
.ios-step {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.ios-step-done    { background: var(--ios-green); color: #fff; box-shadow: 0 2px 6px rgba(34,197,94,0.35); }
.ios-step-active  { background: var(--brand-gradient); color: #fff; box-shadow: 0 2px 6px rgba(99,102,241,0.4); }
.ios-step-pending { background: var(--ios-fill); color: var(--ios-label3); }
.platform-ios .ios-step-active  { background: var(--brand); box-shadow: none; }
.platform-ios .ios-step-done    { background: var(--ios-green); box-shadow: none; }
.platform-android .ios-step-active { background: var(--brand); box-shadow: var(--shadow-btn); }

/* ── Notice / Alert ──────────────────────────────────────────── */
.ios-notice {
  background: var(--brand-light); border-radius: var(--ios-radius);
  padding: 12px 16px; font-size: 14px; color: var(--brand);
  display: flex; gap: 10px; align-items: flex-start;
  border-left: 3px solid var(--brand);
}
.platform-ios .ios-notice  { border-left: none; }
.platform-android .ios-notice { border-left: none; box-shadow: var(--shadow-card); }

.ios-notice-warning  { background: var(--accent-light); color: var(--accent-dark); border-left-color: var(--accent); }
.ios-notice-success  { background: rgba(34,197,94,0.08); color: #15803D; border-left-color: var(--ios-green); }
.ios-notice-error    { background: rgba(239,68,68,0.08); color: var(--ios-red); border-left-color: var(--ios-red); }

/* ── Typography ──────────────────────────────────────────────── */
.ios-large-title { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.ios-title1  { font-size: 28px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.15; }
.ios-title2  { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.ios-title3  { font-size: 20px; font-weight: 600; }
.ios-headline{ font-size: 17px; font-weight: 600; }
.ios-body    { font-size: 17px; font-weight: 400; }
.ios-callout { font-size: 16px; font-weight: 400; }
.ios-subhead { font-size: 15px; font-weight: 400; }
.ios-footnote{ font-size: 13px; font-weight: 400; color: var(--ios-label3); }
.ios-caption { font-size: 12px; font-weight: 400; color: var(--ios-label3); }
/* Web: slightly larger */
.platform-web .ios-large-title { font-size: 38px; }
.platform-web .ios-title1      { font-size: 30px; }
/* Android: Roboto scale */
.platform-android .ios-headline { font-weight: 500; letter-spacing: 0.01em; }

/* ── Hero Card ───────────────────────────────────────────────── */
.ios-hero {
  background: var(--brand-gradient);
  border-radius: var(--ios-radius-xl);
  color: #fff; padding: 32px 24px;
  position: relative; overflow: hidden;
}
/* Web: decorative orbs */
.platform-web .ios-hero::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 220px; height: 220px; background: rgba(255,255,255,0.1);
  border-radius: 50%; pointer-events: none;
}
.platform-web .ios-hero::after {
  content: ''; position: absolute; bottom: -70px; left: -30px;
  width: 260px; height: 260px; background: rgba(255,255,255,0.06);
  border-radius: 50%; pointer-events: none;
}
/* Android: M3 elevation on hero */
.platform-android .ios-hero { box-shadow: var(--shadow-card-hov); }

/* ── PWA Install Banner ──────────────────────────────────────── */
#pwa-install-banner {
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--ios-separator);
  color: var(--ios-label);
}
.platform-android #pwa-install-banner {
  background: var(--ios-bg2);
  border-top: none;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.platform-ios #pwa-install-banner {
  border-top-width: 0.5px;
}

/* ── Safe area ───────────────────────────────────────────────── */
.safe-top    { padding-top:    env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* ── Transitions ─────────────────────────────────────────────── */
a, button { transition: opacity 0.15s var(--spring); }
a:active, button:active { opacity: 0.65; }

/* ── Web scrollbar ───────────────────────────────────────────── */
.platform-web ::-webkit-scrollbar { width: 6px; height: 6px; }
.platform-web ::-webkit-scrollbar-track { background: #f1f3f5; }
.platform-web ::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 3px; }
.platform-web ::-webkit-scrollbar-thumb:hover { background: #868e96; }

/* ── Selection ───────────────────────────────────────────────── */
::selection { background: var(--brand-light); color: var(--brand-deeper); }
.platform-web ::selection { background: #cfe2ff; color: #084298; }

/* ═══════════════════════════════════════════════════════════════
   WEB / DESKTOP — FULL BOOTSTRAP 5 STYLE
   Font: Poppins · Icons: Bootstrap Icons
   Colors: Bootstrap palette (#0d6efd primary)
   ═══════════════════════════════════════════════════════════════ */

/* ── Bootstrap tokens for web ───────────────────────────────── */
.platform-web {
  --bs-primary:      #0d6efd;
  --bs-primary-rgb:  13, 110, 253;
  --bs-secondary:    #6c757d;
  --bs-success:      #198754;
  --bs-danger:       #dc3545;
  --bs-warning:      #ffc107;
  --bs-info:         #0dcaf0;
  --bs-body-bg:      #f8f9fa;
  --bs-card-bg:      #ffffff;
  --bs-border-color: #dee2e6;
  --bs-border-radius:0.375rem;
  --bs-shadow-sm:    0 0.125rem 0.25rem rgba(0,0,0,.075);
  --bs-shadow:       0 0.5rem 1rem rgba(0,0,0,.15);

  /* Override brand to Bootstrap blue */
  --brand:           #0d6efd;
  --brand-dark:      #0a58ca;
  --brand-light:     #cfe2ff;
  --brand-gradient:  linear-gradient(135deg, #0d6efd, #0a58ca);
  --ios-blue:        #0d6efd;
  --ios-green:       #198754;
  --ios-red:         #dc3545;
  --ios-orange:      #fd7e14;
  --ios-bg:          #f8f9fa;
  --ios-bg2:         #ffffff;
  --ios-label:       #212529;
  --ios-label2:      #495057;
  --ios-label3:      #6c757d;
  --ios-label4:      #adb5bd;
  --ios-separator:   #dee2e6;
  --ios-fill:        #e9ecef;
  --ios-fill2:       #f8f9fa;
  --ios-radius:      0.375rem;
  --ios-radius-lg:   0.5rem;
  --ios-radius-xl:   0.5rem;
}

/* ── Web Font — Poppins ──────────────────────────────────────── */
.platform-web,
.platform-web body,
.platform-web input,
.platform-web select,
.platform-web textarea,
.platform-web button {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
}

/* ── Web Body ────────────────────────────────────────────────── */
.platform-web body { background: #f8f9fa; color: #212529; }

/* ── Web Container ───────────────────────────────────────────── */
.platform-web .web-container,
.platform-web main {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── Web Navbar — Bootstrap style ───────────────────────────── */
.platform-web .ios-navbar {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  height: 60px;
}

/* Navbar logo */
.platform-web .brand-logo-text {
  background: none !important;
  -webkit-text-fill-color: #212529 !important;
  background-clip: unset !important;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.platform-web .web-icon-logo {
  font-size: 22px;
  color: #0d6efd;
}

/* Navbar links */
.platform-web .nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 0.375rem;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.platform-web .nav-link-item:hover {
  background: #e9ecef;
  color: #212529;
}
.platform-web .web-icon-sm { font-size: 14px; }

/* Navbar CTA button */
.platform-web .nav-cta {
  min-height: 36px;
  height: 36px;
  font-size: 13px;
  padding: 0 14px;
  border-radius: 0.375rem;
  gap: 5px;
}

/* ── Web Step Bar ────────────────────────────────────────────── */
.platform-web .step-bar {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.05);
}
.platform-web .step-bar .ios-step-active {
  background: #0d6efd;
  box-shadow: 0 2px 6px rgba(13,110,253,0.4);
}
.platform-web .step-bar .ios-step-done {
  background: #198754;
  box-shadow: none;
}

/* ── Web Footer ──────────────────────────────────────────────── */
.platform-web .site-footer {
  background: #ffffff;
  border-top: 1px solid #dee2e6;
  font-family: 'Poppins', sans-serif;
}
.platform-web .footer-link        { color: #0d6efd; text-decoration: none; }
.platform-web .footer-link:hover  { color: #0a58ca; text-decoration: underline; }
.platform-web .footer-link-accent { color: #fd7e14; text-decoration: none; }
.platform-web .footer-link-accent:hover { color: #dc6502; text-decoration: underline; }

/* ── Web Cards — Bootstrap card ──────────────────────────────── */
.platform-web .ios-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.platform-web .ios-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
  transform: translateY(-2px);
}

/* ── Web List Rows — Bootstrap list-group style ──────────────── */
.platform-web .ios-list-row {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f3f5;
  min-height: 52px;
  background: #fff;
  transition: background 0.15s;
}
.platform-web .ios-list-row:hover  { background: #f8f9ff; }
.platform-web .ios-list-row:last-child { border-bottom: none; }

/* ── Web Input Rows — Bootstrap form-group style ──────────────
   KEY CHANGE: label on TOP, input below (not iOS side-by-side)
   ──────────────────────────────────────────────────────────── */
.platform-web .ios-input-row {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  gap: 5px;
  min-height: auto;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;
}
.platform-web .ios-input-row:last-child { border-bottom: none; }

.platform-web .ios-input-row label {
  font-size: 13px;
  font-weight: 600;
  color: #343a40;
  min-width: unset;
  white-space: normal;
}

.platform-web .ios-input-row .ios-input {
  text-align: left !important;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 8px 12px;
  background: #fff;
  font-size: 14px;
  color: #212529;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.platform-web .ios-input-row .ios-input::placeholder {
  text-align: left !important;
  color: #adb5bd;
}
.platform-web .ios-input-row .ios-input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
  outline: 0;
  background: #fff;
}
.platform-web .ios-input-row select.ios-input {
  text-align: left !important;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

/* ── Web Buttons — Bootstrap btn style ───────────────────────── */
.platform-web .ios-btn {
  border-radius: 0.375rem;
  min-height: 42px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,
              border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.platform-web .ios-btn:active {
  transform: none;
  filter: brightness(0.92);
}

/* Bootstrap primary btn */
.platform-web .ios-btn-primary {
  background: #0d6efd;
  color: #fff;
  border: 1px solid #0d6efd;
  box-shadow: none;
}
.platform-web .ios-btn-primary:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
  box-shadow: none;
  transform: none;
  filter: none;
}
.platform-web .ios-btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(49,132,253,.5);
}

/* Bootstrap success btn */
.platform-web .ios-btn-success {
  background: #198754;
  color: #fff;
  border: 1px solid #198754;
  box-shadow: none;
}
.platform-web .ios-btn-success:hover {
  background: #157347;
  border-color: #146c43;
  transform: none;
}

/* Bootstrap secondary btn */
.platform-web .ios-btn-secondary {
  background: #fff;
  color: #0d6efd;
  border: 1px solid #0d6efd;
}
.platform-web .ios-btn-secondary:hover {
  background: #e7f1ff;
}

/* Bootstrap danger */
.platform-web .ios-btn-danger {
  background: #dc3545;
  border: 1px solid #dc3545;
  box-shadow: none;
}

/* Block btn */
.platform-web .ios-btn-block { border-radius: 0.375rem; }

/* ── Web Hero — Bootstrap jumbotron style ────────────────────── */
.platform-web .ios-hero {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
  padding: 40px 32px;
}

/* ── Web Section Labels — Bootstrap muted uppercase ─────────── */
.platform-web .ios-footnote.uppercase {
  color: #6c757d !important;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ── Web Notices — Bootstrap alert style ─────────────────────── */
.platform-web .ios-notice {
  border-left: 4px solid #0d6efd;
  border-radius: 0.375rem;
  background: #cfe2ff;
  color: #084298;
  padding: 12px 16px;
}
.platform-web .ios-notice-warning {
  background: #fff3cd; color: #664d03;
  border-left-color: #ffc107;
}
.platform-web .ios-notice-success {
  background: #d1e7dd; color: #0a3622;
  border-left-color: #198754;
}
.platform-web .ios-notice-error {
  background: #f8d7da; color: #58151c;
  border-left-color: #dc3545;
}

/* ── Web Badges — Bootstrap badge style ──────────────────────── */
.platform-web .ios-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 0.25rem;
  letter-spacing: 0.02em;
}

/* ── Web Segmented — Bootstrap btn-group style ───────────────── */
.platform-web .ios-segmented {
  background: #e9ecef;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
}
.platform-web .ios-segmented-item {
  border-radius: calc(0.375rem - 2px);
  font-size: 13px;
  color: #495057;
}
.platform-web .ios-segmented-item.active {
  background: #0d6efd;
  color: #fff;
  box-shadow: none;
  font-weight: 600;
}

/* ── Web Progress — Bootstrap progress ───────────────────────── */
.platform-web .ios-progress {
  height: 8px;
  border-radius: 0.5rem;
  background: #e9ecef;
}
.platform-web .ios-progress-bar {
  background: #0d6efd;
  border-radius: 0.5rem;
}

/* ── Web Steps ───────────────────────────────────────────────── */
.platform-web .ios-step-active {
  background: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,.2);
}
.platform-web .ios-step-done  { background: #198754; box-shadow: none; }
.platform-web .ios-step-pending { background: #e9ecef; color: #6c757d; }

/* ── Web Typography ──────────────────────────────────────────── */
.platform-web .ios-large-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.5px; }
.platform-web .ios-title1  { font-size: 1.75rem; font-weight: 700; }
.platform-web .ios-title2  { font-size: 1.375rem; font-weight: 600; }
.platform-web .ios-title3  { font-size: 1.125rem; font-weight: 600; }
.platform-web .ios-headline{ font-size: 1rem; font-weight: 600; }
.platform-web .ios-body    { font-size: 1rem; font-weight: 400; }
.platform-web .ios-subhead { font-size: 0.9rem; font-weight: 400; }
.platform-web .ios-footnote{ font-size: 0.8125rem; color: #6c757d; }
.platform-web .ios-caption { font-size: 0.75rem; color: #6c757d; }

/* ── Web Toggle ──────────────────────────────────────────────── */
.platform-web .ios-toggle { border-radius: 0.375rem; }
.platform-web .ios-toggle:checked { background: #0d6efd; }

/* ── Web Checkbox ────────────────────────────────────────────── */
.platform-web .ios-check {
  border-radius: 0.25rem;
  border: 2px solid #ced4da;
}
.platform-web .ios-check:checked {
  background: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* ═══════════════════════════════════════════════════════════════
   FILAMENT 3 ADMIN — Brand-matched overrides
   ═══════════════════════════════════════════════════════════════ */
.fi-sidebar           { border-right: 1px solid #E2E8F0 !important; background: #fff !important; }
.fi-topbar            { backdrop-filter: saturate(180%) blur(20px) !important; background: rgba(255,255,255,0.95) !important; border-bottom: 1px solid #E2E8F0 !important; }
.fi-btn               { border-radius: 10px !important; }
.fi-badge             { border-radius: 20px !important; }
.fi-card              { border-radius: 16px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(99,102,241,0.07) !important; border: 1px solid #E2E8F0 !important; }
.fi-input, .fi-select, .fi-textarea { border-radius: 10px !important; }
.fi-sidebar-item-button:hover  { background: #EEF2FF !important; }
