/* ============================================================
   SERVIÇOJÁ — PREMIUM LIGHT MOBILE APP UI
   Tema Claro · Mobile-First · 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
    /* Brand */
    --brand:        #4f46e5;
    --brand-2:      #7c3aed;
    --brand-grad:   linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --brand-soft:   rgba(79, 70, 229, 0.10);
    --brand-glow:   0 8px 24px rgba(79, 70, 229, 0.30);

    /* Accent palette */
    --green:        #10b981;
    --green-soft:   rgba(16, 185, 129, 0.12);
    --amber:        #f59e0b;
    --amber-soft:   rgba(245, 158, 11, 0.12);
    --red:          #ef4444;
    --red-soft:     rgba(239, 68, 68, 0.10);
    --cyan:         #06b6d4;
    --cyan-soft:    rgba(6, 182, 212, 0.10);
    --rose:         #f43f5e;

    /* Backgrounds — LIGHT */
    --bg-app:       #f0f2f8;
    --bg-white:     #ffffff;
    --bg-surface:   #f8f9fc;
    --bg-card:      #ffffff;
    --bg-input:     #f4f5f9;
    --bg-pill:      rgba(79, 70, 229, 0.08);
    --bg-overlay:   rgba(15, 15, 35, 0.55);

    /* Borders */
    --border:       rgba(0, 0, 0, 0.07);
    --border-med:   rgba(0, 0, 0, 0.13);
    --border-brand: rgba(79, 70, 229, 0.30);

    /* Text */
    --text-primary:   #111827;
    --text-secondary: #4b5563;
    --text-muted:     #9ca3af;
    --text-dim:       #d1d5db;
    --text-white:     #ffffff;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    #06b6d4;

    /* Shadows */
    --shadow-xs: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);

    /* Radii */
    --r-xs:   6px;
    --r-sm:   10px;
    --r-md:   16px;
    --r-lg:   20px;
    --r-xl:   26px;
    --r-full: 9999px;

    /* Layout */
    --nav-h:    64px;
    --header-h: 60px;

    /* Motion */
    --ease:       cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.14s;
    --t-base: 0.24s;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + 16px);
    /* Mobile: prevent zooming on input focus */
    touch-action: manipulation;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ────────────────────────────────────────
   APP HEADER
──────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--header-h);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--shadow-xs);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-grad);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--brand-glow);
    flex-shrink: 0;
}

.brand-name-accent {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-brand);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-fast) var(--ease);
}

.avatar-header:hover { transform: scale(1.06); }

.role-switcher-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-pill);
    border: 1px solid var(--border-brand);
    padding: 6px 12px;
    border-radius: var(--r-full);
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--brand);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--t-fast) var(--ease);
}

.role-switcher-badge:hover {
    background: var(--brand-grad);
    color: var(--text-white);
    border-color: transparent;
}

/* ────────────────────────────────────────
   CONTAINER — MOBILE ONLY
──────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 480px;   /* hard cap for mobile */
    margin: 0 auto;
    padding: 16px 14px;
}

/* ────────────────────────────────────────
   HERO BANNER (Index top banner)
──────────────────────────────────────── */
.hero-banner {
    background: var(--brand-grad);
    border-radius: var(--r-xl);
    padding: 24px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: var(--text-white);
    box-shadow: var(--brand-glow);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -20px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner h2 {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.hero-banner p {
    font-size: 0.83rem;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.hero-banner .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--text-white);
    color: var(--brand);
    padding: 11px 20px;
    border-radius: var(--r-full);
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: all var(--t-fast) var(--ease);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.hero-banner .btn-hero:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ────────────────────────────────────────
   SEARCH BAR
──────────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    padding: 10px 16px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--t-fast);
}

