/* =========================================
   Arquivo: filex/css/main.css
   XONA — BASE PARTILHADA
   (variáveis, reset, sidebar, header,
    modais, componentes utilitários)
   ========================================= */

/* =========================================
   VARIÁVEIS — DARK (padrão)
   ========================================= */
:root {
    --bg-dark: #050709;
    --bg-card: #0B0F12;
    --bg-card-hover: #12181c;
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
    --text-muted: #5a5f66;
    --accent-pink: #f0246e;
    --accent-pink-hover: #ff3d85;
    --border-color: #1a2026;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body.light-mode {
    --bg-dark: #f5f6f8;
    --bg-card: #ffffff;
    --bg-card-hover: #eef0f3;
    --text-primary: #17191d;
    --text-secondary: #69707a;
    --text-muted: #9aa1ab;
    --accent-pink: #f0246e;
    --accent-pink-hover: #d81c5f;
    --border-color: #e1e4e8;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* =========================================
   SCROLLBARS
   ========================================= */
* {
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #30363d; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #4a525c; }

/* =========================================
   RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; transition: all 0.2s ease; }
img { display: block; max-width: 100%; }

.mobile-only { display: none; }
.desktop-only { display: flex; }

/* =========================================
   SIDEBAR ESQUERDA
   ========================================= */
.sidebar-left {
    width: 260px;
    flex: 0 0 260px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.sidebar-left::-webkit-scrollbar { width: 4px; }
.sidebar-left::-webkit-scrollbar-thumb { background: #292f36; border-radius: 999px; }

.sidebar-left .logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-left: 8px;
}

.main-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-item i { font-size: 18px; width: 22px; text-align: center; }
.nav-item:hover { background-color: var(--bg-card); color: var(--text-primary); }
.nav-item.active { background-color: var(--accent-pink); color: #ffffff; }
.nav-item .badge {
    background-color: var(--accent-pink);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}

/* =========================================
   SEPARADOR NO SIDEBAR
   ========================================= */
.nav-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 12px 8px;
    opacity: 0.6;
}

/* =========================================
   TOGGLE DE TEMA
   ========================================= */
.theme-toggle {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent-pink); }

.theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}
.theme-toggle-label i { font-size: 16px; color: var(--accent-pink); }

.switch {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #2a3038;
    border-radius: 999px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}
.switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
body.light-mode .switch { background-color: var(--accent-pink); }
body.light-mode .switch-knob { transform: translateX(18px); }

/* =========================================
   CONTEÚDO PRINCIPAL
   ========================================= */
.main-content {
    flex: 1;
    margin-left: 260px;
    margin-right: 340px;
    padding: 0 24px 24px;
    min-height: 100vh;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

.top-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0 0 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-dark);
    z-index: 50;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.logo-mobile { display: none; font-size: 22px; font-weight: 700; letter-spacing: 2px; }

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    width: 100%;
}
.search-bar i { color: var(--text-muted); font-size: 15px; }
.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* =========================================
   SIDEBAR DIREITA
   ========================================= */
