/* ==========================================================================
   PetNit DESIGN SYSTEM - ENTERPRISE MASTER EDITION V12.0
   Arquiteto: Matheus Siqueira Galveas
   Identidade Visual: Patinha SVG • Laranja #ff914d • Poppins
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Paleta Principal */
    --color-primary: #ff914d;
    --color-primary-dark: #e07a3a;
    --color-primary-light: #ffb280;
    --color-primary-soft: rgba(255, 145, 77, 0.12);
    --color-secondary: #17252a;

    /* Cores Semânticas */
    --color-success: #14b8a6;
    --color-success-light: rgba(20, 184, 166, 0.12);
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.11);
    --color-warning: #f59e0b;
    --color-warning-light: rgba(245, 158, 11, 0.14);
    --color-info: #2563eb;
    --color-info-light: rgba(37, 99, 235, 0.11);

    /* Superfícies e Fundos */
    --bg-app: #f7f9fb;
    --bg-dashboard: #f2f6f8;
    --bg-surface: #ffffff;
    --bg-surface-alt: #eef3f6;
    --bg-overlay: rgba(23, 37, 42, 0.9);

    /* Tipografia */
    --text-heading: #18232a;
    --text-body: #4b5a63;
    --text-muted: #778691;
    --text-inverse: #ffffff;

    /* Bordas e Sombras */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.12);
    --shadow-glow: 0 10px 25px rgba(255, 145, 77, 0.28);
    --shadow-glow-success: 0 10px 25px rgba(20, 184, 166, 0.24);
    --shadow-glow-info: 0 10px 25px rgba(37, 99, 235, 0.24);

    /* Geometria */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --container-max: 1280px;

    /* Animações */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index */
    --z-base: 1;
    --z-sidebar: 100;
    --z-navbar: 1000;
    --z-chat: 1500;
    --z-toast: 1600;
    --z-modal: 2000;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.petnit-modal-open {
    overflow: hidden;
}

/* Scrollbar Premium */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
    background: #dcdde1;
    border-radius: 10px;
    border: 2px solid var(--bg-surface);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { text-decoration: none; color: inherit; transition: var(--transition-normal); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; outline: none; }

/* Focus acessível */
*:focus-visible {
    outline: 3px solid rgba(255, 145, 77, 0.5);
    outline-offset: 2px;
}

/* Seleção de texto */
::selection {
    background: var(--color-primary-light);
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   3. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-padding { padding: 100px 0; }
.alternate-bg { background-color: var(--bg-surface); }
.border-top { border-top: 1px solid var(--border-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 700px;
}
.section-header.center {
    text-align: center;
    margin: 0 auto 60px auto;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); }
.section-header p { margin-top: 12px; color: var(--text-muted); font-size: 17px; }

.subtitle {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    display: block;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   4. NAVBAR — GLASSMORPHISM
   -------------------------------------------------------------------------- */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    border-bottom: 1px solid rgba(23, 37, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: var(--transition-fast);
}

.navbar .nav-layout {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: transform 0.2s ease;
}
.logo a:hover { transform: scale(1.02); }
.logo span { color: var(--color-secondary); }

/* Nav Links */
.navbar nav {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 8px;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    flex-wrap: nowrap;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
    transition: color var(--transition-fast);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 2px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    opacity: 0;
    transform: scaleX(0.55);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}
.nav-links a:hover {
    color: var(--text-heading);
}
.nav-links a.active::after,
.nav-links a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}
.nav-links a.nav-highlight {
    color: var(--color-primary);
    font-weight: 700;
}
.nav-links a.nav-highlight:hover {
    color: var(--color-primary-dark);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

.user-status-area {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    padding: 8px 12px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(23, 37, 42, 0.06);
    border-radius: 999px;
}
.online-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; flex-shrink: 0;
}

/* Carrinho */
.cart-nav {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition-bounce);
    display: flex; align-items: center;
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
}
.cart-nav:hover {
    transform: scale(1.08);
    background: rgba(23, 37, 42, 0.05);
}

.cart-badge {
    position: absolute;
    top: -6px; right: -10px;
    background: var(--color-error);
    color: var(--text-inverse);
    font-size: 10px;
    height: 20px; min-width: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    border: 2px solid var(--bg-surface);
    transition: transform 0.2s ease;
    line-height: 1;
}

/* Profile / Dropdown */
.profile-container { position: relative; }

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 37, 42, 0.08);
    background: rgba(255,255,255,0.88);
    border-radius: 12px;
    color: var(--text-heading);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.mobile-toggle i { font-size: 22px; }