.search-bar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.search-bar i { font-size: 1.05rem; color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

/* ────────────────────────────────────────
   SECTION HEADER
──────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.section-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    padding: 4px 10px;
    background: var(--brand-soft);
    border-radius: var(--r-full);
    transition: background var(--t-fast);
}

.section-link:hover { background: rgba(79,70,229,0.15); }

/* ────────────────────────────────────────
   SEGMENT TABS
──────────────────────────────────────── */
.segment-capsule {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: 30px;
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.segment-capsule::-webkit-scrollbar { display: none; }

.segment-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all var(--t-base) var(--ease);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.segment-item.active {
    background: var(--brand-grad);
    color: var(--text-white);
    box-shadow: var(--brand-glow);
}

.segment-item:not(.active):hover {
    color: var(--brand);
    background: rgba(79, 70, 229, 0.06);
}

/* ────────────────────────────────────────
   CATEGORY GRID — 3 POR FILEIRA
   Compact & Thin Optimization
──────────────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.category-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 10px 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--t-base) var(--ease-spring);
    text-decoration: none;
    position: relative;
    box-shadow: var(--shadow-xs);
    text-align: center;
}

.category-card:active {
    transform: scale(0.95);
}

.category-card:hover,
.category-card:focus {
    border-color: var(--brand);
    box-shadow: 0 4px 16px rgba(79,70,229,0.18);
    transform: translateY(-2px);
}

.cat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--brand-soft);
    transition: background var(--t-fast);
    flex-shrink: 0;
}

.category-card:hover .cat-icon-wrap {
    background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(124,58,237,0.15));
}

.cat-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-secondary);
    line-height: 1.25;
    word-break: break-word;
}

.cat-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--r-full);
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
    animation: pop-in 0.3s var(--ease-spring);
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ────────────────────────────────────────
   DISCOVERY MAP
──────────────────────────────────────── */
.discovery-map-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
}

.discovery-map-container #home-discovery-map {
    width: 100%;
    height: 100%;
}

.map-overlay-header {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    gap: 8px;
}

.map-pill-badge {
    pointer-events: auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow-sm);
}

.map-box {
    width: 100%;
    height: 180px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1.5px solid var(--border);
    margin-top: 8px;
}

.marker-pin-wrap {
    position: relative;
    width: 44px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.marker-pin-wrap::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--brand);
}
.provider-marker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--brand);
    object-fit: cover;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}
.marker-online-dot {
    position: absolute;
    top: 26px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(16,185,129,0.6);
    z-index: 3;
}

/* ────────────────────────────────────────
   BANNER CAROUSEL
──────────────────────────────────────── */
.banner-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 22px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.banner-carousel::-webkit-scrollbar { display: none; }

.banner-item {
    position: relative;
    flex: 0 0 100%;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-base) var(--ease);
}

.banner-item:active {
    transform: scale(0.98);
}

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

.banner-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    padding: 20px 14px 12px;
}

.banner-title-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ────────────────────────────────────────
   CARDS GRID — PROVIDERS / REQUESTS
──────────────────────────────────────── */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ────────────────────────────────────────
   CARD ITEM
──────────────────────────────────────── */
.card-item {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 18px;
    transition: all var(--t-base) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card-item:active { transform: scale(0.99); }

/* Provider card — left accent */
.card-item.card-provider {
    border-left: 4px solid var(--brand);
    padding-left: 16px;
}

/* Request card urgency borders */
.card-item.card-request { border-left: 4px solid var(--amber); padding-left: 16px; }
.card-item.card-request.urgency-urgente { border-left-color: var(--red); }
.card-item.card-request.urgency-alta    { border-left-color: #f97316; }
.card-item.card-request.urgency-media   { border-left-color: var(--amber); }
.card-item.card-request.urgency-baixa   { border-left-color: var(--green); }

/* Profile card */
.profile-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-grad);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

/* Card Header User */
.card-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-input);
}

.user-info .name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-info .sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Rating */
.rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.stars { color: var(--amber); font-size: 0.85rem; }
.rating-score { font-weight: 800; font-size: 0.88rem; color: var(--amber); }
.rating-count { font-size: 0.76rem; color: var(--text-muted); }

.bio-text {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

/* ────────────────────────────────────────
   STATUS DOT
──────────────────────────────────────── */
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--success);
    animation: pulse-live 2s infinite;
}

.status-dot.offline { background: var(--text-muted); }

@keyframes pulse-live {
    0%   { box-shadow: 0 0 0 0   rgba(16,185,129,0.6); }
    60%  { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0   rgba(16,185,129,0); }
}

