/* ==========================================================================
   SISTEMA DE ESTILOS UNIFICADO - ASSOCIAÇÃO DE RADIOAMADORES MARIENSES (ARM)
   Estética: Painel de Rádio Telemetria Premium & Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Variáveis de Cores e Temas */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Tema Escuro (Padrão) */
    --bg-primary: hsl(224, 32%, 8%);
    --bg-secondary: hsl(222, 29%, 13%);
    --bg-glass: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: hsl(210, 38%, 95%);
    --text-secondary: hsl(215, 18%, 68%);
    --text-muted: hsl(215, 15%, 45%);
    
    --accent-primary: hsl(190, 100%, 48%);
    --accent-glow: hsla(190, 100%, 48%, 0.3);
    --accent-secondary: hsl(145, 100%, 45%);
    --accent-secondary-glow: hsla(145, 100%, 45%, 0.25);
    --accent-danger: hsl(352, 90%, 55%);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px var(--accent-glow);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Sobrescrita de Variáveis para Tema Claro */
[data-theme="light"] {
    --bg-primary: hsl(210, 20%, 96%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-primary: hsl(224, 30%, 15%);
    --text-secondary: hsl(220, 15%, 35%);
    --text-muted: hsl(220, 10%, 55%);
    
    --accent-primary: hsl(200, 100%, 40%);
    --accent-glow: hsla(200, 100%, 40%, 0.15);
    --accent-secondary: hsl(142, 76%, 36%);
    --accent-secondary-glow: hsla(142, 76%, 36%, 0.15);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 10px rgba(200, 100, 40, 0.1);
}

/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--accent-glow);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   NAVBAR (Glassmorphic)
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.navbar-caption {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-link:hover, 
.navbar-item.active .navbar-link {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.03);
}

/* Dropdown */
.navbar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1010;
    animation: fadeIn 0.2s ease-out forwards;
}

.navbar-item:hover .navbar-dropdown {
    display: flex;
}

.navbar-dropdown-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-dropdown-link:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

/* Controlos Úteis (Tema & Mail) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 255, 255, 0.03);
}

/* Hamburger Móvel */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.navbar-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   HERO / HEADER (Topo das páginas)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.08), transparent 45%),
                radial-gradient(circle at bottom left, rgba(0, 230, 118, 0.03), transparent 35%);
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* --------------------------------------------------------------------------
   SECÇÕES E CARTOES (Glassmorphism)
   -------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-title-wrap {
    margin-bottom: 48px;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Grelhas */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

@media (max-width: 500px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Cartões Globais */
.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 210, 255, 0.2);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 210, 255, 0.05);
}

.card:hover::before {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #00a8ff);
    color: #0b0f19;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    color: #0b0f19;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   PAINEL INTERATIVO DE TELEMETRIA DE REPETIDORES (Página Inicial)
   -------------------------------------------------------------------------- */
.repeater-dashboard {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .repeater-dashboard {
        grid-template-columns: 1fr;
    }
}

.repeater-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.repeater-btn-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.repeater-btn-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.02);
}

.repeater-btn-card.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    box-shadow: var(--shadow-glow);
}

.repeater-btn-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.repeater-btn-card.active::after {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.repeater-badge-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.repeater-btn-card.active .repeater-badge-avatar {
    background: var(--accent-primary);
    color: #0b0f19;
    border-color: var(--accent-primary);
}

.repeater-btn-meta {
    flex: 1;
}

.repeater-btn-call {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.repeater-btn-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Painel de Exibição Detalhada */
.repeater-display {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.repeater-display-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.repeater-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-secondary);
    background: var(--accent-secondary-glow);
    padding: 4px 10px;
    border-radius: 100px;
}

.repeater-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
    animation: pulse 1.5s infinite alternate;
}

.repeater-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 500px) {
    .repeater-specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-item-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 16px;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.repeater-display-actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

/* --------------------------------------------------------------------------
   ORGANOGRAMA DE DIRIGENTES (Corpos Sociais)
   -------------------------------------------------------------------------- */
.board-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.board-group-title {
    font-size: 1.65rem;
    margin-bottom: 30px;
    text-align: left;
    color: var(--accent-primary);
    border-left: 4px solid var(--accent-primary);
    padding-left: 16px;
}

.board-grid-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.member-profile-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
}

