/* Feed — estilos específicos */
.feed-content { padding-top: 16px; padding-bottom: 100px; }

.hero-premium {
    background: linear-gradient(135deg, var(--dark) 0%, #334155 55%, #1e3a2f 100%);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.hero-premium:hover { transform: translateY(-3px); box-shadow: var(--shadow-premium); }
.hero-premium__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #86efac;
    margin-bottom: 10px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.hero-premium h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.hero-premium h2 em { font-style: normal; color: #86efac; }
.hero-premium p { font-size: 14px; color: #cbd5e1; max-width: 420px; line-height: 1.5; }
.hero-premium__stats {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.hero-premium__stats div strong { display: block; font-size: 20px; font-family: var(--font-heading); }
.hero-premium__stats div span { font-size: 11px; color: #94a3b8; font-weight: 600; }
.hero-premium__visual {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fbbf24;
    flex-shrink: 0;
}
.location-chip-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.location-chip {
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.location-chip.active { background: var(--dark); color: white; border-color: var(--dark); }
.modern-search-bar { margin-bottom: 20px; }
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}
.feed-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 100px;
}

.filter-toggle-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23, 32, 51, 0.045);
    transition: var(--transition);
}

.filter-toggle-chip:hover,
.filter-toggle-chip.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.14);
}

.filter-toggle-chip.active i {
    color: var(--primary-soft);
}
.pub-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-input);
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-family: var(--font-body);
    font-size: 15px;
}
.form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