/* ────────────────────────────────────────
   BADGES
──────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.badge-success  { background: rgba(16,185,129,0.12);  color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.badge-warning  { background: rgba(245,158,11,0.12);  color: #d97706; border: 1px solid rgba(245,158,11,0.25); }
.badge-danger   { background: rgba(239,68,68,0.10);   color: #dc2626; border: 1px solid rgba(239,68,68,0.20); }
.badge-info     { background: rgba(6,182,212,0.10);   color: #0891b2; border: 1px solid rgba(6,182,212,0.22); }
.badge-primary  { background: rgba(79,70,229,0.10);   color: var(--brand); border: 1px solid rgba(79,70,229,0.22); }
.badge-violet   { background: rgba(124,58,237,0.10);  color: var(--brand-2); border: 1px solid rgba(124,58,237,0.22); }
.badge-secondary{ background: var(--bg-input);        color: var(--text-secondary); border: 1px solid var(--border); }

/* Urgency tags */
.urgency-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.urgency-urgente { background: rgba(239,68,68,0.10);  color: #dc2626; border: 1px solid rgba(239,68,68,0.22); }
.urgency-alta    { background: rgba(249,115,22,0.10); color: #ea580c; border: 1px solid rgba(249,115,22,0.22); }
.urgency-media   { background: rgba(245,158,11,0.10); color: #d97706; border: 1px solid rgba(245,158,11,0.22); }
.urgency-baixa   { background: rgba(16,185,129,0.10); color: #059669; border: 1px solid rgba(16,185,129,0.22); }

/* ────────────────────────────────────────
   BUTTONS
──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 20px;
    border-radius: var(--r-full);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--t-base) var(--ease-spring);
    width: 100%;
    text-align: center;
    letter-spacing: -0.1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
}

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

.btn-sm {
    padding: 9px 16px;
    font-size: 0.8rem;
    width: auto;
}

.btn-primary {
    background: var(--brand-grad);
    color: var(--text-white);
    box-shadow: var(--brand-glow);
}

.btn-primary:hover { box-shadow: 0 10px 28px rgba(79,70,229,0.40); }

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,0.30);
}

.btn-outline {
    background: var(--bg-white);
    border: 1.5px solid var(--border-med);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-soft);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16,185,129,0.30);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239,68,68,0.30);
}

/* Loading spinner */
.btn.loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn.loading::before {
    content: '';
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ────────────────────────────────────────
   FORMS
──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: all var(--t-fast) var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
    border-color: var(--brand);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

select.form-control option { background: var(--bg-white); color: var(--text-primary); }

textarea.form-control { min-height: 100px; resize: vertical; line-height: 1.6; }

input[type="file"].form-control {
    padding: 11px 14px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

input[type="file"].form-control::file-selector-button {
    background: var(--brand-grad);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    margin-right: 10px;
}

/* Toggle Switch */
.toggle-track {
    position: relative;
    width: 50px; height: 27px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-track input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--text-dim);
    border-radius: var(--r-full);
    transition: all 0.3s var(--ease);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s var(--ease-spring);
    box-shadow: var(--shadow-xs);
}

.toggle-track input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--green), #059669);
    box-shadow: 0 2px 10px rgba(16,185,129,0.35);
}

.toggle-track input:checked + .toggle-slider::before {
    transform: translateX(23px);
}

/* Checkbox */
.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}

.check-label input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--brand);
    cursor: pointer;
}

/* GPS Banner */
.gps-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    font-size: 0.83rem;
    font-weight: 600;
    transition: all var(--t-base) var(--ease);
}

