/* ================= VARIÁVEIS GLOBAIS (BASE) ================= */
:root {
    --primary: #6a9969;
    --primary-dark: #557c54;
    --dark: #1e293b;
    --text-muted: #64748b;
    --bg-app: #f9fbf9;
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: var(--font-body); background-color: var(--bg-app); color: var(--dark); -webkit-font-smoothing: antialiased; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.desktop-menu, .desktop-only { display: none; }
.mobile-only { display: flex; }

/* ================= TOP NAVBAR ================= */
.top-navbar {
    background: rgba(249, 251, 249, 0.85); backdrop-filter: blur(12px);
    padding: 16px 0; position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--dark); cursor: pointer; text-decoration: none;}
.logo .dot { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.btn-icon {
    background: white; border: 1px solid rgba(0,0,0,0.05); width: 44px; height: 44px;
    border-radius: 50%; color: var(--dark); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-icon:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.notification { position: relative; }
.badge-count {
    position: absolute; top: -2px; right: -2px; background: #ef4444; color: white;
    font-size: 10px; font-weight: 800; width: 18px; height: 18px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%; border: 2px solid white;
}
.profile-avatar img { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; object-fit: cover; }

/* ================= PUBLISH LAYOUT ================= */
.publish-content { max-width: 680px; margin: 0 auto; padding-top: 40px; padding-bottom: 120px; }
.text-center { text-align: center; }
.publish-header { margin-bottom: 32px; }
.page-title { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 8px; }
.publish-header p { color: var(--text-muted); font-size: 16px; }

/* O Cartão do Formulário */
.publish-card {
    background: white; padding: 40px; border-radius: 32px;
    border: 1px solid rgba(0,0,0,0.03); box-shadow: var(--shadow-md);
}

/* ================= CAMPOS DE FORMULÁRIO ================= */
.form-group { margin-bottom: 28px; }
.form-row { display: flex; gap: 20px; }
.form-group.half { flex: 1; }

.form-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--dark); margin-bottom: 12px; }
.badge-optional { background: #f1f5f9; color: #94a3b8; font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; text-transform: uppercase; }

.pub-input {
    width: 100%; padding: 18px; border-radius: 16px;
    border: 2px solid #f1f5f9; background: #f8fafc;
    font-family: var(--font-body); font-size: 15px; color: var(--dark); font-weight: 500;
    transition: var(--transition); outline: none;
}
.pub-input::placeholder { color: #94a3b8; font-weight: 400; }
.pub-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(106, 153, 105, 0.1); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

/* Ícones dentro dos inputs */
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 18px; pointer-events: none; }
.pub-input.has-icon { padding-left: 48px; }

/* Select Customizado */
.custom-select-wrapper { position: relative; }
.custom-select-wrapper .pub-input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-left: 48px; padding-right: 48px; }
.custom-select-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.custom-select-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }

/* ================= UPLOAD ZONE (NOVO) ================= */
.upload-zone {
    border: 2px dashed #cbd5e1; border-radius: 20px; padding: 32px 20px;
    text-align: center; background: #f8fafc; cursor: pointer; transition: var(--transition);
}
.upload-zone:hover { border-color: var(--primary); background: #f0fdf4; }
.upload-icon { font-size: 36px; color: #94a3b8; margin-bottom: 12px; transition: var(--transition); }
.upload-zone:hover .upload-icon { color: var(--primary); transform: translateY(-4px); }
.upload-zone strong { display: block; font-size: 16px; color: var(--dark); margin-bottom: 4px; }
.upload-zone span { font-size: 13px; color: var(--text-muted); }

/* ================= RADIO CARDS (TIPO DE ANÚNCIO) ================= */
.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-card {
    border: 2px solid #f1f5f9; background: #f8fafc;
    border-radius: 20px; padding: 24px 16px; text-align: center;
    cursor: pointer; transition: var(--transition); position: relative; overflow: hidden;
}
.type-card:hover { border-color: rgba(106, 153, 105, 0.4); background: white; }
.type-card.active { border-color: var(--primary); background: #f0fdf4; }
.type-card.active::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 12px; right: 12px; color: var(--primary); font-size: 14px; }
.tc-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #94a3b8; transition: var(--transition); box-shadow: var(--shadow-sm); }
.type-card.active .tc-icon { background: var(--primary); color: white; box-shadow: 0 8px 16px rgba(106, 153, 105, 0.3); }
.type-card strong { display: block; font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.type-card span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ================= BOTÕES FINAIS ================= */
.form-actions { display: flex; gap: 16px; margin-top: 40px; }
.btn-cancelar { flex: 1; padding: 20px; border-radius: 100px; border: none; background: #f1f5f9; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; font-size: 16px; cursor: pointer; transition: var(--transition); }
.btn-cancelar:hover { background: #e2e8f0; color: var(--dark); }
.btn-publicar { flex: 2; padding: 20px; border-radius: 100px; border: none; background: var(--dark); color: white; font-family: var(--font-body); font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: var(--transition); }
.btn-publicar:hover { background: var(--primary); box-shadow: 0 10px 20px rgba(106, 153, 105, 0.3); }
.btn-publicar i { transition: transform 0.3s; }
.btn-publicar:hover i { transform: translateX(4px); }

/* ================= 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; text-decoration: none; }

/* DESKTOP E MOBILE REGRAS */
@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); }
}

@media (max-width: 768px) {
    .publish-card { border-radius: 0; border: none; box-shadow: none; padding: 20px 0; background: transparent; }
    .form-row { flex-direction: column; gap: 0; }
    .type-selector { gap: 12px; }
    .publish-content { padding-top: 20px; }
    .form-actions { flex-direction: column-reverse; }
}

/* ================= MODAL PREVIEW & CARD STYLES ================= */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px); 
    z-index: 1000; display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: var(--transition); 
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.preview-container {
    background: white; width: 100%; max-width: 500px;
    border-radius: 32px; padding: 24px; margin: 20px;
    box-shadow: var(--shadow-md);
}

.preview-title {
    text-align: center; color: var(--text-muted); font-size: 14px; 
    text-transform: uppercase; letter-spacing: 1px; font-weight: 800; 
    margin-bottom: 20px;
}

/* Espelho do Card do Feed */
.preview-card {
    border-radius: 24px; padding: 24px; border: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); background: #fdfdfd; pointer-events: none;
    text-align: left;
}
.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; }
.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-header { display: flex; gap: 8px; 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: #cbd5e1; }
.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: 18px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.5px; }
.sc-desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 20px; 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: 16px; }
.sc-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-info strong { font-size: 14px; color: var(--dark); font-weight: 700; line-height: 1; }
.author-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.author-rating i { color: #f59e0b; font-size: 10px; }
.sc-price { text-align: right; }
.sc-price strong { font-size: 20px; color: var(--dark); font-weight: 800; font-family: var(--font-heading); }

/* ================= MODAL PREVIEW & CARD STYLES ================= */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); 
    z-index: 1000; display: flex; align-items: center; justify-content: center; 
    opacity: 0; pointer-events: none; transition: var(--transition); 
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.preview-container {
    background: #f8fafc; /* FUNDO CINZA PARA DESTACAR O CARD BRANCO */
    width: 100%; max-width: 500px;
    border-radius: 32px; padding: 32px; margin: 20px;
    box-shadow: var(--shadow-md);
}

.preview-title {
    text-align: center; color: var(--text-muted); font-size: 14px; 
    text-transform: uppercase; letter-spacing: 1px; font-weight: 800; 
    margin-bottom: 24px;
}

/* Espelho exato do Card do Feed */
.preview-card {
    background: white; border-radius: 28px; padding: 28px; 
    border: 1px solid rgba(0,0,0,0.03); box-shadow: var(--shadow-sm); 
    pointer-events: none; text-align: left;
}

/* Tags e alinhamentos idênticos ao Feed */
.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: 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-header { display: flex; gap: 8px; 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: rgba(0,0,0,0.1); }
.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; 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%; 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); }