/* ================= PROMO BANNER ================= */
.promo-banner {
    background: var(--dark); border-radius: 28px; padding: 32px;
    display: flex; align-items: center; justify-content: space-between;
    color: white; margin-bottom: 40px; cursor: pointer;
    box-shadow: var(--shadow-md); transition: var(--transition);
}
.promo-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); }
.promo-tag { background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; display: inline-block; }
.promo-content h4 { font-size: 24px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.5px; }
.promo-content p { color: #a1a1aa; font-size: 15px; max-width: 400px; }
.promo-action { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: var(--transition); }
.promo-banner:hover .promo-action { background: var(--primary); color: white; transform: translateX(5px); }

/* ================= BARRA DE BUSCA ================= */
.modern-search-bar {
    background: white; border: 1px solid rgba(0,0,0,0.05); border-radius: 100px; 
    padding: 8px 8px 8px 24px; display: flex; align-items: center; 
    box-shadow: var(--shadow-sm); margin-bottom: 40px; transition: var(--transition);
}
.modern-search-bar:hover { box-shadow: var(--shadow-md); }

.search-item { display: flex; flex-direction: column; flex: 1; }
.search-item small { font-size: 11px; font-weight: 700; color: var(--dark); text-transform: uppercase; margin-bottom: 2px; }
.search-item input, .search-item select {
    border: none; background: transparent; font-family: var(--font-body); font-size: 14px;
    color: var(--dark); font-weight: 700; outline: none; padding: 0; cursor: pointer; width: 100%;
}
.search-item.location {
    min-width: 0;
}
.location-status {
    display: none;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-status.active {
    display: block;
}
.location-status.success {
    color: var(--primary);
}
.location-status.error {
    color: #dc2626;
}
.location-status.loading,
.location-status.hint {
    color: #64748b;
}
.search-item select { appearance: none; -webkit-appearance: none; }
.search-item.distance strong { color: var(--text-muted); font-weight: 400; }
.search-divider { width: 1px; height: 32px; background: rgba(0,0,0,0.08); margin: 0 20px; }

.btn-filter-circle { background: var(--primary); color: white; width: 48px; height: 48px; border-radius: 50%; border: none; font-size: 18px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.btn-filter-circle:hover { background: var(--primary-dark); transform: scale(1.05); }
.btn-filter-circle.is-loading {
    transform: none;
    opacity: 0.88;
    pointer-events: none;
}

/* ================= FEED HEADER ================= */
.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -1px; color: var(--dark); }

/* ================= CATEGORIAS (MÁGICA DO EXPANDIR) ================= */
.categories-section-wrapper { 
    margin-bottom: 32px;
    width: 100%;
}

.categories-pills { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    padding: 6px 2px 9px;
    max-height: 109px; 
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); 
}

/* Quando a classe for ativada pelo JS */
.categories-pills.expanded-view {
    max-height: 1500px; 
    transition: max-height 0.6s ease-in-out;
}

.cat-pill {
    padding: 10px 20px; 
    border-radius: 100px; 
    background: white; 
    border: 1px solid rgba(0,0,0,0.05); 
    font-family: var(--font-body); 
    font-weight: 600; 
    font-size: 14px; 
    color: var(--text-muted); 
    cursor: pointer; 
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.cat-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.cat-pill.active { background: var(--dark); color: white; border-color: var(--dark); }

.btn-toggle-cats {
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    margin-top: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-toggle-cats:hover { color: var(--dark); }
.btn-toggle-cats i { transition: transform 0.3s ease; }

/* ================= CARDS DE SERVIÇO ================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.services-grid .service-card { height: 100%; }
.bento-service-card {
    background: white; border-radius: 28px; padding: 28px; border: 1px solid rgba(0,0,0,0.03); 
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column; 
    transition: var(--transition); cursor: pointer; position: relative;
}
.bento-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); border-color: rgba(106, 153, 105, 0.2); }

/* Novo Cabeçalho do Card */
.sc-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sc-location-top { 
    font-size: 13px; 
    color: var(--text-muted); 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    margin-bottom: 0;
}
.sc-location-top i { color: var(--primary); font-size: 14px; }

.sc-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sc-time i { font-size: 11px; }

.sc-header { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }

.tag { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid transparent; }
.tag-looking { background: white; color: var(--text-muted); border-color: var(--border-color); }
.tag-offering { background: var(--bg-app); color: var(--dark); border-color: rgba(0,0,0,0.05); }
.tag-new { background: var(--dark); color: white; }
.tag-category { background: #f1f5f9; color: var(--dark); border: 1px solid rgba(0,0,0,0.04); }

.sc-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; }
.sc-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sc-footer { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(0,0,0,0.04); padding-top: 20px; }
.sc-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.author-info { display: flex; flex-direction: column; gap: 4px; }
.author-info strong { font-size: 15px; color: var(--dark); font-weight: 700; line-height: 1; }
.author-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.author-rating i { color: #f59e0b; font-size: 12px; }

.sc-price { text-align: right; }
.sc-price strong { font-size: 24px; color: var(--dark); font-weight: 800; font-family: var(--font-heading); }
.sc-price small { color: var(--text-muted); font-size: 12px; font-weight: 600; }

/* ================= BOTTOM NAVBAR ================= */
.bottom-navbar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 80px;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-around;
    align-items: center; z-index: 100; padding-bottom: env(safe-area-inset-bottom);
}
.nav-item { color: #a1a1aa; font-size: 24px; text-decoration: none; transition: var(--transition); display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; }
.nav-item.active { color: var(--dark); }

.fab-wrapper { position: relative; top: -20px; }
.fab-create { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: white; border: none; font-size: 24px; box-shadow: 0 10px 20px rgba(106, 153, 105, 0.3); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.fab-create:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(106, 153, 105, 0.4); }

/* ================= MODALS ESTRUTURA GERAL ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-card {
    background: white; width: 100%; max-width: 600px;
    border-radius: 32px 32px 0 0; padding: 32px; position: relative;
    transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}
.modal-overlay.active .modal-card { transform: translateY(0); }

.modal-close-btn { position: absolute; top: 24px; right: 24px; background: var(--bg-app); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--dark); cursor: pointer; transition: var(--transition); }
.modal-close-btn:hover { transform: scale(1.1) rotate(90deg); }

.modal-title { font-size: 24px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.3; }
.modal-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 32px; }

.modal-footer-box { display: flex; justify-content: space-between; align-items: center; background: var(--bg-app); padding: 20px; border-radius: 24px; margin-bottom: 24px; }
.modal-price-box { text-align: right; }
.modal-price-box small { display: block; font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.modal-price-box span { font-size: 26px; font-weight: 800; color: var(--dark); font-family: var(--font-heading); letter-spacing: -0.5px; }

.btn-action-primary { width: 100%; background: var(--primary); color: white; border: none; padding: 18px; border-radius: 18px; font-family: var(--font-body); font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition); }
.btn-action-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(106,153,105,0.2); }
.btn-action-primary i { font-size: 18px; }

.credit-info { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.credit-info strong { color: var(--dark); font-weight: 800; }
.credit-info i { color: #f59e0b; margin-right: 4px; }

/* ================= MODAL DE PLANOS (PREMIUM) ================= */
#plans-modal {
    align-items: center;
    padding: 20px;
    background: rgba(23, 32, 51, 0.48);
    backdrop-filter: blur(14px);
}

#plans-modal .modal-card {
    transform: translateY(14px) scale(0.98);
}

#plans-modal.active .modal-card {
    transform: translateY(0) scale(1);
}

.plans-card {
    width: min(920px, calc(100vw - 32px));
    max-width: 920px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 32px;
    text-align: center;
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: 0 34px 90px rgba(23, 32, 51, 0.24);
}

.plans-close-btn {
    top: 22px;
    right: 22px;
    background: var(--surface-soft);
}

.plans-header {
    max-width: 560px;
    margin: 0 auto 14px;
}

.plans-header__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #b77905;
    font-size: 21px;
    background: linear-gradient(135deg, #fff7cc, #fde68a);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.18);
}

.plans-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.plans-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.055em;
    margin-bottom: 6px;
    color: var(--dark);
}