.user-menu {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.88);
    padding: 7px 16px 7px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1.5px solid var(--border-light);
    transition: var(--transition-bounce);
    font-weight: 600; font-size: 14px;
    color: var(--text-heading);
    white-space: nowrap;
}
.user-menu:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
}
.user-icon {
    width: 30px; height: 30px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Dropdown */
.profile-dropdown {
    position: fixed;
    top: 0;  /* overridden by JS on open */
    right: 16px;
    width: 230px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    display: none;
    flex-direction: column;
    padding: 10px;
    z-index: var(--z-modal);
    border: 1px solid rgba(0,0,0,0.05);
    animation: dropSlide 0.3s ease-out;
}
.profile-dropdown.active { display: flex; }

.dropdown-header { padding: 10px 12px; text-align: left; line-height: 1.4; }
.dropdown-header strong {
    display: block; color: var(--text-heading);
    font-size: 14px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dropdown-header small {
    color: var(--color-primary);
    font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.profile-dropdown hr { border: 0; border-top: 1px solid #f0f0f0; margin: 6px 0; }

.profile-dropdown button {
    background: none; border: none; padding: 10px 12px;
    text-align: left; width: 100%; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    color: var(--text-body); font-family: 'Poppins', sans-serif;
    font-weight: 500; font-size: 14px; transition: 0.2s;
}
.profile-dropdown button i { font-size: 18px; color: var(--text-muted); }
.profile-dropdown button:hover { background: #f0f7ff; color: var(--color-primary); }
.profile-dropdown button:hover i { color: var(--color-primary); }
.profile-dropdown button.drop-logout {
    background: rgba(255,118,117,.07);
    border: 1px solid rgba(255,118,117,.2);
    color: var(--color-error);
    font-weight: 600;
    margin-top: 4px;
}
.profile-dropdown button.drop-logout i { color: var(--color-error); }
.profile-dropdown button.drop-logout:hover {
    background: var(--color-error);
    border-color: var(--color-error);
    color: white;
}
.profile-dropdown button.drop-logout:hover i { color: white; }

@keyframes dropSlide {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   5. HERO ENGINE
   -------------------------------------------------------------------------- */
.hero-premium {
    padding: 80px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}
.hero-premium::before {
    content: '';
    position: absolute; top: -120px; left: -120px;
    width: 500px; height: 500px;
    background: rgba(255, 145, 77, 0.07);
    border-radius: 50%; filter: blur(80px);
    z-index: 1; pointer-events: none;
}
.hero-premium::after {
    content: '';
    position: absolute; bottom: -80px; right: -80px;
    width: 300px; height: 300px;
    background: rgba(0, 184, 148, 0.05);
    border-radius: 50%; filter: blur(60px);
    z-index: 1; pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content { position: relative; z-index: 10; }

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-weight: 600; font-size: 13px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 145, 77, 0.2);
    animation: fadeInDown 0.8s ease backwards;
}

.title-wrapper h1 {
    font-size: clamp(36px, 5vw, 62px);
    margin-bottom: 24px;
    animation: fadeInDown 1s ease backwards;
}

.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}
.highlight::after {
    content: '';
    position: absolute; bottom: 4px; left: 0;
    width: 100%; height: 10px;
    background: var(--color-primary-soft);
    z-index: -1;
    transform: skewX(-12deg);
    border-radius: 4px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.75;
    animation: fadeInDown 1.2s ease backwards;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
    animation: fadeInDown 1.4s ease backwards;
}

.trust-footer { animation: fadeInDown 1.6s ease backwards; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Visual do Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 5;
    animation: fadeInScale 1s ease backwards;
}
.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

/* Glow pulsante atrás da imagem */
.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: calc(var(--radius-lg) + 12px);
    background: radial-gradient(ellipse at center, rgba(255,145,77,0.18) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Anel decorativo giratório */
.image-wrapper::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: calc(var(--radius-lg) + 20px);
    border: 1.5px dashed rgba(255,145,77,0.22);
    animation: spinRing 22s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.06); }
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.img-hero {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: floatImage 5s ease-in-out infinite;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.img-hero:hover {
    box-shadow: 0 32px 72px rgba(255,145,77,0.22), var(--shadow-lg);
    transform: translateY(-6px) scale(1.012);
}

@keyframes floatImage {
    0%   { transform: translateY(0px)   rotate(0deg); }
    25%  { transform: translateY(-10px) rotate(0.4deg); }
    50%  { transform: translateY(-18px) rotate(0deg); }
    75%  { transform: translateY(-10px) rotate(-0.4deg); }
    100% { transform: translateY(0px)   rotate(0deg); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-surface);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    display: flex; flex-direction: column;
    z-index: 20;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(8px);
}
.floating-card:hover {
    box-shadow: 0 24px 48px rgba(0,0,0,0.15), 0 6px 16px rgba(0,0,0,0.08);
}
.floating-card .card-val { font-weight: 800; font-size: 17px; color: var(--text-heading); display: flex; align-items: center; gap: 6px; }
.floating-card .card-lab { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.info-card {
    top: 12%; left: -12%;
    animation: floatCardLeft 5s ease-in-out infinite;
}
.safety-card {
    bottom: 12%; right: -8%;
    animation: floatCardRight 5s ease-in-out infinite 1.5s;
}

@keyframes floatCardLeft {
    0%, 100% { transform: translateY(0px)   rotate(-1deg) scale(1); }
    40%       { transform: translateY(-10px) rotate(0.5deg) scale(1.03); }
    70%       { transform: translateY(-6px)  rotate(-0.5deg) scale(1.015); }
}

@keyframes floatCardRight {
    0%, 100% { transform: translateY(0px)  rotate(1deg)  scale(1); }
    40%       { transform: translateY(10px) rotate(-0.5deg) scale(1.03); }
    70%       { transform: translateY(5px)  rotate(0.5deg) scale(1.015); }
}

@keyframes pulseSoft { 0% { transform: scale(1); } 100% { transform: scale(1.04); } }

/* Animações base */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   6. BOTÕES
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--color-primary);
    color: var(--text-inverse);
    padding: 15px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 15px;
    border: none; cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-normal);
    display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 145, 77, 0.45);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-primary:disabled {
    background: #cbd5e1; box-shadow: none;
    cursor: not-allowed; transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    padding: 13px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 15px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
}
.btn-secondary:hover {
    background: var(--color-primary-soft);
    transform: translateY(-2px);
}

.btn-primary-small {
    padding: 10px 22px;
    background: var(--color-primary);
    color: var(--text-inverse);
    border-radius: var(--radius-pill);
    border: none; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: var(--transition-normal);
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary-small:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,145,77,0.3);
}

.btn-full { width: 100%; margin-top: 10px; }

/* Modal Close */
.btn-close-modal {
    position: absolute; top: 15px; right: 18px;
    background: none; border: none;
    font-size: 26px; cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.btn-close-modal:hover {
    color: var(--color-error);
    background: var(--color-error-light);
    transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   7. INPUTS
   -------------------------------------------------------------------------- */
.input-group { margin-bottom: 20px; text-align: left; width: 100%; }
.input-group label {
    font-size: 12px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px; display: block;
}
.input-group input,
.input-group textarea,
.input-group select {
    width: 100%; padding: 15px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    font-size: 15px; font-family: inherit;
    color: var(--text-heading);
    transition: var(--transition-fast);
    background: #fdfdfd;
}
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--color-primary);
    outline: none; background: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.input-group textarea { resize: vertical; min-height: 120px; }

input[type="date"] {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; outline: none;
    transition: border-color 0.3s; background: #fdfdfd;
    color: var(--text-heading);
}
input[type="date"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-soft);
}

/* --------------------------------------------------------------------------
   8. BUSCA & PILLS
   -------------------------------------------------------------------------- */
.search-box-andadores, .search-wrapper-lugares {
    display: flex; align-items: center;
    background: var(--bg-surface);
    padding: 10px 10px 10px 24px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    margin: 28px 0; max-width: 650px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.search-box-andadores:focus-within,
.search-wrapper-lugares:focus-within {
    box-shadow: 0 0 0 4px var(--color-primary-soft), var(--shadow-md);
    border-color: var(--color-primary);
}
.search-box-andadores input,
.search-wrapper-lugares input {
    flex: 1; border: none; background: transparent; outline: none;
    font-size: 15px; color: var(--text-heading);
    font-family: inherit; padding: 4px 0;
}

.filter-pills-lugares,
.category-pills {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px;
}
.pill {
    padding: 9px 22px; border-radius: var(--radius-pill);
    border: 1.5px solid #dcdde1;
    background: var(--bg-surface);
    color: var(--text-body);
    font-weight: 600; font-size: 13px;
    cursor: pointer; transition: var(--transition-fast);
    display: flex; align-items: center; gap: 6px;
}
.pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    background: var(--color-primary-soft);
}
.pill.active {
    background: var(--color-primary); color: var(--text-inverse);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   9. CARDS & GRIDS
   -------------------------------------------------------------------------- */
.cards-grid, .solutions-grid, .produtos-grid, .places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card, .card-expert, .place-card,
.solution-card, .step-card, .feature-card, .job-card {
    background: var(--bg-surface);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    display: flex; flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.product-card:hover, .card-expert:hover, .place-card:hover,
.solution-card:hover, .job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 145, 77, 0.3);
}

.card-expert {
    padding: 26px;
    gap: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(22, 28, 36, 0.05);
}
.card-expert::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    opacity: 0;
    transition: var(--transition-fast);
}
.card-expert:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(22, 28, 36, 0.12);
}
.card-expert:hover::before { opacity: 1; }
.card-expert h3 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--text-heading);
}
.card-expert p {
    line-height: 1.55;
    color: var(--text-body);
}
.card-expert .category-label,
.card-expert .status-badge {
    border-radius: 8px;
}
.card-expert .price-row {
    margin-top: 18px;
    padding-top: 18px;
    gap: 14px;
}
.card-expert .price-row .price {
    line-height: 1.1;
    white-space: nowrap;
}
.card-expert .btn-primary-small,
.card-expert .btn-secondary-small {
    border-radius: 8px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .cards-grid, .solutions-grid, .produtos-grid, .places-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .card-expert {
        padding: 22px;
    }
    .card-expert .price-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .card-expert .btn-primary-small,
    .card-expert .btn-secondary-small {
        width: 100%;
    }
}

