/* ========================================
   STYLE.CSS - SENTINELA DIGITAL MULHERES
   VERSÃO CORRIGIDA E COMPLETA
   ✅ Adicionados estilos que estavam faltando
   ======================================== */

/* ========================================
   PARTE 1: RESET + BASE + TIPOGRAFIA
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e4e4e7;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: #ec4899;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #18181b;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* ========================================
   PARTE 1.1: HEADER
   ======================================== */

header {
    background-color: #0a0a0a;
    border-bottom: 1px solid #27272a;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fafafa;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    font-size: 1.4rem;
}

.logo .badge {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.user-area {
    display: none;
    align-items: center;
    gap: 10px;
}

.user-area.active {
    display: flex;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-name {
    color: #fafafa;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-logout {
    background: transparent;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #27272a;
    color: #fafafa;
}

/* HAMBURGER */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #e4e4e7;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MENU MOBILE */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    right: -100%;
    width: 260px;
    height: calc(100% - 60px);
    background: #18181b;
    border-left: 1px solid #27272a;
    flex-direction: column;
    padding: 20px;
    z-index: 999;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: #e4e4e7;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav a:hover {
    background: #27272a;
    text-decoration: none;
}

/* ========================================
   PARTE 1.2: HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #1a0a1a 0%, #0a0a0a 50%, #0a0a1a 100%);
    border-bottom: 1px solid #27272a;
    padding: 50px 24px;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: #fafafa;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero h1 span {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: #a1a1aa;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================
   PARTE 1.3: FORUM NAV (TABS)
   ======================================== */

.forum-nav {
    background: #0a0a0a;
    border-bottom: 1px solid #27272a;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.forum-nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 4px;
}

.forum-tab {
    background: transparent;
    border: none;
    color: #71717a;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-tab:hover {
    color: #e4e4e7;
}

.forum-tab.active {
    color: #ec4899;
    border-bottom-color: #ec4899;
}

.forum-tab .count {
    background: #27272a;
    color: #a1a1aa;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.forum-tab.active .count {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.tab-pessoal {
    display: none;
}

.tab-pessoal.active {
    display: flex;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: #27272a;
    margin: 0 8px;
}

/* ========================================
   PARTE 2: LAYOUT PRINCIPAL (FORUM)
   ======================================== */

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

.forum-content {
    min-width: 0;
}

/* ========================================
   PARTE 2.1: MEU DIÁRIO CARD (TOPO)
   ======================================== */

.meu-diario-wrapper {
    display: none;
    margin-bottom: 20px;
}

.meu-diario-wrapper.active {
    display: block;
}

.meu-diario-card {
    background: linear-gradient(135deg, #1a0a1a, #18181b);
    border: 1px solid #ec489930;
    border-radius: 16px;
    padding: 20px;
}

.meu-diario-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meu-diario-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.meu-diario-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.meu-diario-info h3 {
    color: #fafafa;
    font-size: 1.05rem;
}

.meu-diario-info span {
    color: #71717a;
    font-size: 0.8rem;
}

.meu-diario-contador {
    margin-left: auto;
}

.mini-contador {
    display: flex;
    gap: 10px;
}

.mini-tempo {
    text-align: center;
}

.mini-numero {
    display: block;
    color: #ec4899;
    font-weight: 700;
    font-size: 1.1rem;
}

.mini-label {
    color: #71717a;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.meu-diario-actions {
    display: flex;
    gap: 10px;
}

.meu-diario-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.meu-diario-btn.primary {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
}

.meu-diario-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.meu-diario-btn.secondary {
    background: #27272a;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
}

.meu-diario-btn.secondary:hover {
    background: #3f3f46;
}

/* ========================================
   PARTE 2.2: SEÇÃO DE AVISOS
   ✅ NOVO: secao-titulo-container, btn-novo-aviso
   ======================================== */

.secao-avisos {
    margin-bottom: 24px;
}

/* ✅ NOVO: Container do título com botão admin */
.secao-titulo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.secao-titulo {
    color: #fafafa;
    font-size: 1.15rem;
    font-weight: 700;
}

/* ✅ NOVO: Botão "Novo Aviso" para admin */
.btn-novo-aviso {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0a0a0a;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-novo-aviso:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.avisos-dinamicos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CARD DE AVISO DOURADO */
.diario-aviso {
    background: linear-gradient(135deg, #1c1608, #18181b);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 16px;
    padding: 20px;
}

.aviso-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.aviso-icon {
    font-size: 1.5rem;
}

.aviso-info h4 {
    color: #fbbf24;
    font-size: 0.95rem;
}

.aviso-info span {
    color: #71717a;
    font-size: 0.8rem;
}

.aviso-badge {
    margin-left: auto;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.aviso-titulo {
    color: #fafafa;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.aviso-conteudo {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
}

.aviso-rodape {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    color: #71717a;
    font-size: 0.8rem;
}

/* SKELETON LOADING */
.aviso-skeleton {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-linha {
    height: 14px;
    background: #27272a;
    border-radius: 6px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-linha.curta { width: 30%; }
.skeleton-linha.media { width: 60%; }
.skeleton-linha.longa { width: 90%; }

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* DIVISOR ENTRE SEÇÕES */
.secao-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #27272a, transparent);
    margin: 24px 0;
}

/* ========================================
   PARTE 2.3: SEÇÃO DE DIÁRIOS
   ======================================== */

.secao-diarios {
    margin-bottom: 24px;
}

.secao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-novo-diario {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-novo-diario:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.filter-btn {
    background: #27272a;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #3f3f46;
    color: #fafafa;
}

.diarios-vazio {
    text-align: center;
    padding: 60px 20px;
    background: #18181b;
    border: 1px dashed #3f3f46;
    border-radius: 16px;
}

.vazio-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.diarios-vazio h3 {
    color: #fafafa;
    margin-bottom: 8px;
}

.diarios-vazio p {
    color: #71717a;
    margin-bottom: 20px;
}

.btn-primeiro-diario {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primeiro-diario:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* ========================================
   PARTE 2.4: SIDEBAR
   ======================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 20px;
}

.sidebar-card h3 {
    color: #fafafa;
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ESTATÍSTICAS DA COMUNIDADE */
.comunidade-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comunidade-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comunidade-stat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comunidade-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.comunidade-stat-label {
    color: #a1a1aa;
    font-size: 0.85rem;
}

.comunidade-stat-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* RANKINGS */
.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ranking-total {
    color: #71717a;
    font-size: 0.8rem;
}

.ranking-total span {
    color: #ec4899;
    font-weight: 700;
}

.ranking-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.ranking-tab {
    background: #27272a;
    border: none;
    color: #a1a1aa;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
}

.ranking-tab.active {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
}

.top-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #0a0a0a;
    border-radius: 10px;
    border: 1px solid #27272a;
    transition: all 0.2s;
}

.top-user.eu {
    border-color: #ec489940;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), #0a0a0a);
}

.top-user-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0a0a0a;
    flex-shrink: 0;
}

.top-user-rank.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.top-user-rank.bronze {
    background: linear-gradient(135deg, #b45309, #92400e);
    color: white;
}

.top-user-rank.normal {
    background: #27272a;
    color: #a1a1aa;
}

.top-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.top-user-info {
    flex: 1;
    min-width: 0;
}

.top-user-name {
    color: #fafafa;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-user-days {
    color: #71717a;
    font-size: 0.75rem;
}

.top-user-estado {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.btn-ver-todos {
    width: 100%;
    background: transparent;
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.btn-ver-todos:hover {
    background: #27272a;
    color: #fafafa;
}

.btn-ver-todos .arrow {
    transition: transform 0.2s;
}

.btn-ver-todos:hover .arrow {
    transform: translateX(3px);
}

/* FERRAMENTAS */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #0a0a0a;
    border: 1px solid #27272a;
    transition: all 0.2s;
    text-decoration: none;
}

.tool-item:hover {
    border-color: #3f3f46;
    background: #18181b;
    text-decoration: none;
}

.tool-item.personalizado {
    border-color: #ec489930;
}

.tool-icon {
    font-size: 1.3rem;
}

.tool-info h4 {
    color: #fafafa;
    font-size: 0.85rem;
}

.tool-info p {
    color: #71717a;
    font-size: 0.75rem;
}

.tool-badges {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.tool-badge {
    font-size: 0.75rem;
}

/* ========================================
   PARTE 3: MODAIS
   ======================================== */

/* OVERLAY GERAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* MODAL BASE */
.modal {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modal-in 0.3s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #27272a;
    border: none;
    color: #a1a1aa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #3f3f46;
    color: #fafafa;
}

.modal-header {
    text-align: center;
    padding: 30px 24px 20px;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.modal-header h2 {
    color: #fafafa;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.modal-header p {
    color: #71717a;
    font-size: 0.9rem;
}

.modal-body {
    padding: 0 24px 24px;
}

/* AUTH TABS */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: #0a0a0a;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #71717a;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: #27272a;
    color: #fafafa;
}

/* FORMULÁRIOS */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #0a0a0a;
    border: 1px solid #3f3f46;
    color: #fafafa;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #52525b;
}

.form-group small {
    color: #52525b;
    font-size: 0.75rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #a1a1aa;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ec4899;
    flex-shrink: 0;
}

.btn-submit {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-submit:disabled,
.btn-submit.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.forgot-link {
    text-align: center;
    margin-top: 8px;
}

.forgot-link a {
    color: #71717a;
    font-size: 0.85rem;
}

.forgot-link a:hover {
    color: #ec4899;
}

/* ✅ NOVO: FORM BUTTONS (dentro do modal avisos) */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-buttons .btn-submit {
    flex: 1;
}

/* ✅ NOVO: Botão cancelar */
.btn-cancelar {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid #3f3f46;
    color: #a1a1aa;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancelar:hover {
    background: #27272a;
    color: #fafafa;
}

/* ========================================
   ✅ NOVO: MODAL DE EDIÇÃO DE AVISOS (ADMIN)
   ======================================== */

.modal-aviso-editor {
    max-width: 640px;
}

.modal-aviso-editor textarea {
    background: #0a0a0a;
    border: 1px solid #3f3f46;
    color: #fafafa;
    font-family: inherit;
}

/* ✅ NOVO: Seção de mídia no modal */
.secao-midia {
    background: #0f0f11;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
}

.secao-midia h4 {
    color: #fafafa;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

/* ✅ NOVO: Preview do aviso */
.preview-container {
    margin-top: 20px;
}

.preview-container h4 {
    color: #fafafa;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.btn-preview {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #e4e4e7;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preview:hover {
    background: #3f3f46;
}

.preview-area {
    margin-top: 14px;
    border: 1px dashed #3f3f46;
    border-radius: 12px;
    padding: 16px;
    background: #0a0a0a;
}

/* ========================================
   PARTE 3.2: MODAL PESSOAL (MEU DIÁRIO)
   ======================================== */

.modal-pessoal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-pessoal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-pessoal {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    animation: modal-in 0.3s ease;
}

.modal-pessoal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #27272a;
}

.modal-pessoal-header h2 {
    color: #fafafa;
    font-size: 1.3rem;
}

.modal-pessoal-close {
    background: #27272a;
    border: none;
    color: #a1a1aa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-pessoal-close:hover {
    background: #3f3f46;
    color: #fafafa;
}

.modal-pessoal-content {
    padding: 24px;
}

.pessoal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pessoal-card {
    background: #0a0a0a;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 20px;
}

.pessoal-card h4 {
    color: #fafafa;
    font-size: 1rem;
    margin-bottom: 14px;
}

/* PERFIL CARD */
.perfil-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.perfil-avatar-wrapper {
    position: relative;
}

.perfil-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.perfil-foto {
    display: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-upload-foto {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #27272a;
    border: 2px solid #18181b;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upload-foto:hover {
    background: #3f3f46;
}

.perfil-dados h3 {
    color: #fafafa;
    font-size: 1.05rem;
}

.perfil-dados p {
    color: #71717a;
    font-size: 0.85rem;
}

.perfil-stats {
    display: flex;
    gap: 12px;
}

.perfil-stat {
    flex: 1;
    text-align: center;
    background: #18181b;
    border-radius: 10px;
    padding: 10px 8px;
}

.perfil-stat-num {
    color: #ec4899;
    font-weight: 700;
    font-size: 1.1rem;
}

.perfil-stat-label {
    color: #71717a;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* CONTADOR CARD */
.contador-card-full .contador-tempo {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.tempo-item {
    text-align: center;
    background: #18181b;
    border-radius: 10px;
    padding: 12px 6px;
}

.tempo-numero {
    display: block;
    color: #ec4899;
    font-size: 1.5rem;
    font-weight: 700;
}

.tempo-label {
    color: #71717a;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.contador-btns {
    display: flex;
    gap: 8px;
}

.contador-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.contador-btn.iniciar {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.contador-btn.iniciar.pausado {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.contador-btn.reiniciar {
    background: #27272a;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
}

.contador-btn.reiniciar:hover {
    background: #3f3f46;
    color: #fafafa;
}

/* GRÁFICOS */
.grafico-full {
    grid-column: span 1;
}

.grafico-container {
    height: 200px;
    position: relative;
}

.grafico-legenda {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #a1a1aa;
}

.legenda-cor {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* CLASSIFICAÇÃO */
.classificacao-pessoal {
    grid-column: span 2;
}

.classificacao-tabs {
    display: flex;
    gap: 4px;
    background: #18181b;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.classificacao-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #71717a;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.classificacao-tab.active {
    background: #27272a;
    color: #fafafa;
}

.classificacao-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.classificacao-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #18181b;
    border-radius: 10px;
    border: 1px solid #27272a;
}

.classificacao-item.atual {
    border-color: #ec489940;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), #18181b);
}

.classificacao-pos {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #27272a;
    color: #a1a1aa;
    flex-shrink: 0;
}

.classificacao-pos.gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0a0a0a;
}

.classificacao-pos.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.classificacao-pos.bronze {
    background: linear-gradient(135deg, #b45309, #92400e);
    color: white;
}

.classificacao-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.classificacao-info {
    flex: 1;
    min-width: 0;
}

.classificacao-nome {
    color: #fafafa;
    font-weight: 600;
    font-size: 0.85rem;
}

.classificacao-dias {
    color: #71717a;
    font-size: 0.75rem;
}

.classificacao-estado {
    color: #71717a;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   ✅ NOVO: MODAL DE RANKING COMPLETO
   ======================================== */

.modal-ranking-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-ranking-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-ranking {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    animation: modal-in 0.3s ease;
}

.modal-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #27272a;
}

.modal-ranking-header h2 {
    color: #fafafa;
    font-size: 1.3rem;
}

.modal-ranking-info {
    padding: 12px 24px;
    color: #71717a;
    font-size: 0.85rem;
    border-bottom: 1px solid #27272a;
}

.modal-ranking-info strong {
    color: #ec4899;
}

.modal-ranking-content {
    padding: 20px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.ranking-lista-completa {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item-completo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #0a0a0a;
    border-radius: 10px;
    border: 1px solid #27272a;
}

.ranking-item-completo.eu {
    border-color: #ec489940;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), #0a0a0a);
}

/* ========================================
   PARTE 3.3: FOOTER
   ======================================== */

footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid #27272a;
    margin-top: 40px;
    color: #52525b;
    font-size: 0.85rem;
}

footer a {
    color: #71717a;
}

/* ========================================
   PARTE 4: RESPONSIVIDADE
   ======================================== */

@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .pessoal-grid {
        grid-template-columns: 1fr;
    }
    
    .classificacao-pessoal {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .btn-login {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .user-name {
        display: none;
    }
    
    .hero {
        padding: 36px 20px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .forum-nav-container {
        padding: 0 12px;
    }
    
    .forum-tab {
        padding: 12px 12px;
        font-size: 0.8rem;
    }
    
    .forum-layout {
        padding: 0 16px;
        margin: 16px auto;
        gap: 16px;
    }
    
    .meu-diario-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meu-diario-contador {
        margin-left: 0;
    }
    
    .meu-diario-actions {
        flex-direction: column;
    }
    
    .modal {
        max-width: 100%;
        border-radius: 16px;
    }
    
    .modal-pessoal {
        max-width: 100%;
    }
    
    .modal-ranking {
        max-width: 100%;
    }
    
    .contador-card-full .contador-tempo {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .secao-titulo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 16px;
    }
    
    .logo span {
        font-size: 0.95rem;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .mini-contador {
        gap: 6px;
    }
    
    .mini-numero {
        font-size: 0.95rem;
    }
    
    .perfil-stats {
        flex-direction: column;
    }
}