﻿        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; user-select: none; }
        :root {
            --primary: #1a3a5c; --primary-light: #2563a8;
            --purple: #1a3a5c; --purple-dark: #0f2541;
            --accent: #0d9488; --accent-light: #14b8a6;
            --green: #16a34a; --red: #dc2626; --orange: #ea580c;
            --yellow: #d97706; --dark: #0f172a; --muted: #64748b;
            --border: #e2e8f0; --light: #f8fafc;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
            background: #0f1729;
            min-height: 100vh; padding: 20px;
        }
        .back-link {
            display: block; text-align: center; margin-top: 14px;
            color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px;
        }
        .back-link:hover { color: rgba(255,255,255,0.9); }
        .container {
            max-width: 420px; margin: 0 auto; background: white;
            border-radius: 36px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
            overflow: hidden; position: relative;
            min-height: calc(100vh - 80px); max-height: 860px;
            display: flex; flex-direction: column;
        }
        /* STATUS BAR */
        .status-bar {
            background: var(--primary);
            padding: 10px 20px; padding-top: calc(10px + env(safe-area-inset-top));
            display: flex; justify-content: space-between;
            align-items: center; color: white; font-size: 13px; flex-shrink: 0;
        }
        /* SCREENS */
        .screen { display: none !important; flex-direction: column; flex: 1; overflow: hidden; }
        .screen.active { display: flex !important; }
        .scroll-area { flex: 1; overflow-y: auto; }
        .scroll-area::-webkit-scrollbar { width: 0; }

        /* BOTTOM NAV */
        .bottom-nav {
            display: flex; background: white;
            border-top: 1px solid var(--border); flex-shrink: 0;
            padding-bottom: env(safe-area-inset-bottom);
            position: relative;
        }
        .bottom-nav-item {
            flex: 1; padding: 12px 4px; text-align: center; cursor: pointer;
            font-size: 10px; color: var(--muted); border: none; background: none;
            transition: color 0.2s; position: relative;
        }
        .bottom-nav-item .nav-icon { width: 22px; height: 22px; display: block; margin: 0 auto 3px; stroke: currentColor; }
        .bottom-nav-item.active { color: var(--accent); }
        .badge-dot {
            position: absolute; top: 8px; right: 26px;
            width: 8px; height: 8px; border-radius: 50%; background: var(--red);
            border: 2px solid white;
        }
        /* Raised center 'Post a Job' button in the bottom nav. Absolutely
           positioned so it anchors at the true horizontal center regardless
           of how many tabs surround it. Sits visually above the row. */
        .bottom-nav-post {
            position: absolute;
            left: 50%; top: -22px;
            transform: translateX(-50%);
            width: 60px; height: 60px; border-radius: 50%;
            border: 4px solid white;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(26,58,92,0.32);
            transition: transform 0.15s;
            padding: 0;
            z-index: 2;
        }
        .bottom-nav-post:active { transform: translateX(-50%) scale(0.94); }
        .bottom-nav-post .nav-icon-post { width: 28px; height: 28px; stroke: white; display: block; }
        /* Small '+' button in the home header next to the bell. */
        .header-action-btn {
            background: rgba(255,255,255,0.2); border: none; border-radius: 50%;
            width: 38px; height: 38px; display: flex; align-items: center;
            justify-content: center; cursor: pointer; color: white;
            margin-right: 8px;
        }
        .header-actions { display: flex; align-items: center; }

        /* COMMON UI */
        .screen-header {
            background: var(--primary);
            padding: 16px 20px; color: white; flex-shrink: 0;
        }
        .screen-header h2 { font-size: 20px; font-weight: 700; }
        .screen-header p { font-size: 13px; opacity: 0.85; margin-top: 2px; }
        .back-btn {
            background: none; border: none; color: white; font-size: 22px;
            cursor: pointer; padding: 0; line-height: 1; margin-right: 10px; vertical-align: middle;
        }
        .btn {
            width: 100%; padding: 14px; border: none; border-radius: 12px;
            font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center;
        }
        .btn-primary { background: var(--primary); color: white; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,58,92,0.35); }
        .btn-secondary { background: var(--muted); color: white; }
        .btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
        .btn-accent { background: var(--accent); color: white; }
        .btn-red { background: var(--red); color: white; }
        .btn-green { background: var(--green); color: white; }
        @keyframes pinBounce { from { transform: translate(-50%,-100%) translateY(0); } to { transform: translate(-50%,-100%) translateY(-6px); } }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes ptrSpin { to { transform: rotate(360deg); } }
        #pullRefreshSpinner { animation: ptrSpin 0.7s linear infinite; }
        .spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 14px; }
        .btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; width: auto; display: inline-block; }
        .form-group { margin-bottom: 16px; }
        .form-label { display: block; font-size: 13px; font-weight: 600; color: #495057; margin-bottom: 6px; }
        .form-input, .form-select, .form-textarea {
            width: 100%; padding: 12px; border: 2px solid var(--border);
            border-radius: 10px; font-size: 15px; transition: border-color 0.2s; outline: none;
        }
        .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
        .form-textarea { resize: vertical; min-height: 80px; }
        .section-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
        .card {
            border: 1px solid var(--border); border-radius: 14px; padding: 16px;
            margin-bottom: 14px; background: white;
        }
        .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
        .pro-avatar {
            width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
            background: linear-gradient(135deg, var(--purple), var(--purple-dark));
            display: flex; align-items: center; justify-content: center;
            color: white; font-weight: 700; font-size: 18px;
        }
        .stars { color: var(--yellow); }
        .badge { padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; }
        .badge-green { background: #d4edda; color: #155724; }
        .badge-red { background: #f8d7da; color: #721c24; }
        .badge-blue { background: #d0e8f5; color: #004080; }
        .badge-orange { background: #fff3cd; color: #856404; }
        .badge-grey { background: #e2e3e5; color: #383d41; }
        .divider { height: 1px; background: var(--border); margin: 16px 0; }
        .p-pad { padding: 20px; }
        .info-box { background: #e8f4fd; border-radius: 10px; padding: 14px; margin-bottom: 16px; font-size: 13px; }
        .info-box-title { font-weight: 700; margin-bottom: 6px; color: var(--primary); }

        /* ===== LOGIN SCREEN ===== */
        #screen-login {
            display: none;
            flex-direction: column;
            min-height: 100%;
            background: white;
            z-index: 10;
        }
        #screen-login.active {
            display: flex;
        }
        #screen-login .scroll-area {
            padding: 0;
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        .login-hero {
            background: linear-gradient(160deg, #1a3a5c 0%, #0f172a 100%);
            padding: 56px 30px 48px;
            text-align: center;
            color: white;
            flex-shrink: 0;
        }
        .login-logo-img {
            width: 150px; height: auto;
            margin: 0 auto 20px;
            display: block;
        }
        .login-logo { font-size: 48px; font-weight: 800; margin-bottom: 8px; }
        .login-tagline { font-size: 14px; opacity: 0.85; margin-top: 6px; letter-spacing: 0.3px; }
        .login-form { padding: 36px 28px 48px; flex: 1; }

        /* ===== HOME SCREEN ===== */
        .home-header {
            background: var(--primary);
            padding: 18px 20px; color: white; flex-shrink: 0;
        }
        .home-header-top { display: flex; justify-content: space-between; align-items: center; }
        .home-greeting { font-size: 22px; font-weight: 700; }
        .home-location { font-size: 13px; opacity: 0.9; margin-top: 4px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
        /* ── Location Modal ── */
        .loc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
        .loc-overlay.open { opacity: 1; pointer-events: all; }
        .loc-modal { background: var(--bg, #0f172a); border-radius: 24px 24px 0 0; width: 100%; max-width: 480px; padding: 20px 20px 36px; transform: translateY(20px); transition: transform 0.25s; }
        .loc-overlay.open .loc-modal { transform: translateY(0); }
        .loc-modal-handle { width: 40px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; margin: 0 auto 16px; }
        .loc-modal-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
        .loc-modal-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
        .loc-detect-btn { width: 100%; padding: 13px; border-radius: 14px; background: var(--primary, #1a3a5c); border: 1.5px solid rgba(255,255,255,0.12); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; transition: background 0.2s; }
        .loc-detect-btn:hover { background: #1e4a78; }
        .loc-detect-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .loc-section-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
        .loc-island-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
        .loc-island-btn { padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.08); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.15s; }
        .loc-island-btn:hover, .loc-island-btn.active { background: rgba(37,99,168,0.3); border-color: rgba(37,99,168,0.6); color: #60a5fa; }
        .loc-island-flag { font-size: 20px; display: block; margin-bottom: 4px; }
        .loc-saved-list { display: flex; flex-wrap: wrap; gap: 8px; }
        .loc-saved-chip { padding: 6px 12px; border-radius: 20px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
        .loc-saved-chip:hover { background: rgba(37,99,168,0.25); border-color: #2563a8; color: #fff; }
        .loc-status-msg { font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; margin-top: 8px; min-height: 18px; }
        .notif-btn { background: rgba(255,255,255,0.2); border: none; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: white; position: relative; }
        .notif-count { position: absolute; top: -2px; right: -2px; background: var(--red); color: white; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--primary); }
        .search-bar { background: white; border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; margin-top: 14px; cursor: pointer; }
        .search-bar span { color: var(--muted); font-size: 15px; flex: 1; }
        .promo-banner {
            background: linear-gradient(135deg, #ff6b6b, #ffa07a);
            margin: 16px 16px 0; border-radius: 14px; padding: 16px 18px; color: white;
            display: flex; align-items: center; justify-content: space-between;
        }
        .promo-title { font-size: 16px; font-weight: 700; }
        .promo-sub { font-size: 12px; opacity: 0.9; margin-top: 3px; }
        .promo-btn { background: white; color: #ff6b6b; border: none; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }
        .categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
        .cat-btn {
            background: var(--primary);
            border: none; border-radius: 12px; padding: 14px 6px;
            text-align: center; cursor: pointer; color: white; transition: transform 0.2s;
        }
        .cat-btn:hover { transform: translateY(-3px); }
        .cat-icon { font-size: 26px; display: block; margin-bottom: 5px; }
        .cat-name { font-size: 10px; font-weight: 600; }
        .loyalty-banner {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border-radius: 14px; padding: 14px 16px; color: white;
            display: flex; align-items: center; gap: 12px;
        }

        /* ===== SEARCH ===== */
        .search-header { background: var(--primary); padding: 14px 16px; flex-shrink: 0; }
        .search-input-wrap { background: white; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
        .search-input-wrap input { border: none; outline: none; font-size: 15px; flex: 1; }
        .filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; flex-shrink: 0; }
        .filter-chips::-webkit-scrollbar { height: 0; }
        .chip { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 12px; cursor: pointer; white-space: nowrap; background: white; transition: all 0.2s; }
        .chip.active { background: var(--primary); color: white; border-color: var(--primary); }
        .pro-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: white; }
        .pro-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
        .pro-info .pro-name { font-size: 16px; font-weight: 700; color: var(--dark); }
        .pro-info .pro-specialty { font-size: 12px; color: var(--muted); margin-top: 2px; }
        .pro-info .pro-rating { font-size: 13px; color: var(--dark); margin-top: 3px; }
        .portfolio-strip { display: flex; gap: 6px; margin: 10px 0; }
        .port-item { width: 52px; height: 44px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; }
        .pro-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; }
        .detail-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
        .ai-score { background: var(--accent); color: white; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
        .card-btns { display: flex; gap: 8px; margin-top: 12px; }
        .card-btns .btn { padding: 10px; font-size: 13px; }

        /* ===== PROFESSIONAL PROFILE ===== */
        .profile-hero { background: var(--primary); padding: 24px 20px; color: white; text-align: center; }
        .profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; margin: 0 auto 12px; border: 3px solid white; }
        .profile-name { font-size: 22px; font-weight: 700; }
        .profile-sub { font-size: 14px; opacity: 0.85; margin-top: 4px; }
        .profile-badges { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
        .pro-badge { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 4px 12px; font-size: 12px; }
        .stats-row { display: flex; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; margin-top: 16px; }
        .stat-col { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.2); }
        .stat-col:last-child { border-right: none; }
        .stat-col .num { font-size: 20px; font-weight: 700; }
        .stat-col .lbl { font-size: 11px; opacity: 0.8; }
        .match-bubble { background: #eef2f7; border-radius: 14px; padding: 14px; margin: 16px; display: flex; align-items: center; gap: 12px; }
        .match-score-big { font-size: 28px; font-weight: 800; color: var(--primary); }
        .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
        .tag { background: #e8f4fd; color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
        .cert-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
        .review-card { border-left: 3px solid var(--primary); padding: 12px; margin-bottom: 12px; background: #f8f9fa; border-radius: 0 10px 10px 0; }
        .review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .sticky-book { padding: 14px 16px; background: white; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; gap: 10px; }

        /* ===== BOOKING FLOW ===== */
        .step-indicator { display: flex; align-items: center; gap: 0; padding: 16px 20px; background: white; flex-shrink: 0; }
        .step { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; transition: background 0.3s; }
        .step.done { background: var(--green); }
        .step.active { background: var(--primary); }
        .step-line { flex: 1; height: 2px; background: var(--border); }
        .step-line.done { background: var(--green); }
        .time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .time-slot { padding: 10px; border: 2px solid var(--border); border-radius: 10px; text-align: center; font-size: 13px; cursor: pointer; transition: all 0.2s; }
        .time-slot:hover, .time-slot.selected { border-color: var(--primary); background: #e8f4fd; color: var(--primary); font-weight: 600; }
        .time-slot.booked { background: var(--light); color: var(--muted); cursor: not-allowed; border-color: var(--border); }
        .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
        .cal-header { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
        .cal-day-name { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px; }
        .cal-day { text-align: center; padding: 8px 4px; font-size: 13px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
        .cal-day:hover { background: #e8f4fd; color: var(--primary); }
        .cal-day.selected { background: var(--primary); color: white; font-weight: 700; }
        .cal-day.past { color: #ccc; cursor: not-allowed; }
        .cal-day.empty { }
        .price-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
        .price-row.total { font-weight: 700; font-size: 16px; border-top: 2px solid var(--dark); padding-top: 12px; margin-top: 4px; }
        .payment-method { border: 2px solid var(--border); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; margin-bottom: 10px; }
        .payment-method:hover, .payment-method.selected { border-color: var(--primary); background: #e8f4fd; }
        .pay-icon { font-size: 28px; }

        /* SUCCESS SCREEN */
        .success-screen { padding: 40px 24px; text-align: center; }
        .success-icon { font-size: 72px; margin-bottom: 20px; animation: popIn 0.5s; }
        @keyframes popIn { 0%{transform:scale(0)} 70%{transform:scale(1.2)} 100%{transform:scale(1)} }
        .success-title { font-size: 26px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
        .ref-number { display: inline-block; background: var(--light); border-radius: 8px; padding: 6px 16px; font-family: monospace; font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 20px; }

        /* TRACKING */
        .map-placeholder { background: linear-gradient(135deg, #dbeafe, #bfdbfe); height: 180px; border-radius: 14px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 16px; }
        .map-text { text-align: center; }
        .map-pin { font-size: 40px; }
        .eta-bubble { position: absolute; top: 12px; right: 12px; background: white; border-radius: 10px; padding: 8px 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); font-size: 12px; font-weight: 700; color: var(--primary); }
        .progress-steps { display: flex; align-items: center; justify-content: center; gap: 0; padding: 16px 0; overflow-x: auto; }
        .progress-step { text-align: center; font-size: 10px; color: var(--muted); flex-shrink: 0; }
        .progress-step .p-icon { font-size: 20px; display: block; margin-bottom: 4px; }
        .progress-step.done .p-icon::after { content: "✅"; }
        .progress-step.active { color: var(--primary); font-weight: 700; }
        .progress-line { width: 24px; height: 2px; background: var(--border); flex-shrink: 0; }
        .progress-line.done { background: var(--green); }

        /* BOOKINGS */
        .filter-tabs { display: flex; border-bottom: 2px solid var(--border); flex-shrink: 0; }
        .filter-tab { flex: 1; padding: 12px 4px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
        .filter-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
        .booking-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
        .booking-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
        .booking-title { font-size: 15px; font-weight: 700; color: var(--dark); }
        .booking-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
        .star-rate { display: flex; gap: 6px; margin: 10px 0; }
        .star-rate span { font-size: 28px; cursor: pointer; color: #ddd; transition: color 0.2s; }
        .star-rate span:hover, .star-rate span.active { color: var(--yellow); }

        /* MESSAGES */
        .conversation-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
        .conversation-item:hover { background: var(--light); }
        .conv-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 16px; flex-shrink: 0; }
        .conv-name { font-size: 15px; font-weight: 700; color: var(--dark); }
        .conv-preview { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
        .conv-time { font-size: 11px; color: var(--muted); }
        .unread-badge { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; }
        .chat-view { display: flex; flex-direction: column; height: 100%; }
        .chat-header { background: var(--primary); padding: 14px 16px; color: white; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
        .chat-header-info .name { font-size: 16px; font-weight: 700; }
        .chat-header-info .status { font-size: 12px; opacity: 0.85; }
        .chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: #f8f9fa; display: flex; flex-direction: column; gap: 12px; }
        .chat-messages::-webkit-scrollbar { width: 0; }
        .msg { display: flex; gap: 8px; max-width: 85%; }
        .msg.sent { flex-direction: row-reverse; align-self: flex-end; }
        .msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
        .msg.received .msg-bubble { background: white; border: 1px solid var(--border); }
        .msg.sent .msg-bubble { background: var(--primary); color: white; }
        .msg-time { font-size: 10px; color: var(--muted); margin-top: 4px; }
        .chat-input-area { display: flex; gap: 10px; padding: 12px 14px; background: white; border-top: 1px solid var(--border); flex-shrink: 0; }
        .chat-input-area input { flex: 1; border: 1.5px solid var(--border); border-radius: 20px; padding: 10px 16px; font-size: 14px; outline: none; }
        .chat-input-area input:focus { border-color: var(--primary); }
        .send-btn { background: var(--primary); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

        /* USER PROFILE */
        .user-profile-hero { background: var(--primary); padding: 30px 20px; color: white; text-align: center; }
        .user-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 3px solid white; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 12px; }
        .menu-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; text-decoration: none; color: var(--dark); }
        .menu-item:hover { background: var(--light); }
        .menu-icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; }
        .menu-label { flex: 1; font-size: 15px; }
        .menu-chevron { color: var(--muted); font-size: 16px; }

        /* ASAP/EMERGENCY */
        .asap-header { background: linear-gradient(135deg, #dc3545, #e83e8c); padding: 20px; color: white; text-align: center; flex-shrink: 0; }
        .asap-timer { font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; }
        .asap-label { font-size: 14px; opacity: 0.85; }
        .emerg-ind { border:1.5px solid var(--border); border-radius:10px; padding:10px 6px; text-align:center; cursor:pointer; font-size:20px; transition:all 0.2s; line-height:1.5; }
        .emerg-ind span { display:block; font-size:11px; font-weight:700; color:var(--text); margin-top:2px; }
        .emerg-ind:hover,.emerg-ind.selected { border-color:var(--red); background:#fff0f1; }
        .emerg-ind.selected { box-shadow:0 0 0 3px rgba(220,53,69,0.15); }
        @keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

        /* NOTIFICATIONS */
        .notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
        .notif-icon { width: 40px; height: 40px; border-radius: 50%; background: #e8f4fd; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .notif-text { font-size: 14px; color: var(--dark); line-height: 1.5; }
        .notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

        /* SOCIAL FEED */
        .feed-post { border-bottom: 8px solid var(--light); padding-bottom: 0; }
        .feed-post-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
        .feed-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }
        .feed-name { font-size: 14px; font-weight: 700; }
        .feed-role { font-size: 11px; color: var(--muted); }
        .feed-time { font-size: 11px; color: var(--muted); margin-left: auto; }
        .feed-image { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
        .feed-img-before { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 40px; flex-direction: column; gap: 4px; }
        .feed-img-before span { font-size: 11px; font-weight: 700; color: white; opacity: 0.8; }
        .feed-actions { display: flex; align-items: center; padding: 10px 14px; gap: 16px; border-bottom: 1px solid var(--border); }
        .feed-action-btn { display: flex; align-items: center; gap: 5px; background: none; border: none; font-size: 13px; color: var(--muted); cursor: pointer; padding: 4px 0; transition: color 0.2s; font-family: inherit; }
        .feed-action-btn.liked { color: var(--red); }
        .feed-action-btn:hover { color: var(--primary); }
        .feed-save { margin-left: auto; }
        .feed-caption { padding: 8px 14px 6px; font-size: 13px; line-height: 1.5; }
        .feed-likes { padding: 0 14px 6px; font-size: 12px; font-weight: 600; }
        .feed-comments-section { display: none; border-top: 1px solid var(--border); background: var(--light); }
        .feed-comments-section.open { display: block; }
        .feed-comment { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
        .feed-comment-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
        .feed-comment-body { flex: 1; }
        .feed-comment-author { font-size: 12px; font-weight: 700; }
        .feed-comment-text { font-size: 13px; line-height: 1.4; }
        .feed-comment-actions { display: flex; gap: 12px; margin-top: 4px; }
        .feed-comment-action { font-size: 11px; color: var(--muted); cursor: pointer; background: none; border: none; font-family: inherit; }
        .feed-comment-action.liked { color: var(--red); }
        .feed-comment-input { display: flex; gap: 8px; padding: 10px 14px; background: white; }
        .feed-comment-input input { flex: 1; border: 1.5px solid var(--border); border-radius: 20px; padding: 8px 14px; font-size: 13px; outline: none; }
        .feed-comment-input input:focus { border-color: var(--primary); }
        .feed-book-btn { margin: 8px 14px 14px; }

        /* DM INBOX */
        .dm-tabs { display: flex; border-bottom: 2px solid var(--border); flex-shrink: 0; background: white; }
        .dm-tab { flex: 1; padding: 12px 4px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; background: none; border-left: none; border-right: none; border-top: none; }
        .dm-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
        .dm-search { padding: 10px 14px; background: white; border-bottom: 1px solid var(--border); }
        .dm-search input { width: 100%; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 13px; outline: none; background: var(--light); }
        .dm-search input:focus { border-color: var(--primary); }
        .online-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; border: 2px solid white; position: absolute; bottom: 0; right: 0; }
        .conv-avatar-wrap { position: relative; flex-shrink: 0; }

        /* USER PROFILE VIEW */
        .upv-header { background: var(--primary); padding: 24px 16px 20px; color: white; text-align: center; flex-shrink: 0; }
        .upv-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; margin: 0 auto 10px; border: 3px solid rgba(255,255,255,0.4); }
        .upv-stats { display: flex; justify-content: center; gap: 32px; margin-top: 14px; }
        .upv-stat { text-align: center; }
        .upv-stat strong { display: block; font-size: 20px; font-weight: 800; }
        .upv-stat span { font-size: 11px; opacity: 0.8; }
        .upv-actions { display: flex; gap: 10px; margin-top: 14px; }
        .upv-btn { flex: 1; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 700; border: none; cursor: pointer; }
        .upv-btn-follow { background: white; color: var(--primary); }
        .upv-btn-follow.following { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); }
        .upv-btn-dm { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
        .work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
        .work-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; }

        /* FOLLOWING LIST */
        .follow-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
        .follow-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: white; flex-shrink: 0; }
        .follow-name { font-size: 14px; font-weight: 700; flex: 1; }
        .follow-role { font-size: 12px; color: var(--muted); }
        .follow-btn { padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--primary); background: transparent; color: var(--primary); }
        .follow-btn.following { background: var(--primary); color: white; }

        /* STORY BAR */
        .story-bar { display: flex; gap: 12px; overflow-x: auto; padding: 12px 14px; border-bottom: 1px solid var(--border); scrollbar-width: none; flex-shrink: 0; }
        .story-bar::-webkit-scrollbar { display: none; }
        .story-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; cursor: pointer; }
        .story-ring { width: 52px; height: 52px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #f093fb, #f5576c, #ffd700); }
        .story-ring.seen { background: #dee2e6; }
        .story-inner { width: 100%; height: 100%; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; border: 2px solid white; font-size: 18px; font-weight: 700; color: white; }
        .story-name { font-size: 10px; color: var(--dark); max-width: 52px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

        /* SHARE MODAL */
        .share-option { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; cursor: pointer; transition: background 0.2s; }
        .share-option:hover { background: var(--light); }
        .share-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
        .share-label { font-size: 14px; font-weight: 600; }

        /* HEART ANIMATION */
        @keyframes heartPop { 0%{transform:scale(1)} 30%{transform:scale(1.4)} 60%{transform:scale(0.9)} 100%{transform:scale(1)} }
        @keyframes storyFill { from{width:0%} to{width:100%} }
        .heart-pop { animation: heartPop 0.4s ease; }

        /* MODAL */
        .modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: none; align-items: flex-end; }
        .modal-overlay.open { display: flex; }
        .modal { background: white; border-radius: 24px 24px 0 0; padding: 28px 24px; width: 100%; animation: slideUp 0.3s; }
        @keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
        .modal-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
        .modal-close { position: absolute; right: 24px; top: 24px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); }

        /* ===== LEAFLET MAP ===== */
        #leaflet-map { flex: 1; min-height: 0; z-index: 0; }
        .map-filter-row { display: flex; gap: 8px; padding: 10px 16px; background: white; border-bottom: 1px solid #eee; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
        .map-filter-pill { padding: 6px 14px; border-radius: 20px; border: 2px solid #e0e0e0; background: white; font-size: 13px; font-weight: 600; color: #666; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
        .map-filter-pill.active { background: var(--primary); border-color: var(--primary); color: white; }
        .pro-map-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
        .pro-map-card:hover { background: #f9f9f9; }
        .pro-map-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 16px; flex-shrink: 0; }
        .pro-map-info { flex: 1; }
        .pro-map-name { font-weight: 700; font-size: 14px; }
        .pro-map-meta { font-size: 12px; color: #888; }
        .pro-map-distance { font-size: 13px; font-weight: 700; color: var(--primary); }
        .pro-map-sheet { position: absolute; bottom: 80px; left: 0; right: 0; background: white; border-radius: 20px 20px 0 0; max-height: 240px; overflow-y: auto; box-shadow: 0 -4px 20px rgba(0,0,0,0.12); z-index: 10; }
        .pro-map-sheet-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 10px auto 6px; }
        .pro-map-sheet-title { font-size: 13px; font-weight: 700; color: #888; padding: 0 16px 10px; }
        .leaflet-popup-content-wrapper { border-radius: 12px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important; }
        .map-popup-inner { padding: 4px; min-width: 160px; }
        .map-popup-name { font-weight: 700; font-size: 14px; color: #0f172a; }
        .map-popup-role { font-size: 12px; color: #888; margin: 2px 0; }
        .map-popup-rating { font-size: 12px; color: #f5a623; }
        .map-popup-book { width: 100%; margin-top: 8px; padding: 7px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }

        /* ===== ASAP FINDING SCREEN ===== */
        .asap-find-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 40px 24px; gap: 24px; background: linear-gradient(160deg, #1a3a5c 0%, #0f172a 100%); }
        .find-pulse-wrap { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
        .find-pulse { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); animation: pulsRing 1.8s ease-out infinite; }
        .find-pulse:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
        .find-pulse:nth-child(2) { width: 90px; height: 90px; animation-delay: 0.4s; }
        .find-pulse:nth-child(3) { width: 60px; height: 60px; animation-delay: 0.8s; }
        @keyframes pulsRing { 0%{transform:scale(0.8);opacity:0.8} 100%{transform:scale(1.6);opacity:0} }
        .find-icon-center { width: 64px; height: 64px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 2; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
        .find-title { font-size: 22px; font-weight: 800; color: white; text-align: center; }
        .find-subtitle { font-size: 14px; color: rgba(255,255,255,0.7); text-align: center; }
        .find-dots { display: flex; gap: 8px; }
        .find-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; animation: dotPulse 1.4s ease-in-out infinite; }
        .find-dot:nth-child(2) { animation-delay: 0.2s; }
        .find-dot:nth-child(3) { animation-delay: 0.4s; }
        @keyframes dotPulse { 0%,80%,100%{transform:scale(0.6);opacity:0.4} 40%{transform:scale(1);opacity:1} }
        .found-pro-card { background: white; border-radius: 20px; padding: 20px; width: 100%; display: none; animation: slideUp 0.4s; }
        .found-pro-card.visible { display: block; }
        .found-pro-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
        .found-pro-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: white; }
        .found-pro-name { font-size: 18px; font-weight: 800; }
        .found-pro-role { font-size: 13px; color: #888; }
        .found-pro-stats { display: flex; gap: 16px; margin-bottom: 16px; }
        .found-pro-stat { text-align: center; }
        .found-pro-stat-val { font-size: 16px; font-weight: 800; color: var(--primary); }
        .found-pro-stat-lab { font-size: 11px; color: #aaa; }
        .found-timer { background: #fff3cd; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 700; color: #856404; text-align: center; margin-bottom: 14px; }
        .found-actions { display: flex; gap: 10px; }

        /* ===== LIVE TRACKING SCREEN ===== */
        .track-header { padding: 16px; background: white; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eee; flex-shrink: 0; }
        .track-pro-mini-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: white; font-size: 16px; }
        .track-eta { font-size: 22px; font-weight: 900; color: var(--primary); }
        .track-status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #e8f5e9; color: #2e7d32; }
        .track-steps { padding: 0 16px; background: white; flex-shrink: 0; }
        .track-step { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
        .track-step-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; margin-top: 4px; flex-shrink: 0; }
        .track-step-dot.done { background: var(--primary); }
        .track-step-dot.active { background: var(--accent); box-shadow: 0 0 0 4px rgba(240,147,251,0.3); }
        .track-step-text { font-size: 13px; color: #333; }
        .track-step-time { font-size: 12px; color: #aaa; }
        #tracking-map { flex: 1; min-height: 0; }

        /* ===== SOS SCREEN ===== */
        .sos-screen-inner { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; gap: 20px; overflow-y: auto; }
        .sos-ring-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 160px; height: 160px; }
        .sos-ring { position: absolute; border-radius: 50%; border: 3px solid rgba(220,38,38,0.3); animation: pulsRing 2s ease-out infinite; }
        .sos-ring:nth-child(1) { width: 160px; height: 160px; }
        .sos-ring:nth-child(2) { width: 120px; height: 120px; animation-delay: 0.5s; }
        .sos-btn-inner { width: 90px; height: 90px; background: linear-gradient(135deg, #dc2626, #b91c1c); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: white; cursor: pointer; box-shadow: 0 8px 32px rgba(220,38,38,0.4); z-index: 2; border: none; font-family: inherit; }
        .sos-btn-inner:active { transform: scale(0.95); }
        .sos-label { font-size: 14px; color: #666; text-align: center; }
        .sos-services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; width: 100%; }
        .sos-service-card { background: white; border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.08); cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
        .sos-service-card:hover { border-color: #dc2626; transform: translateY(-2px); }
        .sos-service-icon { font-size: 28px; margin-bottom: 8px; }
        .sos-service-name { font-size: 13px; font-weight: 700; }
        .sos-service-time { font-size: 11px; color: #888; }

        /* ===== SOS FLOAT BUTTON ===== */
        .sos-float { position: absolute; bottom: 95px; right: 16px; width: 50px; height: 50px; background: linear-gradient(135deg, #dc2626, #b91c1c); border-radius: 50%; border: none; color: white; font-size: 20px; cursor: pointer; box-shadow: 0 4px 16px rgba(220,38,38,0.5); z-index: 50; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
        .sos-float:active { transform: scale(0.9); }

        /* ===== CARIBBEAN BANNERS ===== */
        .hurricane-banner { background: linear-gradient(90deg, #0f172a, #16213e); color: white; padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
        .hurricane-banner .spin { display: inline-block; animation: spin 2s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .hurricane-dismiss { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; }
        .cropover-banner { background: linear-gradient(90deg, #7c3aed, #db2777); color: white; padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
        .cropover-dismiss { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; }
        .easter-banner { background: linear-gradient(90deg, #e65c00, #f9d423); color: #1a1a1a; padding: 10px 16px; display: none; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
        .christmas-banner { background: linear-gradient(90deg, #1a5c1a, #c41e1e); color: white; padding: 10px 16px; display: none; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; position: relative; }
        .seasonal-dismiss { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.15); border: none; color: inherit; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; }

        /* ===== CAMERA SCREEN ===== */
        .camera-screen-inner { display: flex; flex-direction: column; height: 100%; background: #000; }
        .camera-label-row { display: flex; padding: 14px 16px 8px; gap: 10px; background: #111; }
        .cam-tab { flex: 1; padding: 8px; text-align: center; color: #888; font-size: 13px; font-weight: 700; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
        .cam-tab.active { background: var(--primary); color: white; }
        .camera-panels { display: flex; flex: 1; gap: 2px; }
        .cam-panel { flex: 1; background: #0f172a; position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
        .cam-panel-label { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
        .cam-panel-placeholder { font-size: 40px; opacity: 0.3; }
        .cam-panel img { width: 100%; height: 100%; object-fit: cover; }
        .camera-controls { display: flex; align-items: center; justify-content: space-around; padding: 20px; background: #111; }
        .cam-capture-btn { width: 64px; height: 64px; border-radius: 50%; background: white; border: 4px solid #555; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; }
        .cam-action-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

        /* ===== SPENDING DASHBOARD ===== */
        .spending-header { padding: 20px 16px 12px; background: var(--primary); color: white; flex-shrink: 0; }
        .spending-total-label { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
        .spending-total-amount { font-size: 36px; font-weight: 900; }
        .spending-period { display: flex; gap: 8px; margin-top: 12px; }
        .spend-period-btn { padding: 5px 14px; border-radius: 20px; border: 2px solid rgba(255,255,255,0.4); background: transparent; color: white; font-size: 12px; font-weight: 700; cursor: pointer; }
        .spend-period-btn.active { background: white; color: var(--primary); border-color: white; }
        .spending-chart { padding: 16px; background: white; }
        .spending-chart-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
        .spending-chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
        .spending-chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
        .spending-chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--primary); opacity: 0.3; transition: all 0.3s; min-height: 4px; }
        .spending-chart-bar.active { opacity: 1; }
        .spending-chart-label { font-size: 10px; color: #aaa; }
        .spending-chart-val { font-size: 11px; font-weight: 700; color: #333; }
        .spend-cat-list { padding: 0 16px 16px; background: white; margin-top: 2px; }
        .spend-cat-title { font-size: 14px; font-weight: 700; padding: 14px 0 10px; }
        .spend-cat-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
        .spend-cat-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .spend-cat-info { flex: 1; }
        .spend-cat-name { font-size: 14px; font-weight: 600; }
        .spend-cat-count { font-size: 12px; color: #888; }
        .spend-cat-bar-wrap { width: 80px; }
        .spend-cat-bar-bg { height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
        .spend-cat-bar-fill { height: 100%; border-radius: 3px; background: var(--primary); }
        .spend-cat-amount { font-size: 14px; font-weight: 700; min-width: 56px; text-align: right; }

        /* ===== RECURRING BOOKINGS ===== */
        .recurring-list { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
        .recurring-item { background: white; border-radius: 16px; padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); display: flex; align-items: center; gap: 14px; }
        .rec-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
        .rec-info { flex: 1; }
        .rec-name { font-size: 15px; font-weight: 700; }
        .rec-detail { font-size: 12px; color: #888; margin-top: 2px; }
        .rec-next { font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 4px; }
        .rec-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
        .rec-toggle input { opacity: 0; width: 0; height: 0; }
        .rec-toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 24px; cursor: pointer; transition: background 0.3s; }
        .rec-toggle-slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
        .rec-toggle input:checked + .rec-toggle-slider { background: var(--primary); }
        .rec-toggle input:checked + .rec-toggle-slider:before { transform: translateX(20px); }
        .rec-add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 16px; border: 2px dashed var(--primary); color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer; background: transparent; width: 100%; }

        /* ===== CALL SCREEN ===== */
        .call-screen-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; padding: 60px 24px 48px; background: linear-gradient(160deg, #0f172a, #1a3a5c); }
        .call-status { font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }
        .call-avatar-big { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 800; color: white; box-shadow: 0 0 0 12px rgba(255,255,255,0.1), 0 0 0 24px rgba(255,255,255,0.05); }
        .call-name { font-size: 26px; font-weight: 800; color: white; margin-top: 20px; }
        .call-role { font-size: 14px; color: rgba(255,255,255,0.6); }
        .call-timer { font-size: 18px; font-weight: 700; color: white; font-variant-numeric: tabular-nums; }
        .call-actions { display: flex; gap: 20px; }
        .call-action-btn { width: 60px; height: 60px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; transition: transform 0.2s; }
        .call-action-btn:active { transform: scale(0.9); }
        .call-end-btn { width: 72px; height: 72px; background: #dc2626; color: white; border-radius: 50%; border: none; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(220,38,38,0.4); }

        /* ===== VIDEO ASSESSMENT ===== */
        .video-assess-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; height: 100%; padding: 40px 24px; text-align: center; }
        .video-assess-icon { font-size: 64px; }
        .video-assess-title { font-size: 22px; font-weight: 800; }
        .video-assess-desc { font-size: 14px; color: #666; line-height: 1.6; }
        .video-assess-steps { background: #f8f9fa; border-radius: 16px; padding: 16px; width: 100%; text-align: left; }
        .video-step { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
        .video-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .video-step-text { font-size: 13px; color: #444; }

        /* ===== VOICE NOTE ===== */
        .voice-note-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
        .voice-note-btn.recording { background: #dc2626; animation: pulsRing 1s ease-out infinite; }
        .voice-note-bubble { background: #e8f4fd; border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; max-width: 200px; }
        .voice-wave { display: flex; align-items: center; gap: 2px; height: 20px; }
        .voice-wave-bar { width: 3px; background: var(--primary); border-radius: 2px; animation: waveAnim 0.8s ease-in-out infinite; }
        .voice-wave-bar:nth-child(2) { animation-delay: 0.1s; height: 60%; }
        .voice-wave-bar:nth-child(3) { animation-delay: 0.2s; height: 90%; }
        .voice-wave-bar:nth-child(4) { animation-delay: 0.15s; height: 70%; }
        .voice-wave-bar:nth-child(5) { animation-delay: 0.05s; height: 50%; }
        @keyframes waveAnim { 0%,100%{transform:scaleY(0.4)} 50%{transform:scaleY(1)} }
        .voice-note-dur { font-size: 12px; color: #888; font-weight: 600; }

        /* ===== LANGUAGE & CURRENCY ===== */
        .lang-currency-section { padding: 20px 16px 8px; }
        .lang-currency-title { font-size: 13px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
        .lang-option, .currency-option { display: flex; align-items: center; gap: 14px; padding: 14px; background: white; border-radius: 14px; margin-bottom: 10px; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
        .lang-option.selected, .currency-option.selected { border-color: var(--primary); background: #e8f4fd; }
        .lang-flag { font-size: 24px; flex-shrink: 0; }
        .lang-name { font-size: 15px; font-weight: 600; flex: 1; }
        .lang-check, .currency-check { font-size: 18px; color: var(--primary); visibility: hidden; }
        .lang-option.selected .lang-check, .currency-option.selected .currency-check { visibility: visible; }

        /* ===== HURRICANE MODE SCREEN ===== */
        .hurricane-screen { background: linear-gradient(160deg, #0f172a, #16213e); min-height: 100%; display: flex; flex-direction: column; }
        .hurricane-hero { padding: 40px 24px 24px; text-align: center; color: white; }
        .hurricane-hero-icon { font-size: 64px; animation: spin 4s linear infinite; display: inline-block; }
        .hurricane-hero-title { font-size: 24px; font-weight: 900; color: #ff6b6b; margin-top: 12px; }
        .hurricane-hero-desc { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }
        .hurricane-services { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; padding: 16px; }
        .hurricane-service-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 18px 14px; text-align: center; cursor: pointer; transition: all 0.2s; }
        .hurricane-service-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
        .hurricane-service-icon { font-size: 30px; margin-bottom: 8px; }
        .hurricane-service-name { font-size: 13px; font-weight: 700; color: white; }
        .hurricane-service-surge { font-size: 11px; color: #ff6b6b; margin-top: 4px; font-weight: 600; }

        /* ===== PRO EARNINGS WALLET ===== */
        .wallet-header { background: linear-gradient(135deg, #0f172a, #1a3a5c); padding: 28px 20px 24px; color: white; flex-shrink: 0; }
        .wallet-balance-label { font-size: 13px; opacity: 0.8; }
        .wallet-balance { font-size: 42px; font-weight: 900; margin: 4px 0; }
        .wallet-currency { font-size: 16px; opacity: 0.7; }
        .wallet-stats { display: flex; gap: 24px; margin-top: 16px; }
        .wallet-stat { }
        .wallet-stat-val { font-size: 18px; font-weight: 800; }
        .wallet-stat-lab { font-size: 11px; opacity: 0.7; margin-top: 2px; }
        .wallet-actions { display: flex; gap: 12px; margin-top: 20px; }
        .wallet-action-btn { flex: 1; padding: 10px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.4); background: transparent; color: white; font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; }
        .wallet-action-btn.primary { background: white; color: var(--primary); border-color: white; }
        .wallet-tx-list { padding: 16px; flex: 1; overflow-y: auto; }
        .wallet-tx-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
        .wallet-tx-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
        .wallet-tx-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
        .wallet-tx-info { flex: 1; }
        .wallet-tx-name { font-size: 14px; font-weight: 600; }
        .wallet-tx-date { font-size: 12px; color: #888; }
        .wallet-tx-amount { font-size: 15px; font-weight: 800; }
        .wallet-tx-amount.credit { color: #16a34a; }
        .wallet-tx-amount.debit { color: #dc2626; }

        /* ===== PRO JOB PING ===== */
        .ping-screen { background: linear-gradient(160deg, #0f172a 0%, #0f3460 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 32px 24px; gap: 20px; }
        .ping-timer-ring { width: 100px; height: 100px; position: relative; }
        .ping-timer-ring svg { transform: rotate(-90deg); }
        .ping-timer-ring circle { fill: none; stroke-width: 6; }
        .ping-ring-bg { stroke: rgba(255,255,255,0.15); }
        .ping-ring-fill { stroke: #22c55e; stroke-dasharray: 283; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; stroke-linecap: round; }
        .ping-timer-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: white; }
        .ping-job-card { background: white; border-radius: 20px; padding: 20px; width: 100%; }
        .ping-job-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
        .ping-job-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 22px; }
        .ping-job-title { font-size: 17px; font-weight: 800; }
        .ping-job-type { font-size: 13px; color: #888; }
        .ping-detail-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; padding: 5px 0; }
        .ping-actions { display: flex; gap: 12px; width: 100%; }

        /* ===== CUSTOMER ONBOARDING ===== */
        .onboard-step { display: none; flex-direction: column; align-items: center; text-align: center; padding: 20px 20px 28px; width: 100%; }
        .onboard-step.active { display: flex; }
        .onboard-icon-wrap { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; flex-shrink: 0; }
        .onboard-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
        .onboard-chip { padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 500; color: #1e293b; cursor: pointer; transition: all 0.15s; background: white; display: inline-flex; align-items: center; gap: 6px; }
        .onboard-chip i[data-lucide] { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }
        .onboard-chip:hover { border-color: var(--primary-light); color: var(--primary-light); }
        .onboard-chip.selected { border-color: var(--accent); background: #f0fdfa; color: var(--accent); font-weight: 600; }
        .onboard-geo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 10px 14px; border: 1.5px solid var(--primary-light); border-radius: 12px; background: white; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
        .onboard-geo-btn:hover { background: #f0f9ff; }
        .onboard-geo-btn:disabled { opacity: 0.6; cursor: not-allowed; }
        .onboard-why { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
        .onboard-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 18px; margin-bottom: 6px; width: 100%; text-align: left; }
        .onboard-dots { display: flex; gap: 8px; justify-content: center; padding: 14px 0 6px; flex-shrink: 0; }
        .onboard-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.25s; }
        .onboard-dot.active { width: 24px; border-radius: 4px; background: var(--primary); }
        .onboard-dot.done { background: var(--accent); }
        /* Make the step fill the scroll-area height so there's no empty gap below short content */
        #screen-onboarding .scroll-area { display: flex; flex-direction: column; }
        #screen-onboarding .onboard-step.active { flex: 1; }

        @media (max-width: 480px) {
            /* Three-tier height fallback so every browser version gets the right size:
               1) --app-vh is set by JS (scripts/viewport.js) from visualViewport — most accurate,
                  also shrinks when the on-screen keyboard opens so inputs/buttons stay visible.
               2) 100dvh — modern browsers (iOS 15.4+, Chrome 108+), dynamic viewport height.
               3) -webkit-fill-available — older iOS Safari fallback. */
            body { padding: 0; overflow: hidden;
                   height: 100vh;
                   height: -webkit-fill-available;
                   height: 100dvh;
                   height: calc(var(--app-vh, 1vh) * 100); }
            .container { border-radius: 0; max-width: 100%; width: 100%; min-height: 0;
                         height: 100vh;
                         height: -webkit-fill-available;
                         height: 100dvh;
                         height: calc(var(--app-vh, 1vh) * 100);
                         max-height: calc(var(--app-vh, 1vh) * 100); }
            .back-link { display: none; }
            /* Guarantee onboarding footer stays inside the viewport */
            #screen-onboarding { min-height: 0; }
            #screen-onboarding .scroll-area { min-height: 0; }
            #onboardFooter { padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
        }