/* Thumbs */
.product-thumb, .icon-box, .place-thumb {
    width: 100%; height: 180px;
    background: var(--bg-app);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; margin-bottom: 24px;
    transition: var(--transition-normal);
}
.product-card:hover .product-thumb { transform: scale(1.04); background: #fff4ed; }

/* Micro-Componentes */
.status-badge {
    align-self: flex-start;
    padding: 5px 14px;
    background: var(--color-success);
    color: var(--text-inverse);
    border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; margin-bottom: 18px;
}

.category-label {
    background: #f1f2f6; color: var(--text-body);
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 22px;
    border-top: 1px solid var(--border-light);
}
.price-row .price { font-size: 22px; font-weight: 800; color: var(--color-primary); }

.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Skeleton */
.skeleton {
    background: #e9ecef;
    background-image: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.5),
        rgba(255,255,255,0)
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    background-position: left -200px top 0;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: right -200px top 0; } }

/* --------------------------------------------------------------------------
   10. MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    align-items: center; justify-content: center;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.modal-card {
    background: var(--bg-surface);
    width: min(100%, 460px); max-width: 460px;
    max-height: 90vh; max-height: 90dvh;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    animation: modalPop 0.24s ease-out forwards;
    position: relative;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
@keyframes modalPop {
    0% { transform: scale(0.96) translateY(14px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-card img,
.modal-overlay img {
    max-width: 100%;
}

.modal-card > img,
.modal-card figure img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    max-height: 70dvh;
    object-fit: contain;
}

#modalSugerirLugar {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 24px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#modalSugerirLugar > div {
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    animation: modalPop 0.24s ease-out forwards;
}

#previewFotosLugar img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    max-height: 70dvh;
    object-fit: contain;
    cursor: zoom-in;
}

@media (max-width: 640px) {
    .modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .modal-card {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
        padding: 34px 22px 24px;
    }
    .btn-close-modal {
        top: 10px;
        right: 12px;
    }
    #modalSugerirLugar {
        padding: 12px !important;
        align-items: flex-end !important;
    }
    #modalSugerirLugar > div {
        max-width: none !important;
        max-height: 92vh !important;
        max-height: 92dvh !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 34px 22px 24px !important;
    }
}

/* --------------------------------------------------------------------------
   11. CHAT
   -------------------------------------------------------------------------- */
