/* ==========================================================================
   VANFORHIRE - FRONT OFFICE PORTAL STYLES (RESPONSIVE PC & MOBILE)
   ========================================================================== */

:root {
    --vfh-primary: #193526;
    --vfh-primary-hover: #12261b;
    --vfh-green: #275c43;
    --vfh-green-light: #eaf4ee;
    --vfh-green-border: #d2e4d8;
    --vfh-accent: #0284c7;
    --vfh-accent-light: #e0f2fe;
    --vfh-amber: #f59e0b;
    --vfh-amber-light: #fef3c7;
    --vfh-rose: #e11d48;
    --vfh-rose-light: #ffe4e6;
    --vfh-bg: #f8fafc;
    --vfh-card-bg: #ffffff;
    --vfh-text: #0f172a;
    --vfh-muted: #64748b;
    --vfh-line: #e2e8f0;
    --vfh-radius-sm: 8px;
    --vfh-radius-md: 14px;
    --vfh-radius-lg: 22px;
    --vfh-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --vfh-shadow-md: 0 6px 18px -2px rgba(15, 23, 42, 0.08);
    --vfh-shadow-lg: 0 20px 45px -8px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, a, p, span, div, label {
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--vfh-text);
    background-color: var(--vfh-bg);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   NAVBAR (TOP NAVIGATION)
   -------------------------------------------------------------------------- */
.fo-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vfh-line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.fo-navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--vfh-primary);
    flex-shrink: 0;
}

.fo-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.fo-brand-text {
    display: flex;
    flex-direction: column;
}

.fo-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--vfh-primary);
    line-height: 1.15;
    white-space: nowrap;
}

.fo-brand-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--vfh-green);
    text-transform: uppercase;
    white-space: nowrap;
}

.fo-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.fo-nav-links a {
    text-decoration: none;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 9px;
    border-radius: var(--vfh-radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}

.fo-nav-links a:hover,
.fo-nav-links a.active {
    color: var(--vfh-green);
    background: var(--vfh-green-light);
}

/* Provider Special Menu Button */
.fo-provider-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.fo-provider-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985) !important;
    transform: translateY(-1px);
}

.fo-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fo-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fo-wallet-pill:hover {
    background: #d1fae5;
    transform: translateY(-1px);
}

.fo-user-dropdown {
    position: relative;
}

.fo-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    padding: 5px 12px 5px 6px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fo-user-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.fo-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.fo-user-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.fo-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fo-user-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--vfh-green);
}

.fo-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-md);
    box-shadow: var(--vfh-shadow-lg);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.fo-dropdown-menu a,
.fo-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--vfh-radius-sm);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fo-dropdown-menu a:hover,
.fo-dropdown-menu button:hover {
    background: #f1f5f9;
    color: var(--vfh-text);
}

.fo-dropdown-divider {
    height: 1px;
    background: var(--vfh-line);
    margin: 4px 0;
}

.fo-btn-login {
    background: var(--vfh-primary);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fo-btn-login .fo-login-text-full {
    display: inline;
}

.fo-btn-login .fo-login-text-short {
    display: none;
}

.fo-btn-login:hover {
    background: var(--vfh-green);
    box-shadow: 0 4px 12px rgba(39, 92, 67, 0.25);
}

/* Quick Switch to Admin Button */
.fo-admin-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fo-admin-switch-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.fo-admin-switch-icon {
    font-size: 13px;
}

/* Nav Referral Pill Button */
.fo-nav-ref-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fo-nav-ref-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Nav Notification Pill Button */
.fo-nav-notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fo-nav-notif-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Nav Review Pill Button */
.fo-nav-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    border: none;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fo-nav-review-btn .fo-review-text-full {
    display: inline;
}

.fo-nav-review-btn .fo-review-text-short {
    display: none;
}

.fo-nav-review-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Global Referral Modal */
.fo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: foFadeIn 0.2s ease-out;
}

.fo-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 540px;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: foSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #193526, #214c3b);
    color: #ffffff;
}

.fo-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.fo-modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s;
}

.fo-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fo-modal-body {
    padding: 24px;
}

@keyframes foFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes foSlideUp {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fo-mobile-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    border-radius: 10px;
    padding: 7px 10px;
    cursor: pointer;
    color: #1e293b;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.fo-mobile-toggle:hover,
.fo-mobile-toggle:active {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Mobile Drawer Overlay */
.fo-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
}

.fo-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    background: #ffffff;
    z-index: 2001;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--vfh-shadow-lg);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fo-drawer.open {
    transform: translateX(0);
}

.fo-drawer-backdrop.open {
    display: block;
}

.fo-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vfh-line);
}

.fo-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
}

.fo-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fo-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    border-radius: var(--vfh-radius-sm);
    transition: background 0.15s ease;
}

.fo-drawer-links a:hover,
.fo-drawer-links a.active {
    background: var(--vfh-green-light);
    color: var(--vfh-green);
}

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.fo-hero {
    background: linear-gradient(145deg, #193526 0%, #214c3b 60%, #173b2d 100%);
    color: #ffffff;
    padding: 50px 24px 70px;
    position: relative;
    overflow: hidden;
}

.fo-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.fo-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.fo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #bbf7d0;
    margin-bottom: 18px;
}

.fo-hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.5px;
}

.fo-hero-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Quick Search Container in Hero */
.fo-hero-search {
    background: #ffffff;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--vfh-text);
}

.fo-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-sm);
}

.fo-search-input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    color: var(--vfh-text);
}