.sidebar-right {
    width: 340px;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    padding: 20px 16px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.sidebar-right::-webkit-scrollbar { width: 4px; }
.sidebar-right::-webkit-scrollbar-thumb { background: #292f36; border-radius: 999px; }

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    box-shadow: var(--shadow-card);
    width: 100%;
}
.header-nav-item {
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}
.header-nav-item:hover,
.header-nav-item.active { color: var(--accent-pink); }
.header-nav-item .badge {
    background-color: var(--accent-pink);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    position: absolute;
    top: -8px;
    right: -10px;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-left: 4px;
}
.user-menu i { color: var(--text-secondary); font-size: 11px; }
.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

/* Sidebar direita — cards */
.suggested-creators,
.trending-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h3,
.section-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.see-all {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.see-all:hover { color: var(--accent-pink); }

.creators-list { display: flex; flex-direction: column; gap: 14px; }
.creator-item { display: flex; align-items: center; gap: 10px; }
.creator-avatar-wrapper { position: relative; flex-shrink: 0; }
.creator-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.creator-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}
.creator-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.creator-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.creator-followers { font-size: 11px; color: var(--text-muted); }

/* =========================================
   BOTÃO SEGUIR — base partilhada
   ========================================= */
.btn-follow {
    background-color: var(--accent-pink);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 14px;
    font-size: 12px;
}
.btn-follow:hover { background-color: var(--accent-pink-hover); }
.btn-follow.following {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-follow.requested {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* =========================================
   HASHTAGS
   ========================================= */
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; }
.hashtag-pill {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.hashtag-pill:hover { border-color: var(--accent-pink); color: var(--accent-pink); }

/* =========================================
   BOTTOM NAV — escondida em desktop
   ========================================= */
.bottom-nav {
    display: none;
}

/* =========================================
   DRAWER MOBILE — escondido em desktop
   ========================================= */
.mobile-drawer { display: none; }

/* =========================================
   COMPONENTES UTILITÁRIOS
   (search pill, empty state, sort, view)
   ========================================= */

/* Search pill — usado em explorar, guardados, comprados, geral */
.search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 18px;
    transition: border-color 0.2s;
}
.search-pill:focus-within { border-color: var(--accent-pink); }
.search-pill i { color: var(--text-muted); font-size: 14px; }
.search-pill input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    min-width: 0;
}
.search-pill input::placeholder { color: var(--text-muted); }

/* Empty state genérico */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.empty-state.open { display: flex; }
.empty-state i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Sort select */
.sort-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.sort-select:hover,
.sort-select:focus { border-color: var(--accent-pink); }

/* View toggle */
.view-toggle {
    display: flex;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}
.view-btn {
    width: 34px;
    height: 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.view-btn:hover { color: var(--text-primary); }
.view-btn.active {
    background-color: var(--accent-pink);
    color: #fff;
}

/* =========================================
   MODAIS
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 300;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 90%;
    max-width: 400px;
}
.modal-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.modal-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.modal-content p span { color: var(--accent-pink); font-weight: 600; }

.tip-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.tip-amount {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}
.tip-amount:hover { border-color: var(--accent-pink); color: var(--accent-pink); }
.tip-amount.selected {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    color: white;
}

.modal-actions { display: flex; gap: 12px; }
.btn-cancel {
    flex: 1;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
}
.btn-cancel:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn-confirm {
    flex: 1;
    background-color: var(--accent-pink);
    color: white;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
}
.btn-confirm:hover { background-color: var(--accent-pink-hover); }

/* =========================================
   MODAL DE CRIAÇÃO
   ========================================= */
.create-post-modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 760px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.create-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.create-post-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
    background: none;
    color: var(--text-secondary);
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background-color: var(--bg-dark); color: var(--text-primary); }

.create-post-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.create-post-body::-webkit-scrollbar { width: 4px; }

.create-post-user { display: flex; align-items: center; gap: 12px; }
.create-post-name { display: block; font-size: 14px; font-weight: 600; }
.create-post-visibility {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

#createPostText {
    width: 100%;
    min-height: 140px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
#createPostText:focus { border-color: var(--accent-pink); }
#createPostText::placeholder { color: var(--text-muted); }

.media-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.media-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
}
.media-preview-item img,
.media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-preview-item .remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
}
.media-preview-item .media-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 4px 6px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.create-post-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.create-post-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.option-btn {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.option-btn i { font-size: 18px; color: var(--accent-pink); }
.option-btn:hover { border-color: var(--accent-pink); }
.option-btn.active {
    background-color: rgba(240, 36, 110, 0.1);
    border-color: var(--accent-pink);
}

.create-post-panel {
    display: none;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    flex-direction: column;
    gap: 10px;
}
.create-post-panel.open { display: flex; }
.create-post-panel h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }

.radio-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.radio-row input[type="radio"] { accent-color: var(--accent-pink); }

.price-input-wrapper { display: none; margin-top: 6px; }
.price-input-wrapper.open { display: block; }
.price-input-wrapper input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.price-input-wrapper input:focus { border-color: var(--accent-pink); }

.audience-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}
.audience-btn i { color: var(--accent-pink); font-size: 14px; }
.audience-btn:hover { border-color: var(--accent-pink); }
.audience-btn.active {
    background-color: rgba(240, 36, 110, 0.1);
    border-color: var(--accent-pink);
}

.create-post-footer {
    display: flex;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
}
.create-post-footer .btn-cancel,
.create-post-footer .btn-confirm { padding: 12px 20px; }

/* =========================================
   RESPONSIVIDADE — TABLET
   ========================================= */
@media (max-width: 1200px) {
    .main-content { margin-right: 300px; }
    .sidebar-right { width: 300px; }
}
@media (max-width: 1024px) {
    .main-content { margin-right: 0; }
    .sidebar-right { display: none; }
}

/* =========================================
   MOBILE — XONA
   ========================================= */