.chat-wrapper {
    position: fixed; bottom: 28px; right: 28px;
    width: 360px; z-index: var(--z-chat);
    animation: slideUp 0.5s ease forwards;
    max-width: calc(100vw - 32px);
}
.chat-main-window {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden; display: flex; flex-direction: column;
}
.chat-top-bar {
    background: var(--color-primary); color: var(--text-inverse);
    padding: 14px 20px; display: flex;
    justify-content: space-between; align-items: center;
}
.chat-content-box {
    height: 300px; padding: 18px; overflow-y: auto;
    background: #f8f9fa; display: flex; flex-direction: column;
    gap: 8px;
}
.msg-user {
    background: var(--color-primary); color: white;
    padding: 10px 14px; border-radius: 16px 16px 2px 16px;
    align-self: flex-end; max-width: 85%; font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.msg-other {
    background: #e1e8ed; color: var(--text-heading);
    padding: 10px 14px; border-radius: 16px 16px 16px 2px;
    align-self: flex-start; max-width: 85%; font-size: 14px;
    box-shadow: var(--shadow-sm);
}
.chat-footer-area {
    display: flex; padding: 12px;
    background: var(--bg-surface); border-top: 1px solid var(--border-light); gap: 8px;
}
.chat-footer-area input {
    flex: 1; border: none; outline: none; padding: 10px 14px;
    background: #f1f2f6; border-radius: 20px; font-family: inherit; font-size: 14px;
}

/* --------------------------------------------------------------------------
   12. AGENDAMENTO
   -------------------------------------------------------------------------- */
#gridHorarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px; margin: 16px 0;
}
.slot-btn {
    padding: 14px 10px;
    background: var(--bg-surface);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: 14px; color: var(--text-heading);
    cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.slot-btn:hover:not(:disabled) {
    border-color: var(--color-primary); color: var(--color-primary);
    background: var(--color-primary-soft); transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.slot-btn.active {
    background: var(--color-primary); color: white !important;
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(255, 145, 77, 0.4);
}
.slot-btn.ocupado, .slot-btn:disabled {
    background: #f1f3f5; border-color: #e9ecef;
    color: #adb5bd; cursor: not-allowed; opacity: 0.8;
}
.slot-btn.ocupado::after { content: "🔒"; font-size: 11px; }

#resumoAgendamento, .booking-summary-box {
    background: #fff9f5;
    border: 1px solid rgba(255, 145, 77, 0.2);
    padding: 20px; border-radius: var(--radius-md); margin-top: 16px;
    animation: fadeInSlide 0.4s ease forwards;
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer-premium {
    background:
        radial-gradient(circle at top left, rgba(255,145,77,0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(20,184,166,0.12), transparent 24%),
        linear-gradient(180deg, #17252a 0%, #142126 100%);
    color: var(--text-inverse);
    padding: 88px 0 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.footer-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 24%);
    pointer-events: none;
}
.footer-premium .container {
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 42px;
    padding-bottom: 64px;
    align-items: start;
}
.footer-col {
    min-width: 0;
}
.footer-col.brand-info {
    padding-right: 12px;
}
.footer-logo-svg {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.footer-col h4 {
    color: #ffd2b4;
    margin-bottom: 20px;
    text-transform: uppercase; font-size: 12px; letter-spacing: 1.2px;
    display: flex; align-items: center; gap: 8px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.66);
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0;
    border-radius: 10px;
}
.footer-links a:hover {
    color: var(--text-inverse);
    padding-left: 8px;
    transform: translateX(2px);
}
.footer-links a i { font-size: 15px; color: var(--color-primary); flex-shrink: 0; }
.footer-desc {
    color: rgba(255,255,255,0.68);
    font-size: 14px;
    line-height: 1.8;
    max-width: 34ch;
}
.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.72);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.social-btn:hover {
    background: var(--color-primary);
    border-color: rgba(255,255,255,.18);
    color: white;
    transform: translateY(-2px);
}
.footer-bottom {
    background: rgba(0,0,0,0.22);
    padding: 24px 0 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom strong { color: rgba(255,255,255,0.7); }
.footer-bottom a {
    color: rgba(255,255,255,0.42) !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-bottom a:hover {
    color: rgba(255,255,255,0.78) !important;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   14. PAINEL SAAS (parceiro.html & admin.html)
   -------------------------------------------------------------------------- */
.painel-layout {
    display: flex; height: 100vh; width: 100vw;
    background-color: var(--bg-dashboard); overflow: hidden;
}

/* Sidebar */
.painel-layout .sidebar {
    width: 280px; background: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column;
    padding: 24px 18px; z-index: var(--z-sidebar);
    box-shadow: var(--shadow-sm); flex-shrink: 0; overflow-y: auto;
}

.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 800; color: var(--color-secondary);
    margin-bottom: 36px; padding: 0 8px;
}
.sidebar-brand i { color: var(--color-primary); font-size: 26px; }

.menu-label {
    font-size: 10px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin: 18px 0 8px 10px;
}

.nav-btn {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px 14px; background: transparent;
    border-radius: var(--radius-sm); color: var(--text-muted);
    font-size: 14px; font-weight: 600;
    transition: all 0.2s ease; cursor: pointer;
    font-family: 'Poppins', sans-serif; text-align: left; border: none;
}
.nav-btn i { font-size: 20px; }
.nav-btn:hover { background: var(--bg-app); color: var(--color-primary); }
.nav-btn.active {
    background: var(--color-primary); color: white;
    box-shadow: 0 4px 14px rgba(255, 145, 77, 0.3);
}
.nav-btn.active i { color: white; }
.logout-btn { color: var(--color-error) !important; margin-top: auto; }
.logout-btn:hover { background: var(--color-error-light) !important; }

/* Main Wrapper */
.painel-layout .main-wrapper {
    flex: 1; display: flex; flex-direction: column; overflow: hidden;
}

/* Topbar */
.painel-layout .topbar {
    height: 72px; min-height: 72px; background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 36px; box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.topbar-title { font-size: 20px; font-weight: 700; color: var(--text-heading); }
.topbar-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.topbar-profile { display: flex; align-items: center; gap: 14px; }
.profile-name { font-weight: 600; font-size: 14px; display: block; color: var(--text-heading); }
.profile-role { font-size: 11px; color: var(--text-muted); }
.avatar {
    width: 42px; height: 42px; background: var(--color-primary-soft);
    color: var(--color-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px;
}

/* Content Area */
.painel-layout .content-area {
    flex: 1; padding: 32px; overflow-y: auto;
    background: var(--bg-dashboard);
}

/* Tabs Painel */
.tab-content { display: none; animation: slideUp 0.35s ease forwards; }
.tab-content.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.shake { animation: shake 0.5s ease; }

/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.kpi-card {
    background: var(--bg-surface); padding: 22px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: space-between;
    border: 1px solid var(--border-light); transition: var(--transition-fast);
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.kpi-info h4 { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.kpi-info h2 { font-size: 26px; color: var(--text-heading); font-weight: 800; }
.kpi-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.icon-green { background: var(--color-success-light); color: var(--color-success); }
.icon-orange { background: var(--color-primary-soft); color: var(--color-primary); }
.icon-blue { background: var(--color-info-light); color: var(--color-info); }
.icon-dark { background: #f3f4f6; color: var(--color-secondary); }
.icon-red { background: var(--color-error-light); color: var(--color-error); }
.icon-yellow { background: var(--color-warning-light); color: #c8960c; }

/* Tabelas Admin */
.table-container {
    background: var(--bg-surface); padding: 24px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light); overflow-x: auto; margin-bottom: 28px;
}
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.table-header h3 { font-size: 17px; font-weight: 700; color: var(--text-heading); display: flex; align-items: center; gap: 8px; }

.styled-table { width: 100%; border-collapse: collapse; }
.styled-table th {
    background: var(--bg-app); color: var(--text-muted);
    font-weight: 700; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 14px 16px; text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.styled-table td { padding: 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; vertical-align: middle; }
.styled-table tr:hover td { background: var(--bg-app); }
.styled-table tr:last-child td { border-bottom: none; }

.user-cell { display: flex; align-items: center; gap: 14px; }
.user-cell-info strong { display: block; color: var(--text-heading); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.user-cell-info small { color: var(--text-muted); font-size: 12px; }

.badge { padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.badge-role { background: #e0e7ff; color: #4338ca; }

.action-btns { display: flex; gap: 8px; }
.btn-approve {
    background: var(--color-success); color: white;
    padding: 8px 16px; border-radius: var(--radius-sm);
    border: none; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: var(--transition-fast);
    display: flex; align-items: center; gap: 5px;
    font-family: 'Poppins', sans-serif;
}
.btn-approve:hover { background: #00a383; box-shadow: 0 4px 12px rgba(0,184,148,0.3); transform: translateY(-1px); }

.link-doc {
    color: var(--color-info); text-decoration: none;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; background: var(--color-info-light);
    border-radius: 6px; transition: var(--transition-fast);
}
.link-doc:hover { background: rgba(9,132,227,0.15); color: #076aba; }

/* --------------------------------------------------------------------------
   15. UTILITÁRIOS EXTRAS
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* Paleta unificada das páginas públicas */
.hero-premium,
.hero-loja,
.hero-andadores,
.hero-hospedagem,
.hero-lugares {
    background:
        radial-gradient(circle at 12% 12%, rgba(249,115,69,.12), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(20,184,166,.12), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f7f9fb 48%, #eef6f5 100%) !important;
}

.hero-trabalhe,
.newsletter-card,
.carrinho-header {
    background: linear-gradient(135deg, #17252a 0%, #20363d 58%, #28535a 100%) !important;
}

.promo-badge {
    background: rgba(249,115,69,.1);
    border-color: rgba(249,115,69,.22);
}

.product-card,
.card-expert,
.place-card,
.solution-card,
.step-card,
.feature-card,
.job-card,
.cep-search-card {
    box-shadow: 0 14px 36px rgba(24,35,42,.07);
}

.product-card:hover,
.card-expert:hover,
.place-card:hover,
.solution-card:hover,
.job-card:hover {
    border-color: rgba(249,115,69,.24);
    box-shadow: 0 22px 52px rgba(24,35,42,.12);
}

.category-label,
.pill {
    background: #eef3f6;
}

.btn-primary,
.btn-primary-small {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.btn-primary:hover,
.btn-primary-small:hover {
    filter: saturate(1.04) brightness(.98);
}

/* Divisor com texto */
.divider-text {
    display: flex; align-items: center; gap: 16px;
    color: var(--text-muted); font-size: 13px; font-weight: 600;
    margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
    content: ''; flex: 1; height: 1px; background: var(--border-light);
}

/* Trust Badge */
.trust-badge-item {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-body);
}
.trust-badge-item i { font-size: 17px; }

/* Selo verde verificado */
.verified-seal {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--color-success-light); color: var(--color-success);
    padding: 5px 14px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVIDADE
   -------------------------------------------------------------------------- */

/* ============================================================
   MOBILE QUICK ACTIONS — oculto em desktop
   ============================================================ */
.mobile-quick-actions {
    display: none; /* ativado em mobile */
}

/* ============================================================
   SCROLL TO TOP — oculto em desktop
   ============================================================ */
#scrollTopBtn {
    display: none;
}
@media (max-width: 1200px) {
    .container { padding: 0 28px; }
    .hero-grid { gap: 48px; }
}

/* ── Novo breakpoint: colapsa nav antes de sobreposições ─────── */
@media (max-width: 860px) {
    .navbar nav { display: none; }
    .nav-links   { display: none; }
    .mobile-toggle { display: inline-flex !important; }
    /* Garante que actions nunca sejam espremidos */
    .nav-actions {
        flex-shrink: 0;
        min-width: max-content;
        gap: 8px;
    }
    /* Botões extras (ex: "Sugerir Local" em lugares.html) */
    .nav-actions .btn-suggest,
    .nav-actions [class*="btn-"] {
        flex-shrink: 0;
    }
}

@media (max-width: 992px) {
    .hero-grid, .trust-grid {
        grid-template-columns: 1fr;
        text-align: center; gap: 48px;
    }
    .hero-content { margin: 0 auto; }
    .hero-btns, .trust-badges { justify-content: center; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
    .section-header { text-align: center; margin: 0 auto 48px auto; }
    .navbar .nav-layout {
        padding: 0.9rem 1.25rem;
        gap: 10px;
    }
    .nav-links {
        gap: 10px;
        margin-left: 0;
    }
    .nav-links a {
        font-size: 13px;
    }
    .nav-actions {
        gap: 10px;
    }
    .status-badge { align-self: center; }
    .floating-card { display: none; }

    .painel-layout .sidebar {
        position: absolute; transform: translateX(-100%);
        width: 260px; height: 100%; z-index: 9999;
    }
    .painel-layout .topbar { padding: 0 20px; }
    .painel-layout .content-area { padding: 20px; }

    /* Disable sticky on trust-visual so it doesn't overlay content on tablet */
    .trust-visual { position: static !important; }
}

@media (max-width: 768px) {
    /* ── Fundação: trava de overflow ──────────────────────────── */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        -webkit-text-size-adjust: 100%;
        touch-action: pan-y; /* scroll vertical fluido */
    }

    .container,
    .hero-premium,
    section,
    .app-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* ── Navbar compacto ──────────────────────────────────────── */
    .navbar {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, 0.96);
    }

    .navbar .nav-layout {
        padding: 0.85rem 1rem;
        gap: 12px;
    }

    /* nav e nav-links já colapsados em 1150px; apenas reforça aqui */
    .navbar nav,
    .nav-links { display: none; }

    /* Oculta o status "Niterói: Online" no mobile — economiza espaço */
    .user-status-area { display: none; }

    /* Logo menor */
    .logo a span { font-size: 18px !important; }
    .logo svg { width: 24px !important; height: 29px !important; }

    /* Ações: apenas carrinho + perfil */
    .nav-actions {
        gap: 8px;
        align-items: center;
    }

    .mobile-toggle { display: inline-flex !important; }

    /* ── Hero compacto ────────────────────────────────────────── */
    .hero-premium {
        padding: 28px 0 20px;
        background: linear-gradient(160deg, #fffaf4 0%, #fff5ec 100%);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 20px;
    }

    /* Esconde imagem e cards flutuantes — economiza espaço precioso */
    .hero-visual { display: none; }

    .hero-content {
        text-align: left;
        max-width: 100%;
    }

    .promo-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
        color: var(--text-muted);
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary,
    .hero-btns button {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 15px;
    }

    /* Trust badges: linha única compacta */
    .trust-footer { margin-top: 12px; }
    .trust-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .trust-badges span {
        font-size: 12px;
        margin-right: 0 !important;
    }

    /* ── Quick actions pills ──────────────────────────────────── */
    .mobile-quick-actions {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 14px 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-quick-actions::-webkit-scrollbar { display: none; }

    .mqa-pill {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        scroll-snap-align: start;
        background: var(--bg-app);
        border: 1.5px solid var(--border-light);
        border-radius: 14px;
        padding: 10px 14px;
        text-decoration: none;
        color: var(--text-body);
        font-size: 11px;
        font-weight: 600;
        min-width: 68px;
        text-align: center;
        transition: background 0.15s, border-color 0.15s, transform 0.12s;
        -webkit-tap-highlight-color: transparent;
    }

    .mqa-icon { font-size: 22px; line-height: 1; }

    .mqa-pill:active {
        background: var(--color-primary-soft);
        border-color: var(--color-primary);
        transform: scale(0.95);
    }

    /* ── Stats bar: carrossel horizontal ─────────────────────── */
    .stats-bar { padding: 10px 0; }

    .stats-bar-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        padding: 0 16px;
        scrollbar-width: none;
        justify-content: flex-start;
    }

    .stats-bar-inner::-webkit-scrollbar { display: none; }

    .stat-divider { display: none; }

    .stat-item {
        flex-shrink: 0;
        padding: 4px 20px 4px 0;
        gap: 8px;
    }

    .stat-icon { width: 34px; height: 34px; font-size: 16px; }
    .stat-info strong { font-size: 15px; }
    .stat-info span { font-size: 10px; }

    /* ── Como funciona: carrossel horizontal ─────────────────── */
    .steps-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 0 16px 16px;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .steps-grid::-webkit-scrollbar { display: none; }
    .steps-grid::before { display: none; } /* remove a linha decorativa */

    .step-card-novo {
        flex: 0 0 240px;
        scroll-snap-align: start;
        padding: 24px 20px;
        border-radius: var(--radius-md);
        border: 1.5px solid var(--border-light);
        background: var(--bg-surface);
    }

    .step-num { margin-bottom: 14px; }

    /* ── Soluções ─────────────────────────────────────────────── */
    .section-padding { padding: 40px 0; }

    .solution-card-novo {
        padding: 24px 20px;
    }

    .solution-features { margin-bottom: 18px; }

    /* ── App section ──────────────────────────────────────────── */
    .app-section {
        flex-direction: column;
        padding: 28px 20px;
        gap: 20px;
        border-radius: var(--radius-md);
    }

    .app-visual { display: none; }

    /* ── Reviews ──────────────────────────────────────────────── */
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .reviews-grid::-webkit-scrollbar { display: none; }

    .review-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    /* ── Newsletter ───────────────────────────────────────────── */
    .newsletter-card {
        padding: 32px 20px;
        border-radius: var(--radius-md);
        flex-direction: column;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
        min-width: 0;
        gap: 10px;
    }

    .newsletter-form input { padding: 14px 18px; }

    /* ── Footer ───────────────────────────────────────────────── */
    .footer-grid { grid-template-columns: 1fr !important; gap: 28px; text-align: center; }
    .footer-links a:hover { padding-left: 0; }

    /* ── Cards genéricos ──────────────────────────────────────── */
    .cards-grid,
    .produtos-grid,
    .places-grid { grid-template-columns: 1fr; gap: 16px; }

    .card-expert { padding: 18px 16px; }

    /* ── Tabelas ──────────────────────────────────────────────── */
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .table-container { padding: 14px; }
    .styled-table th, .styled-table td { padding: 12px 10px; font-size: 13px; }

    /* ── Busca ────────────────────────────────────────────────── */
    .search-box-andadores, .search-wrapper-lugares {
        flex-direction: column;
        padding: 14px;
        border-radius: var(--radius-lg);
        gap: 10px;
    }

    .search-box-andadores button { width: 100%; margin-top: 0; }

    /* ── Chat: avoid bottom-nav ──────────────────────────────── */
    .chat-wrapper {
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 10px);
    }

    /* ── Buttons: tap targets ─────────────────────────────────── */
    .btn-primary, .btn-secondary {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
    }

    /* ── Scroll to top button ─────────────────────────────────── */
    #scrollTopBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px);
        right: 16px;
        z-index: 999;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--color-primary);
        color: #fff;
        border: none;
        box-shadow: 0 4px 14px rgba(249, 115, 69, 0.4);
        font-size: 22px;
        cursor: pointer;
        opacity: 0;
        transform: scale(0) translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        -webkit-tap-highlight-color: transparent;
        pointer-events: none;
    }

    #scrollTopBtn.visible {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .section-padding { padding: 48px 0; }
    .hero-content h1 { font-size: 30px; }
    .btn-primary, .btn-secondary { width: 100%; padding: 15px; margin-left: 0; }
    .hero-btns { flex-direction: column; }
    .price-row { flex-direction: column; gap: 12px; align-items: flex-start; }
    .price-row button { width: 100%; }
    #gridHorarios { grid-template-columns: 1fr 1fr; }
    .modal-card { padding: 28px 18px; width: 100%; }
    .kpi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .section-padding { padding: 28px 0; }
    .hero-grid { padding: 0 14px; }
    .hero-content h1 { font-size: 22px; }
    .card-expert, .product-card, .solution-card { padding: 14px; }
    .btn-primary, .btn-secondary { font-size: 14px; padding: 13px 12px; }
}


/* ==========================================================================
   PWA — BOTTOM NAVIGATION (mobile-first, hidden on desktop)
   ========================================================================== */

/* Oculto em desktop — zero impacto no layout de tela grande */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Empurra conteúdo acima da barra */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* Barra fixa no rodapé */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-light);
        /* Sombra suave para destacar do conteúdo */
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.07), 0 -1px 0 var(--border-light);
        /* Safe-area iOS (home indicator) */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        justify-content: space-around;
        align-items: stretch;
    }

    /* Cada item da nav */
    .bnav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px 6px;
        min-height: 56px; /* tap target mínimo recomendado */
        color: var(--text-muted);
        text-decoration: none;
        font-family: var(--font-body, 'Poppins', sans-serif);
        position: relative;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.18s ease;
        cursor: pointer;
    }

    /* Pill colorido ao redor do ícone quando ativo */
    .bnav-icon-wrap {
        width: 40px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        transition: background 0.18s ease, transform 0.18s ease;
    }

    .bnav-icon-wrap i {
        font-size: 22px;
        line-height: 1;
        transition: transform 0.18s ease;
    }

    /* Rótulo */
    .bnav-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
        line-height: 1;
        white-space: nowrap;
        transition: color 0.18s ease;
    }

    /* Ponto indicador abaixo do rótulo */
    .bnav-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--color-primary);
        opacity: 0;
        transform: scale(0);
        transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        margin-top: 2px;
    }

    /* Estado ATIVO */
    .bnav-item.bnav-active {
        color: var(--color-primary);
    }

    .bnav-item.bnav-active .bnav-icon-wrap {
        background: var(--color-primary-soft, rgba(255, 145, 77, 0.12));
        transform: translateY(-2px);
    }

    .bnav-item.bnav-active .bnav-icon-wrap i {
        transform: scale(1.1);
    }

    .bnav-item.bnav-active .bnav-dot {
        opacity: 1;
        transform: scale(1);
    }

    /* Feedback de toque */
    .bnav-item:active .bnav-icon-wrap {
        transform: scale(0.92) translateY(-1px);
        background: var(--color-primary-soft, rgba(255, 145, 77, 0.12));
    }
}

/* ==========================================================================
   CARDS — Layout Grid responsivo (desktop 3 col → mobile 1 col)
   ========================================================================== */

/* Container dos cards de andadores/hospedagem — aplica grid responsivo */
#gridAndadores,
#gridHospedagem,
.experts-grid,
.cards-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    #gridAndadores,
    #gridHospedagem,
    .experts-grid,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #gridAndadores,
    #gridHospedagem,
    .experts-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Card melhorado — layout vertical mobile-first */
.card-expert {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    overflow: hidden;
}

.card-expert:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Foto circular — tamanho ligeiramente maior no mobile para facilitar toque */
@media (max-width: 600px) {
    .card-expert {
        padding: 16px;
    }

    .card-expert img[style*="border-radius:50%"],
    .card-expert .icon-box[style*="border-radius:50%"] {
        width: 72px !important;
        height: 72px !important;
    }
}

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */
#pwa-install-banner {
    /* estado inicial: display:none via atributo inline no HTML — JS mostra com display:flex */
    position: fixed;
    bottom: 80px; /* acima da bottom-nav em mobile */
    left: 12px;
    right: 12px;
    z-index: 1100;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 145, 77, 0.22), 0 2px 8px rgba(0,0,0,0.10);
    border: 1.5px solid var(--color-primary-soft);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: pwa-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    max-width: 480px;
    margin: 0 auto;
}

/* Sobrescreve display:flex acima apenas quando o JS adiciona display:none inline */
#pwa-install-banner[style*="display: none"],
#pwa-install-banner[style*="display:none"] {
    animation: none !important;
}

@keyframes pwa-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.pwa-banner-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    position: absolute;
    top: 16px;
    left: 16px;
}

.pwa-banner-body {
    padding-left: 42px;
}

.pwa-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
    line-height: 1.3;
}