.publish-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.publish-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex: 1;
}
.progress-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.progress-step.active span, .progress-step.done span {
    background: var(--primary);
    color: white;
}
.progress-line { flex: 0.5; height: 2px; background: #e2e8f0; margin-bottom: 18px; }
.publish-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.publish-step { display: none; }
.publish-step.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.publish-nav-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.publish-nav-actions .btn-publicar, .publish-nav-actions .btn-outline { flex: 1; min-width: 120px; }
.btn-outline {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--dark);
    padding: 14px 20px;
    border-radius: var(--radius-input);
    font-weight: 700;
    cursor: pointer;
}
.publish-preview {
    background: white;
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    position: sticky;
    top: 90px;
    height: fit-content;
}
.preview-label { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.live-preview-card h4 { font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.live-preview-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.live-preview-card__foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 700; }
.live-preview-card__foot strong { color: var(--primary-dark); font-size: 18px; }
.publish-preview-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 16px;
    border-radius: 16px;
}
@media (min-width: 900px) {
    .publish-layout { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 767px) {
    .publish-preview { position: static; order: -1; }
}

/* --- Publish refinement layer --- */
.publish-content {
    max-width: 1180px;
    padding-top: clamp(22px, 4vw, 44px);
}

.publish-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
}

.page-title {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.04;
}

.publish-progress {
    max-width: 640px;
    margin-bottom: 30px;
}

.progress-step {
    gap: 7px;
}

.progress-step span {
    width: 34px;
    height: 34px;
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.03);
}

.progress-step.active {
    color: var(--dark);
}

.progress-line {
    height: 3px;
    border-radius: 999px;
}

.publish-layout {
    max-width: 1120px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: start;
    gap: clamp(22px, 4vw, 36px);
}

.publish-card,
.publish-preview {
    border: 1px solid rgba(23, 32, 51, 0.07);
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.07);
}

.publish-card {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 28px;
}

.publish-preview {
    padding: 22px;
    top: 96px;
}

.preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(111, 159, 108, 0.13);
}

.type-card {
    min-height: 160px;
    border-radius: 22px;
}

.type-card.active {
    background: var(--primary-soft);
}

.upload-zone {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
}

.pub-input {
    min-height: 54px;
    border-width: 1px;
}

.textarea {
    min-height: 150px;
}

.form-actions {
    align-items: center;
}

.btn-cancelar,
.btn-publicar,
.publish-nav-actions .btn-outline {
    min-height: 54px;
    border-radius: 16px;
}

.btn-publicar {
    background: linear-gradient(180deg, var(--dark-soft) 0%, var(--dark) 100%);
}

.btn-publicar:hover {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.preview-container {
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 30px 90px rgba(23, 32, 51, 0.18);
}

@media (max-width: 899px) {
    .publish-layout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .publish-card {
        border-radius: 24px;
        border: 1px solid rgba(23, 32, 51, 0.07);
        background: white;
        box-shadow: var(--shadow-sm);
    }

    .publish-preview {
        position: static;
        order: 0;
    }
}

@media (max-width: 640px) {
    .publish-content {
        padding-top: 18px;
    }

    .publish-header {
        text-align: left;
    }

    .publish-progress {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .progress-step {
        min-width: 86px;
    }

    .publish-card {
        padding: 20px;
        border-radius: 22px;
        background: white;
        box-shadow: var(--shadow-sm);
    }

    .type-selector {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions > * {
        width: 100%;
        flex: none;
    }
}

.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: this page used to redefine global body/header variables. */
:root {
    --primary: #6f9f6c;
    --primary-dark: #486f4b;
    --primary-soft: #eef6ee;
    --dark: #172033;
    --dark-soft: #243247;
    --bg-app: #f6f8f6;
    --surface: #ffffff;
    --surface-soft: #fbfcfb;
    --text-main: #172033;
    --text-muted: #66758a;
    --border-color: #e4e9ef;
    --shadow-sm: 0 8px 22px rgba(23, 32, 51, 0.045);
    --shadow-md: 0 18px 44px rgba(23, 32, 51, 0.075);
    --shadow-premium: 0 24px 70px rgba(23, 32, 51, 0.105);
    --radius-input: 14px;
    --radius-card: 24px;
    --transition: all 0.22s ease;
}

body,
.app-wrapper {
    background-color: var(--bg-app);
}

.container {
    width: 100%;
    max-width: 1180px;
    padding-left: clamp(18px, 4vw, 32px);
    padding-right: clamp(18px, 4vw, 32px);
}

.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 {
    justify-self: start;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.045em;
}

.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;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

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

.top-navbar .nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-navbar .btn-icon,
.top-navbar .profile-avatar img {
    width: 42px;
    height: 42px;
}

@media (max-width: 767px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-navbar {
        height: 66px;
    }

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

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