.fo-search-btn {
    background: var(--vfh-green);
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: var(--vfh-radius-sm);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fo-search-btn:hover {
    background: var(--vfh-primary);
    box-shadow: 0 4px 12px rgba(39, 92, 67, 0.3);
}

/* --------------------------------------------------------------------------
   GROUP FILTER TABS (12 GROUPS)
   -------------------------------------------------------------------------- */
.fo-group-filter-wrap {
    max-width: 1360px;
    margin: -30px auto 35px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.fo-group-filter-scroll {
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-lg);
    box-shadow: var(--vfh-shadow-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.fo-group-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fo-group-tab:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.fo-group-tab.active {
    background: var(--vfh-primary);
    color: #ffffff;
    border-color: var(--vfh-primary);
    box-shadow: 0 4px 10px rgba(25, 53, 38, 0.3);
}

/* --------------------------------------------------------------------------
   JOB BOARD (กระดานงานจ้าง)
   -------------------------------------------------------------------------- */
.fo-section {
    max-width: 1360px;
    margin: 0 auto 50px;
    padding: 0 24px;
}

.fo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.fo-section-title-wrap {
    display: flex;
    flex-direction: column;
}

.fo-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--vfh-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fo-section-sub {
    font-size: 13.5px;
    color: var(--vfh-muted);
    margin: 4px 0 0;
}

.fo-tab-buttons {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.fo-tab-btn {
    border: none;
    background: transparent;
    padding: 7px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s ease;
}

.fo-tab-btn.active {
    background: #ffffff;
    color: var(--vfh-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.fo-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.fo-job-card {
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-md);
    box-shadow: var(--vfh-shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.fo-job-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--vfh-shadow-md);
    transform: translateY(-2px);
}

.fo-job-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fo-job-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fo-badge-broadcast {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.fo-badge-direct {
    background: #fdf4ff;
    color: #86198f;
    border: 1px solid #f5d0fe;
}

.fo-job-price {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
}

.fo-job-route {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: var(--vfh-radius-sm);
    padding: 12px;
}

.fo-route-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
}

.fo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.fo-dot.start { background: #10b981; }
.fo-dot.end { background: #ef4444; }

.fo-route-text strong {
    color: #334155;
    font-weight: 600;
}

.fo-job-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 12.5px;
    color: #64748b;
}

.fo-job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fo-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    gap: 10px;
}

.fo-tier-badge {
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fo-btn-claim {
    background: var(--vfh-green);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fo-btn-claim:hover {
    background: var(--vfh-primary);
}

.fo-btn-claim:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Locked Card for Delayed Jobs */
.fo-job-locked {
    filter: grayscale(0.5);
    opacity: 0.75;
    background: #fcfcfc;
}

.fo-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   AVAILABLE VEHICLES CATALOG (แคตตาล็อกรถว่าง)
   -------------------------------------------------------------------------- */
.fo-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.fo-vehicle-card {
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-md);
    box-shadow: var(--vfh-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fo-vehicle-card:hover {
    box-shadow: var(--vfh-shadow-md);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.fo-vehicle-cover-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    background: #f1f5f9;
    overflow: hidden;
}

.fo-vehicle-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.fo-vehicle-card:hover .fo-vehicle-cover {
    transform: scale(1.04);
}

.fo-vehicle-group-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.fo-vehicle-rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fo-vehicle-photo-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 2;
}

.fo-card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}

.fo-card-prev {
    left: 8px;
}

.fo-card-next {
    right: 8px;
}

.fo-vehicle-cover-wrap:hover .fo-card-nav {
    opacity: 1;
}

.fo-card-nav:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

.fo-vehicle-thumbs-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.fo-vehicle-thumbs-strip::-webkit-scrollbar {
    height: 4px;
}

.fo-vehicle-thumbs-strip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.fo-vehicle-thumb-item {
    flex: 0 0 54px;
    width: 54px;
    height: 40px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
    position: relative;
    box-sizing: border-box;
}

.fo-vehicle-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.fo-vehicle-thumb-item:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    border-color: #94a3b8;
}

.fo-vehicle-thumb-item.is-active {
    opacity: 1;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(37, 99, 235, 0.2);
    transform: scale(1.03);
}

.fo-vehicle-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.fo-vehicle-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fo-vehicle-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.fo-vehicle-plate {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.fo-vehicle-specs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #475569;
}

.fo-spec-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fo-vehicle-pricing {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: var(--vfh-radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.fo-price-label {
    font-size: 12px;
    color: #166534;
    font-weight: 600;
}

.fo-price-val {
    font-size: 20px;
    font-weight: 800;
    color: #15803d;
}

.fo-vehicle-footer {
    display: grid;
    grid-template-columns: minmax(76px, auto) 1fr 1.15fr;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
}

.fo-btn-chat {
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #a7f3d0;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fo-btn-chat:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

.vehicle-chat-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: #ffffff;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.vehicle-chat-badge-btn:hover {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

@media (max-width: 420px) {
    .fo-vehicle-footer {
        grid-template-columns: 1fr 1fr;
    }
    .fo-btn-chat {
        grid-column: 1 / -1;
        padding: 9px 12px;
    }
}

.fo-btn-view {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.fo-btn-view:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.fo-btn-book {
    background: var(--vfh-green);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.fo-btn-book:hover {
    background: var(--vfh-primary);
}

/* --------------------------------------------------------------------------
   WALLET & PROFILE & FORMS STYLES
   -------------------------------------------------------------------------- */
.fo-card {
    background: #ffffff;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-md);
    box-shadow: var(--vfh-shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.fo-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--vfh-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fo-wallet-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.fo-wallet-card {
    border-radius: var(--vfh-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.fo-wallet-card.driving {
    background: linear-gradient(135deg, #193526, #275c43);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(25, 53, 38, 0.25);
}

.fo-wallet-card.referral {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

.fo-wallet-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.9;
}

.fo-wallet-amount {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.fo-wallet-desc {
    font-size: 12.5px;
    opacity: 0.85;
}

.fo-wallet-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fo-wallet-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Referral Card Interactive & Action */
.fo-wallet-card.referral.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fo-wallet-card.referral.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.4);
}
.fo-referral-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.fo-wallet-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.referral-action-btn {
    background: #ffffff !important;
    color: #0369a1 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 7px 16px !important;
    font-size: 12.5px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.referral-action-btn:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   REFERRAL NETWORK MODAL & VIEWS (TABLE & TREE)
   ========================================================= */
.fo-modal-card.network-modal {
    max-width: 1060px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.network-modal .fo-modal-header {
    background: linear-gradient(135deg, #0369a1, #0f766e);
    flex-shrink: 0;
}
.network-modal .modal-subtitle {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #e0f2fe;
    font-weight: 400;
}
.network-modal .fo-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
    flex: 1;
}

/* KPI Summary Cards */
.network-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
}
.kpi-card.total {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #a7f3d0;
}
.kpi-card.level1 {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #bae6fd;
}
.kpi-card.level2 {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-color: #fde047;
}
.kpi-card.count {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-color: #ddd6fe;
}
.kpi-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.kpi-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.kpi-content small {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kpi-content strong {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 2px 0;
}
.kpi-card.total strong { color: #047857; }
.kpi-card.level1 strong { color: #0284c7; }
.kpi-card.level2 strong { color: #b45309; }
.kpi-card.count strong { color: #6d28d9; }
.kpi-content span {
    font-size: 11px;
    color: #64748b;
}

/* View Mode Selector Bar */
.network-view-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.view-mode-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}
.view-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.view-tab-btn.active {
    background: #ffffff;
    color: #0369a1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.table-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.table-filters .search-input {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    outline: none;
    min-width: 180px;
}
.table-filters .filter-select {
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    background: #fff;
    outline: none;
}

/* Table View Styles */
.network-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.network-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}
.network-table th {
    background: #f8fafc;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}
.network-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}
.network-table tr:hover td {
    background: #f8fafc;
}
.member-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
}
.member-cell strong {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
}
.member-cell small {
    display: block;
    font-size: 11px;
    color: #64748b;
}
.level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.level-badge.level-1 {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.level-badge.level-2 {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.direct-tag {
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
}
.parent-tag {
    font-size: 11.5px;
    color: #475569;
    font-weight: 500;
}
.vehicle-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    color: #334155;
    font-weight: 600;
}
.comm-amount {
    color: #059669;
    font-size: 14px;
    font-weight: 800;
}
.status-badge.active {
    color: #16a34a;
    font-weight: 600;
    font-size: 11.5px;
}

/* Tree View Styles */
.network-tree-wrap {
    padding: 10px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tree-root-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
}
.tree-node {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tree-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.tree-node.root-node {
    width: 100%;
    border-color: #0f766e;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
}
.tree-node.root-node .node-badge {
    background: #0f766e;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    text-align: center;
    letter-spacing: 0.5px;
}
.tree-node .node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.tree-node .node-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}
.node-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}
.node-avatar.sm {
    width: 40px;
    height: 40px;
}
.node-info {
    flex: 1;
    min-width: 0;
}
.node-info h4 {
    margin: 0 0 2px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.node-role {
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
    display: block;
}
.node-phone {
    font-size: 11.5px;
    color: #64748b;
    display: block;
}
.node-meta {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin: 2px 0 4px;
}
.node-earnings {
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
}
.node-earnings.success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.node-earnings.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.node-earnings strong {
    font-weight: 800;
    font-size: 13px;
}
.node-footer {
    padding: 6px 12px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #64748b;
    text-align: center;
    font-weight: 500;
}
.node-branch-toggle {
    padding: 6px 12px;
    background: #eff6ff;
    border-top: 1px dashed #bfdbfe;
    font-size: 11px;
    color: #1d4ed8;
    text-align: center;
    font-weight: 600;
}

/* Tree Trunk & Level Connectors */
.tree-trunk-line {
    width: 2px;
    height: 24px;
    background: #94a3b8;
    margin: 0 auto;
}
.tree-level-title {
    background: #f1f5f9;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 16px;
}
.tree-level1-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
}
.tree-node.level1-node {
    width: 100%;
    border-color: #38bdf8;
}
.tree-sub-connector {
    width: 2px;
    height: 18px;
    background: #cbd5e1;
    margin: 0 auto;
}
.tree-level2-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 95%;
    padding-left: 10px;
    border-left: 2px dashed #cbd5e1;
}
.tree-node.level2-node {
    width: 100%;
    border-color: #fde047;
    background: #fffdf5;
}

@media (max-width: 768px) {
    .network-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .kpi-card {
        padding: 10px 12px;
    }
    .kpi-icon {
        font-size: 22px;
    }
    .kpi-content strong {
        font-size: 16px;
    }
    .tree-branch {
        max-width: 100%;
        width: 100%;
    }
    .tree-level1-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .network-view-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .view-mode-tabs {
        width: 100%;
    }
    .view-tab-btn {
        flex: 1;
        justify-content: center;
    }
    .table-filters {
        width: 100%;
    }
    .table-filters .search-input,
    .table-filters .filter-select {
        flex: 1;
    }
}

/* Payment Breakdown Display */
.fo-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.fo-breakdown-box {
    background: #f8fafc;
    border: 1px solid var(--vfh-line);
    border-radius: var(--vfh-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fo-breakdown-box.deposit {
    border-left: 4px solid #10b981;
}

.fo-breakdown-box.pending {
    border-left: 4px solid #f59e0b;
}

.fo-breakdown-label {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.fo-breakdown-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

/* Form Styles */
.fo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fo-form-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

.fo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fo-field.wide {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fo-field label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.fo-field input:not([type="checkbox"]):not([type="radio"]),
.fo-field select,
.fo-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.fo-field select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.fo-field input[type="checkbox"],
.fo-field input[type="radio"] {
    box-sizing: border-box;
    flex-shrink: 0;
}

.fo-field input:focus,
.fo-field select:focus,
.fo-field textarea:focus {
    outline: none;
    border-color: var(--vfh-green);
    box-shadow: 0 0 0 3px rgba(39, 92, 67, 0.12);
}

.fo-field small {
    font-size: 11.5px;
    color: #64748b;
}

/* Gallery Upload Grid (Unlimited Photos) */
.fo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.fo-gallery-item {
    position: relative;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vfh-line);
}

.fo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fo-gallery-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(225, 29, 72, 0.85);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fo-gallery-item.add {
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
}

.fo-gallery-item.add:hover {
    border-color: var(--vfh-green);
    color: var(--vfh-green);
}

/* Footer */
.fo-footer {
    display: block !important;
    width: 100% !important;
    background: #0f172a;
    color: #94a3b8;
    padding: 50px 24px 30px;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

.fo-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.fo-footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 16px;
}

.fo-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fo-footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.15s ease;
}

.fo-footer-col a:hover {
    color: #ffffff;
}

.fo-footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Mobile Bottom Navigation Bar (Hidden by default on Desktop/Tablet) */
.fo-bottom-nav {
    display: none;
}

/* Mobile Footer PWA install button (Hidden by default on Desktop/Tablet) */
.fo-footer-mobile-pwa,
.fo-mobile-only-link {
    display: none !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .fo-nav-links {
        display: none !important;
    }
    .fo-mobile-toggle {
        display: inline-flex !important;
    }
    .fo-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .fo-navbar {
        padding: 8px 12px;
        gap: 8px;
    }
    .fo-brand {
        gap: 0;
    }
    .fo-brand img {
        height: 36px;
        width: auto;
    }
    .fo-brand .fo-brand-text {
        display: none !important;
    }
    .fo-nav-actions {
        gap: 6px;
    }
    /* In mobile appbar, tuck secondary desktop-oriented pills into the drawer */
    .fo-nav-ref-btn,
    .fo-admin-switch-btn {
        display: none !important;
    }
    /* Refine the Star & Review button for sleek mobile appbar */
    /* Hide top appbar review button on mobile (already present in bottom nav bar) */
    .fo-nav-review-btn {
        display: none !important;
    }
    .fo-btn-login {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 16px;
    }
    .fo-btn-login .fo-login-text-full {
        display: none !important;
    }
    .fo-btn-login .fo-login-text-short {
        display: inline !important;
    }
    .fo-chat-pill,
    .fo-nav-contact-btn {
        padding: 6px 11px;
        font-size: 12px;
        border-radius: 16px;
    }
    .fo-wallet-pill {
        padding: 4px 10px;
        font-size: 12px;
    }
    .fo-mobile-toggle {
        padding: 6px 8px;
        border-radius: 8px;
    }
    .fo-mobile-toggle svg {
        width: 20px;
        height: 20px;
    }

    /* Page Containers & Hero responsive */
    .fo-page-container {
        padding: 16px 12px 60px !important;
    }
    .fo-review-hero {
        padding: 22px 18px !important;
        border-radius: 16px !important;
        margin-bottom: 18px !important;
    }
    .fo-review-hero-h1 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    .fo-hero-title {
        font-size: 24px;
    }
    .fo-hero-subtitle {
        font-size: 13.5px;
    }
    .fo-hero-search {
        flex-direction: column;
        align-items: stretch;
    }
    .fo-search-btn {
        width: 100%;
    }
    .fo-job-grid,
    .fo-vehicle-grid {
        grid-template-columns: 1fr;
    }
    .fo-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .fo-user-name,
    .fo-user-role {
        display: none;
    }
    .fo-user-btn {
        padding: 2px !important;
        border-radius: 50% !important;
        border: 1.5px solid #cbd5e1 !important;
        gap: 0 !important;
        background: transparent !important;
    }
    .fo-user-btn > span:last-child {
        display: none !important;
    }
    .fo-avatar {
        width: 30px !important;
        height: 30px !important;
    }

    /* Mobile Page Footer Spacing to prevent overlay by Bottom Nav */
    .fo-footer {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 36px 18px calc(85px + env(safe-area-inset-bottom, 0px)) !important;
        margin-top: 36px !important;
    }
    .fo-footer-inner {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }
    .fo-footer-col:first-child,
    .fo-footer-col:last-child {
        grid-column: span 2;
    }
    .fo-footer-bottom {
        width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding-top: 18px;
        color: #64748b;
        font-size: 11.5px;
        line-height: 1.5;
    }

    /* Mobile PWA Install Card in Footer */
    .fo-footer-mobile-pwa {
        display: block !important;
        margin: 22px 0 14px 0;
        width: 100%;
    }
    .fo-mobile-only-link {
        display: block !important;
    }
    .fo-footer-pwa-btn {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border: 1.5px solid #10b981;
        border-radius: 16px;
        padding: 12px 14px;
        color: #ffffff;
        text-align: left;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(6, 78, 59, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.2);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        font-family: inherit;
    }
    .fo-footer-pwa-btn:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(6, 78, 59, 0.5);
    }
    .fo-footer-pwa-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: #ffffff;
        padding: 3px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .fo-footer-pwa-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .fo-footer-pwa-content {
        flex: 1;
        min-width: 0;
    }
    .fo-footer-pwa-badge {
        font-size: 9.5px;
        font-weight: 800;
        color: #a7f3d0;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    .fo-footer-pwa-title {
        display: block;
        font-size: 14.5px;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.25;
    }
    .fo-footer-pwa-desc {
        display: block;
        font-size: 11px;
        color: #d1fae5;
        line-height: 1.35;
        margin-top: 2px;
        opacity: 0.9;
    }
    .fo-footer-pwa-action {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #10b981;
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 10px;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    }

    /* Mobile Bottom Navigation Bar (Footer Menu) */
    .fo-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
        align-items: center;
        justify-content: space-around;
        padding: 4px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        height: 60px;
        box-sizing: border-box;
    }

    .fo-bottom-nav-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        padding: 4px 2px;
        color: #64748b;
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 500;
        cursor: pointer;
        border-radius: 8px;
        transition: color 0.18s ease, transform 0.18s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        text-align: center;
        min-width: 0;
    }

    .fo-bottom-nav-link:hover {
        color: #193526;
    }

    .fo-bottom-nav-link.active {
        color: #193526;
        font-weight: 700;
    }

    .fo-bottom-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        margin-bottom: 1px;
    }

    .fo-bottom-nav-icon svg {
        stroke: #64748b;
        transition: stroke 0.18s ease, transform 0.18s ease;
    }

    .fo-bottom-nav-link.active .fo-bottom-nav-icon svg {
        stroke: #193526;
        stroke-width: 2.3;
    }

    .fo-bottom-nav-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.1;
    }

    /* Floating Center Button for Star Rating & Review */
    .fo-bottom-nav-center {
        position: relative;
        margin-top: -16px;
    }

    .fo-bottom-nav-star-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
        border: 2.5px solid #ffffff;
        color: #ffffff;
        transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
    }

    .fo-bottom-nav-center:active .fo-bottom-nav-star-circle {
        transform: scale(0.92);
    }

    .fo-bottom-nav-center.active .fo-bottom-nav-star-circle {
        background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
        box-shadow: 0 4px 16px rgba(217, 119, 6, 0.6);
        transform: scale(1.05);
    }

    .fo-bottom-nav-center .fo-bottom-nav-label {
        color: #b45309;
        font-weight: 700;
        margin-top: 2px;
    }

    /* Mobile Bottom Nav User Avatar */
    .fo-bottom-nav-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid #10b981;
    }

    .fo-bottom-nav-avatar-fallback {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #ecfdf5;
        color: #059669;
        font-weight: 700;
        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #a7f3d0;
    }
}

/* --------------------------------------------------------------------------
   MODAL TABS, VERIFIED DOCUMENTS, WORK HISTORY & WORK PHOTOS STYLES
   -------------------------------------------------------------------------- */
.fo-modal-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.fo-modal-tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.fo-modal-tab-btn:hover {
    color: var(--vfh-green);
    background: rgba(39, 92, 67, 0.05);
}

.fo-modal-tab-btn.active {
    color: var(--vfh-green);
    font-weight: 700;
    border-bottom-color: var(--vfh-green);
    background: rgba(39, 92, 67, 0.06);
}

.fo-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.fo-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.fo-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.fo-doc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.fo-doc-thumb {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.fo-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fo-doc-thumb:hover img {
    transform: scale(1.04);
}

.fo-doc-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
}

.fo-doc-thumb:hover .fo-doc-thumb-overlay {
    opacity: 1;
}

.fo-verified-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fo-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .fo-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fo-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.fo-stat-box span {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

.fo-stat-box strong {
    font-size: 18px;
    color: #0f172a;
    display: block;
}

.fo-stat-box small {
    font-size: 11px;
    color: #64748b;
}

.fo-history-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.fo-history-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fo-work-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.fo-work-photo-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fo-work-photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.fo-work-photo-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.fo-work-photo-caption {
    padding: 10px 12px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 500;
}

.fo-work-photo-caption small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* Fullscreen Lightbox */
.fo-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fo-lightbox-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 820px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.fo-lightbox-img-wrap {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 65vh;
    overflow: hidden;
}

.fo-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}


.provider-group-field{padding:16px;border:1px solid #bcdccd;background:#f1f8f3;border-radius:12px}.provider-group-field select{padding:13px;border:1px solid #bdd1c5;border-radius:9px;background:white;font-family:inherit;width:100%;color:#193526}

.fo-referral-banner-wrap {
    max-width: 1360px;
    margin: 14px auto 0;
    padding: 0 24px;
}

.referral-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.06);
    font-size: 13px;
    position: relative;
}

.referral-share-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.referral-share-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid #bbf7d0;
}

.referral-share-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.referral-share-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.referral-share-title-wrap strong {
    font-size: 14.5px;
    color: #14532d;
    font-weight: 800;
}

.referral-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.referral-role-badge.provider-badge {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.referral-role-badge.central-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.referral-share-info small {
    color: #4b5563;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.referral-code-pill {
    background: #15803d;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.referral-rule-note {
    color: #6b7280;
    font-size: 11.5px;
}

.referral-share-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    min-width: 300px;
}

.referral-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.referral-input-group input {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.referral-input-group input:focus {
    border-color: #16a34a;
}

.referral-copy-button {
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    background: #15803d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

.referral-copy-button:hover {
    background: #166534;
    transform: translateY(-1px);
}

.referral-copy-button.copied {
    background: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.referral-copy-toast {
    font-size: 11.5px;
    color: #15803d;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   CHAT SYSTEM STYLES (RESPONSIVE DESKTOP & MOBILE)
   -------------------------------------------------------------------------- */
.fo-chat-section {
    max-width: 1120px;
    margin: 24px auto 50px;
    padding: 0 16px;
}

.fo-chat-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr;
    height: calc(100vh - 200px);
    min-height: 600px;
    max-height: 820px;
}

/* Chat Sidebar (Rooms List) */
.fo-chat-sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.fo-chat-sidebar-header {
    padding: 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fo-chat-sidebar-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: #193526;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fo-chat-rooms-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.fo-chat-room-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    background: transparent;
    border-left: 4px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.fo-chat-room-item:hover {
    background: #f1f5f9;
}

.fo-chat-room-item.active {
    background: #ffffff;
    border-left-color: #193526;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
}

.fo-chat-room-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #d1fae5;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fo-chat-room-avatar img,
.fo-chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.fo-chat-room-avatar.admin {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.fo-chat-room-info {
    flex: 1;
    min-width: 0;
}

.fo-chat-room-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.fo-chat-room-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo-chat-room-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
    flex-shrink: 0;
}

.fo-chat-room-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fo-chat-room-last-msg {
    font-size: 12.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.fo-chat-room-badge {
    background: #e11d48;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Chat Main (Active Room) */
.fo-chat-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    min-width: 0;
}

.fo-chat-header {
    padding: 13px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    gap: 12px;
    flex-shrink: 0;
}

.fo-chat-back-btn {
    display: none;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #193526;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.fo-chat-back-btn:active {
    background: #e2e8f0;
}

.fo-chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.fo-chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.4);
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fo-chat-header-info {
    min-width: 0;
}

.fo-chat-header-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fo-chat-header-status {
    font-size: 11.5px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fo-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.fo-booking-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
}

.fo-chat-refresh-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 10px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fo-chat-refresh-btn:hover {
    background: #f1f5f9;
    color: #193526;
}

/* Messages Stream */
.fo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fcfdfd;
}

.fo-chat-msg-row {
    display: flex;
    flex-direction: column;
}

.fo-chat-msg-row.me {
    align-items: flex-end;
}

.fo-chat-msg-row.other {
    align-items: flex-start;
}

.fo-chat-msg-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 3px;
    padding: 0 4px;
}

.fo-chat-msg-bubble {
    max-width: 72%;
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}

.fo-chat-msg-row.me .fo-chat-msg-bubble {
    background: #193526;
    color: #ffffff;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 2px 8px rgba(25, 53, 38, 0.15);
}

.fo-chat-msg-row.other .fo-chat-msg-bubble {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Chat Input Bar */
.fo-chat-input-bar {
    padding: 12px 18px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    flex-shrink: 0;
}

.fo-chat-input {
    flex: 1;
    padding: 11px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fo-chat-input:focus {
    border-color: #193526;
    background: #ffffff;
}

.fo-chat-send-btn {
    border-radius: 24px;
    padding: 10px 20px;
    background: #193526;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fo-chat-send-btn:hover:not(:disabled) {
    background: #234c38;
}

.fo-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Breakpoints for Mobile */
@media (max-width: 768px) {
    .fo-chat-section {
        margin: 10px auto calc(70px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 0 10px !important;
    }

    .fo-chat-card {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100dvh - 145px) !important;
        min-height: 480px !important;
        max-height: none !important;
        border-radius: 14px !important;
    }

    .fo-chat-back-btn {
        display: inline-flex !important;
    }

    .fo-chat-card.show-list .fo-chat-sidebar {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        border-right: none !important;
    }

    .fo-chat-card.show-list .fo-chat-main {
        display: none !important;
    }

    .fo-chat-card.show-room .fo-chat-sidebar {
        display: none !important;
    }

    .fo-chat-card.show-room .fo-chat-main {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
    }

    .fo-chat-msg-bubble {
        max-width: 84% !important;
        padding: 10px 14px !important;
        font-size: 13.5px !important;
    }

    .fo-chat-header {
        padding: 10px 12px !important;
    }

    .fo-chat-messages {
        padding: 14px 12px !important;
    }

    .fo-chat-input-bar {
        padding: 9px 12px !important;
        gap: 8px !important;
    }

    .fo-chat-send-btn {
        padding: 9px 15px !important;
        font-size: 13px !important;
    }
}

.super-home{max-width:1360px;margin:0 auto;padding:30px 28px 50px;color:#17392f}.super-launchpad{background:linear-gradient(125deg,#eef6f0,#fbfcf8 65%);border:1px solid #e0e9e3;border-radius:28px;padding:30px}.super-welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.super-eyebrow{font-size:10px;letter-spacing:2px;color:#718477;font-weight:600}.super-welcome h1{font-size:32px;line-height:1.4;margin:8px 0;font-weight:600}.super-welcome h1 span{color:#b7944d}.super-welcome p{font-size:14px;color:#718477;margin:0}.super-account{display:grid;place-items:center;width:46px;height:46px;background:#163c30;color:#eee0b6;border-radius:50%;text-decoration:none;font-size:24px}.super-search{background:white;padding:20px;border-radius:20px;border:1px solid #e5ebe6;box-shadow:0 10px 28px #1a422208}.super-search-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:14px}.super-search-heading span{color:#86978c;font-size:11px}.super-home .fo-hero-search{margin:0;max-width:none;padding:0;box-shadow:none;display:flex;gap:10px;border-radius:0}.super-home .fo-search-input-wrap{min-width:0;background:#f5f8f6;border:1px solid #e3eae5;border-radius:12px}.super-home .fo-search-btn{border-radius:12px}.super-home .fo-hero-search .fo-nav-review-btn{display:none!important}.super-services{display:grid;grid-template-columns:repeat(8,1fr);gap:16px;margin:26px 0 0}.super-services a,.super-services button{display:flex;flex-direction:column;align-items:center;gap:10px;color:#314c40;text-decoration:none;background:none;border:0;font:inherit;cursor:pointer;min-width:0}.super-services strong{font-size:12px;font-weight:500}.service-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:19px;font-size:27px;box-shadow:inset 0 1px 0 #fff;transition:transform .2s}.super-services a:hover .service-icon,.super-services button:hover .service-icon{transform:translateY(-4px)}.mint{background:#dceee3;color:#24523d}.blue{background:#e0edf6;color:#4b7495}.peach{background:#f8e9dc;color:#a77946}.lilac{background:#ece6f4;color:#826899}.gold{background:#f4edcf;color:#a78324}.super-promo-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 14px}.super-promo-heading h2{font-size:22px;margin:5px 0 0;font-weight:600}.super-promo-heading a{font-size:12px;color:#557363;text-decoration:none}.super-home .fo-group-filter-wrap{margin:20px 0 26px;padding:0;max-width:none}.super-home .fo-group-filter-scroll{box-shadow:none;background:transparent;padding:4px 0 12px;scrollbar-width:thin}.super-home .fo-section{padding:0;margin:0 0 32px;scroll-margin-top:100px}.super-home .fo-section-title{font-size:23px}.super-home .fo-vehicle-card{border-radius:22px;box-shadow:0 8px 24px #20402c08;border-color:#e3eae5;overflow:hidden}.super-home .fo-vehicle-cover{transition:transform .4s}.super-home .fo-vehicle-card:hover .fo-vehicle-cover{transform:scale(1.035)}.super-home a:focus-visible,.super-home button:focus-visible{outline:3px solid #ba9652;outline-offset:4px}
@media(max-width:600px){.super-home{padding:18px 16px 30px}.super-launchpad{border:0;border-radius:0;background:none;padding:0}.super-welcome{margin-bottom:18px}.super-welcome h1{font-size:25px;margin:5px 0}.super-welcome p{font-size:12px}.super-eyebrow{font-size:8px;letter-spacing:1.7px}.super-account{width:38px;height:38px;font-size:21px}.super-search{padding:14px;border-radius:20px;box-shadow:0 6px 20px #153b2010}.super-search-heading{font-size:12px}.super-search-heading span{font-size:10px}.super-home .fo-hero-search{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;width:100%}.super-home .fo-search-input-wrap:first-child{grid-column:1/-1}.super-home .fo-search-input-wrap{max-width:none!important;width:100%;padding:10px;min-height:44px}.super-home .fo-search-input-wrap input{font-size:12px;min-width:0;width:100%}.super-home .fo-search-input-wrap select{font-size:12px!important}.super-home .fo-search-btn{width:100%;font-size:12px;padding:10px}.super-services{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 6px;margin-top:24px}.service-icon{width:51px;height:51px;border-radius:17px;font-size:25px}.super-services strong{font-size:10px;white-space:nowrap}.super-services a,.super-services button{gap:7px}.super-promo-heading{margin-top:28px;margin-bottom:12px}.super-promo-heading h2{font-size:18px}.super-promo-heading a{font-size:10px}.super-home .fo-group-filter-wrap{margin:16px 0 20px}.super-home .fo-group-tab{font-size:11px;padding:9px 14px}.super-home .fo-section-title{font-size:19px}.super-home .fo-section-sub{font-size:12px}.super-home .fo-vehicle-grid{grid-template-columns:1fr;gap:18px}.super-home .fo-vehicle-cover-wrap{height:195px}.super-home .fo-section-header{gap:12px}.super-home .fo-section{scroll-margin-top:85px}}
@media(prefers-reduced-motion:reduce){.service-icon,.super-home .fo-vehicle-cover{transition:none}}
/* The router focuses the page heading after navigation. */
.super-welcome h1:focus{outline:none}
@media(max-width:600px){.super-home{padding-top:4px}.super-welcome{margin-bottom:14px}.super-search .fo-search-input-wrap{min-height:42px;padding:8px 10px}.super-services{margin-top:20px;gap:17px 6px}}
.fo-mobile-backbar{display:none}@media(max-width:767px){.fo-mobile-backbar{display:flex;padding:8px 20px 12px;max-width:1360px;margin:auto}.fo-mobile-backbar button{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 15px;background:#edf3ee;border:1px solid #dbe6de;border-radius:24px;font:inherit;font-size:13px;color:#264d39;cursor:pointer}.fo-mobile-backbar button span{font-size:22px;line-height:1}.fo-mobile-backbar button:focus-visible{outline:2px solid #8d773e;outline-offset:3px}.fo-mobile-backbar button:hover{background:#e2ede5}}
/* Mobile back control floats above the bottom navigation. */
@media(max-width:767px){.fo-mobile-backbar{position:fixed;left:16px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:90;display:flex;margin:0;padding:0;width:auto;max-width:none;pointer-events:none}.fo-mobile-backbar button{pointer-events:auto;min-height:46px;padding:10px 16px;gap:8px;background:#fffef5f2;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid #d8e3d9;border-radius:999px;box-shadow:0 5px 20px #163c3026;color:#244b37}.fo-mobile-backbar button:hover{background:#fff}.fo-mobile-backbar button:active{transform:scale(.97)}}
/* Back button overlays the mobile logo, anchored to the sticky app bar. */
@media(max-width:767px){.fo-navbar{position:relative}.fo-mobile-backbar{position:absolute;left:8px;top:50%;bottom:auto;transform:translateY(-50%);z-index:2;margin:0;padding:0}.fo-mobile-backbar button{width:40px;height:40px;min-height:40px;padding:0;display:grid;place-items:center;gap:0;border-radius:12px;background:#fff;border:1px solid #dce6df;box-shadow:0 2px 8px #21462d12;backdrop-filter:none}.fo-mobile-backbar button span{font-size:25px}}
@media(max-width:600px){.super-services .super-stories strong{white-space:normal;text-align:center;line-height:1.5;max-width:80px}}

/* Quick Withdrawal Percentage Buttons */
.withdraw-percent-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.btn-percent-pill {
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a2b;
    background: #f1f5f3;
    border: 1.5px solid #d1ded6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    outline: none;
    font-family: inherit;
}

.btn-percent-pill:hover {
    background: #e2ede6;
    border-color: #214c3b;
    color: #183b30;
    transform: translateY(-1px);
}

.btn-percent-pill.active {
    background: #214c3b;
    border-color: #214c3b;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(33, 76, 59, 0.25);
}

/* 3rd Wallet Card: Pending Withdrawal */
.fo-wallet-card.pending-withdraw {
    background: linear-gradient(135deg, #9a3412, #c2410c);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.25);
}

.fo-wallet-btn.disabled,
.fo-wallet-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    pointer-events: none;
}

/* Pending Withdrawal Notice Banner */
.fo-pending-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 20px;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.08);
}

.fo-pending-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    flex: 1;
    min-width: 260px;
}

.fo-pending-banner-left strong {
    color: #78350f;
    font-size: 14.5px;
}

.fo-pending-banner-left span {
    display: block;
    font-size: 12px;
    color: #b45309;
    margin-top: 2px;
}

.fo-pending-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #b45309;
    text-decoration: none;
    background: #fef3c7;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #fcd34d;
    transition: all 0.15s ease;
    cursor: pointer;
    font-family: inherit;
}

.fo-pending-banner-link:hover {
    background: #fde68a;
    color: #78350f;
}

/* Withdrawal History Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-status.requested {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status.approved {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.badge-status.paid {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-status.rejected {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-status.cancelled {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Withdrawal Cancellation Buttons */
.fo-cancel-withdraw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #b91c1c;
    background: #fef2f2;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #fecaca;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.fo-cancel-withdraw-btn:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.card-cancel-link {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.card-cancel-link:hover:not(:disabled) {
    background: rgba(225, 29, 72, 0.8);
    border-color: rgba(225, 29, 72, 0.9);
}

.btn-table-cancel {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-table-cancel:hover:not(:disabled) {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* --------------------------------------------------------------------------
   FLOATING CONTACT WIDGET (COLLAPSIBLE / EXPANDABLE)
   -------------------------------------------------------------------------- */
.fo-floating-contact-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 992px) {
    .fo-floating-contact-wrap {
        display: none !important;
    }
}

.fo-floating-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4), 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fo-floating-contact-btn:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(22, 163, 74, 0.5);
}

.fo-floating-contact-btn.active {
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.fo-fab-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fo-fab-ping-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: foFabPulse 2s infinite;
}

@keyframes foFabPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.fo-contact-card-popup {
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    overflow: hidden;
    animation: foSlideUpFade 0.22s ease-out;
}

@keyframes foSlideUpFade {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fo-contact-card-header {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bbf7d0;
}

.fo-contact-card-close {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.fo-contact-card-close:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.fo-contact-card-body {
    padding: 14px 16px;
}

.fo-contact-call-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff !important;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.fo-contact-call-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
    color: #ffffff !important;
}

.fo-contact-chat-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12.5px;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}

.fo-contact-chat-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.fo-contact-send-msg-btn {
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.fo-contact-send-msg-btn:hover:not(:disabled) {
    background: #15803d;
}

.fo-contact-send-msg-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fo-contact-full-chat-btn {
    font-size: 11.5px;
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.fo-contact-full-chat-btn:hover {
    text-decoration: underline;
}

.fo-contact-open-chat-link {
    color: #15803d;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.fo-contact-open-chat-link:hover {
    text-decoration: underline;
}

.fo-contact-login-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #193526;
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
}

@keyframes foPulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.fo-chat-badge-bubble {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    animation: foPulseBadge 1.8s infinite ease-in-out;
}

/* Header & Navbar Chat Pill Button */
.fo-chat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fo-chat-pill:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(22, 101, 52, 0.12);
}

.fo-chat-pill.has-unread {
    background: #fff5f5;
    border-color: #fecaca;
    color: #b91c1c;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.1);
}

.fo-chat-pill.has-unread:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.fo-chat-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile Navbar Contact Pill Button & Dropdown (ปุ่มติดต่อเราบนแถบบาร์มือถือ) */
.fo-mobile-contact-wrap {
    display: none;
    position: relative;
}

@media (max-width: 992px) {
    .fo-mobile-contact-wrap {
        display: inline-flex;
        align-items: center;
    }
}

.fo-nav-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.fo-nav-contact-btn:hover,
.fo-nav-contact-btn.active {
    background: #dcfce7;
    border-color: #86efac;
    color: #14532d;
    box-shadow: 0 3px 8px rgba(22, 101, 52, 0.12);
}

.fo-nav-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #15803d;
}

.fo-nav-contact-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1100;
}

.fo-nav-contact-dropdown {
    position: fixed;
    top: 56px;
    left: 12px;
    right: 12px;
    max-width: 380px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    z-index: 1101;
    overflow: hidden;
    animation: foSlideDownFade 0.2s ease-out;
}

@keyframes foSlideDownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fo-contact-card-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #0284c7;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f0f9ff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.fo-contact-card-more-link:hover {
    background: #e0f2fe;
    color: #0369a1;
}

/* Push Notification Prompt Strip (Mobile & Desktop) */
.mobile-push-permission-strip {
    background: linear-gradient(90deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
    z-index: 999;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    animation: foFadeDown 0.3s ease;
}

.push-strip-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.push-strip-icon {
    font-size: 20px;
    flex-shrink: 0;
    animation: foBellShake 2s infinite ease-in-out;
}

.push-strip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.push-strip-text strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.push-strip-text span {
    font-size: 11.5px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e2e8f0;
}

.push-strip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.push-strip-btn {
    background: #facc15;
    color: #713f12;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.push-strip-btn:hover {
    background: #eab308;
    transform: translateY(-1px);
}

.push-strip-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    opacity: 0.75;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.push-strip-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

@keyframes foFadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes foBellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0); }
}

/* ==========================================================================
   WALLET BREAKDOWN & AUDIT DRILL-DOWN STYLES (ค่ารถหักส่วนกลาง & ค่าแนะนำ)
   ========================================================================== */

/* Navbar Wallet Pill with Caret & Dropdown */
.fo-wallet-pill-wrapper {
    position: relative;
    display: inline-block;
}

.fo-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.fo-wallet-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
}

.fo-wallet-caret {
    font-size: 10px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.fo-wallet-dropdown-card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 330px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    padding: 16px;
    z-index: 1200;
    animation: foFadeDown 0.2s ease-out;
}

.fo-wallet-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.fo-wallet-dropdown-total {
    font-size: 18px;
    font-weight: 800;
    color: #059669;
}

.fo-wallet-dropdown-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.fo-wallet-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.fo-wallet-dropdown-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.fo-wallet-dropdown-item.vehicle {
    border-left: 4px solid #10b981;
}

.fo-wallet-dropdown-item.referral {
    border-left: 4px solid #0284c7;
}

.fo-wallet-dropdown-item .item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fo-wallet-dropdown-item .item-icon {
    font-size: 20px;
}

.fo-wallet-dropdown-item .item-right {
    text-align: right;
}

.fo-wallet-dropdown-item .item-amount {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.fo-wallet-dropdown-item .item-link {
    font-size: 11.5px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.fo-wallet-dropdown-item .item-link:hover {
    text-decoration: underline;
}

.fo-wallet-dropdown-footer {
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.btn-wallet-full {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 12.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.btn-wallet-full:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Master Wallet Balance Card on Wallet Page */
.fo-master-balance-card {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    border-radius: 20px;
    padding: 26px 28px;
    color: #ffffff;
    box-shadow: 0 12px 32px -6px rgba(6, 78, 59, 0.35);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.fo-master-balance-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.master-balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.master-balance-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #d1fae5;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.master-balance-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.master-balance-sub {
    font-size: 13px;
    color: #a7f3d0;
    margin: 0;
    max-width: 520px;
    line-height: 1.5;
}

.master-total-box {
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: right;
    min-width: 260px;
}

.master-total-label {
    display: block;
    font-size: 12px;
    color: #d1fae5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.master-total-value {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin: 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.master-total-status {
    font-size: 11.5px;
    color: #6ee7b7;
    font-weight: 600;
}

/* 2 Pillars Grid */
.master-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

@media (max-width: 768px) {
    .master-breakdown-grid {
        grid-template-columns: 1fr;
    }
    .master-total-box {
        text-align: left;
        width: 100%;
    }
}

.master-col {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.master-col:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.master-col.vehicle {
    border-top: 5px solid #059669;
}

.master-col.referral {
    border-top: 5px solid #0284c7;
}

.col-header-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.col-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.master-col.vehicle .col-icon {
    background: #ecfdf5;
}

.master-col.referral .col-icon {
    background: #f0f9ff;
}

.col-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
}

.master-col.vehicle .col-tag {
    color: #059669;
}

.master-col.referral .col-tag {
    color: #0284c7;
}

.col-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.col-amount-box {
    margin: 8px 0 14px;
}

.col-amount-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.col-amount-val {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin: 2px 0 6px;
}

.master-col.vehicle .col-amount-val {
    color: #059669;
}

.master-col.referral .col-amount-val {
    color: #0284c7;
}

.col-notes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #f1f5f9;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Interactive Clickable Detail Buttons */
.btn-click-detail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.master-col.vehicle .btn-click-detail {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.master-col.vehicle .btn-click-detail:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.master-col.referral .btn-click-detail {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.master-col.referral .btn-click-detail:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-click-detail .chevron {
    transition: transform 0.2s ease;
}

.btn-click-detail:hover .chevron {
    transform: translateX(4px);
}

.btn-card-inspect {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-card-inspect:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Vehicle Breakdown Modal */
.vehicle-modal {
    max-width: 1040px;
    width: 95vw;
}

.vehicle-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    font-size: 12.5px;
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
}

.vehicle-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    vertical-align: middle;
}

.vehicle-table tr:hover {
    background: #f8fafc;
}

/* ==========================================================================
   MOBILE PHOTO INPUT CHOOSER (CAMERA OR GALLERY)
   ========================================================================== */
.fo-photo-chooser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
    width: 100%;
    box-sizing: border-box;
}

.fo-photo-chooser-card {
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px dashed #cbd5e1;
    background: #ffffff;
    user-select: none;
    box-sizing: border-box;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.fo-photo-chooser-card:active {
    transform: scale(0.97);
}

.fo-photo-chooser-card.camera {
    border-color: #10b981;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    color: #065f46;
}

.fo-photo-chooser-card.camera:hover {
    background: #dcfce7;
    border-color: #059669;
}

.fo-photo-chooser-card.gallery {
    border-color: #38bdf8;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    color: #0369a1;
}

.fo-photo-chooser-card.gallery:hover {
    background: #e0f2fe;
    border-color: #0284c7;
}

.fo-chooser-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.fo-chooser-title {
    font-size: 13.5px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    line-height: 1.3;
}

.fo-chooser-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    display: block;
}

/* Compact Chooser Buttons (for headers, toolbars, small slots) */
.fo-photo-chooser-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fo-chooser-btn-camera {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
    border: none;
    transition: all 0.15s ease;
    user-select: none;
    text-decoration: none;
}

.fo-chooser-btn-camera:active {
    transform: scale(0.96);
}

.fo-chooser-btn-gallery {
    background: #ffffff;
    color: #0284c7 !important;
    border: 1px solid #38bdf8;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    user-select: none;
    text-decoration: none;
}

.fo-chooser-btn-gallery:active {
    transform: scale(0.96);
}

/* ==========================================================================
   PROFILE PAGE MOBILE OPTIMIZATIONS & RESPONSIVE LAYOUT
   ========================================================================== */
.fo-profile-container {
    max-width: 960px;
    margin: 28px auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.fo-profile-card {
    background: #ffffff;
    border: 1px solid var(--vfh-line, #e2e8f0);
    border-radius: var(--vfh-radius-md, 14px);
    box-shadow: var(--vfh-shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
    padding: 24px;
    margin-bottom: 22px;
    box-sizing: border-box;
    width: 100%;
}

/* Header Profile Hero */
.fo-profile-hero {
    background: linear-gradient(135deg, #193526, #275c43);
    color: #ffffff;
    border-radius: 18px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(25, 53, 38, 0.18);
    box-sizing: border-box;
    width: 100%;
}

.fo-profile-hero-user {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1;
}

.fo-profile-hero-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fo-profile-hero-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.fo-profile-avatar-btns {
    display: flex;
    gap: 6px;
}

.fo-profile-avatar-btn {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.fo-profile-avatar-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.fo-profile-avatar-btn:active {
    transform: scale(0.96);
}

.fo-profile-hero-info {
    min-width: 0;
    flex: 1;
}

.fo-profile-hero-name {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
}

.fo-profile-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    opacity: 0.95;
}

.fo-profile-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.16);
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.fo-profile-hero-wallet {
    flex-shrink: 0;
}

/* Dedicated Referral Card */
.fo-profile-ref-card {
    margin-bottom: 22px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border: 1.5px solid #86efac;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(22, 101, 52, 0.06);
    box-sizing: border-box;
    width: 100%;
}

.fo-profile-ref-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.fo-profile-ref-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.fo-profile-ref-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid #bbf7d0;
    flex-shrink: 0;
}

.fo-profile-ref-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.fo-profile-ref-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    font-family: inherit;
    color: #334155;
    outline: none;
    box-sizing: border-box;
}

.fo-profile-ref-btn {
    padding: 10px 20px;
    white-space: nowrap;
    box-sizing: border-box;
    border-radius: 8px;
    font-weight: 700;
}

/* Map & Coordinates Toolbar */
.fo-profile-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.fo-profile-map-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fo-profile-coord-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fo-profile-gmap-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1d4ed8;
    color: #ffffff !important;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25);
    white-space: nowrap;
    transition: background 0.15s ease;
}

.fo-profile-gmap-btn:hover {
    background: #1e40af;
}

.fo-profile-gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    color: #1e293b;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fo-profile-gps-btn:hover {
    background: #f1f5f9;
}

/* Map Search Toolbar */
.fo-profile-map-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.fo-profile-map-search-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: 1.5px solid #059669;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13.5px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.fo-profile-map-search-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.fo-profile-map-canvas {
    width: 100%;
    height: 340px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Submit row */
.fo-profile-submit-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.fo-profile-submit-btn {
    width: 220px;
    height: 46px;
    font-size: 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.fo-profile-feedback-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

/* Gallery Section Head */
.fo-profile-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

/* Bank Accounts Section */
.fo-profile-bank-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
}

.fo-profile-bank-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fo-profile-bank-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fo-profile-bank-form-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fo-profile-bank-form-box form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.fo-profile-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Media Queries for Mobile & Tablet */
@media (max-width: 768px) {
    .fo-profile-container {
        margin: 10px auto calc(65px + env(safe-area-inset-bottom, 0px));
        padding: 0 10px;
    }

    .fo-profile-card {
        padding: 16px 14px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .fo-profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
        border-radius: 16px;
        gap: 14px;
        margin-bottom: 16px;
    }

    .fo-profile-hero-user {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }

    .fo-profile-hero-info {
        width: 100%;
        text-align: center;
    }

    .fo-profile-hero-name {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .fo-profile-hero-meta {
        justify-content: center;
        gap: 6px;
    }

    .fo-profile-hero-wallet {
        width: 100%;
    }

    .fo-profile-hero-wallet .fo-wallet-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .fo-profile-ref-card {
        padding: 14px 12px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .fo-profile-ref-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fo-profile-ref-row {
        flex-direction: column;
        gap: 8px;
    }

    .fo-profile-ref-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
        height: 44px;
    }

    .fo-profile-map-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fo-profile-map-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .fo-profile-coord-chip {
        grid-column: 1 / -1;
        justify-content: center;
        font-size: 11.5px;
        padding: 6px 10px;
        word-break: break-all;
    }

    .fo-profile-gmap-btn,
    .fo-profile-gps-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
        height: 40px;
        box-sizing: border-box;
    }

    .fo-profile-map-search-row {
        flex-direction: column;
        gap: 8px;
    }

    .fo-profile-map-search-btn {
        width: 100%;
        height: 42px;
    }

    .fo-profile-map-canvas {
        height: 260px;
        border-radius: 10px;
    }

    .fo-profile-submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .fo-profile-submit-btn {
        width: 100%;
        height: 48px;
        font-size: 15.5px;
    }

    .fo-profile-feedback-box {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .fo-profile-gallery-head {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .fo-profile-gallery-head .fo-photo-chooser-compact {
        display: flex;
        width: 100%;
    }

    .fo-profile-gallery-head .fo-photo-chooser-compact label {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        height: 40px;
    }

    .fo-profile-bank-item {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 12px;
        gap: 10px;
    }

    .fo-profile-bank-item-info {
        width: 100%;
    }

    .fo-profile-bank-item-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 6px;
        border-top: 1px dashed #e2e8f0;
    }

    .fo-profile-bank-form-box {
        padding: 14px 12px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .fo-profile-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* ==========================================================================
   BOOKING MODAL DATETIME PICKER & DURATION SHORTCUTS RESPONSIVE
   ========================================================================== */
.fo-booker-grid,
.fo-booking-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    .fo-booker-grid,
    .fo-booking-date-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

.custom-datetime-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.custom-datetime-card:hover {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.custom-datetime-card:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

.cdc-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cdc-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cdc-date {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cdc-time {
    display: block;
    font-size: 13px;
    color: #059669;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

.cdc-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s;
}

.custom-datetime-card:hover .cdc-action {
    background: #059669;
    color: #ffffff;
}

/* Quick Duration Chips */
.quick-duration-wrap {
    grid-column: 1 / -1 !important;
    width: 100%;
    margin-top: 6px;
    margin-bottom: 4px;
}

.quick-duration-label {
    font-size: 12px;
    color: #475569;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.quick-duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.btn-duration-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-duration-chip:hover {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
}

.btn-duration-chip.active {
    background: #047857;
    border-color: #047857;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.3);
}

@media (max-width: 480px) {
    .custom-datetime-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .cdc-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .cdc-date {
        font-size: 14px;
    }
    .cdc-time {
        font-size: 12px;
    }
    .cdc-action {
        font-size: 11px;
        padding: 5px 8px;
    }
    .quick-duration-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .btn-duration-chip {
        padding: 8px 6px;
        font-size: 12px;
        width: 100%;
        border-radius: 10px;
        box-sizing: border-box;
    }
}