.pwa-banner-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.pwa-banner-desc strong {
    color: var(--color-success);
    font-weight: 700;
}

.pwa-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-left: 42px;
}

.pwa-btn-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.pwa-btn-install:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
}

.pwa-btn-dismiss:hover {
    color: var(--text-primary);
}

/* Em desktop, centraliza e limita largura */
@media (min-width: 769px) {
    #pwa-install-banner {
        bottom: 24px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 420px;
    }

    @keyframes pwa-slide-up {
        from { opacity: 0; transform: translateX(-50%) translateY(16px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }
}

/* ============================================================
   BOTÕES DE INSTALAÇÃO — SEÇÃO APP
   ============================================================ */
.app-install-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.app-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    min-width: 170px;
}

.app-install-btn i {
    font-size: 28px;
    flex-shrink: 0;
}

.app-install-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.app-install-btn-text small {
    font-size: 10px;
    opacity: 0.75;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.app-install-btn-text span,
.app-install-btn-text div {
    font-size: 15px;
    font-weight: 700;
}

.app-install-btn--android { background: #1a1a2e; }
.app-install-btn--android:hover { background: #2d2d4e; transform: translateY(-2px); }

.app-install-btn--ios { background: #1c1c1e; }
.app-install-btn--ios:hover { background: #3a3a3c; transform: translateY(-2px); }

.app-install-btn--fallback { background: var(--color-secondary); }
.app-install-btn--fallback:hover { background: var(--color-secondary-dark, #1a3a5c); transform: translateY(-2px); }

/* ============================================================
   MODAL DE INSTRUÇÕES iOS
   ============================================================ */
#ios-install-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0);
}

.ios-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.ios-modal-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px calc(24px + env(safe-area-inset-bottom, 0));
    width: 100%;
    max-width: 480px;
    animation: ios-slide-up 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes ios-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.ios-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface-alt, #f5f5f5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.ios-modal-icon {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}

.ios-modal-card h3 {
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--text-heading);
}

.ios-modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.ios-modal-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ios-modal-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

.ios-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

.ios-modal-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-surface-alt, #f9f9f9);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 4px;
}

.ios-modal-trust .bx-shield-quarter {
    color: var(--color-success);
    font-size: 16px;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    #ios-install-modal {
        align-items: center;
    }
    .ios-modal-card {
        border-radius: 24px;
        padding: 32px 28px;
        margin-bottom: 0;
    }
}

/* Microcopy de confiança abaixo do botão hero */
.pwa-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.pwa-trust-badge .bx-shield-quarter {
    color: var(--color-success);
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================================
   HAMBÚRGUER + SIDEBAR OVERLAY — DASHBOARDS MOBILE
   ============================================================ */

/* Botão hambúrguer — visível apenas em mobile */
.ham-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1.5px solid var(--border-light, rgba(0,0,0,0.09));
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-heading, #18232a);
    font-size: 22px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ham-btn:hover { background: var(--bg-app, #f7f9fb); border-color: var(--color-primary, #ff914d); color: var(--color-primary, #ff914d); }

/* Overlay escuro quando sidebar está aberta */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: fadeOverlay 0.22s ease;
}
.sidebar-overlay.active { display: block; }
@keyframes fadeOverlay { from { opacity: 0; } to { opacity: 1; } }

/* Sidebar mobile: desliza da esquerda */
@media (max-width: 900px) {
    .ham-btn { display: flex; }

    .painel-layout .sidebar {
        position: fixed !important;
        top: 0; left: 0;
        height: 100dvh;
        width: 270px !important;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1999;
        padding-top: calc(24px + env(safe-area-inset-top, 0px));
    }

    .painel-layout .sidebar.open {
        transform: translateX(0);
        box-shadow: 12px 0 48px rgba(0,0,0,0.22);
    }

    .painel-layout .topbar {
        padding: 0 16px;
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
    }

    .painel-layout .content-area {
        padding: 18px 16px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .kpi-grid { grid-template-columns: 1fr 1fr !important; }

    .topbar-clock { display: none; }
}

@media (max-width: 520px) {
    .kpi-grid { grid-template-columns: 1fr !important; }
    .table-container { padding: 14px 10px; }
    .styled-table th, .styled-table td { padding: 10px 8px; font-size: 12px; }
}

/* ============================================================
   BOTÕES DAS LOJAS (App Store / Google Play)
   ============================================================ */
.store-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 22px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    min-width: 170px;
    -webkit-tap-highlight-color: transparent;
}
.store-btn:hover { background: #2d2d4e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.store-btn:active { transform: translateY(0); }

.store-btn i { font-size: 28px; flex-shrink: 0; }

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}
.store-btn-text small {
    font-size: 10px;
    opacity: 0.72;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.store-btn-text span {
    font-size: 15px;
    font-weight: 700;
}

.store-btn--ios { background: #1c1c1e; }
.store-btn--ios:hover { background: #3a3a3c; }

.store-soon-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Badge de tipo de serviço no card */
.card-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}


/* =============================================================
   PETNIT — HEADER FIX v1.0
   ============================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-surface, #fff);
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-layout {
    display: flex;
    align-items: center;
    gap: 0;
    height: 68px;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.logo {
    flex: 0 0 auto;
    margin-right: 32px;
}

#mainNav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

#mainNav .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

#mainNav .nav-links li a {
    display: block;
    padding: 6px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-body, #485460);
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

#mainNav .nav-links li a:hover,
#mainNav .nav-links li a.active {
    color: var(--color-primary, #ff914d);
    background: var(--color-primary-soft, rgba(255,145,77,.08));
}

#mainNav .nav-links li a.nav-highlight {
    color: var(--color-primary, #ff914d);
    font-weight: 700;
    background: var(--color-primary-soft, rgba(255,145,77,.08));
}

.nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
}

.user-status-area {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0,184,148,.07);
    border-radius: 20px;
    white-space: nowrap;
}

.user-status-area small {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-success, #00b894);
}

.cart-nav {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    transition: background .15s;
    flex-shrink: 0;
}
.cart-nav:hover { background: var(--color-primary-soft, rgba(255,145,77,.08)); }

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary, #ff914d);
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

#notif-btn,
#chat-global-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-heading, #1e272e);
    transition: background .15s;
    position: relative;
}
#notif-btn:hover,
#chat-global-btn:hover { background: var(--color-primary-soft, rgba(255,145,77,.08)); }

#notif-badge,
#chat-global-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FF7A00;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    box-sizing: border-box;
}

.profile-container {
    position: relative;
    flex-shrink: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border-light, #ededf0);
    background: var(--bg-surface, #fff);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading, #1e272e);
    transition: border-color .15s, box-shadow .15s;
    white-space: nowrap;
    max-width: 160px;
}
.user-menu:hover {
    border-color: var(--color-primary, #ff914d);
    box-shadow: 0 0 0 3px rgba(255,145,77,.1);
}

#userName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
    display: inline-block;
}

.user-icon i { font-size: 18px; }

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-surface, #fff);
    border-radius: 14px;
    border: 1px solid var(--border-light, #ededf0);
    box-shadow: 0 20px 60px rgba(0,0,0,.14);
    padding: 12px;
    z-index: 99999;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.profile-dropdown.active { display: flex; }

.dropdown-header {
    padding: 8px 10px 12px;
    border-bottom: 1px solid var(--border-light, #ededf0);
    margin-bottom: 6px;
}
.dropdown-header strong {
    display: block;
    font-size: 14px;
    color: var(--text-heading, #1e272e);
    margin-bottom: 2px;
}
.dropdown-header small {
    font-size: 12px;
    color: var(--text-muted, #808e9b);
}

.mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-heading, #1e272e);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .user-status-area { display: none; }
    .logo { margin-right: 20px; }
    #mainNav .nav-links li a { padding: 6px 8px; font-size: 13px; }
}

@media (max-width: 860px) {
    #mainNav {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-surface, #fff);
        border-bottom: 1px solid var(--border-light, #ededf0);
        box-shadow: 0 8px 32px rgba(0,0,0,.1);
        z-index: 999;
        padding: 16px 24px;
    }
    #mainNav.open { display: block; }
    #mainNav .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        white-space: normal;
    }
    #mainNav .nav-links li { width: 100%; }
    #mainNav .nav-links li a {
        display: block;
        padding: 10px 14px;
        font-size: 15px;
        border-radius: 10px;
    }
    .mobile-toggle { display: flex; }
    .user-status-area { display: none; }
    .nav-actions { gap: 4px; }
}

@media (max-width: 480px) {
    .nav-layout { padding: 0 16px; }
    #userName { max-width: 60px; }
    .user-menu { padding: 6px 10px; }
}
