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

:root {
    --black:       #030303;
    --black-2:     #0f0f0f;
    --black-3:     #1a1a1a;
    --black-4:     #252525;
    --black-5:     #111111;
    --gold:        #d2ad62;
    --gold-dark:   #a47b34;
    --text-strong: #f0f0f0;
    --text-muted:  rgba(255, 255, 255, 0.4);
    --line:        rgba(255, 255, 255, 0.07);
    --green:       #4ade80;
    --yellow:      #fbbf24;
    --red:         #f87171;
    --paper:       #f8f6f0;
    --radius-sm:   8px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--black-2);
    color: var(--text-strong);
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, .hero-title {
    font-family: "Outfit", sans-serif;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text-strong);
}

h3, h4, h5, h6 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    color: var(--text-strong);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; }

/* ── Eyebrow Pill ─────────────────────────────── */
.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(210, 173, 98, 0.12);
    border: 1px solid rgba(210, 173, 98, 0.3);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 10px;
}
.eyebrow-pill span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 600;
    font-family: "Inter", sans-serif;
}

/* ── Título com linha italic complementar ─────── */
.title-mix em {
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88em;
}

/* ── Label de seção ───────────────────────────── */
.label-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Botões ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: #fff;
    color: var(--black-2);
}
.btn-primary:hover { background: #f0f0f0; color: var(--black-2); }

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid rgba(210, 173, 98, 0.4);
}
.btn-outline-gold:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}
.btn-gold:hover { background: var(--gold-dark); color: var(--black); }

.btn-danger-outline {
    background: transparent;
    color: var(--red);
    border: 1.5px solid rgba(248, 113, 113, 0.4);
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}
.btn-block { width: 100%; }