.plans-header p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.4;
}

.plans-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.plan-item {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 17px;
    border-radius: 22px;
    text-align: left;
    border: 1px solid rgba(23, 32, 51, 0.09);
    background: #f8fafc;
    color: var(--dark);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-body);
}

.plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.085);
}

.plan-item.active {
    border-color: var(--primary);
    box-shadow: 0 18px 44px rgba(106, 153, 105, 0.12);
}

.plan-selected {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 26px;
    height: 26px;
    display: none;
    place-items: center;
    border-radius: 999px;
    background: white;
    color: white;
    border: 1px solid rgba(23, 32, 51, 0.1);
}

.plan-item.active .plan-selected {
    display: grid;
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.plan-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 26px;
}

.plan-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: white;
    color: var(--text-muted);
}

.plan-topline strong {
    font-size: 17px;
    font-weight: 900;
}

.plan-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark);
}

.plan-price small {
    margin-left: 2px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--text-muted);
}

.plan-desc {
    display: block;
    min-height: 44px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.plan-benefits {
    display: grid;
    gap: 6px;
    margin-top: auto;
    color: #44546a;
    font-size: 12px;
    line-height: 1.3;
}

.plan-benefits span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-benefits i {
    margin-top: 2px;
    color: var(--primary);
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.plan-badge--pro {
    background: #e8f4ec;
    color: var(--primary-dark);
}

.plan-basic {
    background: #f8fafc;
    border-color: rgba(23, 32, 51, 0.055);
    box-shadow: none;
    opacity: 0.94;
}

.plan-basic .plan-icon {
    color: #74839a;
    background: #edf2f7;
}

.plan-basic .plan-price {
    font-size: 20px;
}

.plan-basic .plan-benefits {
    color: #526177;
}

.plan-basic.active {
    opacity: 1;
    border-color: rgba(106, 153, 105, 0.42);
    box-shadow: 0 12px 28px rgba(106, 153, 105, 0.08);
}

.plan-gold {
    border-width: 2px;
    border-color: rgba(245, 158, 11, 0.46);
    background:
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.72));
    box-shadow: 0 16px 42px rgba(245, 158, 11, 0.11);
}

.plan-gold .plan-icon {
    color: #b77905;
    background: #fff7cc;
}

.plan-gold .plan-badge {
    background: #fde68a;
    color: #854d0e;
}

.plan-gold .plan-benefits i {
    color: #b77905;
}

.plan-gold.active {
    transform: translateY(-3px);
    border-color: #f59e0b;
    box-shadow: 0 24px 58px rgba(245, 158, 11, 0.20);
}

.plan-gold.active .plan-selected {
    background: #d97706;
    border-color: #d97706;
}

