/* ============================================
   GUIA DE OFERTAS — Design System Completo
   Dark Theme + Glassmorphism + Gradientes Quentes
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Cores do tema dark */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);

    /* Cores da marca (quentes) */
    --brand-orange: #f97316;
    --brand-red: #ef4444;
    --brand-yellow: #f59e0b;
    --brand-gradient: linear-gradient(135deg, #f97316, #ef4444);
    --brand-gradient-soft: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
    --brand-rgb: 249, 115, 22;

    /* Texto */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(148, 163, 184, 0.1);
    --glass-blur: blur(16px);

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.15);

    /* Espaçamentos */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease-out;
}

/* --- Light Theme Variables --- */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.1);
}

.light-theme .light-hidden {
    display: none !important;
}

.dark-theme .dark-hidden {
    display: none !important;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-yellow);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Scrollbar Customizada --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =====================
   ANIMAÇÕES
   ===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseSoft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

.pulse-soft {
    animation: pulseSoft 2s infinite;
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* =====================
   MOBILE TOP BANNER
   ===================== */
.mobile-top-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--bg-secondary);
    text-align: center;
    line-height: 0;
}

.mobile-top-banner img {
    width: 100%;
    max-height: 60px;
    object-fit: cover;
}

@media (min-width: 769px) {
    .mobile-top-banner {
        display: none;
    }
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0;
}