.member-profile-card:hover {
    border-color: rgba(0, 210, 255, 0.2);
    transform: translateY(-4px);
    background: rgba(0, 0, 0, 0.25);
}

.member-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.member-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.member-callsign {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   ACORDEÃO ESTATUTOS
   -------------------------------------------------------------------------- */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid transparent;
}

.accordion-body {
    padding: 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.accordion-body strong {
    color: var(--text-primary);
}

.accordion-item.active {
    border-color: var(--accent-primary);
}

.accordion-item.active .accordion-content {
    border-top: 1px solid var(--border-glass);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   WIDGETS ADICIONAIS (Tempo, Propagação & Zoho Form)
   -------------------------------------------------------------------------- */
.widget-glow-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: center;
    position: relative;
}

.widget-glow-card iframe {
    background-color: transparent !important;
}

.zoho-form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.zoho-form-container iframe {
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   PÁGINA CONTACTOS
   -------------------------------------------------------------------------- */
.contacts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.contacts-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.contact-detail-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.01);
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text-meta h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-text-meta p,
.contact-text-meta a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-text-meta img {
    margin-top: 8px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
}

.board-contacts-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.board-contacts-title {
    font-size: 1.35rem;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.board-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.board-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: var(--transition);
}

.board-contact-item:hover {
    background: rgba(0, 210, 255, 0.02);
    border-color: var(--accent-primary);
}

.board-contact-role {
    font-size: 0.85rem;
}

.board-contact-role strong {
    color: var(--text-primary);
}

.board-contact-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   RODAPÉ (Footer)
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-title {
    font-size: 1.35rem;
    font-family: var(--font-heading);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-nav-link:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 500px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.social-icons-wrap {
    display: flex;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   ANIMAÇÕES E KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 4px var(--accent-glow);
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 12px var(--accent-primary);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   WAVE ANIMATION SYSTEM (Retro Radio Vibe)
   -------------------------------------------------------------------------- */
.radio-wave-animator {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.radio-wave-bar {
    width: 3px;
    background-color: var(--accent-primary);
    height: 4px;
    border-radius: 10px;
    animation: bounceBar 0.8s ease-in-out infinite alternate;
}

.radio-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.radio-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.radio-wave-bar:nth-child(4) { animation-delay: 0.05s; }
.radio-wave-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes bounceBar {
    0% { height: 4px; }
    100% { height: 20px; }
}

/* --------------------------------------------------------------------------
   WEATHER DYNAMIC STATION WIDGET (Open-Meteo Integration)
   -------------------------------------------------------------------------- */
.weather-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.weather-current-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.weather-current-panel:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 210, 255, 0.15);
}

.weather-main-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.weather-icon-large {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 12px var(--accent-glow));
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

.weather-temp-wrap {
    display: flex;
    align-items: flex-start;
}

.weather-temp-value {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.weather-temp-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-top: 4px;
    margin-left: 2px;
}

.weather-status-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 14px;
    transition: var(--transition);
}

.weather-detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.1);
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-meta {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.weather-forecast-divider {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
    margin-bottom: 16px;
    margin-top: 28px;
    text-align: center;
}

.weather-forecast-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.weather-forecast-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
    transition: var(--transition);
}

.weather-forecast-day:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 210, 255, 0.1);
    transform: translateY(-2px);
}

.forecast-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.forecast-icon {
    font-size: 1.75rem;
    margin: 6px 0;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.forecast-temps {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    display: flex;
    gap: 6px;
}

.forecast-temp-max {
    color: var(--text-primary);
    font-weight: 700;
}

.forecast-temp-min {
    color: var(--text-muted);
}

/* Light mode adjustments for weather station */
[data-theme="light"] .weather-current-panel {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .weather-current-panel:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .weather-detail-item {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .weather-detail-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .weather-forecast-day {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .weather-forecast-day:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   SISTEMA DE REVELAÇÃO SUAVE (Scroll Reveal)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Desativar animações se o utilizador preferir menos movimento */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   BOTÃO VOLTAR AO TOPO (Scroll to Top)
   -------------------------------------------------------------------------- */
#scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--accent-primary);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    background: var(--accent-glow);
}

/* --------------------------------------------------------------------------
   INTEGRAÇÃO VISUAL DO LEAFLET (Mapas Dark/Glassmorphic)
   -------------------------------------------------------------------------- */
.leaflet-container {
    background: var(--bg-primary) !important;
    font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-glass) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-lg) !important;
    font-size: 0.9rem !important;
    padding: 4px !important;
}

.leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.5 !important;
}