/* ── Badges de status ─────────────────────────── */
.badge-status {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
}
.badge-aprovado {
    background: rgba(74, 222, 128, 0.12);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.25);
}
.badge-pendente {
    background: rgba(251, 191, 36, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.badge-expirado, .badge-reprovado {
    background: rgba(248, 113, 113, 0.12);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.25);
}
.badge-gold {
    background: rgba(210, 173, 98, 0.15);
    color: var(--gold);
    border: 1px solid rgba(210, 173, 98, 0.3);
}

/* ── Cards dark ───────────────────────────────── */
.card-dark {
    background: var(--black-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.card-dark-inner {
    background: var(--black-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

/* ── Inputs dark ──────────────────────────────── */
.input-dark {
    display: block;
    width: 100%;
    background: var(--black-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--text-strong);
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
.input-dark::placeholder { color: rgba(255, 255, 255, 0.25); }
.input-dark:focus {
    outline: none;
    border-color: rgba(210, 173, 98, 0.5);
}
select.input-dark { cursor: pointer; }

/* Wrapper de campo com label */
.field-group { display: flex; flex-direction: column; gap: 5px; }

/* ── Toggle entrada/saída ─────────────────────── */
.toggle-group {
    display: flex;
    background: var(--black-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 3px;
}
.toggle-option {
    flex: 1;
    padding: 9px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
    border: none;
    background: transparent;
    font-family: "Inter", sans-serif;
}
.toggle-option.active {
    background: var(--black-4);
    color: var(--text-strong);
}

/* ── Pills de aba ─────────────────────────────── */
.tab-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tab-pills::-webkit-scrollbar { display: none; }
.tab-pill {
    background: var(--black-3);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--line);
    font-family: "Inter", sans-serif;
    transition: all 0.15s;
}
.tab-pill.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    font-weight: 700;
}

/* ── Navbar ───────────────────────────────────── */
.site-navbar {
    background: rgba(3, 3, 3, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.brand-name {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-strong);
}
.nav-pill-btn {
    background: #fff;
    color: var(--black-2);
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* ── Topbar interna (admin/membro) ────────────── */
.inner-topbar {
    background: var(--black-5);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-logo {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.topbar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.topbar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-strong);
    font-family: "Inter", sans-serif;
}

/* ── Switcher de contexto ─────────────────────── */
.context-switcher {
    margin-left: auto;
    background: rgba(210, 173, 98, 0.1);
    border: 1px solid rgba(210, 173, 98, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
    font-family: "Inter", sans-serif;
    position: relative;
    text-decoration: none;
}
.switcher-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #1e2d3d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
    min-width: 160px;
    z-index: 200;
    display: none;
}
.switcher-dropdown.open { display: block; }
.switcher-dropdown .sd-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.switcher-option {
    display: block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 4px;
    transition: background 0.15s;
}
.switcher-option:hover { background: rgba(255,255,255,0.07); color: #fff; }
.switcher-option.current {
    background: var(--gold);
    color: var(--black);
}

/* ── Bottom Nav ───────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 max(14px, env(safe-area-inset-bottom));
    z-index: 1000;
    border-top: 1px solid var(--line);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}
.bottom-nav-dark { background: var(--black-5); }
.bottom-nav-admin { background: var(--black-5); }

.admin-desktop-nav {
    display: none;
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px;
    flex: 1 1 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.bnav-item span {
    font-size: 0.62rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.2px;
}
.bnav-item.active { color: var(--gold); }
.bnav-item:hover { color: rgba(255, 255, 255, 0.7); }
.bnav-item.active:hover { color: var(--gold); }

/* Espaço para o bottom nav não cobrir conteúdo */
.has-bottom-nav { padding-bottom: 80px; }

@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .has-bottom-nav { padding-bottom: 0; }
    body.has-bottom-nav {
        min-height: 100vh;
        padding-left: 248px;
    }
    body.has-bottom-nav .inner-topbar {
        position: sticky;
        top: 0;
        z-index: 90;
    }
    body.has-bottom-nav > main {
        width: min(100%, 1120px);
        margin: 0 auto;
        padding: 32px 32px 48px !important;
    }
    body.has-bottom-nav > main > .title-mix {
        font-size: 2.25rem !important;
        line-height: 1;
    }
    body.has-bottom-nav .admin-desktop-nav {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1100;
        width: 248px;
        padding: 22px 16px;
        background: var(--black-5);
        border-right: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .admin-nav-header {
        padding: 4px 8px 18px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--line);
        color: var(--text-strong);
        font-family: "Inter", sans-serif;
    }
    .admin-nav-header strong {
        display: block;
        font-size: 1.05rem;
        line-height: 1.1;
    }
    .admin-nav-kicker {
        display: block;
        margin-bottom: 4px;
        color: var(--gold);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
    .admin-nav-item {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 42px;
        padding: 10px 12px;
        border: 1px solid transparent;
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.62);
        font-family: "Inter", sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
        transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    .admin-nav-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-strong);
    }
    .admin-nav-item.active {
        background: rgba(210, 173, 98, 0.12);
        border-color: rgba(210, 173, 98, 0.3);
        color: var(--gold);
    }
    .admin-nav-logout {
        margin-top: auto;
        color: rgba(255, 255, 255, 0.5);
    }
}

/* ── Site Público ─────────────────────────────── */
body.site-page { background: var(--black); color: var(--text-body); }

.hero-section {
    background: var(--black) url('../img/igreja/galeria-pregacao.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,16,8,.88) 0%, rgba(3,3,3,.80) 60%, rgba(3,3,3,.92) 100%);
    opacity: 1;
}
.hero-section .container { position: relative; z-index: 2; }

.hero-subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.6;
}

/* Eyebrow sem pill (home pública) */
.eyebrow {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--gold);
}
.eyebrow.dark { color: var(--gold); }

/* Seções genéricas */
.section-pad { padding: 72px 0; }
.bg-warm { background: var(--black-2); }
.reveal-section {}

/* Imagem da seção sobre */
.story-image {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    max-height: 420px;
}

/* Seção de eventos */
.eventos-section {
    background: #0d0d0d;
    padding: 60px 0;
}

.ev-cards-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.ev-cards-row::-webkit-scrollbar { height: 6px; }
.ev-cards-row::-webkit-scrollbar-track { background: transparent; }
.ev-cards-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 6px; }
.ev-cards-row > .ev-card {
    flex: 0 0 calc((100% - (5 * 14px)) / 6);
    min-width: 180px;
    scroll-snap-align: start;
}
@media (max-width: 1199px) {
    .ev-cards-row > .ev-card { flex: 0 0 calc((100% - (3 * 14px)) / 4); }
}
@media (max-width: 767px) {
    .ev-cards-row > .ev-card { flex: 0 0 calc((100% - 14px) / 2); }
}
@media (max-width: 479px) {
    .ev-cards-row > .ev-card { flex: 0 0 78%; }
}

.ev-card {
    background: var(--black-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ev-card-img { position: relative; height: 120px; overflow: hidden; }
.ev-card-img img { width: 100%; height: 100%; object-fit: cover; }

.ev-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}
.ev-badge-today   { background: var(--gold); color: #000; }
.ev-badge-tomorrow { background: rgba(210,173,98,.2); color: var(--gold); border: 1px solid var(--gold); }

.ev-date-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 10px 12px 0;
}
.ev-day   { font-size: 1.4rem; font-weight: 800; color: var(--gold); font-family: 'Outfit', sans-serif; line-height: 1; }
.ev-month { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.ev-weekday { font-size: .72rem; color: var(--text-muted); padding: 2px 12px; text-transform: capitalize; }
.ev-title   { font-size: .88rem; font-weight: 600; color: var(--text-strong); padding: 6px 12px 0; }
.ev-desc    { font-size: .78rem; color: var(--text-muted); padding: 4px 12px 0; }
.ev-time    {
    display: flex; align-items: center; gap: 5px;
    font-size: .78rem; color: var(--text-muted);
    padding: 8px 12px 12px; margin-top: auto;
}
.ev-time svg { width: 13px; height: 13px; }

/* Galeria de momentos */
.moments-section { background: var(--black); padding: 60px 0; }
.moments-copy { color: rgba(255,255,255,0.45); font-size: .9rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 160px);
    gap: 8px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    margin: 0;
    position: relative;
    background: var(--black-3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-wide { grid-column: span 2; }
.gallery-item figcaption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: rgba(255,255,255,.7);
    font-size: .72rem; padding: 16px 10px 8px;
    opacity: 0; transition: opacity .3s;
}
.gallery-item:hover figcaption { opacity: 1; }

@media (max-width: 767px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-wide { grid-column: span 2; }
    .gallery-item { height: 130px; }
}

/* Seção de contato */
.contact-section { background: var(--black-2); padding: 60px 0; }
.info-card {
    background: var(--black-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    height: 100%;
}
.info-card strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 6px; }
.info-card p { font-size: .88rem; color: rgba(255,255,255,.6); margin: 0 0 10px; line-height: 1.6; }
.info-card p:last-child { margin-bottom: 0; }
.info-card a { color: var(--gold); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* Animações de reveal */
.anim-reveal, .anim-reveal-left, .anim-reveal-right {
    opacity: 0;
    transition: opacity .55s ease, transform .55s ease;
}
.anim-reveal       { transform: translateY(18px); }
.anim-reveal-left  { transform: translateX(-20px); }
.anim-reveal-right { transform: translateX(20px); }
.anim-reveal.is-visible, .anim-reveal-left.is-visible, .anim-reveal-right.is-visible {
    opacity: 1; transform: none;
}
.anim-delay-1 { transition-delay: .12s; }
.anim-delay-2 { transition-delay: .22s; }
.anim-delay-3 { transition-delay: .32s; }
.anim-delay-4 { transition-delay: .42s; }

.site-footer {
    background: var(--black);
    border-top: 1px solid var(--line);
    color: rgba(255,255,255,0.5);
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* -- Login / Auth -------------------------------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-2);
    padding: 20px;
}
.login-container { width: 100%; max-width: 380px; }
.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.15s;
}
.login-back:hover { color: rgba(255,255,255,0.6); }
.login-card {
    background: var(--black-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
}
.login-logo {
    width: 56px;
    height: 56px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-logo img { width: 100%; height: 100%; object-fit: cover; }

.input-password-wrap { position: relative; }
.input-password-wrap .input-dark { padding-right: 40px; }
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.alert-dark {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--red);
    font-size: 0.85rem;
}
/* ── Cadastro ─────────────────────────────────── */
.progress-bar-wrap { display: flex; gap: 6px; }
.progress-step {
    flex: 1;
    height: 3px;
    background: var(--black-4);
    border-radius: 2px;
    transition: background 0.3s;
}
.progress-step.done { background: var(--gold); }

.photo-upload-wrap { display: flex; justify-content: center; }
.photo-upload-circle {
    width: 72px;
    height: 72px;
    background: var(--black-3);
    border: 2px dashed rgba(210,173,98,0.35);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: rgba(210,173,98,0.5);
    font-size: 0.65rem;
    font-family: "Inter", sans-serif;
    transition: border-color 0.15s;
}
.photo-upload-circle:hover { border-color: var(--gold); color: var(--gold); }

/* ── Carteirinha ──────────────────────────────── */
.member-card-visual {
    background: linear-gradient(135deg, var(--black-3), var(--black-5));
    border: 1px solid rgba(210,173,98,0.2);
    border-radius: var(--radius-xl);
    padding: 20px;
}
.member-card-photo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(210,173,98,0.3);
    object-fit: cover;
    flex-shrink: 0;
}
.min-w-0 { min-width: 0; }

/* ── Escalas ──────────────────────────────────── */
.scale-tab-content { display: block; }
.scale-tab-content.d-none { display: none; }

.scale-date-card {
    background: var(--black-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.scale-date-card.today {
    border-color: rgba(210,173,98,0.4);
    background: rgba(210,173,98,0.05);
}
.scale-date-card.past { opacity: 0.45; }
.scale-date-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 8px;
}
.scale-date-label.past { color: var(--text-muted); }
.scale-item-text { font-size: 0.875rem; color: var(--text-strong); line-height: 1.6; margin: 0; }

/* ── Admin geral ──────────────────────────────── */
.stat-number {
    font-family: "Outfit", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.1;
    margin: 4px 0 0;
}
.member-list-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--black-4);
}
.member-list-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--black-4);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── Agenda admin ─────────────────────────────── */
.agenda-editor {
    overflow: hidden;
}
.agenda-panel-heading,
.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.agenda-toolbar {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(110px, 140px) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
}
.agenda-toolbar label,
.agenda-paste-box label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}
.agenda-paste-box {
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--black-4);
}
.agenda-edit-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.agenda-weekday {
    min-width: 130px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(210, 173, 98, 0.12);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.agenda-edit-day {
    min-width: 130px;
    min-height: 116px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--black-4);
}
.agenda-edit-day.is-empty {
    opacity: 0.35;
}
.agenda-edit-day span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--black-3);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 800;
}
.agenda-edit-day textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: var(--black-3);
    color: var(--text-strong);
    padding: 8px;
    font: inherit;
    font-size: 0.82rem;
}
.agenda-edit-day textarea:focus {
    outline: none;
    border-color: rgba(210, 173, 98, 0.55);
}

@media (max-width: 767px) {
    .agenda-panel-heading,
    .panel-heading {
        display: block;
    }
    .agenda-toolbar {
        grid-template-columns: 1fr 1fr;
    }
    .agenda-toolbar .btn {
        grid-column: 1 / -1;
    }
    .agenda-edit-grid {
        grid-template-columns: repeat(7, minmax(112px, 1fr));
    }
    .agenda-weekday,
    .agenda-edit-day {
        min-width: 112px;
    }
}