@media (max-width: 768px) {
    .mobile-top-banner+.navbar {
        top: 0;
    }
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

.btn-nav-login {
    background: var(--brand-gradient);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
}

.btn-nav-login:hover {
    opacity: 0.9;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn i {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
        gap: 0.5rem;
    }

    .navbar-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: radial-gradient(ellipse at top, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.gradient-text {
    background: var(--brand-gradient);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Search Bar --- */
.search-bar {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    gap: 0.75rem;
    transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    /* Ensures input shrinks on small screens and doesn't blow out the flex container */
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.btn-location:hover {
    background: var(--brand-orange);
    color: #fff;
}

.btn-location.active {
    background: var(--brand-orange);
    color: #fff;
}

.btn-location i {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .btn-location {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }
}

/* =====================
   CATEGORIES
   ===================== */
.categories-section {
    padding: 1.5rem 0;
}

.categories-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 1rem;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

/* Deixa os emojis com uma cor sólida uniforme (laranja da marca) */
.category-chip span {
    filter: grayscale(100%) sepia(100%) hue-rotate(345deg) saturate(500%) brightness(0.9);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.category-chip:hover {
    border-color: var(--chip-color, var(--brand-orange));
    color: var(--text-primary);
}

.category-chip:hover span {
    opacity: 1;
    filter: grayscale(100%) sepia(100%) hue-rotate(345deg) saturate(800%) brightness(1);
}

.category-chip.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.category-chip.active span {
    filter: grayscale(100%) brightness(200%);
    /* Fica branco quando ativo */
    opacity: 1;
}

/* =====================
   FILTER BAR (Compact)
   ===================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.filter-select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    min-width: 0;
    flex: 1;
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-price-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--glass-border);
}

.filter-price-input {
    width: 60px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: inherit;
    text-align: center;
    -moz-appearance: textfield;
}

.filter-price-input::-webkit-outer-spin-button,
.filter-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-price-input::placeholder {
    color: var(--text-muted);
}

.filter-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.filter-clear-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Toast notification */
.toast {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .filter-bar {
        border-radius: var(--radius-md);
        padding: 0.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-select {
        flex: 1 1 100%;
        font-size: 0.8rem;
    }

    .filter-price-group {
        flex: 1;
    }
}

/* =====================
   OFFERS GRID
   ===================== */
.offers-section {
    padding: 1rem 0 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.title-icon {
    width: 22px;
    height: 22px;
    color: var(--brand-orange);
}

.offer-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* --- Offer Card --- */
.offer-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.offer-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.offer-card:hover .offer-image {
    transform: scale(1.05);
}

.offer-countdown-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    margin: 0.75rem auto 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    width: calc(100% - 2rem);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-countdown-bar.countdown-warning {
    color: var(--brand-yellow);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.offer-countdown-bar.countdown-urgent {
    color: var(--brand-red);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.offer-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    margin-bottom: 0.5rem;
}

.offer-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.offer-content {
    padding: 1rem;
}

.offer-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-store {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.offer-pricing {
    margin-bottom: 0.5rem;
}

/* --- Card WhatsApp Button --- */
.btn-card-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-card-whatsapp:hover {
    background: linear-gradient(135deg, #20bd5a, #0f7a6e);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.offer-old-price {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.offer-new-price {
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.offer-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Countdown Bar --- */
.offer-countdown-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    color: #34d399;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.offer-countdown-bar.countdown-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
    color: #fbbf24;
    border-top-color: rgba(245, 158, 11, 0.25);
}

.offer-countdown-bar.countdown-urgent {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
    color: #f87171;
    border-top-color: rgba(239, 68, 68, 0.25);
    animation: pulseSoft 2s infinite;
}

@media (max-width: 640px) {
    .offer-content {
        padding: 0.65rem;
    }

    .offer-title {
        font-size: 0.8rem;
    }

    .offer-new-price {
        font-size: 0.95rem;
    }

    .offer-old-price {
        font-size: 0.7rem;
    }

    .offer-store {
        font-size: 0.7rem;
    }

    .offer-meta {
        font-size: 0.65rem;
    }

    .offer-category-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .offer-countdown-bar {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }
}

/* --- Skeleton / Loading --- */
.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.skeleton-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 4/3;
}

.skeleton-title {
    height: 1rem;
    margin: 1rem;
    border-radius: 4px;
}

.skeleton-price {
    height: 1.2rem;
    margin: 0 1rem 1rem;
    width: 40%;
    border-radius: 4px;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state-sm {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    border: 1px dashed var(--glass-border);
}

/* =====================
   MODAL
   ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-body {}

.modal-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-discount {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
}

.modal-info {
    padding: 1.5rem;
}

.modal-category {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.modal-store,
.modal-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.modal-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.modal-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-old-price {
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: line-through;
}

.modal-new-price {
    font-size: 2rem;
    font-weight: 900;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.modal-posted {
    display: block;
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Transitions para modal alpine */
.modal-enter {
    transition: opacity 0.3s ease;
}

.modal-leave {
    transition: opacity 0.2s ease;
}

/* =====================
   BANNER CAROUSEL
   ===================== */
.banner-carousel-section {
    padding: 1.5rem 0 0;
}

.banner-carousel {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21/7;
    background: var(--bg-secondary);
}

.banner-slide {
    position: absolute;
    inset: 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.banner-dot.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    width: 28px;
    border-radius: 5px;
}

/* Slide transitions */
.slide-enter {
    transition: all 0.5s ease;
}

.slide-enter-start {
    opacity: 0;
    transform: translateX(20px);
}

.slide-enter-end {
    opacity: 1;
    transform: translateX(0);
}

.slide-leave {
    transition: all 0.3s ease;
}

.slide-leave-start {
    opacity: 1;
}

.slide-leave-end {
    opacity: 0;
}

@media (max-width: 640px) {
    .banner-carousel {
        aspect-ratio: 16/7;
        border-radius: 0;
    }
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    opacity: 0.85;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-warning:hover {
    opacity: 0.85;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    opacity: 0.85;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    width: 100%;
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
}

.btn-whatsapp-sm {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp-sm:hover {
    background: #20bd5a;
}

.action-btns {
    display: flex;
    gap: 0.35rem;
}

/* =====================
   TOAST
   ===================== */
.toast {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 0.25rem;
}

/* =====================
   FORMS
   ===================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-input-file {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
}

.form-input-color {
    height: 44px;
    padding: 4px;
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.image-preview-wrap {
    margin-top: 0.75rem;
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    object-fit: cover;
}

/* =====================
   AUTH PAGES
   ===================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.06) 0%, transparent 50%);
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--brand-orange);
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* =====================
   PANEL LAYOUT (Sidebar)
   ===================== */
.panel-body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevents global horizontal scroll */
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width var(--transition-normal);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    min-height: 64px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-toggle i {
    width: 18px;
    height: 18px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--brand-gradient-soft);
    color: var(--brand-orange);
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-link-danger:hover {
    color: var(--danger);
}

.sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

.sidebar-user {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.panel-main {
    flex: 1;
    min-width: 0;
    width: calc(100vw - 260px);
    /* Strict limit based on sidebar width */
    max-width: calc(100vw - 260px);
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

.sidebar.collapsed~.panel-main {
    margin-left: 70px;
    width: calc(100vw - 70px);
    max-width: calc(100vw - 70px);
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-normal);
}

.mobile-menu-toggle i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {

    .sidebar,
    .sidebar.collapsed {
        width: 220px;
        left: -220px;
        transition: left var(--transition-normal);
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .sidebar-toggle {
        display: none;
    }

    /* Mostrar textos no mobile quando sidebar abre */
    .sidebar .brand-text,
    .sidebar-link span,
    .sidebar-user {
        display: revert !important;
    }

    .panel-main {
        margin-left: 0;
        width: 100vw;
        max-width: 100vw;
        padding: 3.5rem 1rem 1rem;
        transition: margin-left var(--transition-normal), width var(--transition-normal);
    }

    /* Quando sidebar abre, empurra o conteúdo */
    .sidebar.mobile-open~.panel-main {
        margin-left: 220px;
        width: calc(100vw - 220px);
        max-width: calc(100vw - 220px);
    }

    .sidebar.mobile-open~.mobile-menu-toggle {
        left: 232px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* =====================
   PANEL PAGES
   ===================== */
.panel-page {
    max-width: 1200px;
}

@media (max-width: 768px) {
    .panel-page {
        max-width: 100%;
    }
}

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.panel-section {
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
    /* Contains the overflowing table wrap child */
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.stat-gradient-1 {
    border-left: 4px solid var(--brand-orange);
}

.stat-gradient-2 {
    border-left: 4px solid var(--success);
}

.stat-gradient-3 {
    border-left: 4px solid var(--warning);
}

.stat-gradient-4 {
    border-left: 4px solid var(--info);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon i {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Data Table --- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.data-table {
    width: 100%;
    min-width: 700px;
    /* Forces table to go off-screen on mobile and trigger the wrapper scroll */
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-offer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-primary {
    background: rgba(249, 115, 22, 0.15);
    color: var(--brand-orange);
}

/* --- Banners Grid (admin) --- */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.banner-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.banner-card-img {
    width: 100%;
    aspect-ratio: 3/1;
    object-fit: cover;
}

.banner-card-info {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-card-info p {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Categories List (admin) --- */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.category-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.category-item-name {
    font-weight: 600;
}

/* --- Text helpers --- */
.text-success {
    color: var(--success);
}

.text-muted {
    color: var(--text-muted);
}

.text-strike {
    text-decoration: line-through;
}

/* =====================
   404 PAGE
   ===================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    display: block;
    font-size: 8rem;
    font-weight: 900;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-title {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.error-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* =====================
   FOOTER
   ===================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =====================
   STICKY BOTTOM AD BANNER
   ===================== */
.sticky-bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

.sticky-banner-close {
    position: absolute;
    top: -10px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.sticky-banner-close:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.sticky-bottom-banner a {
    display: flex;
    width: 100%;
    justify-content: center;
    background: var(--bg-primary);
    /* Preenche fundo caso a imagem ajuste */
}

.sticky-banner-img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    /* Evita que a imagem seja cortada */
    display: block;
}

/* Mobile: banner sits above the bottom nav */
@media (max-width: 768px) {
    .sticky-bottom-banner {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    /* Adjust body padding when banner is present */
    body {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    }
}

/* Desktop: banner sits at the bottom */
@media (min-width: 769px) {
    .sticky-bottom-banner {
        display: none;
    }

    body {
        padding-bottom: 0;
        /* Remove padding when banner is hidden */
    }
}

/* =====================
   PWA BOTTOM NAVIGATION
   ===================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 0.4rem 0;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.3rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    min-width: 48px;
}

.bottom-nav-item.active {
    color: var(--brand-orange);
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    color: var(--text-primary);
}

.bottom-nav-icon {
    width: 22px;
    height: 22px;
}

.bottom-nav-center {
    margin-top: -1.2rem;
}

.bottom-nav-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--brand-gradient);
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    border: 3px solid var(--bg-secondary);
}

/* Mobile: show bottom nav, hide hamburger menu, adjust body */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    /* Add bottom padding for fixed nav */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    /* Hide hamburger button since we have bottom nav */
    .mobile-menu-btn {
        display: none !important;
    }

    /* Hide desktop nav links on mobile */
    .navbar-links {
        display: none !important;
    }

    /* Hide footer on mobile for app-like feel */
    .footer {
        display: none;
    }

    /* Safe area for navbar */
    .navbar {
        padding-top: env(safe-area-inset-top, 0px);
    }
}

/* Standalone PWA mode - extra tweaks */
@media (display-mode: standalone) {
    .navbar {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .footer {
        display: none;
    }

    /* Prevent overscroll bounce */
    html {
        overscroll-behavior: none;
    }

    body {
        overscroll-behavior: none;
        -webkit-overflow-scrolling: touch;
    }
}

/* =====================
   PWA INSTALL BANNER
   ===================== */
.pwa-install-banner {
    position: fixed;
    bottom: 80px;
    /* Acima do bottom-nav do mobile */
    left: 1rem;
    right: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-app-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.pwa-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pwa-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .pwa-install-banner {
        bottom: 1.5rem;
        left: unset;
        right: 1.5rem;
        width: 380px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pwa-banner-actions {
        flex-direction: column;
    }
}