.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-glass) !important;
}

.leaflet-bar {
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.leaflet-bar a {
    background: var(--bg-glass) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    transition: var(--transition) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.leaflet-bar a:hover {
    background: var(--accent-glow) !important;
    color: var(--accent-primary) !important;
}

.leaflet-bar a.leaflet-disabled {
    background: var(--bg-primary) !important;
    color: var(--text-muted) !important;
}

.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
    top: 6px !important;
    right: 6px !important;
}

.leaflet-popup-close-button:hover {
    color: var(--accent-primary) !important;
}

/* --------------------------------------------------------------------------
   ROUTER FADE TRANSITION
   -------------------------------------------------------------------------- */
.fade-transition {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

.fade-transition.fade-out {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   PAINEL ADMIN TABS
   -------------------------------------------------------------------------- */
.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active-pane {
    display: block;
}

.admin-tab-btn {
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s ease;
}

.admin-tab-btn.active {
    color: var(--accent-primary) !important;
    border-bottom-color: var(--accent-primary) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ==========================================================================
   MELHORIAS RESPONSIVAS E ALINHAMENTO DE CAIXAS (RGPD & MOBILE)
   ========================================================================== */

/* Alinhamento uniforme das caixas/cartões nas grelhas */
.grid-3 > .card, 
.grid-2 > .card,
.grid-2 > .widget-glow-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Forçar primeiro filho (conteúdo) a esticar, empurrando o rodapé do cartão para a base */
.grid-3 > .card > div:first-child, 
.grid-2 > .card > div:first-child {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.board-grid-members > .member-profile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Barra de Navegação Responsiva no Telemóvel */
@media (max-width: 850px) {
    .navbar-toggle {
        display: flex !important;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glass);
        padding: 20px;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.open {
        display: flex !important;
    }
    
    .navbar-item {
        width: 100%;
    }
    
    .navbar-link {
        width: 100%;
        padding: 10px 14px !important;
        font-size: 1rem !important;
        box-sizing: border-box;
        margin-left: 0 !important; /* remover margens laterais no mobile */
        margin-top: 4px;
        text-align: left;
    }
    
    /* Dropdowns embutidos (static) em mobile */
    .navbar-dropdown {
        position: static !important;
        display: none !important;
        min-width: 100% !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: none !important;
        border-left: 2px solid var(--accent-primary) !important;
        border-radius: 0 !important;
        padding: 6px 0 6px 14px !important;
        box-shadow: none !important;
        margin-top: 4px;
        flex-direction: column !important;
        gap: 4px !important;
        box-sizing: border-box;
    }
    
    /* Mostrar dropdowns no clique/foco e hover no mobile */
    .navbar-item:hover .navbar-dropdown,
    .navbar-item:focus-within .navbar-dropdown {
        display: flex !important;
    }
    
    .navbar-dropdown-link {
        padding: 6px 10px !important;
        font-size: 0.92rem !important;
    }
    
    .navbar-actions {
        padding: 6px 14px;
        justify-content: flex-start;
    }
    
    /* Botões do Hero empilhados verticalmente no mobile */
    .hero div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 290px !important;
        margin: 0 auto !important;
        gap: 12px !important;
    }
    
    .hero .btn {
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
        padding: 12px 24px !important;
    }
}

/* Estados Animados do Botão Hamburger (Toggle) */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Grelha de Dashboard de Sócio (Fully aligned stacked layout) */
.socio-dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.socio-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.socio-dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Estilos das Abas e Painéis da Área de Sócio */
.socio-tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    outline: none;
    white-space: nowrap;
}

.socio-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.socio-tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
}

.socio-tab-content {
    display: none;
    animation: fadeInTab 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.socio-tab-content.active-content {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