.gps-banner.warn  { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.30); color: #d97706; }
.gps-banner.ok    { background: rgba(16,185,129,0.10);  border: 1px solid rgba(16,185,129,0.30);  color: #059669; }
.gps-banner.error { background: rgba(239,68,68,0.08);   border: 1px solid rgba(239,68,68,0.25);   color: #dc2626; }

/* ────────────────────────────────────────
   ALERTS
──────────────────────────────────────── */
.alert {
    padding: 13px 16px;
    border-radius: var(--r-md);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); color: #92400e; }
.alert-success { background: rgba(16,185,129,0.08);  border: 1px solid rgba(16,185,129,0.25);  color: #065f46; }
.alert-danger  { background: rgba(239,68,68,0.08);   border: 1px solid rgba(239,68,68,0.20);   color: #991b1b; }
.alert-info    { background: rgba(6,182,212,0.08);   border: 1px solid rgba(6,182,212,0.20);   color: #155e75; }

/* ────────────────────────────────────────
   AVAILABILITY CARD
──────────────────────────────────────── */
.availability-card {
    background: rgba(16,185,129,0.07);
    border: 1.5px solid rgba(16,185,129,0.25);
    border-radius: var(--r-xl);
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.availability-card.unavailable {
    background: var(--bg-input);
    border-color: var(--border);
}

/* ────────────────────────────────────────
   FILTER CARD
──────────────────────────────────────── */
.filter-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

/* ────────────────────────────────────────
   EMPTY STATE
──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-state i { font-size: 2.8rem; opacity: 0.4; color: var(--brand); }
.empty-state h3 { font-size: 0.95rem; font-weight: 800; color: var(--text-secondary); }
.empty-state p  { font-size: 0.83rem; max-width: 260px; line-height: 1.55; }

/* ────────────────────────────────────────
   MODAL
──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base) var(--ease);
    padding: 0;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px 20px;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-spring);
}

.modal-overlay.active .modal-card { transform: translateY(0); }

/* Pull handle */
.modal-card::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: var(--text-dim);
    border-radius: var(--r-full);
    margin: 0 auto 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.modal-close {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    flex-shrink: 0;
}

.modal-close:hover { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.3); }

/* ────────────────────────────────────────
   PAGE TITLE
──────────────────────────────────────── */
.page-title {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ────────────────────────────────────────
   BOTTOM NAVIGATION
──────────────────────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--t-base) var(--ease-spring);
    flex: 1;
    padding: 6px 4px;
    border-radius: var(--r-sm);
    text-decoration: none;
    letter-spacing: 0.1px;
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 4px);
    background: var(--red);
    color: var(--text-white);
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid var(--bg-white);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    z-index: 10;
}

.nav-item i {
    font-size: 1.25rem;
    transition: transform var(--t-base) var(--ease-spring);
}

.nav-item.active {
    color: var(--brand);
}

.nav-item.active i {
    transform: scale(1.15);
}

/* FAB Central */
.nav-item-fab {
    background: var(--brand-grad) !important;
    color: var(--text-white) !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    margin-top: -18px;
    padding: 0 !important;
    box-shadow: var(--brand-glow) !important;
    border: 3px solid var(--bg-white) !important;
    flex: 0 0 auto !important;
    transition: all var(--t-base) var(--ease-spring) !important;
    text-decoration: none !important;
    font-size: 0 !important;
}

.nav-item-fab:hover, .nav-item-fab:active {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 24px rgba(79,70,229,0.45) !important;
}

.nav-item-fab i {
    font-size: 1.4rem !important;
    transform: none !important;
    color: var(--text-white) !important;
}

.nav-item-fab:active i { transform: rotate(45deg) !important; }

/* ────────────────────────────────────────
   QUICK STAT CHIPS (Dashboard)
──────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-chip {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.stat-chip .stat-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--brand);
    display: block;
    margin-bottom: 2px;
}

.stat-chip .stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ────────────────────────────────────────
   ANIMATIONS
──────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fade-up 0.4s var(--ease) both; }
.animate-fade-up:nth-child(1) { animation-delay: 0.04s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.08s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.12s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.16s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.20s; }
.animate-fade-up:nth-child(6) { animation-delay: 0.24s; }

/* ────────────────────────────────────────
   UTILITIES
──────────────────────────────────────── */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 22px; }
.mb-5 { margin-bottom: 30px; }
.mt-auto { margin-top: auto; }
.w-auto { width: auto; }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-med); border-radius: var(--r-full); }

/* ────────────────────────────────────────
   ADMIN (mantém funcional)
──────────────────────────────────────── */
.admin-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
}

/* ────────────────────────────────────────
   PROVIDER FEATURED GRID — 3 colunas
   (seção Destaques da index.php)
──────────────────────────────────────── */
.provider-feat-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.provider-feat-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px;
    scroll-snap-type: x mandatory;
}

.provider-feat-carousel::-webkit-scrollbar {
    display: none;
}

.provider-feat-card {
    position: relative;
    flex: 0 0 130px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, #f9fafb 100%);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 16px 8px 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-align: center;
}

.provider-feat-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.provider-feat-card:active {
    transform: scale(0.96);
    box-shadow: none;
}

.feat-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: var(--bg-input);
}

.feat-online-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    z-index: 10;
    animation: pulse-live 2s infinite;
}

.feat-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.feat-cat-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.feat-rating {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 158, 11, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.gold-star {
    color: var(--amber);
    font-size: 0.85rem;
}

.feat-wa-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.feat-wa-btn:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    color: #fff;
}

.feat-wa-btn i {
    font-size: 0.9rem;
}


