
  :root {
    --ink: #111827;
    --ink2: #1C1E27;
    --surface: #F3F4F6;
    --card: #FFFFFF;
    --accent: #3175ed;
    --accent2: #5a95ff;
    --blue: #3175ed;
    --green: #0FA868;
    --yellow: #F5A623;
    --muted: #6B7280;
    --border: #E5E7EB;
    --phone-w: 340px;
    --phone-h: 680px;
    --r: 36px;
    /* Safe-area insets for iPhone notch / Dynamic Island / home indicator */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
    /* Elevation scale — Elegant Map View signature */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.08);
    --shadow-float: 0 10px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.08);
    --shadow-accent: 0 4px 16px rgba(49,117,237,0.35);
    /* Radius scale — more generous (Elegant Map View uses rounded-3xl) */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 40px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  button { cursor: pointer; touch-action: manipulation; }
  a { cursor: pointer; }

  /* ── INLINE SVG ICONS ── */
  .luc { display:inline-flex; flex-shrink:0; vertical-align:middle; }
  .nav-icon .luc { width:20px; height:20px; }
  .cat-icon .luc { width:26px; height:26px; stroke-width:1.6 !important; }
  .menu-icon .luc { width:18px; height:18px; }
  .emerg-icon .luc { width:28px; height:28px; stroke-width:1.6 !important; }
  .info-icon .luc { width:16px; height:16px; }
  .splash-feat-icon .luc { width:18px; height:18px; }
  .ai-chip .luc { width:15px; height:15px; margin-right:3px; }
  .contact-btn .luc { width:18px; height:18px; }
  .chat-avatar .luc { width:22px; height:22px; }
  .chat-call .luc { width:18px; height:18px; }
  .chat-attach .luc { width:18px; height:18px; }
  .urgency-icon .luc { width:22px; height:22px; }
  .verify-item-icon .luc { width:20px; height:20px; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--ink);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* ── PAGE LAYOUT ── */
  .page-header {
    text-align: center;
    padding: 72px 40px 48px;
    border-bottom: 1px solid #ffffff10;
  }
  .page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1;
  }
  .page-header h1 span { color: var(--accent); }
  .page-header p {
    color: #ffffff60;
    font-size: 15px;
    margin-top: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
  }

  .section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 56px 60px 24px;
  }

  .screens-row {
    display: flex;
    gap: 32px;
    padding: 0 60px 60px;
    overflow-x: auto;
    align-items: flex-start;
  }
  .screens-row::-webkit-scrollbar { height: 4px; }
  .screens-row::-webkit-scrollbar-track { background: #ffffff10; border-radius: 2px; }
  .screens-row::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

  .screen-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .screen-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff40;
  }

  /* ── NATIVE APP SHELL ── */
  .phone {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height */
    position: relative;
    overflow: hidden;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    /* Extend content into notch/home indicator area */
    padding-left: var(--sal);
    padding-right: var(--sar);
  }
  .screen {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
  }

  /* ── SHARED COMPONENTS ── */
  .status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(14px + var(--sat)) 24px 8px;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    z-index: 10;
  }
  .sb-time { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; }
  .sb-icons { display: flex; gap: 5px; align-items: center; }
  .sb-icon { width: 14px; height: 10px; border-radius: 2px; }

  /* ── FLOATING PILL BOTTOM NAV (Elegant Map View style) ── */
  .bottom-nav {
    position: absolute;
    bottom: calc(18px + var(--sab));
    left: 50%; transform: translateX(-50%);
    width: auto;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-top: none;
    padding: 0 10px;
    z-index: 150;
    pointer-events: auto;
    background: #111827;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 32px -4px rgba(0,0,0,0.32), 0 4px 12px rgba(0,0,0,0.18);
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 500;
    cursor: pointer;
    color: rgba(255,255,255,0.42);
    flex: none;
    min-width: 76px;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 20px;
    position: relative;
    touch-action: manipulation;
    transition: color 0.18s;
  }
  .nav-item.active { color: #3175ed; background: none; }
  .nav-item:hover  { color: #3175ed; }
  /* Remove the old accent-bar indicator */
  .nav-item.active::before { display: none; }
  /* Both light and dark variants now use unified pill style */
  .bottom-nav-light, .bottom-nav-dark {
    background: #111827;
    border-top-color: transparent;
    color: #fff;
  }
  .bottom-nav-light .nav-item.active,
  .bottom-nav-dark .nav-item.active  { color: #3175ed; background: none; opacity: 1; }
  .bottom-nav-light .nav-item:hover,
  .bottom-nav-dark .nav-item:hover   { color: #3175ed; }
  .bottom-nav-light .nav-item,
  .bottom-nav-dark .nav-item { opacity: 1; color: rgba(255,255,255,0.42); }
  .nav-icon { display:flex; align-items:center; justify-content:center; }

  /* ─────────────────────────────────────────
     SCREEN 1: SPLASH / ONBOARDING
  ───────────────────────────────────────── */
  .s-splash {
    background: #0A0B14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 24px 40px;
  }
  /* Ambient glow layers */
  .s-splash::before {
    content: '';
    position: absolute;
    width: 560px; height: 560px;
    background: radial-gradient(circle at 50% 40%, rgba(49,117,237,0.20) 0%, rgba(49,117,237,0.06) 40%, transparent 70%);
    top: -120px; left: 50%; transform: translateX(-50%);
    pointer-events: none;
  }
  .s-splash::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(90,149,255,0.12) 0%, transparent 70%);
    bottom: 100px; right: -60px;
    pointer-events: none;
  }
  /* Brand block */
  .splash-brand {
    display: flex; flex-direction: column; align-items: center;
    z-index:1; padding-top: 60px; gap: 0;
  }
  /* SVG logo wrapper */
  .splash-logo-svg {
    width: 220px;
    height: 150px;
    background:
      url('/brand/trackmoteur-symbol.svg') top center / 92px 94px no-repeat,
      url('/brand/trackmoteur-wordmark.svg') bottom center / 220px auto no-repeat;
    filter: drop-shadow(0 6px 28px rgba(49,117,237,0.35));
    margin-bottom: 14px;
  }
  .splash-logo-svg > * { display: none; }
  /* Legacy text logo (hidden when SVG present) */
  .splash-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px; font-weight: 800; color: #fff;
    letter-spacing: -2px; line-height: 1; text-align: center;
  }
  .splash-logo span { color: var(--accent); }
  .splash-car { display: none; }
  .splash-tagline {
    font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 400;
    margin-top: 6px; text-align: center; line-height: 1.5; letter-spacing: 0.2px;
  }
  /* Feature pills */
  .splash-features {
    display: flex; flex-direction: column; gap: 10px;
    z-index: 1; width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 16px 18px;
    backdrop-filter: blur(12px);
  }
  .splash-feat {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: rgba(255,255,255,0.80); font-weight: 400;
  }
  .splash-feat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
    background: rgba(49,117,237,0.12); color: var(--accent);
  }
  .splash-feat-icon .luc { width:16px; height:16px; }
  /* Actions — two equal CTAs */
  .splash-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; z-index: 1; }
  .splash-btn {
    background: var(--accent); color: #fff;
    font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 15px;
    padding: 16px; border-radius: 16px; border: none; cursor: pointer; width: 100%;
    box-shadow: 0 6px 24px rgba(49,117,237,0.40);
    transition: opacity 0.15s, transform 0.1s;
    letter-spacing: 0.2px;
  }
  .splash-btn:active { opacity: 0.85; transform: scale(0.98); }
  .splash-btn-ghost {
    background: rgba(255,255,255,0.08); color: #fff;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
    padding: 16px; border-radius: 16px;
    border: 1.5px solid rgba(255,255,255,0.18);
    cursor: pointer; width: 100%; transition: background 0.15s, border-color 0.15s;
    letter-spacing: 0.2px;
  }
  .splash-btn-ghost:active { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }
  .splash-btn-guest {
    background: transparent; color: rgba(255,255,255,0.45);
    font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 13px;
    padding: 10px; border-radius: 12px; border: none; cursor: pointer; width: 100%;
    letter-spacing: 0.1px; transition: color 0.15s;
  }
  .splash-btn-guest:active { color: rgba(255,255,255,0.7); }
  .splash-sub {
    font-size: 12px; color: rgba(255,255,255,0.28); z-index: 1; text-align: center;
  }
  .splash-sub span { color: var(--accent); font-weight: 600; }

  /* ─────────────────────────────────────────
     ONBOARDING SHARED: topbar + back + dots
  ───────────────────────────────────────── */
  .onb-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 48px 0 8px; margin-bottom: 4px;
  }
  .onb-back {
    font-size: 26px; color: var(--muted); cursor: pointer;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; transition: background 0.15s;
  }
  .onb-back:active { background: var(--border); }
  .onb-step-dots { display: flex; gap: 5px; }
  .onb-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--border); transition: all 0.2s; }
  .onb-dot.active { background: var(--accent); width: 18px; }
  .onb-dot.done { background: var(--ink); }

  /* ─────────────────────────────────────────
     SCREEN 2: ONBOARDING ROLE SELECT
  ───────────────────────────────────────── */
  .s-role {
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 24px 32px;
  }
  .role-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-top: 20px;
  }
  .role-sub { font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 300; }
  .role-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; flex: 1; }
  .role-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px 20px;
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.06);
    touch-action: manipulation;
  }
  .role-card:active { transform: scale(0.98); }
  .role-card.selected { border-color: var(--accent); background: #eef4ff; box-shadow: 0 4px 20px rgba(49,117,237,0.15); }
  .role-card-icon { font-size: 36px; }
  .role-card-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
  .role-card-desc { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 300; }
  .role-next {
    background: var(--ink);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 16px;
    padding: 16px;
    width: 100%;
    cursor: pointer;
    margin-top: 24px;
    letter-spacing: 0.5px;
    transition: opacity 0.15s, transform 0.1s;
  }
  .role-next:active { opacity: 0.85; transform: scale(0.98); }
  .role-next:disabled { opacity: 0.5; cursor: not-allowed; }

  /* ─────────────────────────────────────────
     AUTH INLINE ERRORS + LOADING
  ───────────────────────────────────────── */
  .auth-error {
    margin: 8px 24px 0;
    padding: 10px 14px;
    background: #fff1f2;
    border: 1px solid #fda4af;
    border-radius: 12px;
    font-size: 12px;
    color: #be123c;
    font-weight: 500;
    line-height: 1.4;
    display: none;
  }
  .auth-error.visible { display: block; }
  .auth-success {
    margin: 8px 24px 0;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 12px;
    font-size: 12px;
    color: #166534;
    font-weight: 500;
    display: none;
  }
  .auth-success.visible { display: block; }

  /* Login / Signup screens */
  .s-login {
    background: var(--surface); height: 100%;
    display: flex; flex-direction: column; overflow-y: auto;
    padding: 0;
  }
  .s-signup {
    background: var(--surface); height: 100%;
    display: flex; flex-direction: column; overflow-y: auto;
    padding: 0;
  }
  /* Dark header with logo for login/signup */
  .auth-header {
    background: #0A0B14;
    padding: 48px 24px 28px;
    display: flex; flex-direction: column; align-items: center;
    border-radius: 0 0 28px 28px;
    position: relative; overflow: hidden; flex-shrink: 0;
  }
  .auth-header::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    background: radial-gradient(circle at 50% 0%, rgba(49,117,237,0.18) 0%, transparent 65%);
    top: -80px; left: 50%; transform: translateX(-50%);
    pointer-events: none;
  }
  .auth-header-logo {
    width: 180px;
    height: 30px;
    position: relative;
    z-index: 1;
    background: url('/brand/trackmoteur-wordmark.svg') center / contain no-repeat;
    filter: drop-shadow(0 4px 16px rgba(49,117,237,0.30));
  }
  .auth-header-logo > * { display: none; }
  .auth-header-subtitle {
    font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 8px;
    font-weight: 400; position: relative; z-index: 1; text-align: center;
  }
  /* Auth body (form area) */
  .auth-body { flex: 1; padding: 24px 24px 32px; display: flex; flex-direction: column; overflow-y: auto; }
  .login-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0 12px; }
  .login-hero-icon { font-size: 52px; }
  .auth-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800;
    color: var(--ink); letter-spacing: -0.5px; margin-bottom: 4px;
  }
  .auth-subtitle { font-size: 13px; color: var(--muted); font-weight: 400; margin-bottom: 20px; }
  .dot.active { background: var(--accent); width: 20px; }

  /* ─────────────────────────────────────────
     SCREEN 3: HOME
  ───────────────────────────────────────── */
  .s-home {
    background: var(--surface);
    height: 100%;
    position: relative;
  }
  .home-header {
    background: linear-gradient(150deg, #16181f 0%, #0e0f14 60%, #131108 100%);
    padding: 52px 20px 24px;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  }
  .home-header::before {
    content: '';
    position: absolute;
    left: -40px; top: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(49,117,237,0.18) 0%, transparent 65%);
    pointer-events: none;
  }
  .home-header::after {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(90,149,255,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .home-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2px; }
  .home-avatar {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink);
    flex-shrink: 0; cursor: pointer;
    border: 2.5px solid rgba(255,255,255,0.55);
    box-shadow: 0 0 0 1.5px rgba(49,117,237,0.4);
    overflow: hidden;
  }
  .home-notif-btn {
    position: relative; width: 40px; height: 40px;
    background: rgba(255,255,255,0.12); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; flex-shrink: 0;
  }
  .home-notif-btn .notif-badge {
    position: absolute; top: 5px; right: 5px;
    min-width: 15px; height: 15px; border-radius: 8px;
    padding: 0 3px; font-size: 9px;
  }
  .pdash-notif-btn {
    position: relative; width: 42px; height: 42px;
    background: rgba(255,255,255,0.12); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; flex-shrink: 0;
  }
  .pdash-notif-btn .nav-badge {
    position: absolute; top: 6px; right: 6px;
    min-width: 15px; height: 15px; border-radius: 8px;
    padding: 0 3px; font-size: 9px;
  }
  .home-greet { font-size: 11px; color: #ffffff60; font-weight: 300; letter-spacing: 1px; }
  .home-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: #fff; margin-top: 2px; line-height: 1.25; }
  .home-location { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--accent); margin-top: 6px; font-weight: 500; }
  .home-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 11px 14px;
    margin-top: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.2s, border-color 0.2s;
  }
  .home-search:active { background: rgba(255,255,255,0.15); }
  .home-search span { font-size: 13px; color: rgba(255,255,255,0.55); font-weight: 400; }
  .home-search-icon { font-size: 14px; }
  .home-content { flex: 1; overflow-y: auto; padding: 20px 16px 96px; }
  .home-content::-webkit-scrollbar { display: none; }
  .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .section-title span { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 400; color: var(--accent); }
  .cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; margin-bottom: 24px; }
  .cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .cat-icon-wrap {
    width: 60px; height: 60px;
    background: var(--ink);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.10);
    border: none;
    transition: all 0.2s ease;
    touch-action: manipulation;
  }
  .cat-icon-wrap img { filter: brightness(0) invert(1); }
  .cat-icon-wrap .luc { color: #fff; stroke: #fff; }
  .cat-item:active .cat-icon-wrap {
    transform: scale(0.91);
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    background: #1f2937;
  }
  .cat-item { touch-action: manipulation; }
  .cat-icon { display:flex; align-items:center; justify-content:center; line-height:1; }
  .cat-name { font-size: 11px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.25; }
  /* Notification badge */
  .notif-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--accent); color: #fff;
    font-size: 8px; font-weight: 700;
    min-width: 14px; height: 14px;
    border-radius: 7px; padding: 0 3px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #fff;
    pointer-events: none;
  }
  /* Cat item interactions handled via .cat-icon-wrap now */
  /* Garage card skeleton */
  .garage-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 18px;
    height: 72px;
    margin-bottom: 12px;
  }
  @keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
  .garage-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    border: none;
    display: flex;
    align-items: stretch;
    cursor: pointer;
    touch-action: manipulation;
    transition: box-shadow 0.2s, transform 0.15s;
  }
  .garage-card:active { transform: scale(0.985); box-shadow: var(--shadow-sm); }
  .garage-card-body { padding: 14px; flex: 1; }
  .garage-card-row { display: flex; justify-content: space-between; align-items: flex-start; }
  .garage-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); }
  .garage-card-cat { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .garage-card-badge {
    font-size: 10px;
    font-weight: 600;
    background: #e8f5e9;
    color: var(--green);
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .garage-card-meta { display: flex; gap: 10px; margin-top: 8px; align-items: center; }
  .garage-card-rating { font-size: 11px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 3px; }
  .garage-card-dist { font-size: 10px; color: var(--muted); }
  .garage-card-open { font-size: 10px; color: var(--green); font-weight: 500; }
  .urgency-banner {
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
  }
  .urgency-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .urgency-siren-icon {
    width: 30px;
    height: 30px;
    background: #fff;
    display: block;
    mask: url('/icons/siren.png') center / contain no-repeat;
    -webkit-mask: url('/icons/siren.png') center / contain no-repeat;
  }
  .urgency-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
  .urgency-sub { font-size: 10px; color: rgba(255,255,255,0.8); margin-top: 2px; }
  .urgency-arrow { margin-left: auto; font-size: 18px; color: #fff; }

  /* bottom-nav-light/dark now defined above in unified pill section */

  /* ─────────────────────────────────────────
     SCREEN 4: SEARCH / RESULTS
  ───────────────────────────────────────── */
  .s-search {
    background: var(--surface);
    height: 100%;
    position: relative;
  }
  .search-header { padding: 50px 16px 16px; background: var(--surface); }
  .search-bar-full {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    border: none;
    box-shadow: var(--shadow-md);
  }
  .search-bar-full input {
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--ink);
    background: transparent;
    flex: 1;
  }
  .filters-scroll {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: var(--surface);
  }
  .filters-scroll::-webkit-scrollbar { display: none; }
  .filter-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-height: 34px;
  }
  .filter-chip.active, .filter-chip:active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
  }
  .filter-chip.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }
  .results-list { flex: 1; overflow-y: auto; padding: 8px 16px 96px; }
  .results-list::-webkit-scrollbar { display: none; }
  .result-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 14px 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.15s;
  }
  .result-card:active { transform: scale(0.985); box-shadow: var(--shadow-sm); }
  .result-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 10px 22px rgba(49,117,237,0.24);
  }
  .result-avatar .luc,
  .result-avatar [data-lucide] { color: #fff !important; stroke-width: 2.2; }
  .result-info { flex: 1; }
  .result-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; color: #030712; letter-spacing: 0; }
  .result-cat { font-size: 10px; color: var(--muted); margin-top: 1px; }
  .result-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
  .result-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 22px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
  }
  .result-tag .luc,
  .result-tag [data-lucide] { flex-shrink: 0; }
  .tag-green { background: #EAF7EF; color: #14A366; }
  .tag-blue { background: #e3eeff; color: var(--blue); }
  .tag-orange { background: #FFF1E4; color: #3175ed; }
  .tag-closed { background: #F3F4F6; color: #6B7280; }
  .tag-ev { background: #EAF2FF; color: #3175ed; border-color: #C8DAFF; }
  .result-tag-rating,
  .result-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 11px;
    background: #030712;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }
  .result-tag-rating .luc,
  .result-rating .luc,
  .result-rating [data-lucide] {
    color: var(--accent) !important;
    fill: var(--accent) !important;
  }
  .result-tag-distance,
  .result-dist {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    white-space: nowrap;
  }
  .result-tag-distance {
    min-height: 28px;
    padding: 2px 0;
    background: transparent;
  }
  .result-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .results-count { font-size: 12px; color: var(--muted); padding: 8px 16px 4px; font-weight: 300; }
  .map-toggle {
    position: absolute;
    bottom: 102px;
    right: 16px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 90;
  }

  /* ─────────────────────────────────────────
     SCREEN 5: MAP VIEW
  ───────────────────────────────────────── */
  .s-map {
    background: #e8ead5;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  /* Real Leaflet map container */
  #leaflet-map {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  /* Leaflet font override */
  .leaflet-container { font-family: 'Inter', sans-serif; }

  /* ── Map markers ── */
  .custom-map-marker { background: transparent; border: none; }

  /* Map markers — Elegant Map View style: dark circle with white dot */
  .mp-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
  }
  .mp-wrap:hover { transform: scale(1.2) translateY(-2px); }

  .mp-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #D1D5DB;
    border: 3px solid #fff;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  .mp-dot::after {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    display: block;
  }
  /* No tail in new style — circular markers only */
  .mp-tail { display: none; }

  .mp-wrap.mp-open .mp-dot {
    width: 36px; height: 36px;
    background: #111827;
    border: 3px solid #fff;
  }

  .mp-wrap.mp-selected .mp-dot {
    width: 40px; height: 40px;
    background: var(--accent);
    border: 4px solid #fff;
    box-shadow: 0 0 0 5px rgba(49,117,237,0.25);
    animation: mpPulse 1.8s ease-in-out infinite;
  }

  @keyframes mpPulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(49,117,237,0.25); }
    50%       { box-shadow: 0 0 0 10px rgba(49,117,237,0.06); }
  }

  @keyframes slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  @keyframes pulse-border {
    0%, 100% { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
    50%       { border-color: #F87171; box-shadow: 0 0 0 6px rgba(220,38,38,0.05); }
  }

  /* Category filter chips row */
  .map-filter-row {
    position: absolute;
    top: 114px; left: 16px; right: 16px;
    z-index: 1001;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 2px;
  }
  .map-filter-row::-webkit-scrollbar { display: none; }
  .map-filter-chip {
    flex-shrink: 0;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    touch-action: manipulation;
    box-shadow: var(--shadow-sm);
  }
  .map-filter-chip.active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17,24,39,0.35);
  }
  .map-filter-chip:active { transform: scale(0.92); }

  /* Count badge inside search bar */
  .map-count-badge {
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    white-space: nowrap; letter-spacing: 0.3px;
    flex-shrink: 0;
  }

  /* Directions button in map bottom card (white card context) */
  .map-card-dir-btn {
    background: #F3F4F6;
    border: none;
    border-radius: 12px;
    width: 38px; height: 38px;
    color: var(--ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    touch-action: manipulation;
  }
  .map-card-dir-btn:active { transform: scale(0.9); background: var(--border); }

  /* Map Recenter Button — white floating (Elegant Map View) */
  #map-recenter-btn {
    position: absolute;
    top: 166px; right: 16px;
    z-index: 1001;
    background: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    width: 44px !important; height: 44px !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.2s !important;
    font-size: 18px !important;
    color: var(--ink) !important;
  }
  #map-recenter-btn:active { transform: scale(0.9); }

  /* User location dot — blue (distinct from orange pro markers) */
  .map-user-dot {
    width: 16px; height: 16px;
    background: #007AFF;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(0,122,255,0.22);
    position: relative;
  }
  .map-user-dot::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(0,122,255,0.3);
    animation: userPulse 2s infinite;
  }
  @keyframes userPulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
  }

  /* Recenter button — locating / error states */
  #map-recenter-btn.map-locating { animation: recenterSpin 1s linear infinite; opacity: 0.65; }
  #map-recenter-btn.map-loc-error { background: rgba(220,53,69,0.88) !important; border-color: rgba(220,53,69,0.4) !important; }
  @keyframes recenterSpin { to { transform: rotate(360deg); } }

  /* Bottom card — dark */
  .map-bottom-card {
    position: absolute;
    bottom: calc(112px + var(--sab)); left: 16px; right: 16px;
    background: #ffffff;
    border: none;
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    box-shadow: var(--shadow-float);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 1001;
    animation: cardEntrance 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes cardEntrance {
    from { transform: translateY(80px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
  }
  .map-card-info { flex: 1; min-width: 0; overflow: hidden; }
  .map-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; color: #030712; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
  .map-card-sub  { font-family: 'Space Grotesk', sans-serif; font-size: 17px; color: #030712; margin-top: 2px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .map-card-meta { display: flex; gap: 9px; margin-top: 9px; flex-wrap: wrap; align-items: center; }

  /* Stacked action buttons column */
  .map-card-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
  .map-card-btn {
    background: var(--ink);
    color: #fff; border: none;
    border-radius: 12px;
    padding: 0 14px;
    height: 34px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  }
  .map-card-btn:active { transform: scale(0.95); opacity: 0.9; }

  /* Search bar — white floating (Elegant Map View style) */
  .map-search-bar {
    position: absolute;
    top: 60px; left: 16px; right: 16px;
    background: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    transition: box-shadow 0.2s;
  }
  .map-search-bar:focus-within { box-shadow: 0 12px 32px -4px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.1); }
  .map-search-bar input {
    border: none; outline: none; background: transparent;
    font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink); flex: 1; font-weight: 500;
  }
  .map-search-bar input::placeholder { color: var(--muted); }

  /* ─────────────────────────────────────────
     SCREEN 6: PROFESSIONAL PROFILE
  ───────────────────────────────────────── */
  .s-profile {
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .profile-hero {
    background: var(--ink);
    background-size: cover;
    background-position: center;
    padding: 48px 20px 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }
  .profile-hero[style*="background-image"]::before { opacity: 0.55; }
  .profile-hero::before {
    content: '';
    position: absolute;
    right: -30px; bottom: -30px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(49,117,237,0.15) 0%, transparent 70%);
  }
  .profile-back { font-size: 20px; color: #ffffff80; position: absolute; top: 50px; left: 20px; z-index: 10; cursor: pointer; transition: color 0.15s; }
  .profile-back:hover { color: #fff; }
  .profile-share { font-size: 18px; color: #ffffff80; position: absolute; top: 52px; right: 20px; z-index: 10; cursor: pointer; transition: color 0.15s; }
  .profile-share:hover { color: #fff; }
  .profile-heart { font-size: 20px; color: #ffffff70; position: absolute; top: 50px; right: 52px; z-index: 10; cursor: pointer; background: none; border: none; padding: 2px; line-height: 1; transition: color 0.2s, transform 0.15s; }
  .profile-heart:active { transform: scale(1.3); }
  .profile-heart.active { color: #ff5f5f; }
  /* Heart button on cards */
  .heart-btn { background: none; border: none; cursor: pointer; font-size: 18px; padding: 2px 0; line-height: 1; color: #d0d0d0; transition: color 0.2s, transform 0.15s; flex-shrink: 0; }
  .heart-btn.active { color: #e53935; }
  .heart-btn:active { transform: scale(1.35); }
  .profile-avatar {
    width: 64px; height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border: 2px solid rgba(255,255,255,0.6);
    overflow: hidden;
  }
  .profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15,168,104,0.2);
    color: var(--green);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }
  .profile-gname {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-align: left;
  }
  .profile-cat {
    font-size: 11px;
    color: #ffffff60;
    margin-top: 3px;
    text-align: left;
  }
  .profile-cat.profile-cat-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
  }
  .profile-stats-row { display: flex; gap: 16px; margin-top: 16px; }
  .profile-stat { text-align: center; cursor: pointer; }
  .profile-stat-val { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #fff; }
  .profile-stat-lbl { font-size: 9px; color: #ffffff50; letter-spacing: 0.5px; }
  .profile-body { flex: 1; overflow-y: auto; padding: 16px; }
  .profile-body::-webkit-scrollbar { display: none; }
  .info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--ink);
  }
  .info-row:last-child { border-bottom: none; }
  .share-btn {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .share-btn:active { transform: scale(0.9); background: var(--border); }
  .share-btn .luc { width: 14px !important; height: 14px !important; }
  .info-icon { display:inline-flex; align-items:center; justify-content:center; width: 22px; }
  .info-label { color: var(--muted); font-size: 10px; }
  .hours-open { color: var(--green); font-weight: 600; font-size: 11px; margin-left: auto; }
  .photos-strip { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; }
  .photos-strip::-webkit-scrollbar { display: none; }
  .photo-thumb {
    width: 80px; height: 60px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }
  .contact-actions { display: flex; gap: 8px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); position: absolute; bottom: 0; left: 0; right: 0; }
  .contact-btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 13px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    touch-action: manipulation;
    transition: opacity 0.15s, transform 0.1s;
    min-height: 44px;
  }
  .contact-btn:active { opacity: 0.85; transform: scale(0.97); }
  .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(49,117,237,0.35); }
  .btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
  .review-item { margin-bottom: 12px; }
  .review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .review-avatar { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; font-weight: 700; }
  .review-name { font-size: 11px; font-weight: 600; color: var(--ink); }
  .review-date { font-size: 10px; color: var(--muted); margin-left: auto; }
  .review-stars { font-size: 11px; }
  .review-certified { font-size: 10px; color: var(--green); background: #e8f5e9; padding: 2px 6px; border-radius: 10px; margin-left: 4px; font-weight: 600; }
  .review-text { font-size: 12px; color: #444; line-height: 1.5; font-weight: 400; }

  /* ─────────────────────────────────────────
     SCREEN 7: CONTACT FORM
  ───────────────────────────────────────── */
  .s-contact {
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px 20px 24px;
  }
  .contact-back { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
  .contact-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; line-height: 1.2; }
  .contact-garage { font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 4px; }
  .contact-form { margin-top: 24px; flex: 1; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
  .contact-form::-webkit-scrollbar { display: none; }
  .form-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
  .form-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-chip {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
  }
  .form-chip.selected { border-color: var(--accent); background: #eef4ff; color: var(--accent); }
  .form-textarea {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--ink);
    resize: none;
    height: 80px;
    outline: none;
    width: 100%;
    font-weight: 300;
  }
  .submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.5px;
    margin-top: auto;
    box-shadow: 0 6px 20px rgba(49,117,237,0.3);
  }
  .trust-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; }

  /* ─────────────────────────────────────────
     SCREEN 8: EMERGENCY
  ───────────────────────────────────────── */
  .s-emergency {
    background: #0A0B0F;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }
  .emergency-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(49,117,237,0.2) 0%, transparent 65%);
    top: -100px; left: -60px;
    pointer-events: none;
  }
  .emergency-header {
    padding: 50px 20px 20px;
    position: relative;
    z-index: 1;
  }
  .emergency-back { font-size: 26px; color: rgba(255,255,255,0.7); cursor: pointer; margin-bottom: 8px; display: inline-block; line-height: 1; }
  .emergency-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(49,117,237,0.15);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(49,117,237,0.3);
    text-transform: uppercase;
  }
  .emergency-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-top: 12px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
  .emergency-sub { font-size: 12px; color: #ffffff50; margin-top: 6px; font-weight: 300; }
  .emergency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1;
  }
  .emergency-grid::-webkit-scrollbar { display: none; }
  .emerg-item {
    background: #ffffff08;
    border: 1.5px solid #ffffff10;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
  }
  .emerg-item:hover { border-color: var(--accent); background: rgba(49,117,237,0.1); }
  .emerg-item.selected { border-color: var(--accent); background: rgba(49,117,237,0.15); }
  .emerg-icon { display:flex; align-items:center; justify-content:center; color:#fff; }
  .emerg-name { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.2; }
  .emerg-sub { font-size: 9px; color: #ffffff50; font-weight: 300; }
  .emergency-btn {
    margin: 0 20px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(49,117,237,0.4);
    letter-spacing: 0.5px;
  }

  /* ─────────────────────────────────────────
     SCREEN 9: EMERGENCY MATCHING
  ───────────────────────────────────────── */
  .s-emerg-match {
    background: #0A0B0F;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px 20px 24px;
    position: relative;
    overflow: hidden;
  }
  .match-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(49,117,237,0.15) 0%, transparent 65%);
    top: 50px; right: -60px;
    pointer-events: none;
  }
  .match-problem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(49,117,237,0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(49,117,237,0.3);
    width: fit-content;
  }
  .match-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-top: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
  }
  .match-sub { font-size: 11px; color: #ffffff50; margin-top: 4px; font-weight: 300; position: relative; z-index: 1; }
  .match-list { margin-top: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
  .match-list::-webkit-scrollbar { display: none; }
  .match-card {
    background: #ffffff08;
    border: 1.5px solid #ffffff15;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
  }
  .match-card.top { border-color: var(--accent); background: rgba(49,117,237,0.1); }
  .match-avatar { width: 46px; height: 46px; border-radius: 13px; background: #ffffff15; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
  .match-info { flex: 1; }
  .match-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
  .match-spec { font-size: 10px; color: #ffffff60; margin-top: 2px; }
  .match-eta { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; color: var(--accent); margin-top: 4px; }
  .match-dist { font-size: 9px; color: #ffffff40; }
  .match-call {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .match-rating { display: flex; align-items: center; gap: 3px; font-size: 10px; color: #ffffff60; }

  /* ─────────────────────────────────────────
     DEMO ACCESS (Splash)
  ───────────────────────────────────────── */
  .splash-demo {
    width: 100%; z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px; margin-top: 4px;
  }
  .splash-demo-label {
    text-align: center; font-size: 10px; color: #ffffff35;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
  }
  .splash-demo-btns { display: flex; gap: 8px; }
  .splash-demo-btn {
    flex: 1; padding: 10px; border-radius: 12px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    color: #ffffffaa; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
  }
  .splash-demo-btn:active { background: rgba(255,255,255,0.15); }

  /* ─────────────────────────────────────────
     SCREEN 10: PRO DASHBOARD v2 — Light Command Center
  ───────────────────────────────────────── */
  .s-dashboard {
    background: #F9FAFB;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ── Top bar (dark) ── */
  .pdash-topbar {
    padding: 52px 20px 20px;
    background: linear-gradient(150deg, #16181f 0%, #0e0f14 60%, #131108 100%);
    border-bottom: none;
    border-radius: 0 0 28px 28px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  }
  .pdash-topbar::before {
    content: '';
    position: absolute;
    left: -40px;
    top: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(49,117,237,0.18) 0%, transparent 65%);
    pointer-events: none;
  }
  .pdash-topbar::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(90,149,255,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .pdash-topbar > * {
    position: relative;
    z-index: 1;
  }
  .pdash-greeting { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 2px; }
  .pdash-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 800; color: #fff; line-height: 1.1;
  }
  .pdash-meta-row {
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 230px;
    min-width: 0;
  }
  .pdash-location {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 150px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dash-badge {
    display: none; align-items: center; gap: 4px;
    background: rgba(34,197,94,0.15); color: #4ade80;
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; margin-top: 0;
    border: 1px solid rgba(34,197,94,0.25);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .dash-badge.pending {
    background: rgba(96,165,250,0.14);
    color: #bfdbfe;
    border-color: rgba(147,197,253,0.65);
    border-style: dashed;
  }
  .pdash-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #3175ed, #5a95ff);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
    cursor: pointer;
    border: 2.5px solid rgba(255,255,255,0.55);
    box-shadow: 0 0 0 1.5px rgba(49,117,237,0.4);
    overflow: hidden;
  }

  /* ── Scrollable body ── */
  .pdash-body {
    flex: 1; overflow-y: auto; padding: 14px 16px 100px; scrollbar-width: none;
  }
  .pdash-body::-webkit-scrollbar { display: none; }

  /* ── 7-day calendar card (new design) ── */
  .pdash-cal-card {
    background: #fff;
    border-radius: 20px;
    padding: 14px 16px 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #E5E7EB;
  }
  .pdash-cal-card-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  }
  .pdash-cal-month {
    font-size: 12px; color: #374151; font-weight: 600;
    text-transform: capitalize;
  }
  .pdash-cal-strip { display: flex; gap: 4px; }
  .pdash-cal-day {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 3px; padding: 7px 2px;
    border-radius: 12px; cursor: pointer; transition: background 0.15s;
    min-width: 0;
  }
  .pdash-cal-day:hover { background: #F9FAFB; }
  .pdash-cal-day.today {
    background: #3175ed;
    box-shadow: 0 4px 12px rgba(49,117,237,0.30);
  }
  .pdash-cal-letter {
    font-size: 9px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.3px;
  }
  .pdash-cal-day.today .pdash-cal-letter { color: rgba(255,255,255,0.75); }
  .pdash-cal-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px; font-weight: 700; color: #111827; line-height: 1;
  }
  .pdash-cal-day.today .pdash-cal-num { color: #fff; }
  .pdash-cal-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: #3175ed; opacity: 0;
  }
  .pdash-cal-day.today .pdash-cal-dot { background: rgba(255,255,255,0.6); }
  .pdash-cal-day.has-appt .pdash-cal-dot { opacity: 1; }

  /* ── Hero revenue card ── */
  .pdash-hero {
    background: linear-gradient(130deg, #3175ed 0%, #5a95ff 100%);
    border-radius: 20px; padding: 20px 20px 18px; margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(49,117,237,0.28);
  }
  .pdash-hero-label {
    font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
  }
  .pdash-hero-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 34px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 4px;
  }
  .pdash-hero-sub { font-size: 12px; color: rgba(255,255,255,0.7); }

  /* ── Availability banner ── */
  .pdash-avail {
    background: #fff; border-radius: 16px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #E5E7EB;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
  }
  .pdash-avail.avail-on {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 52%, #991b1b 100%);
    border-color: rgba(239,68,68,0.38);
    box-shadow: 0 12px 28px rgba(220,38,38,0.22);
  }
  .pdash-avail-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .dash-urgency-icon {
    width: 22px; height: 22px; flex-shrink: 0;
    background: #9ca3af;
    display: block;
    mask: url('/icons/siren.png') center / contain no-repeat;
    -webkit-mask: url('/icons/siren.png') center / contain no-repeat;
    transition: background 0.3s, transform 0.3s;
  }
  .pdash-avail.avail-on .dash-urgency-icon {
    background: #fff;
    transform: scale(1.04);
  }
  .dash-online-dot { display: none; }
  .dash-online-label { font-size: 12px; color: #374151; flex: 1; min-width: 0; }
  .pdash-avail.avail-on .dash-online-label { color: #fff; font-weight: 700; }
  .toggle-switch {
    width: 40px; height: 22px; background: #D1D5DB; border-radius: 11px;
    position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.25s;
  }
  .toggle-switch::after {
    content: ''; position: absolute;
    width: 16px; height: 16px; background: #fff;
    border-radius: 8px; top: 3px; left: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2); transition: left 0.25s;
  }
  .toggle-switch.active { background: rgba(255,255,255,0.32); }
  .toggle-switch.active::after { left: 21px; }

  /* ── KPI grid 2×2 ── */
  .pdash-stats-header {
    margin: 4px 0 10px;
  }
  .pdash-stats-link {
    min-height: 36px;
    padding: 8px 0 8px 12px;
    border: 0;
    background: transparent;
    font: 700 12px/1.2 'Inter', sans-serif;
    letter-spacing: 0;
    cursor: pointer;
    touch-action: manipulation;
  }
  .pdash-stats-link:active {
    transform: scale(0.98);
  }
  .pdash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 22px;
  }
  .pdash-kpi-card {
    --kpi-accent: #4482ee;
    --kpi-glow: rgba(68,130,238,0.3);
    min-height: 106px;
    background: var(--kpi-accent);
    border-radius: 20px;
    padding: 0;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 34px rgba(17,24,39,0.13), 0 14px 28px var(--kpi-glow);
  }
  .pdash-kpi-card::before {
    content: "";
    position: absolute;
    inset: 12px 10px -8px;
    z-index: -1;
    border-radius: 20px;
    background: var(--kpi-accent);
    filter: blur(20px);
    opacity: 0.32;
  }
  .pdash-kpi-card.pdash-kpi-blue   { --kpi-accent: #4482ee; --kpi-glow: rgba(68,130,238,0.3); }
  .pdash-kpi-card.pdash-kpi-orange { --kpi-accent: #8b5cf6; --kpi-glow: rgba(139,92,246,0.3); }
  .pdash-kpi-card.pdash-kpi-green  { --kpi-accent: #00d934; --kpi-glow: rgba(0,217,52,0.3); }
  .pdash-kpi-val {
    font-family: 'Space Grotesk', sans-serif;
    height: 72px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background-color: #020202;
    background-image:
      linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)),
      url('/assets/banner.svg');
    background-size: 390% auto;
    background-position: center 35%;
    background-repeat: no-repeat;
    color: var(--kpi-accent);
    font-size: 31px;
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    text-shadow: 0 0 12px var(--kpi-glow), 0 0 24px var(--kpi-glow);
  }
  .pdash-kpi-val::after {
    content: attr(data-kpi-sub);
    margin-top: 5px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(255,255,255,0.16);
  }
  .pdash-kpi-card.pdash-kpi-orange .pdash-kpi-val { color: var(--kpi-accent); }
  .pdash-kpi-lbl {
    min-height: 34px;
    padding: 7px 5px 8px;
    background: transparent;
    color: #fff;
    font-size: 10px;
    line-height: 1.12;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 12px rgba(0,0,0,0.2);
  }

  /* ── Section headers ── */
  .pdash-section-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
  }
  .pdash-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px; font-weight: 700; color: #9CA3AF;
    letter-spacing: 1.2px; text-transform: uppercase;
  }
  .pdash-see-all { font-size: 12px; color: #3175ed; font-weight: 600; cursor: pointer; }

  /* ── Timeline feed cards (flat, full-width, no left time column) ── */
  .pdash-tl-card {
    background: #fff; border-radius: 14px; padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #F3F4F6;
    display: flex; gap: 12px; align-items: center;
    cursor: pointer; touch-action: manipulation; margin-bottom: 8px;
    transition: background 0.15s;
  }
  .pdash-tl-card:active { background: #F9FAFB; }
  .pdash-tl-card.tl-urgence { border-left: 3px solid #3175ed; }
  .pdash-tl-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #3175ed;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0;
    overflow: hidden;
  }
  .pdash-tl-avatar img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .pdash-tl-body { flex: 1; min-width: 0; }
  .pdash-tl-name { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 2px; }
  .pdash-tl-service {
    font-size: 12px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pdash-tl-date { font-size: 11px; color: #9CA3AF; margin-top: 2px; }
  .pdash-tl-badge {
    font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap;
  }
  .pdash-tl-time-lbl { font-size: 10px; color: #9CA3AF; text-align: right; }
  .tb-urgence { background: rgba(49,117,237,0.12); color: #3175ed; }
  .tb-rdv     { background: rgba(59,130,246,0.12); color: #3B82F6; }
  .tb-message { background: rgba(34,197,94,0.12);  color: #16a34a; }
  .tb-review  { background: rgba(245,158,11,0.12); color: #D97706; }

  /* Nav badge */
  .nav-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent); color: #fff;
    font-size: 8px; font-weight: 800;
    width: 15px; height: 15px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #111827;
    pointer-events: none;
  }

  /* ─────────────────────────────────────────
     PRO REQUESTS SCREEN
  ───────────────────────────────────────── */
  .s-pro-requests {
    background: var(--surface); height: 100%;
    display: flex; flex-direction: column; overflow: hidden;
  }
  .proq-header {
    padding: 48px 20px 14px;
    background: #fff; border-bottom: 1px solid var(--border);
    border-radius: 0 0 24px 24px;
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(17,24,39,0.06);
    margin-bottom: 10px;
  }
  .proq-back { font-size: 24px; color: var(--muted); cursor: pointer; }
  .proq-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); flex: 1; }
  .proq-header-badge {
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 8px;
    border-radius: 10px;
  }
  .proq-tabs {
    display: flex; gap: 0; background: #fff;
    border-bottom: 1.5px solid var(--border); flex-shrink: 0;
  }
  .proq-tab {
    flex: 1; text-align: center; padding: 13px 8px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    cursor: pointer; border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px; transition: all 0.15s;
    touch-action: manipulation; min-height: 44px;
  }
  .proq-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .proq-tab-count {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700; padding: 1px 5px;
    border-radius: 8px; margin-left: 3px;
  }
  .proq-list { flex: 1; overflow-y: auto; padding: 12px 16px 80px; }
  .proq-list::-webkit-scrollbar { display: none; }

  /* Request cards */
  .req-card {
    background: #fff; border: none;
    border-radius: var(--radius-xl); padding: 14px 16px; margin-bottom: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer; touch-action: manipulation;
  }
  .req-card:active { transform: scale(0.985); box-shadow: var(--shadow-sm); }
  .req-card.rc-urgence { border-left: 4px solid var(--accent); background: #fffcf0; }
  .req-card.rc-notif { border-left: 4px solid #6366F1; background: #FAFAFE; }
  .req-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
  .req-client-avatar {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg,#6C63FF,#3B82F6);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk',sans-serif; font-size: 16px; font-weight: 800; color: #fff;
    flex-shrink: 0;
  }
  .req-client-info { flex: 1; min-width: 0; }
  .req-client-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
  .req-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
  .req-type-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 8px;
  }
  .rtb-urgence { background: #fff1f2; color: #dc2626; border: 1px solid #fecaca; }
  .rtb-rdv     { background: #eff6ff; color: #3175ed; border: 1px solid #bfdbfe; }
  .rtb-message { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
  .req-time { font-size: 10px; color: var(--muted); }
  .req-service { font-size: 13px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
  .req-vehicle { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
  .req-rdv-date {
    display: flex; align-items: center; gap: 6px;
    background: var(--surface); border-radius: 10px; padding: 8px 12px;
    font-size: 12px; color: var(--ink); font-weight: 600; margin-bottom: 10px;
  }
  .req-actions { display: flex; gap: 8px; }
  .req-btn-accept {
    flex: 1; padding: 11px; border-radius: 12px;
    background: var(--accent); color: #fff;
    font-family: 'Space Grotesk',sans-serif; font-size: 12px; font-weight: 700;
    border: none; cursor: pointer; touch-action: manipulation;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 3px 10px rgba(49,117,237,0.3);
    min-height: 44px;
  }
  .req-btn-accept:active { opacity: 0.85; transform: scale(0.97); }
  .req-btn-decline {
    flex: 0.5; padding: 11px; border-radius: 12px;
    background: transparent; color: var(--muted);
    font-size: 12px; font-weight: 600;
    border: 1.5px solid var(--border); cursor: pointer;
    touch-action: manipulation; transition: background 0.15s;
    min-height: 44px;
  }
  .req-btn-decline:active { background: var(--surface); }
  .req-btn-chat {
    flex: 0.6; padding: 11px; border-radius: 12px;
    background: rgba(49,117,237,0.06); color: var(--accent);
    font-size: 12px; font-weight: 600;
    border: 1.5px solid rgba(49,117,237,0.25); cursor: pointer;
    touch-action: manipulation; transition: background 0.15s;
    min-height: 44px;
  }
  .req-btn-chat:active { background: rgba(49,117,237,0.12); }
  .req-card-done { opacity: 0.72; }

  /* ─────────────────────────────────────────
     SCREEN 11: REVIEWS
  ───────────────────────────────────────── */
  .s-reviews {
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .reviews-header { padding: 50px 20px 16px; background: #fff; border-bottom: 1px solid var(--border); }
  .reviews-back { margin-bottom: 16px; }
  .reviews-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); }
  .rating-big { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
  .rating-num { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; }
  .rating-stars { font-size: 16px; color: var(--yellow); }
  .rating-count { font-size: 11px; color: var(--muted); font-weight: 300; }
  .rating-bars { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
  .rating-bar-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
  .rating-bar-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; }
  .rating-bar-fill { height: 4px; background: var(--yellow); border-radius: 2px; }
  .reviews-tabs { display: flex; padding: 12px 20px 0; gap: 16px; background: #fff; border-bottom: 1px solid var(--border); }
  .review-tab { font-size: 12px; font-weight: 600; padding-bottom: 10px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); }
  .review-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
  .reviews-list { flex: 1; overflow-y: auto; padding: 14px 16px 96px; }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
  }
  .leave-review-bar {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
  }
  .leave-review-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  /* Reviews pro share section */
  .reviews-pro-share {
    background: #eef4ff; border: 1.5px solid rgba(49,117,237,0.2);
    border-radius: 14px; padding: 10px 14px; margin: 0 16px 4px;
    display: flex; flex-direction: column; gap: 7px;
  }
  .rps-label { font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.3; }
  .rps-url-row { display: flex; align-items: center; gap: 6px; }
  .rps-url-chip {
    flex: 1; background: #fff; border: 1px solid var(--border);
    border-radius: 7px; padding: 5px 8px;
    font-size: 10px; color: var(--ink); font-family: monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  }
  .rps-copy-btn, .rps-share-btn {
    flex-shrink: 0; padding: 6px 10px; border-radius: 8px; border: none; cursor: pointer;
    font-size: 11px; font-weight: 700; transition: opacity 0.2s;
  }
  .rps-copy-btn { background: var(--ink); color: #fff; }
  .rps-share-btn { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }


  /* Small square icon buttons in profile actions row */
  .profile-icon-btn {
    width: 44px !important; flex: none !important;
    padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
  }

  /* ─────────────────────────────────────────
     SCREEN 12: NOTIFICATIONS
  ───────────────────────────────────────── */
  .s-notifs {
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .notifs-header { padding: 50px 20px 16px; }
  .notifs-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink); }
  .notifs-sub { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 300; }
  .notifs-list { flex: 1; overflow-y: auto; padding: 0 16px 96px; }
  .notifs-list::-webkit-scrollbar { display: none; }
  .notif-item {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 3px solid transparent;
  }
  .notif-item.unread { border-left-color: var(--accent); }
  .notif-item.urgent { border-left-color: #FF0000; }
  .notif-icon-box {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .notif-info { flex: 1; }
  .notif-text { font-size: 12px; color: var(--ink); line-height: 1.4; font-weight: 400; }
  .notif-text strong { font-weight: 600; }
  .notif-time { font-size: 10px; color: var(--muted); margin-top: 4px; }
  .notif-unread-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 4px; margin-top: 4px; flex-shrink: 0; }

  /* ─────────────────────────────────────────
     SCREEN 13: PRO PROFILE EDIT
  ───────────────────────────────────────── */
  /* ─── PRO EDIT (ped-*) ─── */
  .s-pro-edit { background: var(--surface); height: 100%; display: flex; flex-direction: column; overflow: hidden; position: relative; }

  /* Topbar */
  .ped-topbar {
    display: flex;
    align-items: center;
    padding: 48px 16px 20px;
    background: linear-gradient(150deg, #16181f 0%, #0e0f14 60%, #131108 100%);
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  }
  .ped-topbar::before {
    content: '';
    position: absolute;
    left: -40px;
    top: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(49,117,237,0.18) 0%, transparent 65%);
    pointer-events: none;
  }
  .ped-topbar::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(90,149,255,0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .ped-topbar > * {
    position: relative;
    z-index: 1;
  }
  .ped-back { width: 44px; height: 44px; font-size: 26px; color: rgba(255,255,255,0.76); background: rgba(255,255,255,0.12); border: none; border-radius: 16px; cursor: pointer; padding: 0; line-height: 1; font-family: sans-serif; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ped-profile-head,
  .ped-header-profile {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .ped-header-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .ped-topbar-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
  .ped-header-location {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ped-save-btn { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 8px 16px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; }
  .ped-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .ped-icon-btn,
  .ped-edit-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }
  .ped-icon-btn:active,
  .ped-edit-btn:active { background: rgba(255,255,255,0.2); }

  /* Scroll body */
  .ped-scroll { flex: 1; overflow-y: auto; padding-bottom: calc(80px + var(--sab)); }
  .ped-editing .ped-scroll { padding-bottom: calc(180px + var(--sab)); }
  .ped-scroll::-webkit-scrollbar { display: none; }
  #ped-info-view { padding-top: 12px !important; }

  /* Cover */
  .ped-cover { display: none; }

  /* Avatar */
  .ped-avatar-zone {
    display: flex;
    align-items: center;
    padding: 18px 20px 8px;
    background: var(--surface);
    margin-top: 0;
    gap: 12px;
  }
  .ped-avatar-wrap { position: relative; flex-shrink: 0; }
  .ped-header-avatar-wrap .ped-avatar { width: 52px; height: 52px; }
  .ped-avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; border: 2.5px solid rgba(255,255,255,0.95); box-shadow: 0 8px 20px rgba(17,24,39,0.12), 0 0 0 1.5px rgba(49,117,237,0.18); overflow: hidden; }
  .ped-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .ped-avatar-cam { position: absolute; bottom: 2px; right: 0; width: 26px; height: 26px; background: var(--ink); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; border: 2px solid var(--surface); }
  .ped-avatar-cam::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
  .ped-editing .ped-avatar-cam { display: flex; }
  .ped-header-avatar-wrap .ped-avatar-cam { display: none !important; }
  .ped-verified-badge { background: rgba(34,197,94,0.12); color: #16a34a; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 20px; margin-bottom: 0; }

  /* Sections */
  .ped-section { background: #fff; border-radius: 16px; padding: 16px; margin: 0 12px 12px; }
  .ped-section-title { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
  .ped-section-header { display: flex; align-items: center; margin-bottom: 12px; }
  .ped-section-header .ped-section-title { flex: 1; margin-bottom: 0; }
  .ped-gallery-add-btn { font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; display: none; }
  .ped-editing .ped-gallery-add-btn { display: block; }

  /* Fields */
  .ped-field { margin-bottom: 10px; }
  .ped-field:last-child { margin-bottom: 0; }
  .ped-field-lbl { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
  .ped-input, .ped-textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-family: 'Inter', sans-serif; color: var(--ink); background: var(--surface); box-sizing: border-box; outline: none; transition: border-color 0.15s; }
  .ped-input:focus, .ped-textarea:focus { border-color: var(--accent); }
  .ped-textarea { resize: none; line-height: 1.5; }

  /* Gallery */
  .ped-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ped-gallery-thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface); border: 1.5px solid var(--border); }
  .ped-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .ped-gallery-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; cursor: pointer; }
  .ped-gallery-empty { aspect-ratio: unset; min-height: 80px; border-radius: 10px; border: 2px dashed var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; gap: 4px; cursor: pointer; grid-column: span 3; }
  .ped-gallery-empty-icon { font-size: 28px; }

  /* Hours */
  .ped-hours-row { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); gap: 10px; }
  .ped-hours-row:last-child { border-bottom: none; }
  .ped-hours-day { font-size: 13px; font-weight: 600; color: var(--ink); width: 100px; }
  .ped-hours-time { font-size: 12px; color: var(--muted); flex: 1; }
  .ped-htoggle { width: 34px; height: 20px; background: var(--border); border-radius: 10px; position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
  .ped-htoggle.on { background: #22c55e; }
  .ped-htoggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
  .ped-htoggle.on::after { transform: translateX(14px); }

  /* Settings */
  .ped-setting-row { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 10px; }
  .ped-preview-row { display: flex; align-items: center; padding: 12px 0; gap: 10px; cursor: pointer; }
  .ped-setting-info { flex: 1; }
  .ped-setting-name { font-size: 13px; font-weight: 600; color: var(--ink); }
  .ped-setting-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .ped-toggle { width: 34px; height: 20px; background: var(--border); border-radius: 10px; position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
  .ped-toggle.active { background: #22c55e; }
  .ped-toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
  .ped-toggle.active::after { transform: translateX(14px); }
  .ped-chevron { font-size: 22px; color: var(--muted); }

  /* Danger */
  .ped-section--danger { background: transparent; padding: 0 0 4px; }
  .ped-logout-btn { width: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid #fecaca; background: #fff1f2; color: #dc2626; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; }

  /* Toast */
  .ped-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 12px 24px; border-radius: 30px; display: none; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 100; white-space: nowrap; }
  .ped-toast.visible { display: block; opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ─────────────────────────────────────────
     SCREEN 14: VERIFICATION
  ───────────────────────────────────────── */
  .s-verify {
    background: var(--surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px 20px 24px;
  }
  .verify-step-row { display: flex; gap: 6px; margin-bottom: 24px; }
  .verify-step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
  }
  .verify-step.done { background: var(--green); }
  .verify-step.active { background: var(--accent); }
  .verify-icon { font-size: 48px; text-align: center; margin: 8px 0 16px; }
  .verify-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.5px; }
  .verify-sub { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 300; line-height: 1.5; }
  .verify-upload {
    background: #fff;
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
  }
  .verify-upload-icon { font-size: 32px; margin-bottom: 8px; }
  .verify-upload-text { font-size: 12px; color: var(--muted); font-weight: 300; }
  .verify-upload-btn { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 4px; }
  .verify-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .verify-item {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
  }
  .verify-item.done { border-color: var(--green); }
  .verify-item-icon { font-size: 22px; }
  .verify-item-text { flex: 1; }
  .verify-item-name { font-size: 12px; font-weight: 600; color: var(--ink); }
  .verify-item-status { font-size: 10px; color: var(--muted); margin-top: 2px; }
  .verify-item-check { font-size: 16px; }
  .verify-next {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 6px 20px rgba(49,117,237,0.3);
    letter-spacing: 0.5px;
  }

  /* ─────────────────────────────────────────
     SCREEN 15: STATS DETAIL
  ───────────────────────────────────────── */
  .s-stats {
    background: var(--ink);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .stats-header {
    padding: 50px 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 28px 28px;
    background:
      radial-gradient(circle at 86% 18%, rgba(49,117,237,0.28), transparent 32%),
      linear-gradient(135deg, rgba(15,23,42,0.98), rgba(10,17,31,0.98));
    box-shadow: 0 12px 34px rgba(0,0,0,0.24);
  }
  .stats-topbar { display: flex; align-items: center; gap: 12px; }
  .stats-heading { min-width: 0; }
  .stats-kicker {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.46);
    margin-bottom: 2px;
  }
  .stats-title { font-family: 'Space Grotesk', sans-serif; font-size: 27px; line-height: 1.05; font-weight: 800; color: #fff; }
  .stats-subtitle { margin: 12px 0 0 50px; color: rgba(255,255,255,0.58); font-size: 12px; line-height: 1.45; }
  .stats-period-row { display: flex; gap: 8px; margin-top: 10px; }
  .period-chip {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid #ffffff20;
    color: #ffffff60;
    cursor: pointer;
  }
  .period-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .stats-body { flex: 1; overflow-y: auto; padding: 16px 14px 112px; }
  .stats-body::-webkit-scrollbar { display: none; }
  .stats-content-grid { display: flex; flex-direction: column; gap: 14px; }
  .stats-hero-card,
  .stats-panel,
  .stats-metric-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 36px rgba(0,0,0,0.16);
  }
  .stats-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 16px;
  }
  .stats-hero-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: rgba(49,117,237,0.22);
    filter: blur(22px);
  }
  .stats-hero-top { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
  .stats-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.48); }
  .stats-period-pill { padding: 6px 9px; border-radius: 999px; background: rgba(49,117,237,0.18); color: #8fb4ff; font-size: 10px; font-weight: 800; white-space: nowrap; }
  .stats-hero-value { position: relative; margin-top: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 42px; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
  .stats-hero-sub { position: relative; margin-top: 4px; color: #25d366; font-size: 12px; font-weight: 700; }
  .stats-hero-chart { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 96px; margin-top: 18px; align-items: end; }
  .stats-month { min-width: 0; text-align: center; }
  .stats-duo-bars { height: 66px; display: flex; align-items: end; justify-content: center; gap: 3px; }
  .stats-bar { width: 10px; min-height: 4px; border-radius: 999px 999px 3px 3px; background: rgba(255,255,255,0.12); box-shadow: 0 0 18px rgba(49,117,237,0.14); }
  .stats-bar.revenue { background: linear-gradient(180deg, #6ea0ff, #3175ed); }
  .stats-bar.requests { background: linear-gradient(180deg, #34d399, #11a95b); }
  .stats-month-label { display: block; margin-top: 7px; font-size: 9px; color: rgba(255,255,255,0.44); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats-chart-legend { display: flex; gap: 12px; margin-top: 8px; color: rgba(255,255,255,0.5); font-size: 10px; font-weight: 700; }
  .stats-legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin-right: 5px; vertical-align: 1px; }
  .stats-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .stats-metric-card { min-height: 102px; border-radius: 20px; padding: 13px; position: relative; overflow: hidden; }
  .stats-metric-card::after { content: ""; position: absolute; inset: auto -24px -42px auto; width: 92px; height: 92px; border-radius: 999px; background: var(--stat-accent, rgba(49,117,237,0.2)); filter: blur(18px); opacity: 0.55; }
  .stats-metric-card.blue { --stat-accent: rgba(49,117,237,0.42); }
  .stats-metric-card.green { --stat-accent: rgba(34,197,94,0.42); }
  .stats-metric-card.amber { --stat-accent: rgba(245,158,11,0.42); }
  .stats-metric-card.red { --stat-accent: rgba(239,68,68,0.42); }
  .stats-metric-label { position: relative; color: rgba(255,255,255,0.54); font-size: 11px; line-height: 1.2; font-weight: 700; }
  .stats-metric-value { position: relative; margin-top: 9px; font-family: 'Space Grotesk', sans-serif; font-size: 27px; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
  .stats-metric-sub { position: relative; margin-top: 7px; color: rgba(255,255,255,0.42); font-size: 10px; line-height: 1.25; font-weight: 700; }
  .stats-panel { border-radius: 22px; padding: 15px; }
  .stats-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .stats-panel-title { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 15px; font-weight: 800; }
  .stats-panel-sub { margin-top: 2px; color: rgba(255,255,255,0.44); font-size: 10px; font-weight: 700; }
  .stats-panel-badge { padding: 5px 8px; border-radius: 999px; background: rgba(49,117,237,0.16); color: #8fb4ff; font-size: 10px; font-weight: 800; white-space: nowrap; }
  .stats-funnel { display: flex; flex-direction: column; gap: 10px; }
  .stats-funnel-row { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 8px; }
  .stats-funnel-label { color: rgba(255,255,255,0.58); font-size: 11px; font-weight: 700; }
  .stats-funnel-track { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.09); overflow: hidden; }
  .stats-funnel-fill { height: 100%; border-radius: inherit; background: var(--fill, #3175ed); min-width: 4px; }
  .stats-funnel-count { text-align: right; color: #fff; font: 800 13px/1 'Space Grotesk', sans-serif; }
  .stats-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-ring-card { border-radius: 20px; padding: 14px; background: rgba(255,255,255,0.055); border: 1px solid rgba(255,255,255,0.08); }
  .stats-ring { width: 86px; height: 86px; margin: 6px auto 10px; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(var(--ring-color, #3175ed) var(--ring-pct, 0%), rgba(255,255,255,0.1) 0); }
  .stats-ring-inner { width: 62px; height: 62px; border-radius: 999px; display: grid; place-items: center; background: #111827; color: #fff; font: 800 18px/1 'Space Grotesk', sans-serif; }
  .stats-ring-title { color: rgba(255,255,255,0.56); font-size: 11px; font-weight: 800; text-align: center; }
  .stats-ring-sub { color: rgba(255,255,255,0.38); font-size: 10px; line-height: 1.25; text-align: center; margin-top: 4px; }
  .stats-rating-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .stats-rating-row { display: grid; grid-template-columns: 28px 1fr 22px; gap: 7px; align-items: center; }
  .stats-rating-star { color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 800; }
  .stats-rating-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
  .stats-rating-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #facc15); min-width: 0; }
  .stats-rating-count { color: rgba(255,255,255,0.56); font-size: 10px; font-weight: 800; text-align: right; }
  .stats-service-list { display: flex; flex-direction: column; gap: 9px; }
  .stats-service-row { display: grid; grid-template-columns: 1fr 34px; gap: 10px; align-items: center; }
  .stats-service-name { color: #fff; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stats-service-count { color: #8fb4ff; font: 800 13px/1 'Space Grotesk', sans-serif; text-align: right; }
  .stats-service-track { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.09); overflow: hidden; }
  .stats-service-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3175ed, #8b5cf6); min-width: 4px; }
  .stats-empty-note { padding: 14px 0; color: rgba(255,255,255,0.42); font-size: 12px; text-align: center; }
  .stats-footnote { color: rgba(255,255,255,0.34); font-size: 10px; text-align: center; line-height: 1.4; padding: 2px 12px 0; }

  [dir="rtl"] .stats-subtitle { margin: 12px 50px 0 0; }
  [dir="rtl"] .stats-panel-head,
  [dir="rtl"] .stats-hero-top { direction: rtl; }
  [dir="rtl"] .stats-funnel-count,
  [dir="rtl"] .stats-service-count,
  [dir="rtl"] .stats-rating-count { text-align: left; }

  /* PAGE FOOTER */
  .page-footer {
    text-align: center;
    padding: 48px 40px;
    color: #ffffff30;
    font-size: 12px;
    font-weight: 300;
    border-top: 1px solid #ffffff08;
  }


/* WRITE REVIEW SCREEN */
.s-write-review { background: var(--surface); }
.wr-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wr-back {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 0 4px;
}
.wr-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.wr-pro-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wr-pro-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-light, #eef4ff);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wr-pro-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.wr-pro-verified { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; }
.wr-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wr-body::-webkit-scrollbar { display: none; }
.wr-section { display: flex; flex-direction: column; gap: 8px; }
.wr-section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wr-stars { display: flex; gap: 6px; }
.wr-stars .star {
  font-size: 36px;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.15s, transform 0.1s;
  line-height: 1;
}
.wr-stars .star.selected { opacity: 1; transform: scale(1.1); }
.wr-stars .star:hover { opacity: 0.7; }
.wr-error { font-size: 12px; color: #e53935; margin-top: 2px; }
.wr-textarea {
  width: 100%;
  min-height: 120px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  resize: none;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.wr-textarea:focus { border-color: var(--accent); }
.wr-footer {
  padding: 14px 16px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.wr-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, opacity 0.2s;
}
.wr-submit-btn:active { opacity: 0.85; }
.wr-trust { font-size: 11px; color: var(--muted); text-align: center; display: flex; align-items: center; justify-content: center; }

/* New review card animation */
.review-card-new {
  border-left: 3px solid var(--accent);
  animation: reviewSlideIn 0.35s ease-out;
}
@keyframes reviewSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* SPA UTILITIES */
.s-all-cats, .s-cat-pros { background: var(--surface); overflow: hidden; }
.view { display: none !important; pointer-events: none; }
.view.active { display: flex !important; flex-direction: column; position: relative; width: 100%; min-width: 0; height: 100%; z-index: 10; pointer-events: auto; }

/* Page Transitions */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.view.slide-in-left  { animation: slideInLeft 0.25s ease-out; }
.view.slide-in-right { animation: slideInRight 0.25s ease-out; }

/* Typing Indicator */
.typing-indicator {
  display: flex !important;
  gap: 4px;
  padding: 12px 16px !important;
  align-items: center;
  min-width: 60px;
}
.typing-indicator .dot {
  width: 8px; height: 8px;
  background: #999;
  border-radius: 50%;
  animation: dotBounce 1.2s infinite;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeOutDown { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 20px); } }

/* No Results Placeholder */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.no-results-icon { font-size: 40px; margin-bottom: 12px; }
body { display: flex; align-items: center; justify-content: center; background: #000; margin: 0; min-height: 100vh; }
.phone { margin: auto; }

/* ─────────────────────────────────────────
     SCREEN A: CLIENT PROFILE 
  ───────────────────────────────────────── */
.s-client-profile {
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.c-prof-header {
  padding: 50px 20px 20px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 0 0 28px 28px;
}
.c-prof-avatar {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: var(--ink);
  flex-shrink: 0; overflow: hidden;
}
.c-prof-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.c-prof-info { flex: 1; }
.c-prof-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.c-prof-sub { font-size: 11px; color: #ffffff60; }
.c-prof-body { flex: 1; padding: 20px 20px 80px; overflow-y: auto; }
.c-prof-body::-webkit-scrollbar { display: none; }
.c-prof-section-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 10px 0; }
.my-cars-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-bottom: 14px;
  display: flex; flex-direction: column;
  border: none;
}
/* Legacy selectors kept for add-vehicle dashed card */
.my-cars-icon { font-size: 32px; }
.my-cars-details { flex: 1; }
.my-cars-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
.my-cars-spec { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── New vehicle card ── */
.veh-card { background:#fff; border-radius:20px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.08); margin-bottom:14px; }
.veh-card-top { display:flex; align-items:center; gap:12px; padding:16px 16px 14px; }
.veh-card-icon-bg { width:48px; height:48px; background:#FFF3EE; border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.veh-card-info { flex:1; min-width:0; }
.veh-card-name { font-family:'Space Grotesk',sans-serif; font-size:15px; font-weight:700; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.veh-card-spec { font-size:11px; color:var(--muted); margin-top:3px; }
.veh-plate-badge { background:#F3F4F6; color:#374151; font-size:10px; font-weight:700; padding:4px 9px; border-radius:8px; letter-spacing:0.5px; flex-shrink:0; font-family:'Space Grotesk',monospace; }
.veh-card-divider { height:1px; background:var(--border); margin:0 16px; }
.veh-status-row { display:flex; align-items:stretch; padding:12px 16px; }
.veh-status-cell { display:flex; align-items:center; gap:7px; flex:1; min-width:0; }
.veh-status-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.veh-status-lbl { font-size:10px; color:var(--muted); font-weight:600; line-height:1.2; }
.veh-status-val { font-size:11px; color:var(--ink); font-weight:700; margin-top:1px; white-space:nowrap; }
.veh-status-sep { width:1px; background:var(--border); margin:0 6px; align-self:stretch; flex-shrink:0; }
.veh-card-actions { display:flex; gap:8px; padding:0 16px 16px; }
.veh-action-btn { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; background:var(--surface); border:1.5px solid var(--border); border-radius:12px; padding:9px 4px; font-size:11px; font-weight:700; color:var(--ink); cursor:pointer; font-family:'Space Grotesk',sans-serif; transition:background 0.15s; }
.veh-action-btn:active { background:var(--border); }
.veh-action-purple { color:#7C3AED; }
.veh-action-blue   { color:#3175ed; }
.veh-action-green  { color:#16A34A; }
.menu-list { background: #fff; border-radius: 16px; border: 1.5px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s;
  min-height: 48px;
}
.menu-item:active { background: rgba(0,0,0,0.04); }
.menu-item:last-child { border-bottom: none; }
.menu-icon { font-size: 18px; width: 24px; text-align: center; display:flex; align-items:center; justify-content:center; }
.menu-text { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); }
.menu-arrow { font-size: 16px; color: var(--muted); }

/* ─────────────────────────────────────────
     SCREEN B: FAVORITES & HISTORY
  ───────────────────────────────────────── */
.s-favorites, .s-history {
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.fav-header {
  padding: 50px 20px 16px;
  background: var(--surface);
  display: flex; align-items: center; gap: 12px;
}
.fav-back { font-size: 20px; color: var(--muted); cursor: pointer; }
.fav-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); flex: 1; }
.fav-list { flex: 1; padding: 0 16px 16px; overflow-y: auto; }
.fav-list::-webkit-scrollbar { display: none; }
.hist-card {
  background: #fff; border-radius: 16px; padding: 14px; margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1.5px solid var(--border);
}
.hist-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 10px; }
.hist-date { font-size: 11px; font-weight: 600; color: var(--muted); }
.hist-status { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 12px; }
.status-done { background: #e8f5e9; color: var(--green); }
.status-pending { background: #fff3e8; color: var(--accent2); }
.hist-bottom { display: flex; align-items: center; gap: 12px; }
.hist-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hist-info { flex: 1; }
.hist-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
.hist-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* ─────────────────────────────────────────
     SCREEN C: BOOKING
  ───────────────────────────────────────── */
.s-booking {
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1.5px solid var(--border);
  margin-top: 10px;
}
.cal-day-name { font-size: 10px; color: var(--muted); text-align: center; font-weight: 600; margin-bottom: 6px; }
.cal-date { 
  aspect-ratio: 1; 
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
}
.cal-date.disabled { color: var(--border); pointer-events: none; }
.cal-date.selected { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(49,117,237,0.3); }

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.time-slot {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 11px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.time-slot.selected { border-color: var(--accent); background: #eef4ff; color: var(--accent); }

.action-bar { padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); margin-top: auto; }

/* ─────────────────────────────────────────
     SCREEN D: CHAT ROOM
  ───────────────────────────────────────── */
.s-chat-room {
  background: var(--surface);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: #fff;
  padding: 50px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
}
.chat-back { font-size: 24px; color: var(--ink); cursor: pointer; padding: 8px 12px 8px 4px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.chat-avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.chat-info { flex: 1; }
.chat-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
.chat-status { font-size: 10px; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.chat-status::before { content: ''; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.chat-call { font-size: 18px; color: var(--ink); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border-radius: 50%; cursor: pointer;}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-body::-webkit-scrollbar { display: none; }
.chat-date { text-align: center; font-size: 10px; color: var(--muted); font-weight: 600; margin: 8px 0; }
.msg { max-width: 80%; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.4; position: relative; margin-bottom: 8px; }
.msg-received { background: #fff; border: 1.5px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.msg-sent { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.msg-time { font-size: 9px; opacity: 0.6; margin-top: 4px; text-align: right; }

/* ═══════════════════════════════════════════════════
   OFFER CARD — Offre directe en chat
   Perspectives: Automobiliste | Pro | Admin
═══════════════════════════════════════════════════ */
.msg-offer {
    background: #fff !important;
    color: var(--ink) !important;
    border: 1.5px solid var(--border) !important;
    border-top-width: 3px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    width: 265px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09) !important;
}
/* Pro sends → orange-red top accent */
.msg-sent.msg-offer {
    border-top-color: var(--accent) !important;
    border-bottom-right-radius: 4px !important;
}
/* Client receives → blue top accent */
.msg-received.msg-offer {
    border-top-color: var(--blue) !important;
    border-bottom-left-radius: 4px !important;
}
/* After acceptance → green top accent */
.msg-offer-accepted { border-top-color: var(--green) !important; }
/* After decline → red top accent */
.msg-offer-declined { border-top-color: #DC2626 !important; }

/* — Card top section: label + service + price — */
.offer-top {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
}
.offer-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 5px;
}
.offer-service-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 6px;
}
.offer-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.5px;
}
.offer-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 500;
}

/* — Status section (pending / badge) — */
.offer-status-section {
    padding: 10px 14px 8px;
}
.offer-pending {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}
.offer-pending::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #F5A623;
    flex-shrink: 0;
}
.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.badge-accepted { background: #DCFCE7; color: #166534; }
.badge-declined { background: #FEE2E2; color: #991B1B; }
.badge-countered { background: #FEF3C7; color: #92400E; }

/* — Action buttons (automobiliste receives offer) — */
.offer-actions {
    padding: 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.offer-actions-row {
    display: flex;
    gap: 6px;
}
/* Accept — primary, full width, solid green */
.btn-offer-accept {
    display: block; width: 100%;
    background: #16A34A; color: #fff;
    font-weight: 700; padding: 11px 14px;
    border: none; border-radius: 12px; font-size: 13px;
    cursor: pointer; font-family: 'Inter', sans-serif;
    text-align: center;
}
/* Counter — secondary */
.btn-offer-counter {
    flex: 1;
    background: #EFF6FF; color: var(--blue);
    font-weight: 600; padding: 10px 8px;
    border: none; border-radius: 12px; font-size: 12px;
    cursor: pointer; font-family: 'Inter', sans-serif;
    text-align: center;
}
/* Decline — tertiary, ghost */
.btn-offer-decline {
    flex: 1;
    background: #F3F4F6; color: #6B7280;
    font-weight: 500; padding: 10px 8px;
    border: none; border-radius: 12px; font-size: 12px;
    cursor: pointer; font-family: 'Inter', sans-serif;
    text-align: center;
}
.btn-offer-accept:active { background: #15803D; }
.btn-offer-counter:active { background: #DBEAFE; }
.btn-offer-decline:active { background: #E5E7EB; }

/* — Timestamp row — */
.offer-time-row {
    padding: 0 14px 8px;
    text-align: right;
}

/* Counter Popup */
.offer-popup-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    backdrop-filter: blur(2px);
}
.offer-popup {
    background: #fff; border-radius: 24px; width: 280px; padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
}
.offer-popup-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.offer-popup-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.offer-service-wrap { margin-bottom: 12px; }
.offer-service-input {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); font-family: 'Inter', sans-serif;
    font-size: 13px; outline: none; background: var(--surface);
    box-sizing: border-box; color: var(--ink);
}
.offer-service-input:focus { border-color: var(--accent); background: #fff; }
.offer-input-wrap { position: relative; margin-bottom: 16px; }
.offer-input-wrap span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); font-size: 14px; }
.offer-input {
    width: 100%; padding: 12px; border-radius: 12px; border: 2px solid var(--border);
    font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; text-align: center;
    outline: none; box-sizing: border-box; color: var(--ink);
}
.offer-input:focus { border-color: var(--accent); }
.offer-popup-btns { display: flex; gap: 12px; }
.btn-popup-cancel { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-popup-send { flex: 1; padding: 12px; border-radius: 12px; border: none; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }

.chat-input-area {
  background: #fff;
  padding: 12px 16px 24px;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-attach { font-size: 20px; color: var(--muted); cursor: pointer; }
.chat-ask-review { width: 36px; height: 36px; background: none; border: none; cursor: pointer; color: #F5A623; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.chat-ask-review:disabled { opacity: 0.4; }
.chat-input { flex: 1; background: var(--surface); border: none; padding: 12px 16px; border-radius: 20px; font-family: 'Inter', sans-serif; font-size: 13px; outline: none; }
.chat-send { width: 40px; height: 40px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; border: none; }
/* Review request message bubbles */
.msg-review-req-sent { opacity: 0.75; font-size: 12px; }
.msg-review-card { background: #fff !important; border: 1.5px solid #F5A623 !important; border-radius: 16px !important; padding: 14px 14px 10px !important; max-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.mrc-label { font-weight: 700; font-size: 13px; color: var(--ink); }
.mrc-text { font-size: 12px; color: var(--muted); line-height: 1.4; }
.mrc-btn { margin-top: 4px; background: var(--accent); color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; align-self: flex-start; }

/* ── RDV PROPOSAL MESSAGE CARD ── */
.msg-rdv-card {
    background: #fff !important;
    border: 1.5px solid #3175ed !important;
    border-top-width: 3px !important;
    border-radius: 16px !important;
    padding: 0 !important;
    width: 265px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09) !important;
}
.rdv-card-header {
    background: linear-gradient(135deg, #3175ed, #3175ed);
    border-radius: 13px 13px 0 0;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
}
.rdv-card-header-icon { font-size: 16px; }
.rdv-card-header-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.rdv-card-body { padding: 12px 14px 14px; }
.rdv-card-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--ink); }
.rdv-card-row-icon { font-size: 14px; flex-shrink: 0; }
.rdv-card-note { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 4px; line-height: 1.4; }
.rdv-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-rdv-confirm { flex: 1; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-rdv-decline { flex: 1; background: #FFF1F2; color: #DC2626; border: 1.5px solid #FECACA; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.rdv-status-badge { margin-top: 10px; display: flex; justify-content: center; }
.rdv-badge-confirmed { background: #DCFCE7; color: #16A34A; border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; }
.rdv-badge-declined { background: #FEF2F2; color: #DC2626; border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 700; }

/* ── INTERVENTION COMPLETE MESSAGE CARD ── */
.msg-complete-card {
    background: #fff !important;
    border: 1.5px solid var(--green) !important;
    border-top-width: 3px !important;
    border-radius: 16px !important;
    padding: 0 !important;
    width: 265px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09) !important;
}
.complete-card-header {
    background: linear-gradient(135deg, #0FA868, #059669);
    border-radius: 13px 13px 0 0;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
}
.complete-card-header-icon { font-size: 16px; }
.complete-card-header-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.complete-card-body { padding: 12px 14px 14px; }
.complete-card-service { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.complete-card-km { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.complete-card-notes { font-size: 12px; color: var(--muted); font-style: italic; line-height: 1.4; }
.complete-card-footer { display: flex; gap: 8px; margin-top: 12px; }
.btn-complete-review { flex: 1; background: #F5A623; color: #fff; border: none; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-complete-carnet { flex: 1; background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── RDV POPUP OVERLAY ── */
.rdv-popup-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: flex-end; justify-content: center; z-index: 2000;
    backdrop-filter: blur(2px);
}
.rdv-popup {
    background: #fff; border-radius: 24px 24px 0 0; width: 100%; padding: 24px 20px 40px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
}
.rdv-popup-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.rdv-popup-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.rdv-popup-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.rdv-date-input {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); font-family: 'Inter', sans-serif;
    font-size: 14px; outline: none; background: var(--surface);
    box-sizing: border-box; color: var(--ink); margin-bottom: 16px;
}
.rdv-date-input:focus { border-color: var(--blue); background: #fff; }
.rdv-slots { display: flex; gap: 8px; margin-bottom: 16px; }
.rdv-slot-btn {
    flex: 1; padding: 10px 4px; border-radius: 12px;
    border: 1.5px solid var(--border); background: #fff;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--muted); cursor: pointer; text-align: center; transition: all 0.15s;
}
.rdv-slot-btn.active {
    background: #3175ed; border-color: #3175ed; color: #fff;
}
.booking-slot-btn {
    flex: 1; padding: 10px 6px; border-radius: 12px;
    border: 1.5px solid var(--border); background: #fff;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--muted); cursor: pointer; text-align: center; transition: all 0.15s;
}
.booking-slot-btn.active {
    background: var(--ink); border-color: var(--ink); color: #fff;
}
.rdv-note-input {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); font-family: 'Inter', sans-serif;
    font-size: 13px; outline: none; background: var(--surface);
    box-sizing: border-box; color: var(--ink); margin-bottom: 20px;
    resize: none; height: 60px;
}
.rdv-note-input:focus { border-color: var(--blue); background: #fff; }
.rdv-popup-btns { display: flex; gap: 12px; }
.btn-rdv-cancel { flex: 1; padding: 13px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-rdv-send { flex: 1; padding: 13px; border-radius: 12px; border: none; background: #3175ed; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── COMPLETE POPUP OVERLAY ── */
.complete-popup-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: flex-end; justify-content: center; z-index: 2000;
    backdrop-filter: blur(2px);
}
.complete-popup {
    background: #fff; border-radius: 24px 24px 0 0; width: 100%; padding: 24px 20px 40px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.2);
}
.complete-popup-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.complete-popup-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.complete-km-wrap { position: relative; margin-bottom: 16px; }
.complete-km-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); font-size: 13px; pointer-events: none; }
.complete-km-input {
    width: 100%; padding: 12px 50px 12px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 700; outline: none; background: var(--surface);
    box-sizing: border-box; color: var(--ink);
}
.complete-km-input:focus { border-color: var(--green); background: #fff; }
.complete-notes-input {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); font-family: 'Inter', sans-serif;
    font-size: 13px; outline: none; background: var(--surface);
    box-sizing: border-box; color: var(--ink); margin-bottom: 20px;
    resize: none; height: 70px;
}
.complete-notes-input:focus { border-color: var(--green); background: #fff; }
.complete-popup-btns { display: flex; gap: 12px; }
.btn-complete-cancel { flex: 1; padding: 13px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }
.btn-complete-confirm { flex: 1; padding: 13px; border-radius: 12px; border: none; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── PRO INTERVENTIONS TAB ── */
.int-card {
    background: #fff; border-radius: 16px; margin-bottom: 10px;
    border: 1.5px solid var(--border); overflow: hidden;
}
.int-card-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.int-card-service { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.int-card-status { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.int-status-proposed { background: #FEF9C3; color: #854D0E; }
.int-status-confirmed { background: #DBEAFE; color: #1E40AF; }
.int-status-completed { background: #DCFCE7; color: #166534; }
.int-card-body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.int-card-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.int-card-row-val { color: var(--ink); font-weight: 500; }
.int-card-amount { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); }
.int-card-footer { padding: 0 14px 12px; }
.btn-mark-done { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 12px; padding: 12px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-mark-done:disabled { opacity: 0.5; cursor: default; }

/* ── CLIENT MES RDV SCREEN ── */
.rdv-booking-card { background: #fff; border-radius: 16px; margin-bottom: 10px; border: 1.5px solid var(--border); overflow: hidden; }
.rdv-booking-top { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.rdv-booking-service { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; }
.rdv-booking-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.rdv-booking-body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.rdv-booking-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rdv-booking-val { color: var(--ink); font-weight: 500; }
.rdv-booking-pro { font-weight: 700; color: var(--accent); }
.rdv-booking-actions { display: flex; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--border); }
.rdv-act-btn { flex: 1; padding: 8px 0; border-radius: 10px; font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; border: 1.5px solid; transition: opacity .15s; }
.rdv-act-reschedule { background: #fff; color: var(--ink); border-color: var(--border); }
.rdv-act-cancel { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.rdv-act-btn:active { opacity: .7; }

/* ── RDV compact row (pro Demandes tab) ── */
.rdv-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px 6px; }
.rdv-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 13px 14px; margin: 0 12px 8px; border: 1.5px solid var(--border); }
.rdv-row-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rdv-row-body { flex: 1; min-width: 0; }
.rdv-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rdv-row-client { font-size: 14px; font-weight: 700; color: var(--ink); }
.rdv-row-status { font-size: 11px; font-weight: 600; flex-shrink: 0; }
.rdv-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdv-row-date { font-size: 12px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.rdv-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rdv-icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.rdv-icon-btn:active { background: var(--surface); }
.rdv-icon-cancel { border-color: #FECACA; background: #FEF2F2; }

/* ── CHAT HINT BANNER ── */
#chat-hint-bar { display:flex; align-items:center; gap:8px; padding:9px 14px; background:#eef4ff; border-top:1px solid #E0E7FF; flex-shrink:0; }
.chat-hint-icon { font-size:15px; flex-shrink:0; }
.chat-hint-text { font-size:12px; color:#374151; flex:1; line-height:1.4; }
.chat-hint-cta { padding:5px 12px; background:var(--ink); color:#fff; border:none; border-radius:20px; font-family:'Space Grotesk',sans-serif; font-size:11px; font-weight:700; cursor:pointer; flex-shrink:0; white-space:nowrap; }
.chat-hint-cta:active { opacity:.8; }

/* ── CHAT TOAST ── */
.chat-toast { position:fixed; bottom:90px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--ink); color:#fff; padding:10px 18px; border-radius:20px; font-size:13px; font-weight:600; font-family:'Inter',sans-serif; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:9999; cursor:pointer; }
.chat-toast.chat-toast-show { opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }

/* ── VIA AUTOSERV BADGE (carnet d'entretien) ── */
.via-autoserv-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #3175ed, #5a95ff);
    color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.05em;
    padding: 2px 8px; border-radius: 20px; text-transform: uppercase;
}

/* ── CHAT SEND RDV BUTTON ── */
.chat-send-rdv {
    width: 36px; height: 36px; background: rgba(26,86,219,0.12);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #3175ed; cursor: pointer; border: none; flex-shrink: 0;
}


/* ── FORMS (SIGNUP/LOGIN) ── */
.form-container { width: 100%; padding: 0; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 4px; }
.input-group input, .input-group select { 
  width: 100%; 
  background: #fff; 
  border: 1px solid var(--border); 
  padding: 14px 16px; 
  border-radius: 12px; 
  font-family: 'Inter', sans-serif; 
  font-size: 14px; 
  color: var(--ink); 
  outline: none; 
  transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--accent); }
.input-group select { appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238A8D99%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 16px top 50%; background-size: 10px auto; }

/* Add vehicle: keep the form light while preserving mobile scroll behavior. */
.phone:has(#add-vehicle.active) {
  height: 100vh;
  height: 100lvh;
}
.s-add-vehicle {
  background: var(--surface) !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.s-add-vehicle > div:first-child {
  flex-shrink: 0;
}
.s-add-vehicle .form-container {
  background: var(--surface);
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-top: 0 !important;
  padding: 20px 20px calc(132px + var(--sab)) !important;
  scroll-padding-bottom: 280px;
}
.s-add-vehicle .form-container::-webkit-scrollbar {
  display: none;
}

/* ── NO RESULTS ── */
.no-results { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.no-results-icon { font-size: 36px; margin-bottom: 12px; }

/* ─────────────────────────────────────────
   AI DIAGNOSTIC GUIDE SCREEN
   ───────────────────────────────────────── */
.s-ai-guide { background: var(--surface); height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.ai-guide-header { padding: 48px 20px 14px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); display: flex; align-items: center; gap: 12px; }
.ai-guide-back { font-size: 22px; color: #ffffff80; cursor: pointer; line-height: 1; padding: 2px 6px; }
.ai-guide-title { flex: 1; font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.ai-guide-reset { font-size: 20px; color: #ffffff60; cursor: pointer; padding: 2px 4px; }
.ai-guide-steps { display: flex; align-items: center; padding: 0 24px 16px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.ai-step-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35); flex-shrink: 0; transition: all 0.3s; }
.ai-step-dot.active { background: #6C63FF; color: #fff; box-shadow: 0 0 0 4px rgba(108,99,255,0.3); }
.ai-step-dot.done { background: #22c55e; color: #fff; }
.ai-step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.12); margin: 0 6px; transition: background 0.3s; }
.ai-step-line.done { background: #22c55e; }
.ai-guide-body { flex: 1; overflow-y: auto; padding: 20px; }
.ai-guide-body::-webkit-scrollbar { display: none; }
/* Step 1 — Input */
.ai-guide-robot { font-size: 52px; text-align: center; margin-bottom: 6px; }
.ai-guide-greeting { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); text-align: center; margin-bottom: 4px; }
.ai-guide-sub-text { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 18px; line-height: 1.5; }
.ai-guide-textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink); background: #fff; resize: none; height: 88px; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.ai-guide-textarea:focus { border-color: #6C63FF; }
.ai-guide-chips-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 14px 0 8px; }
.ai-guide-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.ai-chip { background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 8px 13px; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all 0.15s; line-height: 1; touch-action: manipulation; min-height: 36px; display:inline-flex; align-items:center; }
.ai-chip:active { transform: scale(0.96); }
.ai-chip.selected { background: #6C63FF; border-color: #6C63FF; color: #fff; box-shadow: 0 3px 10px rgba(108,99,255,0.3); }
.ai-guide-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, #6C63FF, #3B82F6); color: #fff; border: none; border-radius: 14px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity 0.15s, transform 0.1s; margin-top: 4px; box-shadow: 0 4px 16px rgba(108,99,255,0.35); min-height: 48px; }
.ai-guide-btn:active { transform: scale(0.98); opacity: 0.9; }
.ai-guide-btn:disabled { opacity: 0.38; cursor: default; box-shadow: none; }
.ai-guide-btn-secondary { width: 100%; padding: 13px; background: none; color: var(--muted); border: 1.5px solid var(--border); border-radius: 14px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 10px; touch-action: manipulation; transition: background 0.15s; }
/* API Key setup */
.ai-key-setup { background: #fffbea; border: 1.5px solid #f59e0b; border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.ai-key-setup-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #d97706; margin-bottom: 4px; }
.ai-key-setup-sub { font-size: 11px; color: #92400e; margin-bottom: 10px; line-height: 1.55; }
.ai-key-input { width: 100%; box-sizing: border-box; border: 1.5px solid #f59e0b; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--ink); background: #fff; outline: none; font-family: monospace; }
/* Step 2 — Questions */
.ai-question-block { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.ai-question-num { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6C63FF; margin-bottom: 6px; }
.ai-question-text { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.4; }
.ai-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-option { background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 8px; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: center; line-height: 1.3; transition: all 0.15s; }
.ai-option.selected { background: rgba(108,99,255,0.08); border-color: #6C63FF; color: #6C63FF; font-weight: 700; }
/* Step 3 — Loading */
.ai-loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; }
.ai-loading-spinner { width: 52px; height: 52px; border: 3px solid rgba(108,99,255,0.18); border-top-color: #6C63FF; border-radius: 50%; animation: ai-spin 0.75s linear infinite; margin-bottom: 20px; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-loading-text { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ai-loading-sub { font-size: 12px; color: var(--muted); }
/* Step 4 — Result */
.ai-urgency-badge { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: 20px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; margin: 0 auto 12px; width: fit-content; }
.urgency-high { background: #fff0f0; color: #c0392b; }
.urgency-medium { background: #fff8e6; color: #d68910; }
.urgency-low { background: #eafaf1; color: #1e8449; }
.ai-result-summary { font-size: 13px; color: var(--ink); text-align: center; line-height: 1.65; margin-bottom: 20px; padding: 0 4px; }
.ai-section-label { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.ai-issue-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; margin-bottom: 8px; }
.ai-issue-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ai-issue-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); }
.ai-issue-pct { font-size: 12px; font-weight: 700; color: #6C63FF; }
.ai-issue-bar-bg { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.ai-issue-bar-fill { height: 100%; background: linear-gradient(90deg, #6C63FF, #3B82F6); border-radius: 3px; transition: width 0.8s ease; }
.ai-issue-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.ai-tip { background: #f8f7ff; border-left: 3px solid #6C63FF; border-radius: 0 10px 10px 0; padding: 9px 12px; font-size: 12px; color: var(--ink); line-height: 1.4; margin-bottom: 6px; }
.ai-pro-rec { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #6C63FF; border-radius: 14px; padding: 13px 16px; margin-bottom: 16px; cursor: pointer; transition: background 0.15s; }
.ai-pro-rec:active { background: rgba(108,99,255,0.05); }
.ai-pro-rec-icon { font-size: 26px; }
.ai-pro-rec-text { flex: 1; }
.ai-pro-rec-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 2px; }
.ai-pro-rec-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: #6C63FF; }
.ai-pro-rec-arrow { font-size: 20px; color: #6C63FF; }

#pro-notifs > div:first-child {
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,0.14);
}

/* ─────────────────────────────────────────
   URGENCE PROGRESS SCREEN
   ───────────────────────────────────────── */
.s-urgence-progress { background: #0e0f14; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.urp-header {
  display: flex; align-items: center; gap: 12px;
  padding: 52px 20px 16px;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(192,57,43,0.22);
}
.urp-back { font-size: 24px; color: #fff; cursor: pointer; line-height: 1; padding: 4px 8px; }
.urp-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: #fff; flex: 1; }
.urp-timer { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7); background: rgba(0,0,0,0.2); border-radius: 20px; padding: 4px 10px; }
.urp-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.urp-client-card {
  background: #1a1b22; border-radius: 16px; padding: 16px;
  display: flex; gap: 14px; align-items: center;
  border: 1px solid rgba(231,76,60,0.3);
}
.urp-client-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.urp-client-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.urp-vehicle { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.urp-service { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 4px; font-weight: 500; }
.urp-stepper {
  background: #1a1b22; border-radius: 16px; padding: 20px 16px;
  display: flex; align-items: center; gap: 0;
}
.urp-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.urp-step-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.urp-step-active .urp-step-dot { background: #e74c3c; border-color: #e74c3c; box-shadow: 0 0 0 4px rgba(231,76,60,0.25); }
.urp-step-done .urp-step-dot { background: #22c55e; border-color: #22c55e; }
.urp-step-label { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 600; text-align: center; white-space: nowrap; }
.urp-step-active .urp-step-label { color: #e74c3c; }
.urp-step-done .urp-step-label { color: #22c55e; }
.urp-step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.1); margin-bottom: 20px; }
.urp-action-btn {
  width: 100%; padding: 18px; border: none; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 800; color: #fff;
  transition: opacity 0.2s;
}
.urp-action-btn:active { opacity: 0.8; }
.urp-action-btn.urp-done { background: linear-gradient(135deg, #22c55e, #16a34a); }
.urp-contacts { display: flex; gap: 12px; }
.urp-contact-btn {
  flex: 1; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: opacity 0.2s;
}
.urp-call { background: #1a1b22; color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.urp-whatsapp { background: #25D366; color: #fff; }

/* ─────────────────────────────────────────
   RDV DETAIL SCREEN
   ───────────────────────────────────────── */
.s-rdv-detail { background: var(--surface); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.rdv-dh-header {
  display: flex; align-items: center; gap: 12px;
  padding: 52px 20px 16px;
  background: #fff; border-bottom: 1px solid var(--border);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
  flex-shrink: 0;
}
.rdv-dh-back { font-size: 24px; color: var(--ink); cursor: pointer; line-height: 1; padding: 4px 8px; }
.rdv-dh-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); }
.rdv-dh-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.rdv-dh-client {
  background: #fff; border-radius: 16px; padding: 16px;
  display: flex; gap: 14px; align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--border);
}
.rdv-dh-avatar {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink); flex-shrink: 0;
}
.rdv-dh-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.rdv-dh-vehicle { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rdv-dh-service-card, .rdv-dh-slot-card {
  background: #fff; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--border);
}
.rdv-dh-service-label, .rdv-dh-slot-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 6px;
}
.rdv-dh-service { font-size: 14px; color: var(--ink); font-weight: 500; }
.rdv-dh-slot-val {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink);
}
.rdv-dh-slot-card { border-left: 4px solid var(--accent); }
.rdv-dh-actions { display: flex; flex-direction: column; gap: 10px; }
.rdv-btn-confirm {
  width: 100%; padding: 16px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800;
}
.rdv-btn-row { display: flex; gap: 10px; }
.rdv-btn-suggest, .rdv-btn-refuse {
  flex: 1; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
}
.rdv-btn-suggest { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.rdv-btn-refuse { background: #fff0f0; color: #e74c3c; border: 1.5px solid #fca5a5; }
.rdv-suggest-section {
  background: #fff; border-radius: 14px; padding: 16px;
  border: 1.5px dashed var(--accent); flex-direction: column; gap: 10px;
}
.rdv-suggest-label { font-size: 12px; font-weight: 700; color: var(--accent); }
.rdv-suggest-input {
  width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--ink); outline: none; box-sizing: border-box;
}
.rdv-suggest-send {
  width: 100%; padding: 14px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 800;
}
.rdv-dh-toast {
  text-align: center; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 700; display: none;
}
.rdv-dh-toast.visible { display: block; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }


/* ─────────────────────────────────────────
   DIRECTIONS VIEW
   ───────────────────────────────────────── */
.s-directions {
  background: var(--surface);
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
}
.dir-header {
  display: flex; align-items: center; gap: 10px;
  padding: 48px 16px 12px;
  background: var(--ink); color: #fff;
  flex-shrink: 0;
}
.dir-back {
  font-size: 24px; cursor: pointer; color: #fff;
  width: 32px; text-align: center; flex-shrink: 0;
}
.dir-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 800; flex: 1;
}
.dir-pro-name {
  font-size: 11px; color: #ffffff80; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dir-map { flex: 0 0 46%; min-height: 200px; }
.dir-panel {
  flex: 1; overflow-y: auto; padding: 14px 16px 24px;
}
.dir-panel::-webkit-scrollbar { display: none; }
.dir-loading { text-align: center; padding: 24px; color: var(--muted); font-size: 14px; }
.dir-error { text-align: center; padding: 20px; color: #d32f2f; font-size: 13px; line-height: 1.6; }
.dir-fallback-note {
  background: #fdf2f2;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #991b1b;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
}
.dir-summary-card {
  display: flex; align-items: center; justify-content: space-around;
  background: #fff; border-radius: 16px; padding: 16px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.dir-sum-item { display: flex; align-items: center; gap: 8px; }
.dir-sum-icon { font-size: 20px; }
.dir-sum-val { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); }
.dir-sum-lbl { font-size: 10px; color: var(--muted); font-weight: 500; }
.dir-sum-divider { width: 1px; height: 32px; background: var(--border); }
.dir-copy-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 14px; padding: 13px 16px;
  background: var(--ink); color: #fff;
  border: none; border-radius: var(--radius-lg); cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600;
  transition: opacity 0.15s;
}
.dir-copy-btn:active { opacity: 0.8; }
.map-pro-pin {
  width: 32px; height: 32px; background: #fff;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 2px solid var(--accent);
}

/* ── APP PLACEMENTS / BANNERS ── */
.placement-slot:empty { display: none; }
.placement-slot { display: flex; flex-direction: column; gap: 10px; }

.placement-card {
  border-radius: 20px;
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 16px;
}
.placement-card.clickable { cursor: pointer; }
.placement-card.clickable:active { transform: scale(0.98); box-shadow: 0 4px 14px rgba(0,0,0,0.10); }
.pc-deco {
  position: absolute; right: -6px; top: -4px;
  font-size: 80px; line-height: 1; opacity: 0.12;
  pointer-events: none; user-select: none; transform: rotate(10deg);
}
.pc-inner { position: relative; z-index: 1; }
.pc-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; opacity: 0.6; margin-bottom: 6px;
}
.pc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 5px;
}
.pc-sub { font-size: 13px; line-height: 1.45; opacity: 0.78; margin-bottom: 14px; }
.pc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.28);
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.pc-cta:hover { background: rgba(255,255,255,0.25); }
.placement-card.pc-light .pc-cta { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }
.placement-card.pc-light .pc-cta:hover { background: rgba(0,0,0,0.12); }
.pc-dismiss {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.18); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; color: inherit; transition: background 0.13s; padding: 0;
}
.pc-dismiss:hover { background: rgba(0,0,0,0.30); }

/* ── Template: Image Background ── */
.pc-tmpl-image-bg { padding: 0; background: transparent !important; }
.pc-img-wrap { position: relative; border-radius: 20px; overflow: hidden; min-height: 160px; }
.pc-img-bg { width: 100%; height: 160px; object-fit: cover; display: block; }
.pc-img-overlay { position: absolute; inset: 0; pointer-events: none; }
.pc-img-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 18px 16px; }

/* ── Template: Split (text left, image right) ── */
.pc-tmpl-split { padding: 0; }
.pc-split-inner { display: flex; min-height: 120px; }
.pc-split-text { flex: 1; padding: 16px 12px 16px 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pc-split-image { width: 40%; flex-shrink: 0; border-radius: 0 20px 20px 0; overflow: hidden; }
.pc-split-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 120px; }

/* ── ADD MAINTENANCE — preset chips ── */
.add-maint-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 100px;
  display: flex;
  flex-direction: column;
}
.maint-presets-section {
  margin-bottom: 4px;
}
.maint-presets-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.maint-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.maint-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.maint-chip:hover {
  border-color: #d1d5db;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.maint-chip:active {
  transform: scale(0.96);
}
.maint-chip.selected {
  border-color: var(--accent);
  border-width: 2px;
  background: rgba(255, 77, 28, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 77, 28, 0.1);
}
.maint-chip-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.maint-chip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  display: block;
}
.maint-chip.selected .maint-chip-label {
  color: var(--accent);
}
.maint-form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.maint-form-divider::before,
.maint-form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
/* Preset cost hint placeholder */
.maint-chip-hint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
  margin-top: -2px;
}

/* ── Maintenance reminder cards & badges ── */
.reminder-maint-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border-left: 4px solid var(--border);
  margin-bottom: 8px;
}
.rem-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rem-ok       { background: #F0FDF4; color: #15803D; }
.rem-soon     { background: #FFF8E6; color: #D97706; }
.rem-critical { background: #FFF1F2; color: #DC2626; }

/* ─────────────────────────────────────────
   CLIENT PICKER SCREEN
   ───────────────────────────────────────── */
.s-client-picker { background: var(--surface); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.cpk-header {
  display: flex; align-items: center; gap: 10px;
  padding: 52px 20px 16px;
  background: #111827; border-bottom: 1px solid #1e293b;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,0.14);
}
.cpk-back { font-size: 24px; color: #fff; cursor: pointer; line-height: 1; padding: 4px 8px; }
.cpk-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: #fff; flex: 1; }
.cpk-context-chip {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: rgba(49,117,237,0.2); color: var(--accent); border: 1px solid rgba(49,117,237,0.35);
  white-space: nowrap;
}
.cpk-search-bar { padding: 12px 16px 8px; flex-shrink: 0; }
.cpk-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 14px; font-size: 14px; color: var(--ink); outline: none;
  background: #fff; box-sizing: border-box; transition: border-color 0.15s;
}
.cpk-input:focus { border-color: var(--accent); }
.cpk-list { flex: 1; overflow-y: auto; padding: 0 16px 4px; display: flex; flex-direction: column; gap: 8px; }
.cpk-list::-webkit-scrollbar { display: none; }
.cpk-card {
  background: #fff; border-radius: 14px; border: 1.5px solid var(--border);
  padding: 14px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; touch-action: manipulation; transition: border-color 0.15s, box-shadow 0.15s;
}
.cpk-card:active { border-color: var(--accent); box-shadow: 0 2px 12px rgba(49,117,237,0.12); }
.cpk-avatar {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink);
}
.cpk-card-info { flex: 1; min-width: 0; }
.cpk-card-name { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
.cpk-card-vehicle { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpk-card-last { font-size: 11px; color: #9CA3AF; margin-top: 1px; }
.cpk-card-arrow { font-size: 18px; color: var(--muted); flex-shrink: 0; }
.cpk-new-section { padding: 12px 16px 16px; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.cpk-new-btn {
  width: 100%; padding: 13px; border: 2px dashed var(--border); border-radius: 14px;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.cpk-new-btn:active { border-color: var(--accent); color: var(--accent); }
.cpk-continue-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: var(--accent); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 800;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   NEW RDV SCREEN (pro-initiated)
   ───────────────────────────────────────── */
.s-new-rdv { background: var(--surface); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.nrdv-header {
  display: flex; align-items: center; gap: 12px;
  padding: 52px 20px 16px;
  background: #fff; border-bottom: 1px solid var(--border);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
  flex-shrink: 0;
}
.nrdv-back { font-size: 24px; color: var(--ink); cursor: pointer; line-height: 1; padding: 4px 8px; }
.nrdv-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 800; color: var(--ink); }
.nrdv-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 32px; }
.nrdv-body::-webkit-scrollbar { display: none; }
.nrdv-client-card {
  background: #fff; border-radius: 16px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid var(--border);
}
.nrdv-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; color: var(--ink);
}
.nrdv-client-info { flex: 1; min-width: 0; }
.nrdv-client-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.nrdv-client-vehicle { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nrdv-change-link { font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.nrdv-section { display: flex; flex-direction: column; gap: 8px; }
.nrdv-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.nrdv-input, .nrdv-textarea {
  width: 100%; padding: 14px; border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 14px; color: var(--ink); outline: none; background: #fff;
  box-sizing: border-box; font-family: inherit; transition: border-color 0.15s;
}
.nrdv-input:focus, .nrdv-textarea:focus { border-color: var(--accent); }
.nrdv-textarea { resize: none; min-height: 72px; }
.nrdv-create-btn {
  width: 100%; padding: 16px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800;
  margin-top: 4px;
}
.nrdv-toast {
  text-align: center; padding: 12px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 700; display: none;
}
.nrdv-toast.visible { display: block; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ── Photo lightbox ─────────────────────────────────────────────────────── */
#photo-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
#photo-lightbox.open { opacity: 1; pointer-events: all; }
#photo-lightbox img {
  max-width: 92vw; max-height: 82vh;
  border-radius: 16px;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
#photo-lightbox.open img { transform: scale(1); }
#photo-lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.photo-thumb img { cursor: pointer; }

/* ── Verification action (pro-edit header) ────────────────── */
.ped-icon-btn.ped-verify-request-btn {
  border-color: rgba(96,165,250,0.42);
  background: rgba(49,117,237,0.15);
  color: #bfdbfe;
  margin-top: 0;
}
.ped-icon-btn.ped-verify-request-btn.verified {
  border-color: rgba(34,197,94,0.42);
  background: rgba(34,197,94,0.16);
  color: #4ade80;
}
.ped-icon-btn.ped-verify-request-btn.pending {
  border-color: rgba(147,197,253,0.65);
  border-style: dashed;
  background: rgba(96,165,250,0.14);
  color: #dbeafe;
}
.ped-icon-btn.ped-verify-request-btn:disabled {
  opacity: 1;
  cursor: default;
}

/* ── Category Multi-Select Grid (signup + pro-edit) ────────────────────── */
.cat-multiselect-grid {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0;
}
.cat-ms-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.cat-ms-item.selected {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.cat-ms-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-ms-name { font-size: 12px; }
.cat-ms-check { display: none; font-size: 11px; margin-left: 2px; }
.cat-ms-item.selected .cat-ms-check { display: inline; }
/* Read-only state for pro-edit categories grid */
.cat-multiselect-grid.ped-readonly .cat-ms-item { pointer-events: none; opacity: 0.7; }
/* In-signup version uses form-like styling */
.cat-multiselect-grid#signup-categories-grid { background: var(--surface); padding: 10px; border-radius: 12px; border: 1px solid var(--border); }

/* ── Pro-edit read-only styles ──────────────────────────────────────────── */
.ped-input.ped-readonly, .ped-textarea.ped-readonly {
  background: var(--surface); color: var(--ink); opacity: 0.75;
  cursor: default;
}
/* ped-cat-grid inside ped-section (tighter padding) */
.ped-cat-grid { padding: 0; margin-top: 4px; }

/* ── Pro-edit action bar (edit mode) ────────────────────────────────────── */
.ped-edit-bar {
  position: absolute; left: 16px; right: 16px;
  bottom: calc(92px + var(--sab));
  display: flex; gap: 10px; padding: 10px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(17,24,39,0.16);
  z-index: 170; flex-shrink: 0;
  backdrop-filter: blur(14px);
}
.ped-cancel-btn {
  flex: 1; padding: 13px 0; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--ink); cursor: pointer;
}
.ped-edit-bar .ped-save-btn {
  flex: 2; padding: 13px 0; border-radius: 14px; font-size: 14px;
}

/* ── Urgency hours picker ────────────────────────────────────────────────── */
.ped-urgency-hours {
  margin: 10px 0 4px; padding: 14px 16px;
  background: #fff8f6; border: 1px solid rgba(49,117,237,0.2);
  border-radius: 14px;
  overflow: hidden;
}
.ped-urgency-hours-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--accent); margin-bottom: 10px;
}
.ped-urgency-apply-btn {
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: none;
  background: var(--accent); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer; justify-self: end; max-width: 100%;
  grid-column: 1 / -1;
}
.ped-urgency-apply-btn:disabled { opacity: 0.6; cursor: default; }
.ped-urgency-hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}
.ped-urgency-time-field {
  min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.ped-urgency-time-field label {
  font-size: 11px; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 500;
}
.ped-time-input {
  padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink);
  -webkit-appearance: none; width: 100%; box-sizing: border-box;
}
.ped-urgency-time-sep {
  font-size: 18px; color: var(--muted); padding-top: 16px;
}
/* Inline range shown inside the setting row after hours are saved */
.ped-urgency-range-inline {
  display: flex; align-items: center; gap: 4px;
  margin-top: 3px;
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted);
}
.ped-urgency-range-inline strong { color: var(--accent); font-weight: 600; }

/* ── Address autocomplete dropdown ──────────────────────────────────────── */
.addr-autocomplete-wrap { position: relative; }
.addr-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 9999; overflow: hidden; max-height: 220px; overflow-y: auto;
}
.addr-suggestion-item {
  padding: 10px 14px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--border); line-height: 1.4;
  display: flex; align-items: flex-start; gap: 8px;
}
.addr-suggestion-item:last-child { border-bottom: none; }
.addr-suggestion-item:hover, .addr-suggestion-item.focused { background: #f9fafb; }
.addr-suggestion-icon { flex-shrink: 0; margin-top: 1px; color: var(--muted); }
.addr-suggestion-main { font-weight: 600; }
.addr-suggestion-sub { font-size: 11px; color: var(--muted); }

/* ── Pro-edit hours with time inputs ────────────────────────────────────── */
.ped-hours-row {
  display: flex; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.ped-hours-row:last-child { border-bottom: none; }
.ped-hours-day {
  width: 38px; font-family: 'Inter', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--ink); flex-shrink: 0;
}
.ped-hours-right {
  flex: 1; display: flex; align-items: center; gap: 8px;
}
.ped-hours-times {
  display: flex; align-items: center; gap: 6px; flex: 1;
}
.ped-htime-input {
  padding: 5px 8px; border-radius: 8px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink);
  width: 88px; -webkit-appearance: none;
}
.ped-htime-input:disabled { background: var(--surface); opacity: 0.6; }
.ped-htimesep {
  font-size: 12px; color: var(--muted); flex-shrink: 0;
}
.ped-hours-closed {
  flex: 1; font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--muted); font-style: italic;
}
.phidden { display: none !important; }
.ped-htoggle {
  width: 30px; height: 18px; background: var(--border); border-radius: 9px;
  position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s;
}
.ped-htoggle.on { background: #22c55e; }
.ped-htoggle::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; top: 2px; left: 2px;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ped-htoggle.on::after { transform: translateX(12px); }


/* ==========================================
   PRO INBOX (Messages)
   ========================================== */
.s-pro-inbox {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
}
.pinbox-header {
  display: flex; align-items: center; gap: 12px;
  padding: 56px 20px 16px; background: #111827;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17,24,39,0.14);
}
.pinbox-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; cursor: pointer; flex-shrink: 0;
}
.pinbox-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; color: #fff; flex: 1;
}
.pinbox-list {
  flex: 1; overflow-y: auto;
  padding: 12px 16px 96px;
  display: flex; flex-direction: column; gap: 8px;
}
.pinbox-empty {
  text-align: center; color: var(--muted);
  font-size: 14px; margin-top: 48px;
}
.pinbox-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: box-shadow 0.15s;
}
.pinbox-card:active { box-shadow: var(--shadow-md); }
.pinbox-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; flex-shrink: 0;
}
.pinbox-info {
  flex: 1; min-width: 0;
}
.pinbox-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pinbox-last {
  font-size: 13px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pinbox-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0;
}
.pinbox-time {
  font-size: 11px; color: var(--muted);
}
.pinbox-unread {
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ==========================================
   CLIENT PROFILE EDIT BUTTON
   ========================================== */
.c-prof-edit-btn {
  margin-left: auto; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
}

/* ==========================================
   CLIENT EDIT PROFILE SCREEN
   ========================================== */
.s-client-edit {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
}
.ced-header {
  display: flex; align-items: center; gap: 12px;
  padding: 56px 20px 16px; background: #111827; flex-shrink: 0;
}
.ced-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; cursor: pointer; flex-shrink: 0;
}
.ced-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; color: #fff;
}
.ced-body {
  flex: 1; overflow-y: auto;
  padding: 24px 20px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.ced-avatar-wrap {
  display: flex; justify-content: center; margin-bottom: 4px;
  position: relative; width: fit-content; align-self: center;
}
.ced-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ced-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ced-avatar-cam {
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.ced-avatar-cam::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.ced-avatar-cam:active { transform: scale(0.92); }
.ced-field {
  display: flex; flex-direction: column; gap: 6px;
}
.ced-label {
  font-family: 'Inter', sans-serif; font-size: 12px;
  font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ced-input {
  padding: 13px 16px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); background: #fff;
  font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color 0.15s;
}
.ced-input:focus { border-color: var(--accent); }
.ced-save-btn {
  margin-top: 8px; padding: 15px;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius-lg); font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s;
}
.ced-save-btn:disabled { opacity: 0.6; }
.ced-toast {
  text-align: center; font-size: 13px; color: #22c55e;
  font-family: 'Inter', sans-serif; min-height: 20px;
}

/* ── RDV2 — Client Mes RDV cards ─────────────────────────────────────────── */
.rdv2-group-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding: 20px 0 8px;
}
.rdv2-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  transition: opacity 0.2s;
}
.rdv2-card-muted { opacity: 0.6; }
.rdv2-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.rdv2-service {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
  flex: 1;
}
.rdv2-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.rdv2-divider {
  height: 1px; background: var(--border); margin: 0 0 12px;
}
.rdv2-rows {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 14px;
}
.rdv2-row {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--muted);
}
.rdv2-row span { color: var(--ink); }
.rdv2-note span { color: var(--muted) !important; font-style: italic; }
.rdv2-actions {
  display: flex; gap: 8px;
}
.rdv2-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 0;
  border: none; border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
}
.rdv2-btn-reschedule {
  background: #EFF6FF; color: #1D4ED8;
}
.rdv2-btn-cancel {
  background: #FEF2F2; color: #DC2626;
}
.rdv2-btn:active { opacity: 0.75; }

/* ── RDV2 — Pro compact cards ────────────────────────────────────────────── */
.rdv2-pro-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 14px 14px 14px 16px;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
.rdv2-pro-card-left {
  position: relative; flex-shrink: 0;
}
.rdv2-pro-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
}
.rdv2-pro-dot {
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff;
}
.rdv2-pro-card-body {
  flex: 1; min-width: 0;
}
.rdv2-pro-card-top {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
}
.rdv2-pro-client {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rdv2-pro-status {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.rdv2-pro-service {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--muted); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rdv2-pro-date {
  display: flex; align-items: center;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted);
}
.rdv2-pro-actions {
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.rdv2-icon-btn {
  width: 34px; height: 34px; border-radius: 12px;
  border: none; background: #F3F4F6; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.rdv2-icon-btn:hover { background: #E5E7EB; color: var(--ink); }
.rdv2-icon-cancel { background: #FEF2F2; color: #DC2626; }
.rdv2-icon-cancel:hover { background: #FEE2E2; }
.rdv2-icon-complete { background: #F0FDF4; color: #059669; }
.rdv2-icon-complete:hover { background: #DCFCE7; }

/* ── RDV Tabs ────────────────────────────────────────────────────────────── */
.rdv-tabs {
  display: flex; background: #fff;
  border-bottom: 1.5px solid var(--border); flex-shrink: 0;
}
.rdv-tab {
  flex: 1; text-align: center; padding: 13px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px; transition: all 0.15s;
  touch-action: manipulation; min-height: 44px;
}
.rdv-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── RDV Calendar ────────────────────────────────────────────────────────── */
.rdv-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.rdv-cal-nav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink); cursor: pointer;
  transition: background 0.15s; line-height: 1;
}
.rdv-cal-nav-btn:active { background: var(--border); }
.rdv-cal-month-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--ink);
  text-transform: capitalize;
}
.rdv-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.rdv-cal-dow {
  text-align: center; font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700; color: var(--muted);
  padding: 4px 0 8px; letter-spacing: 0.05em; text-transform: uppercase;
}
.rdv-cal-day {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 46px; border-radius: 12px; cursor: default;
  transition: background 0.15s;
}
.rdv-cal-day.has-rdv { cursor: pointer; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.rdv-cal-day.has-rdv:active { background: #F3F4F6; }
.rdv-cal-day-num {
  font-family: 'Inter', sans-serif; font-size: 13px;
  font-weight: 500; color: var(--ink); line-height: 1;
  width: 28px; height: 28px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
}
.rdv-cal-day.today .rdv-cal-day-num {
  background: var(--ink); color: #fff;
}
.rdv-cal-day.other-month .rdv-cal-day-num { color: #D1D5DB; }
.rdv-cal-dots {
  display: flex; gap: 3px; margin-top: 4px; min-height: 6px;
}
.rdv-cal-dot { width: 5px; height: 5px; border-radius: 50%; }

/* ── RDV Detail Sheet ────────────────────────────────────────────────────── */
#rdv-detail-sheet-overlay {
  position: fixed; inset: 0; z-index: 8499;
  background: rgba(0,0,0,0.35); opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}
#rdv-detail-sheet-overlay.open { opacity: 1; pointer-events: auto; }
#rdv-detail-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8500;
  background: var(--surface); border-radius: 24px 24px 0 0;
  padding-bottom: 96px; box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(.32,.72,0,1);
  max-height: 80vh; overflow-y: auto;
}
#rdv-detail-sheet.open { transform: translateY(0); }

/* ── Pro Clients Header ─────────────────────────────────────────────────── */
#pro-clients > .header-glass {
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  border-bottom: none !important;
  box-shadow: 0 8px 24px rgba(17,24,39,0.10);
}

#pro-clients > .header-glass + div {
  padding-top: 28px !important;
}
.rdv-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 12px auto 4px;
}
.rdv-sheet-date-header {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--ink);
  padding: 12px 20px 16px; text-transform: capitalize;
}
.rdv-sheet-cards {
  padding: 0 16px; display: flex; flex-direction: column; gap: 12px;
}

/* ── Pro-edit Info Card (view mode) ──────────────────────────────────────── */
.ped-icard {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 20px 18px 18px;
  margin-bottom: 4px;
}
.ped-icard-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--ink);
  margin-bottom: 8px;
}
.ped-icard-cats {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.ped-icard-pill {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  background: #F3F4F6; color: var(--muted);
  padding: 4px 10px; border-radius: 20px;
}
.ped-icard-rating {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 14px;
}
.ped-icard-star { color: #F59E0B; font-size: 16px; }
.ped-icard-rval {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.ped-icard-rcount {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--muted);
}
.ped-icard-divider {
  height: 1px; background: var(--border);
  margin: 0 0 14px;
}
.ped-icard-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink);
  margin-bottom: 10px;
}
.ped-icard-row:last-of-type { margin-bottom: 0; }
.ped-icard-bio {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--muted);
  line-height: 1.5; margin-top: 14px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Pro Notifications Screen ────────────────────────────────────────────── */
.s-pro-notifs { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.pro-notif-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.pro-notif-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border-radius: 20px;
  border: 1.5px solid var(--border);
  padding: 14px; margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.1s, box-shadow 0.1s;
}
.pro-notif-card[onclick] { cursor: pointer; }
.pro-notif-card[onclick]:active { transform: scale(0.985); box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.pro-notif-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pro-notif-body { flex: 1; min-width: 0; }
.pro-notif-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 3px;
}
.pro-notif-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--muted); line-height: 1.4;
  margin-bottom: 4px;
}
.pro-notif-ts {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.pro-notif-accept-btn {
  margin-top: 10px; width: 100%; padding: 11px 0;
  border: none; border-radius: 12px;
  background: #DC2626; color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity 0.15s;
}
.pro-notif-accept-btn:active { opacity: 0.75; }

/* ─────────────────────────────────────────
   PRO CLIENT PROFILE SCREEN
   ───────────────────────────────────────── */
.s-pro-cp {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.pcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 20px 14px;
  background: var(--surface);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 18px rgba(17,24,39,0.04);
  flex-shrink: 0;
}
.pcp-back {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  line-height: 1;
  color: var(--ink) !important;
  cursor: pointer;
  border-radius: 14px !important;
  background: rgba(17,24,39,0.08) !important;
  border: 1.5px solid rgba(17,24,39,0.08) !important;
  box-shadow: 0 8px 18px rgba(17,24,39,0.08);
  transition: background 0.15s, transform 0.1s;
  box-sizing: border-box;
}
.pcp-back:active { background: rgba(17,24,39,0.14) !important; transform: scale(0.94); }
.pcp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--ink);
}
.pcp-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 100px;
}
.pcp-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* Hero */
.pcp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 20px;
  gap: 6px;
}
.pcp-hero-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  flex-shrink: 0;
}
.pcp-hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
}
.pcp-hero-vehicle {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--muted);
}

/* Action buttons */
.pcp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.pcp-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  border-radius: 16px;
  border: none;
  background: #fff;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-width: 72px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.pcp-action-btn:active { transform: scale(0.95); }
.pcp-action-btn span:first-child { font-size: 20px; }
.pcp-action-primary {
  background: var(--ink);
  color: #fff;
}

/* Stats strip */
.pcp-stats-strip {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 18px 0;
  margin-bottom: 20px;
}
.pcp-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pcp-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.pcp-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--ink);
}
.pcp-stat-val-sm {
  font-size: 15px;
}
.pcp-stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500; color: var(--muted);
  text-align: center;
}

/* Sections */
.pcp-section {
  margin-bottom: 16px;
}
.pcp-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-left: 2px;
}

/* Contact chips */
.pcp-contact-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcp-contact-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s;
}
.pcp-contact-muted { color: var(--muted); cursor: default; }
.pcp-contact-chip:active { transform: scale(0.98); }
.pcp-chip-icon { font-size: 18px; }

/* Vehicle card */
.pcp-vehicle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.pcp-vehicle-icon { font-size: 22px; }

/* RDV history */
.pcp-rdv-list {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pcp-rdv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.pcp-rdv-row:last-child { border-bottom: none; }
.pcp-rdv-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--muted);
  min-width: 48px;
  flex-shrink: 0;
}
.pcp-rdv-service {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; color: var(--ink);
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcp-rdv-status {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pcp-empty-rdv {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* Profile button on cpk-card */
.cpk-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(17,24,39,0.06);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  margin-right: 2px;
}
.cpk-profile-btn:active { background: rgba(17,24,39,0.14); }

/* Pinbox avatar clickable */
.pinbox-avatar-btn {
  cursor: pointer;
  transition: opacity 0.15s;
}
.pinbox-avatar-btn:active { opacity: 0.7; }

/* ── REPORT MODAL ── */
#report-modal { display: none; }
#report-modal.open { display: flex; }

.report-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 12px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  animation: slideUpSheet 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.report-sheet-handle {
  width: 36px; height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  margin: 0 auto 4px;
}

.report-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-sheet-icon {
  width: 40px; height: 40px;
  background: #FEF2F2;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.report-sheet-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 800;
  color: #111827;
}

.report-sheet-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: #6B7280;
  margin-top: 1px;
}

.report-reason-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.report-reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-reason-btn {
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.report-reason-btn.selected {
  background: #FEF2F2;
  border-color: #d32f2f;
  color: #d32f2f;
  font-weight: 700;
}

.report-reason-btn:active { transform: scale(0.97); }

.report-desc-input {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111827;
  resize: none;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.report-desc-input:focus { border-color: #d32f2f; }

.report-sheet-actions {
  display: flex;
  gap: 10px;
}

.report-btn-cancel {
  flex: 1;
  background: #F3F4F6;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #374151;
  cursor: pointer;
}

.report-btn-submit {
  flex: 2;
  background: #d32f2f;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.report-btn-submit:disabled { opacity: 0.4; cursor: default; }
.report-btn-submit:not(:disabled):active { opacity: 0.85; }

/* Block toggle row */
.report-block-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.report-block-toggle:active { background: #FEE2E2; }

.report-block-icon {
  width: 32px; height: 32px;
  background: #FEE2E2;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.report-block-text { flex: 1; }
.report-block-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #111827;
}
.report-block-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px; color: #6B7280;
  margin-top: 1px;
}

/* Toggle switch */
.rbs-wrap { position: relative; flex-shrink: 0; }
.rbs-wrap input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.rbs-visual {
  width: 44px; height: 26px;
  background: #D1D5DB;
  border-radius: 13px;
  position: relative;
  transition: background 0.2s;
}
.rbs-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.rbs-wrap input:checked + .rbs-visual { background: #d32f2f; }
.rbs-wrap input:checked + .rbs-visual .rbs-thumb { transform: translateX(18px); }

/* pcp report action button */
.pcp-action-report {
  background: #FEF2F2;
  color: #d32f2f;
  border: 1.5px solid #FECACA;
}

/* report flag button in pro profile action bar */
#btn-report-pro { border-color: #FECACA; }

/* ── SERVICE TAG-INPUT (Booking form) ─────────────────────────────────────── */
.booking-service-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff; cursor: text;
  min-height: 48px; box-sizing: border-box;
}
.booking-service-wrap:focus-within { border-color: var(--ink); }
.booking-service-input {
  border: none; outline: none; font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--ink); flex: 1; min-width: 100px;
  background: transparent; padding: 2px 0;
}
.booking-service-tags { display: contents; }
.booking-service-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: #111827; color: #fff; border-radius: 20px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.booking-service-tag-remove {
  cursor: pointer; opacity: 0.65; font-size: 15px; line-height: 1;
}
.booking-service-tag-remove:hover { opacity: 1; }
.booking-service-dropdown {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; margin-top: 4px; overflow: hidden;
  box-shadow: var(--shadow-md); max-height: 200px; overflow-y: auto;
  position: absolute; left: 0; right: 0; z-index: 200;
}
.booking-service-option {
  padding: 10px 14px; font-size: 14px; color: var(--ink);
  cursor: pointer; transition: background 0.1s;
}
.booking-service-option:hover { background: var(--surface); }
.booking-service-option mark { background: none; color: var(--accent); font-weight: 700; }

/* ── PRICE NEGOTIATION — Client side (mes-rdv cards) ─────────────────────── */
.rdv2-price-section {
  padding: 10px 14px 6px; border-top: 1px solid var(--border);
}
.rdv2-price-proposed {
  font-size: 14px; color: var(--ink); margin-bottom: 8px;
}
.rdv2-price-proposed strong { color: var(--accent); }
.rdv2-price-actions {
  display: flex; gap: 8px;
}
.rdv2-btn-accept-price {
  background: #F0FDF4; color: #15803D; flex: 1;
}
.rdv2-btn-negotiate {
  background: var(--surface); color: var(--ink); flex: 1;
}
.rdv2-price-accepted-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #15803D; font-weight: 600;
  padding: 4px 0;
}
.rdv2-price-countered {
  font-size: 13px; color: var(--muted); font-style: italic;
}
.rdv2-price-countered a { color: var(--accent); text-decoration: none; font-weight: 600; }
.rdv2-price-waiting {
  font-size: 12px; color: var(--muted); font-style: italic; padding: 4px 0;
}

/* ── PRICE MANAGEMENT — Pro side (pro-requests cards) ────────────────────── */
.rdv2-price-input-section {
  padding: 10px 0 4px; display: flex; flex-direction: column; gap: 6px;
}
.rdv2-price-input-row {
  display: flex; align-items: center; gap: 6px;
}
.rdv2-price-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 10px; font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--ink); outline: none;
}
.rdv2-price-input:focus { border-color: var(--ink); }
.rdv2-price-unit {
  font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.rdv2-btn-send-price {
  background: var(--accent); color: #fff; font-size: 12px; padding: 8px 14px;
}
.rdv2-btn-confirm-rdv {
  background: #15803D; color: #fff; font-size: 12px; padding: 8px 14px;
  display: flex; align-items: center; justify-content: center;
}
.rdv2-price-pending-label {
  font-size: 12px; color: var(--muted); font-style: italic;
}
.rdv2-price-accepted-pro {
  font-size: 13px; color: #15803D; font-weight: 600;
}
.rdv2-price-counter-hint {
  font-size: 11px; color: #C2410C; font-weight: 600;
  background: #FFF7ED; border-radius: 8px; padding: 4px 8px;
}

/* ── RDV FILTER CHIPS ─────────────────────────────────────────────────────── */
.rdv-filter-chips {
  display: flex; gap: 8px; padding: 10px 16px 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.rdv-filter-chips::-webkit-scrollbar { display: none; }
.rdv-filter-chip {
  flex-shrink: 0; border: 1.5px solid var(--border);
  border-radius: 20px; background: #fff; color: var(--muted);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  padding: 5px 14px; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.rdv-filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.rdv-filter-chip.active {
  background: var(--ink); border-color: var(--ink);
  color: #fff; font-weight: 600;
}

/* ── CALENDAR DOT LEGEND ──────────────────────────────────────────────────── */
.rdv-cal-legend {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  padding: 10px 16px 4px;
}
.rdv-cal-legend-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); font-family: 'Inter', sans-serif;
}
.rdv-cal-legend-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   i18n — Language Picker Pill + RTL overrides
   ══════════════════════════════════════════════════════════════ */

/* ── Splash language picker pill ── */
.lang-pill {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 40px;
  padding: 3px;
  gap: 2px;
  width: fit-content;
  margin: 0 auto 20px;
}
.lang-pill-btn {
  background: transparent;
  border: none;
  border-radius: 32px;
  padding: 6px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-pill-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(49,117,237,0.4);
}

/* ── RTL global overrides ── */
[dir="rtl"] body {
  font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
}
[dir="rtl"] .bottom-nav {
  flex-direction: row-reverse;
}
[dir="rtl"] .home-header-top,
[dir="rtl"] .pdash-topbar,
[dir="rtl"] .rdv-dh-header,
[dir="rtl"] .pinbox-header,
[dir="rtl"] .proq-header,
[dir="rtl"] .rdv-dh-client {
  flex-direction: row-reverse;
}
[dir="rtl"] .home-header-top {
  flex-direction: row;
}
[dir="rtl"] .home-header-top > div:first-child {
  text-align: right;
}
/* Menu items */
[dir="rtl"] .menu-item {
  flex-direction: row-reverse;
}
[dir="rtl"] .menu-arrow {
  transform: scaleX(-1);
}
/* Form inputs */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}
/* Home search bar */
[dir="rtl"] .home-search-bar {
  flex-direction: row-reverse;
}
/* Filter chips rows */
[dir="rtl"] .home-filter-chips,
[dir="rtl"] .rdv-filter-chips,
[dir="rtl"] .rdv-tabs,
[dir="rtl"] .map-filter-chips {
  flex-direction: row-reverse;
}
/* Pro edit section rows */
[dir="rtl"] .ped-setting-row,
[dir="rtl"] .ped-menu-item,
[dir="rtl"] .ped-info-row {
  flex-direction: row-reverse;
}
[dir="rtl"] .ped-menu-arrow {
  transform: scaleX(-1);
}
/* RDV detail / slot cards */
[dir="rtl"] .rdv-dh-actions,
[dir="rtl"] .rdv-btn-row,
[dir="rtl"] .urp-contacts {
  flex-direction: row-reverse;
}
/* Chat */
[dir="rtl"] .chat-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .chat-input-area {
  flex-direction: row-reverse;
}
[dir="rtl"] .msg-sent {
  border-radius: 16px 4px 16px 16px;
}
[dir="rtl"] .msg-received {
  border-radius: 4px 16px 16px 16px;
}
/* Urgency banner & progress */
[dir="rtl"] .pdash-avail {
  flex-direction: row-reverse;
}
[dir="rtl"] .urp-stepper {
  flex-direction: row-reverse;
}
/* Emergency grid & location */
[dir="rtl"] #emerg-loc-buttons {
  flex-direction: row-reverse;
}
/* KPI grid labels */
[dir="rtl"] .pdash-kpi-card {
  text-align: center;
}
/* Client/Pro profile header */
[dir="rtl"] .c-prof-header,
[dir="rtl"] .pcp-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .profile-hero {
  text-align: right;
}
[dir="rtl"] .profile-avatar {
  margin-left: auto;
  margin-right: 0;
}
[dir="rtl"] .profile-back {
  left: auto;
  right: 20px;
}
[dir="rtl"] .profile-share {
  left: 20px;
  right: auto;
}
[dir="rtl"] .profile-heart {
  left: 52px;
  right: auto;
}
[dir="rtl"] .profile-gname,
[dir="rtl"] .profile-cat {
  text-align: right;
}
[dir="rtl"] .profile-cat.profile-cat-badges {
  justify-content: flex-start;
}
[dir="rtl"] .profile-stats-row {
  justify-content: flex-start;
}
/* Section headers with see-all */
[dir="rtl"] .home-section-header,
[dir="rtl"] .pdash-section-header,
[dir="rtl"] .pdash-cal-card-header {
  flex-direction: row-reverse;
}
/* Popup buttons row */
[dir="rtl"] .offer-popup-btns {
  flex-direction: row-reverse;
}
/* Report sheet */
[dir="rtl"] .report-sheet-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .report-block-toggle {
  flex-direction: row-reverse;
}
[dir="rtl"] .report-sheet-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .report-reason-grid {
  direction: rtl;
}
/* Write review footer */
[dir="rtl"] .wr-footer,
[dir="rtl"] .wr-trust {
  flex-direction: row-reverse;
}
/* Booking slots */
[dir="rtl"] .booking-slot-btn,
[dir="rtl"] .booking-service-wrap {
  flex-direction: row-reverse;
}
/* Pro clients header */
[dir="rtl"] .header-glass > div {
  text-align: right;
}
/* Maintenance add presets */
[dir="rtl"] .maint-presets-grid {
  direction: rtl;
}
/* Lang sheet option rows */
[dir="rtl"] .lang-sheet-option {
  flex-direction: row-reverse;
}

/* ═══════════════════════════════════════════
   UNIFIED BACK BUTTON
   Light variant  → .back-btn-light  (all light-bg screens)
   Dark variant   → .back-btn-dark   (all dark-bg screens)
   Applied via shared base + color splits below
═══════════════════════════════════════════ */
.settings-back, .pro-settings-back, .maint-back, .add-maint-back, .add-veh-back,
.fav-back, .mes-rdv-back, .pro-rdv-back, .proq-back,
.contact-back, .chat-back, .reviews-back, .back-btn-light {
  width: 38px !important; height: 38px !important;
  min-width: 38px; flex-shrink: 0;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,0.06) !important;
  border: 1.5px solid rgba(0,0,0,0.07) !important;
  font-size: 20px !important; font-weight: 400; line-height: 1;
  color: var(--ink) !important;
  cursor: pointer; padding: 0 !important;
  transition: background 0.15s, transform 0.1s;
  box-sizing: border-box;
  text-decoration: none;
}
.settings-back:active, .pro-settings-back:active, .maint-back:active, .add-maint-back:active, .add-veh-back:active,
.fav-back:active, .mes-rdv-back:active, .pro-rdv-back:active, .proq-back:active,
.contact-back:active, .chat-back:active, .reviews-back:active, .back-btn-light:active {
  background: rgba(0,0,0,0.12) !important;
  transform: scale(0.94);
}

.onb-back, .ped-back, .ced-back, .stats-back, .ai-guide-back,
.pinbox-back, .cinbox-back, .emergency-back {
  width: 38px !important; height: 38px !important;
  min-width: 38px; flex-shrink: 0;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  font-size: 20px !important; font-weight: 400; line-height: 1;
  color: rgba(255,255,255,0.9) !important;
  cursor: pointer; padding: 0 !important;
  transition: background 0.15s, transform 0.1s;
  box-sizing: border-box;
}
.onb-back:active, .ped-back:active, .ced-back:active, .stats-back:active, .ai-guide-back:active,
.pinbox-back:active, .cinbox-back:active, .emergency-back:active {
  background: rgba(255,255,255,0.22) !important;
  transform: scale(0.94);
}

/* RTL: back buttons flip direction */
[dir="rtl"] .settings-back, [dir="rtl"] .pro-settings-back, [dir="rtl"] .maint-back, [dir="rtl"] .add-maint-back,
[dir="rtl"] .add-veh-back, [dir="rtl"] .fav-back, [dir="rtl"] .mes-rdv-back,
[dir="rtl"] .pro-rdv-back, [dir="rtl"] .proq-back, [dir="rtl"] .contact-back,
[dir="rtl"] .chat-back, [dir="rtl"] .back-btn-light,
[dir="rtl"] .onb-back, [dir="rtl"] .ped-back, [dir="rtl"] .ced-back,
[dir="rtl"] .stats-back, [dir="rtl"] .ai-guide-back, [dir="rtl"] .pinbox-back,
[dir="rtl"] .cinbox-back, [dir="rtl"] .emergency-back, [dir="rtl"] .pcp-back,
[dir="rtl"] .wr-back {
  transform: scaleX(-1);
}
[dir="rtl"] .settings-back:active, [dir="rtl"] .pro-settings-back:active, [dir="rtl"] .maint-back:active,
[dir="rtl"] .add-maint-back:active, [dir="rtl"] .add-veh-back:active,
[dir="rtl"] .fav-back:active, [dir="rtl"] .mes-rdv-back:active,
[dir="rtl"] .pro-rdv-back:active, [dir="rtl"] .proq-back:active,
[dir="rtl"] .contact-back:active, [dir="rtl"] .chat-back:active, [dir="rtl"] .back-btn-light:active,
[dir="rtl"] .onb-back:active, [dir="rtl"] .ped-back:active, [dir="rtl"] .ced-back:active,
[dir="rtl"] .stats-back:active, [dir="rtl"] .ai-guide-back:active, [dir="rtl"] .pinbox-back:active,
[dir="rtl"] .cinbox-back:active, [dir="rtl"] .emergency-back:active,
[dir="rtl"] .pcp-back:active, [dir="rtl"] .wr-back:active {
  transform: scaleX(-1) scale(0.94);
}

/* ── Guest Access Modal ──────────────────────────────────────────────── */
.guest-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 9999;
}
.guest-modal-card {
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 20px 24px 36px; width: 100%; max-width: 480px;
  text-align: center; position: relative;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
}
.guest-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--surface); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 14px; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.guest-modal-close:active { background: var(--border); }
.guest-modal-icon { font-size: 2.5rem; margin: 8px 0 12px; }
.guest-modal-card h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
  color: var(--ink); font-family: 'Space Grotesk', sans-serif;
}
.guest-modal-card p {
  color: var(--muted); font-size: .875rem; margin-bottom: 24px; line-height: 1.5;
}