.plan-platinum {
    border-color: rgba(106, 153, 105, 0.22);
    background:
        radial-gradient(circle at 92% 8%, rgba(134, 239, 172, 0.10), transparent 28%),
        linear-gradient(180deg, #f5fbf7, #eef7f2);
    box-shadow: 0 12px 32px rgba(106, 153, 105, 0.07);
}

.plan-platinum .plan-icon {
    color: var(--primary-dark);
    background: white;
}

.plan-platinum.active {
    border-color: rgba(106, 153, 105, 0.55);
    box-shadow: 0 18px 44px rgba(106, 153, 105, 0.14);
}

.plans-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.plans-footer p {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.plans-cta {
    min-height: 48px;
    border-radius: 17px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(106, 153, 105, 0.22);
}

.plans-footer small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 860px) {
    #plans-modal {
        padding: 14px;
    }

    .plans-card {
        width: min(620px, calc(100vw - 20px));
        max-height: 88vh;
        border-radius: 28px;
    }

    .plans-list {
        grid-template-columns: 1fr;
    }

    .plan-item {
        min-height: auto;
    }

    .plan-desc {
        min-height: 0;
    }

    .plans-footer {
        position: sticky;
        bottom: -1px;
        z-index: 2;
        margin: 14px -22px -22px;
        padding: 14px 22px 18px;
        border-radius: 0 0 28px 28px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #fff 34%);
        box-shadow: 0 -14px 28px rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 520px) {
    .plans-card {
        padding: 22px 16px 18px;
    }

    .plans-header {
        padding: 0 36px;
    }

    .plans-header__icon {
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }

    .plans-header h2 {
        font-size: 28px;
    }

    .plan-item {
        padding: 18px;
        border-radius: 20px;
    }

    .plans-footer {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -18px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ================= DESKTOP MEDIA QUERY ================= */
@media (min-width: 768px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex; }
    
    .desktop-menu { display: flex; gap: 40px; }
    .desktop-menu a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 15px; transition: var(--transition); }
    .desktop-menu a:hover, .desktop-menu a.active { color: var(--dark); }

    .modern-search-bar { max-width: 600px; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

    .modal-overlay { align-items: center; }
    .modal-card { border-radius: 28px; transform: scale(0.9) translateY(30px); }
    .modal-overlay.active .modal-card { transform: scale(1) translateY(0); }
}

/* --- Feed refinement layer --- */
.feed-content {
    padding-top: clamp(18px, 3vw, 32px);
}

.hero-premium {
    min-height: 292px;
    padding: clamp(26px, 4vw, 48px);
    margin-bottom: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 18%, rgba(134, 239, 172, 0.16), transparent 26%),
        linear-gradient(135deg, #172033 0%, #25334a 58%, #2f553d 100%);
    box-shadow: 0 22px 70px rgba(23, 32, 51, 0.16);
}

.hero-premium::after {
    content: '';
    position: absolute;
    inset: auto -10% -45% 38%;
    height: 220px;
    background: rgba(255, 255, 255, 0.055);
    transform: rotate(-8deg);
    border-radius: 999px;
}

.hero-premium__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero-premium h2 {
    max-width: 650px;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    margin-bottom: 14px;
}

.hero-premium p {
    font-size: clamp(15px, 1.7vw, 18px);
    max-width: 560px;
}

.hero-premium__stats {
    gap: 12px;
    margin: 24px 0;
}

.hero-premium__stats div {
    min-width: 128px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
}

.hero-premium__visual {
    position: relative;
    z-index: 1;
    width: clamp(82px, 14vw, 150px);
    height: clamp(82px, 14vw, 150px);
    border-radius: 34px;
    font-size: clamp(34px, 5vw, 56px);
}

.location-chip-row {
    margin-bottom: 12px;
}

.modern-search-bar {
    width: 100%;
    max-width: none !important;
    margin-bottom: 32px;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 14px 38px rgba(23, 32, 51, 0.075);
}

.search-item {
    padding: 0 12px;
}

.btn-filter-circle {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.feed-filters-panel {
    margin-top: -10px;
    margin-bottom: 28px;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

.section-block {
    margin-bottom: 42px;
}

.section-block__head {
    margin-bottom: 18px;
}

.premium-scroll {
    gap: 18px;
    padding: 4px 2px 14px;
}

.premium-scroll .service-card {
    min-width: min(336px, 86vw);
}

.feed-header {
    margin-bottom: 18px;
}

.categories-section-wrapper {
    margin-bottom: 30px;
}

.categories-pills {
    gap: 10px;
    padding: 6px 2px 9px;
    max-height: 109px;
}

.cat-pill {
    min-height: 42px;
    padding: 10px 16px;
    border-color: rgba(23, 32, 51, 0.07);
}

.cat-pill.active {
    background: var(--dark);
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.12);
}

.services-grid {
    gap: 22px;
}

@media (min-width: 980px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hero-premium {
        min-height: 0;
        align-items: flex-start;
    }

    .hero-premium__visual {
        display: none;
    }

    .hero-premium__stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .modern-search-bar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        border-radius: 22px;
        padding: 12px;
    }

    .search-item {
        padding: 0;
    }

    .location-status {
        white-space: normal;
    }

    .search-divider {
        display: none;
    }

    .search-item.distance {
        grid-column: 1;
    }

    .btn-filter-circle {
        grid-row: 1 / span 2;
        grid-column: 2;
        align-self: center;
    }

    .feed-header {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }
}

.bottom-navbar.mobile-only {
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    align-items: flex-end;
}

.bottom-navbar .nav-item {
    width: auto;
    height: auto;
    min-height: 56px;
    font-size: inherit;
}

.bottom-navbar .fab-wrapper {
    top: auto;
    margin-top: -28px;
}

.bottom-navbar .fab-create {
    width: 58px;
    height: 58px;
}

/* Shell guard: feed previously overrode shared navigation styles. */
body,
.app-wrapper {
    background-color: var(--bg-app);
}

.top-navbar {
    height: 76px;
    padding: 0;
    background: rgba(246, 248, 246, 0.94);
    border-bottom: 1px solid rgba(23, 32, 51, 0.07);
}

.top-navbar .nav-content {
    height: 76px;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: 24px;
}

.top-navbar .logo {
    font-size: 24px;
    line-height: 1;
}

.top-navbar .desktop-menu {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px;
    min-height: 52px;
    border: 1px solid rgba(23, 32, 51, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.top-navbar .desktop-menu a {
    min-width: 108px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.top-navbar .desktop-menu a.active,
.top-navbar .desktop-menu a:hover {
    background: var(--white);
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.06);
}

.top-navbar .nav-actions {
    justify-self: end;
    gap: 12px;
}

@media (max-width: 767px) {
    .top-navbar {
        height: 66px;
    }

    .top-navbar .nav-content {
        height: 66px;
        min-height: 66px;
        display: flex;
        justify-content: space-between;
    }

    .top-navbar .desktop-menu {
        display: none;
    }
}

/* --- Feed view switch: grade/lista --- */
.feed-header {
    gap: 16px;
}

.feed-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.view-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 32, 51, 0.07);
    box-shadow: 0 8px 20px rgba(23, 32, 51, 0.045);
}

.view-switch__btn {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.view-switch__btn i {
    font-size: 13px;
}

.view-switch__btn:hover,
.view-switch__btn.active {
    background: var(--dark);
    color: white;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.12);
}

.services-grid.is-list-view {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
}

.services-grid.is-list-view .service-card {
    width: 100%;
}

.services-grid.is-list-view .skeleton-card {
    min-height: 230px;
}

@media (min-width: 760px) {
    .services-grid.is-list-view .service-card {
        min-height: 238px;
        display: grid;
        grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
    }

    .services-grid.is-list-view .service-card__media {
        height: 100%;
        min-height: 238px;
    }

    .services-grid.is-list-view .service-card__body {
        padding: 22px;
        position: relative;
        padding-right: 190px;
    }

    .services-grid.is-list-view .service-card__title {
        max-width: 620px;
        font-size: 21px;
    }

    .services-grid.is-list-view .service-card__desc {
        -webkit-line-clamp: 3;
        max-width: 650px;
    }

    .services-grid.is-list-view .service-card__footer {
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        padding-top: 16px;
    }

    .services-grid.is-list-view .service-card__cta {
        max-width: 260px;
    }

    .services-grid.is-list-view .service-card__price {
        position: absolute;
        right: 22px;
        bottom: 26px;
        width: 136px;
        min-height: 74px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-align: center;
        overflow: hidden;
        border-radius: 18px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 247, 0.98));
        border: 1px solid rgba(106, 153, 105, 0.16);
        box-shadow:
            0 10px 24px rgba(23, 32, 51, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .services-grid.is-list-view .service-card__price::before {
        content: 'R$';
        position: absolute;
        right: -8px;
        bottom: -18px;
        font-family: var(--font-heading);
        font-size: 52px;
        font-weight: 900;
        line-height: 1;
        color: rgba(106, 153, 105, 0.08);
        letter-spacing: -0.08em;
        pointer-events: none;
    }

    .services-grid.is-list-view .service-card__price::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 12px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--primary);
        box-shadow: 0 0 0 4px rgba(106, 153, 105, 0.1);
        opacity: 0.9;
    }

    .services-grid.is-list-view .service-card__price small {
        color: #5d6f5f;
        font-size: 9px;
        font-weight: 900;
    }

    .services-grid.is-list-view .service-card__price strong {
        font-size: 25px;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .services-grid.is-list-view .service-card.is-premium {
        box-shadow:
            0 15px 36px rgba(23, 32, 51, 0.08),
            0 0 0 1px rgba(214, 158, 70, 0.09);
    }

    .services-grid.is-list-view .service-card.is-premium .service-card__price {
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.72));
        border-color: rgba(214, 158, 70, 0.18);
    }

    .services-grid.is-list-view .service-card.is-premium .service-card__price::before {
        color: rgba(214, 158, 70, 0.09);
    }

    .services-grid.is-list-view .service-card.is-premium .service-card__price::after {
        background: #d69e46;
        box-shadow: 0 0 0 4px rgba(214, 158, 70, 0.11);
    }
}

@media (max-width: 680px) {
    .feed-header {
        align-items: stretch;
    }

    .feed-header__right {
        justify-content: space-between;
        width: 100%;
    }

    .view-switch {
        flex-shrink: 0;
    }

    .view-switch__btn span {
        display: none;
    }

    .view-switch__btn {
        width: 38px;
        padding: 0;
    }
}