@media (max-width: 768px) {

    .sidebar-left,
    .sidebar-right,
    .desktop-only { display: none !important; }

    .mobile-only { display: flex !important; }
    .bottom-nav { display: flex; }

    body { overflow-x: hidden; }

    .main-content {
        margin: 0;
        width: 100%;
        max-width: none;
        padding: 0;
        min-height: 100vh;
    }

    /* Header mobile */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 14px 14px 12px;
        background-color: var(--bg-dark);
        transition: background-color 0.3s ease;
    }
    .mobile-header .logo {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--text-primary);
    }
    .mobile-header .logo::first-letter { color: var(--accent-pink); }
    .mobile-header-icons { display: flex; align-items: center; gap: 4px; }
    .mobile-icon-btn {
        position: relative;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        border-radius: var(--radius-md);
        color: var(--text-primary);
        font-size: 18px;
        transition: background-color 0.2s;
    }
    .mobile-icon-btn:hover,
    .mobile-icon-btn:active { background-color: var(--bg-card); }
    .mobile-icon-btn .badge {
        position: absolute;
        top: 4px;
        right: 4px;
        background-color: var(--accent-pink);
        color: white;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 999px;
        min-width: 16px;
        text-align: center;
    }
    .mobile-user-menu { display: flex; align-items: center; gap: 4px; padding: 0 4px; }
    .mobile-user-menu .avatar-small {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border-color);
    }
    .mobile-user-menu i { color: var(--text-secondary); font-size: 11px; }

    /* =========================================
       BOTTOM NAV — 5 itens (Feed, Notif, Estrela, Perfil, Menu)
       ========================================= */
    .bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        padding: 8px 6px 10px;
        box-shadow:
            0 8px 28px rgba(0, 0, 0, 0.35),
            0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 200;
        transition: background-color 0.3s ease, border-color 0.3s ease;
    }
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--text-secondary);
        font-size: 10.5px;
        font-weight: 500;
        padding: 6px 2px;
        min-height: 48px;
        background: none;
        border: none;
        font-family: inherit;
        text-decoration: none;
        position: relative;
        cursor: pointer;
        transition: color 0.2s;
    }
    .bottom-nav-item i { font-size: 22px; }
    .bottom-nav-item small { font-size: 10.5px; }
    .bottom-nav-item.active { color: var(--accent-pink); }

    .bottom-nav-item .bottom-badge {
        position: absolute;
        top: 4px;
        right: 22%;
        background-color: var(--accent-pink);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 999px;
        min-width: 14px;
        text-align: center;
    }

    /* Estrela (Explorar) — botão central destacado */
    .bottom-nav-item.explore-btn {
        flex: 0 0 auto;
        position: relative;
        padding: 0;
        min-height: auto;
        margin: 0 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .bottom-nav-item.explore-btn i {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: #ffffff;
        background: linear-gradient(135deg, var(--accent-pink), var(--accent-pink-hover));
        margin-top: -24px;
        box-shadow:
            0 6px 16px rgba(240, 36, 110, 0.45),
            0 0 0 5px var(--bg-card);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .bottom-nav-item.explore-btn:hover i,
    .bottom-nav-item.explore-btn:active i {
        transform: scale(1.05);
        box-shadow:
            0 8px 22px rgba(240, 36, 110, 0.6),
            0 0 0 5px var(--bg-card);
    }

    /* Hambúrguer */
    .bottom-nav-item.menu-btn { font-family: inherit; }

    /* =========================================
       DRAWER MOBILE
       ========================================= */
    .mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 500;
        display: none;
    }
    .mobile-drawer.open { display: block; }

    .mobile-drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
        animation: drawerFadeIn 0.2s ease;
    }

    .mobile-drawer-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 82%;
        max-width: 340px;
        background-color: var(--bg-card);
        border-right: 1px solid var(--border-color);
        padding: 18px 14px 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        animation: drawerSlideIn 0.25s ease;
    }

    @keyframes drawerFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    @keyframes drawerSlideIn {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px 4px 14px;
        border-bottom: 1px solid var(--border-color);
    }
    .mobile-drawer-logo {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 2px;
        color: var(--text-primary);
    }
    .mobile-drawer-logo::first-letter { color: var(--accent-pink); }

    .mobile-drawer-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: transparent;
        border: none;
        color: var(--text-secondary);
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    .mobile-drawer-close:hover {
        background-color: var(--bg-dark);
        color: var(--text-primary);
    }

    .mobile-drawer-nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-top: 6px;
    }

    .drawer-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: var(--radius-md);
        color: var(--text-secondary);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background-color 0.2s, color 0.2s;
    }
    .drawer-item i { font-size: 16px; width: 20px; text-align: center; }
    .drawer-item:hover,
    .drawer-item:active {
        background-color: var(--bg-dark);
        color: var(--text-primary);
    }
    .drawer-item.highlight {
        background-color: rgba(240, 36, 110, 0.08);
        color: var(--accent-pink);
    }
    .drawer-item.danger { color: #ef4444; }
    .drawer-item.danger i { color: #ef4444; }

    .drawer-badge {
        margin-left: auto;
        background-color: var(--accent-pink);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 7px;
        border-radius: 999px;
        min-width: 18px;
        text-align: center;
    }

    .drawer-separator {
        height: 1px;
        background-color: var(--border-color);
        margin: 8px 6px;
        opacity: 0.6;
    }

    /* Modais em mobile */
    .create-post-modal {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }
    .create-post-header { padding: 16px 18px; }
    .create-post-body { padding: 16px 18px; }
    .create-post-options { grid-template-columns: repeat(2, 1fr); }
    .create-post-footer {
        padding: 14px 18px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
    .create-post-footer .btn-cancel,
    .create-post-footer .btn-confirm { padding: 14px 18px; font-size: 15px; }

    .modal-content {
        width: calc(100% - 32px);
        max-width: none;
        padding: 22px;
    }

    /* Search pill mobile */
    .search-pill {
        padding: 11px 16px;
    }

    /* Empty state mobile */
    .empty-state { padding: 40px 16px; }
    .empty-state i { font-size: 26px; }
    .empty-state h3 { font-size: 15px; }
    .empty-state p { font-size: 12px; }

    *::-webkit-scrollbar { width: 4px; height: 4px; }
}