/*
 * SOPIO — Área de Sócios
 * Layout: página de login / registo / conta
 * Fontes: Poppins (títulos) · Montserrat (corpo)
 */

/* ══════════════════════════════════════
   VARIÁVEIS GLOBAIS
══════════════════════════════════════ */
:root {
    --navy:         #1a3a5c;
    --navy-dark:    #102840;
    --accent:       #2a78c5;
    --accent-hover: #1d68b0;
    --bg-right:     #f4f7fb;
    --font-title:   'Poppins', sans-serif;
    --font-body:    'Inter', sans-serif;
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    display: flex;
    min-height: 100vh;
    background: var(--bg-right);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
}

/* helpers preservados para loginsocio.js */
.hidden { display: none !important; }
.d-none { display: none !important; }
.mt-1   { margin-top: 0.25rem; }
.p-1    { padding: 0.25rem; }

/* ══════════════════════════════════════
   PAINEL ESQUERDO  (branding / imagem)
══════════════════════════════════════ */
.panel-brand {
    width: 42%;
    min-height: 100vh;
    background:
        linear-gradient(to bottom, rgba(10,28,48,0.85) 0%, rgba(10,25,44,0.50) 100%),
        /* caminho relativo a assets/css/ */
        url('../../app-assets/images/sopio-congresso-become-socio.png') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.75rem;
    position: relative;
    overflow: hidden;
}

.brand-top { position: relative; z-index: 1; }

.brand-logo {
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.brand-back {
    position: relative; z-index: 1;
    color: rgba(255,255,255,0.55);
    font-size: 0.8rem;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}
.brand-back:hover { color: rgba(255,255,255,0.95); }

.brand-mobile-bar { display: none; }

/* ══════════════════════════════════════
   PAINEL DIREITO  (formulário)
══════════════════════════════════════ */
.panel-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

/* ── card login ── */
.login-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(26,58,92,0.09);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 400px;
}

.card-lock-icon {
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.3rem;
}

.txttitulo {
    display: block;
    font-size: 0.8rem;
    color: #8a94a6;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* ── alertas (geridos pelo loginsocio.js) ── */
.alert {
    border-radius: 8px;
    font-size: 0.84rem;
    margin-bottom: 1rem;
}

.bs-callout-danger  { color: #b9092b; }
.bs-callout-success { color: #1a5c35; }
.callout-border-left {
    border-left: 3px solid currentColor;
    background: rgba(0,0,0,0.03);
    padding: 0.55rem 0.8rem;
    border-radius: 4px;
}
.callout-border-left p { margin: 0; }

/* ── formulário ── */
.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.72rem 1rem;
    border: 1.5px solid #dde3ea;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    background: #fafbfc;
    color: #1a202c;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42,120,197,0.12);
    background: #fff;
}

.btn-main {
    display: block;
    width: 100%;
    padding: 0.78rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.4rem;
    letter-spacing: 0.01em;
}
.btn-main:hover  { background: var(--accent-hover); transform: translateY(-1px); }
.btn-main:active { transform: translateY(0); }

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.1rem;
}

.form-links a {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
}
.form-links a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   BANNER — convite a tornar-se sócio
══════════════════════════════════════ */
.join-banner {
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
    border-radius: 14px;
    border: 1.5px solid rgba(42,120,197,0.18);
    background: linear-gradient(135deg, rgba(26,58,92,0.04) 0%, rgba(42,120,197,0.06) 100%);
    padding: 1.5rem 1.75rem;
    text-align: center;
}

.join-banner-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.join-banner h3 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.join-banner-desc {
    font-size: 0.78rem;
    color: #6c7a8d;
    margin-bottom: 1.1rem;
    line-height: 1.55;
}

.join-perks {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.join-perk {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 80px;
}

.join-perk-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: rgba(42,120,197,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-perk-icon svg { stroke: var(--accent); }

.join-perk span {
    font-size: 0.7rem;
    color: #5a6578;
    line-height: 1.35;
    text-align: center;
}

.btn-join {
    display: inline-block;
    padding: 0.62rem 1.5rem;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.01em;
}
.btn-join:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ══════════════════════════════════════
   RODAPÉ DO PAINEL
══════════════════════════════════════ */
.panel-form-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: #b0bac8;
    line-height: 1.7;
}

.panel-form-footer .secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

/* ══════════════════════════════════════
   MOBILE  (≤ 768 px)
══════════════════════════════════════ */
@media (max-width: 768px) {
    body { flex-direction: column; }

    .panel-brand {
        width: 100%;
        min-height: 0;
        padding: 1.1rem 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .brand-top { display: flex; align-items: center; margin: 0; }
    .brand-logo { max-width: 130px; margin: 0; }
    .brand-back { display: none; }

    .brand-mobile-bar {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        color: rgba(255,255,255,0.55);
        font-size: 0.8rem;
        text-decoration: none;
        transition: color 0.2s;
    }
    .brand-mobile-bar:hover { color: #fff; }

    .panel-form { padding: 2rem 1.25rem; }

    .steps-bar { gap: 0; }
    .step-label { display: none; }
    .reg-card { padding: 1.75rem 1.25rem; }
    .form-row, .form-row.three { grid-template-columns: 1fr; gap: 0; }
}

/* ══════════════════════════════════════
   REGISTO MULTI-STEP
══════════════════════════════════════ */

/* Painel esquerdo: fica fixo enquanto o direito faz scroll */
body.page-reg .panel-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
}

body.page-reg .panel-form {
    justify-content: flex-start;
    padding: 3rem 2rem;
    min-height: 100vh;
}

/* ── barra de progresso ── */
.steps-bar {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 540px;
    margin-bottom: 1.75rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #e8edf5;
    color: #9aa3b0;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-title);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.step-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: #9aa3b0;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s;
    letter-spacing: 0.01em;
}

.step-item.active .step-dot {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(42,120,197,0.18);
}
.step-item.active .step-label { color: var(--accent); font-weight: 600; }

.step-item.done .step-dot { background: #22c55e; color: #fff; }
.step-item.done .step-label { color: #22c55e; }

.step-connector {
    flex: 1;
    height: 2px;
    background: #e8edf5;
    margin: 0 0.2rem;
    margin-top: 15px; /* alinha com o centro dos dots */
    transition: background 0.4s;
}
.step-connector.done { background: #22c55e; }

/* ── card de registo (mais largo) ── */
.reg-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 32px rgba(26,58,92,0.09);
    padding: 2.25rem 2.25rem 1.75rem;
    width: 100%;
    max-width: 540px;
}

.reg-card-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.reg-card-subtitle {
    font-size: 0.78rem;
    color: #8a94a6;
    margin-bottom: 1.5rem;
    display: block;
}

/* ── paineis de passo ── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ── grid de campos ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.full  { grid-template-columns: 1fr; }

/* ── navegação entre passos ── */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f3f8;
}

.step-counter {
    font-size: 0.72rem;
    color: #b0bac8;
}

.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1.5px solid #dde3ea;
    color: #6c7a8d;
    border-radius: 8px;
    padding: 0.62rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-prev:hover { border-color: var(--navy); color: var(--navy); }
.btn-prev[hidden] { visibility: hidden; pointer-events: none; }

/* ── cards de assinatura ── */
.plan-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.plan-card {
    border: 2px solid #e8edf5;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.plan-card:hover { border-color: var(--accent); }
.plan-card.selected {
    border-color: var(--accent);
    background: rgba(42,120,197,0.04);
}

.plan-card input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-radio {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #dde3ea;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}
.plan-card.selected .plan-radio { border-color: var(--accent); background: var(--accent); }
.plan-card.selected .plan-radio::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}

.plan-body { flex: 1; }
.plan-name {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.plan-desc { font-size: 0.76rem; color: #6c7a8d; line-height: 1.4; }

.plan-price {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    text-align: right;
}
.plan-price small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    color: #8a94a6;
}
.plan-price .taxa {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #f59e0b;
    font-family: var(--font-body);
}

.plan-error {
    font-size: 0.78rem;
    color: #c53030;
    margin-bottom: 0.75rem;
    display: none;
}

/* ── upload de fotografia ── */
.foto-upload-area {
    border: 1.5px dashed #c8d3e0;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.foto-upload-area:hover { border-color: var(--accent); background: rgba(42,120,197,0.02); }
.foto-upload-area input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.foto-upload-area .foto-label {
    font-size: 0.82rem;
    color: #6c7a8d;
    pointer-events: none;
}
.foto-upload-area .foto-label strong { display: block; color: var(--accent); margin-bottom: 0.2rem; }
.foto-filename {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.4rem;
    display: none;
}

/* ── password input ── */
.pass-wrap { position: relative; }
.pass-wrap .form-control { padding-right: 2.75rem; }
.btn-eye {
    position: absolute;
    right: 0.75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: #9aa3b0;
    padding: 0; display: flex;
    transition: color 0.2s;
}
.btn-eye:hover { color: var(--navy); }

/* ── validação inline ── */
.form-group.has-error .form-control,
.form-group.has-error select.form-control { border-color: #e53e3e; }
.form-group.has-error .foto-upload-area { border-color: #e53e3e; background: rgba(229,62,62,0.03); }
.form-group .err-msg {
    font-size: 0.72rem;
    color: #e53e3e;
    margin-top: 0.25rem;
    display: none;
}
.form-group.has-error .err-msg { display: block; }

/* ── select nativo (país) ── */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa3b0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 10px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ── alerta de registo ── */
.reg-alert {
    border-radius: 8px;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: none;
}
.reg-alert.error { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; }
.reg-alert.success { background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; }

/* ── toggle dados de faturação ── */
.billing-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e0e8f0;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 1.25rem;
    transition: border-color 0.18s, background 0.18s;
}
.billing-toggle-label:hover { border-color: var(--accent); background: rgba(42,120,197,0.03); }
.billing-toggle-label input[type=checkbox] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}
.billing-fields { animation: fadeIn 0.18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ══════════════════════════════════════
   PÁGINA DE CONFIRMAÇÃO DE REGISTO
══════════════════════════════════════ */
body.page-conf .panel-brand {
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
}
body.page-conf .panel-form {
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    min-height: 100vh;
}

.conf-card {
    max-width: 640px;
    width: 100%;
}

/* ── hero ── */
.conf-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.hero-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.hero-icon.success { background: #f0fff4; border: 2px solid #9ae6b4; }
.hero-icon.error   { background: #fff5f5; border: 2px solid #feb2b2; }
.conf-hero h1 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
}
.conf-hero-meta {
    font-size: .82rem;
    color: #9aa3b0;
    margin-bottom: .85rem;
}
.conf-hero-note {
    display: inline-block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .78rem;
    padding: .45rem 1rem;
    border-radius: 6px;
    line-height: 1.5;
}

/* ── grelha (pagamento + dados) ── */
.conf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ── card interno ── */
.conf-inner-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.conf-inner-card-header {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.conf-inner-card-header h2 {
    font-family: var(--font-title);
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
}
.conf-inner-card-header svg { color: var(--accent); flex-shrink: 0; }
.conf-inner-card-body { padding: 1.25rem; }

/* ── caixa MB ── */
.mb-box {
    border: 1.5px solid #dde6f0;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: .85rem;
}
.mb-head {
    background: var(--navy);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-align: center;
    padding: .6rem 1rem;
}
.mb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1rem;
    border-bottom: 1px solid #f0f4f8;
}
.mb-row:last-child { border-bottom: none; }
.mb-label {
    font-size: .7rem;
    color: #9aa3b0;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
}
.mb-value {
    font-size: .92rem;
    font-weight: 700;
    color: var(--navy);
}
.mb-note {
    font-size: .76rem;
    color: #718096;
    font-style: italic;
    line-height: 1.5;
}
.pay-paid-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #38a169;
    font-size: .76rem;
    font-weight: 500;
    padding: .28rem .65rem;
    border-radius: 20px;
    margin-top: .6rem;
}
.pay-generic { font-size: .84rem; color: #718096; }
.pay-tbanc-alt {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px dashed #e2e8f0;
    font-size: .72rem;
    color: #9aa3b0;
    line-height: 1.6;
}
.pay-tbanc-alt svg { display: inline; vertical-align: middle; margin-right: .25rem; color: #b0bac8; }
.pay-tbanc-alt strong { color: #718096; }
.pay-tbanc-alt a { color: var(--accent); text-decoration: none; }
.pay-tbanc-alt a:hover { text-decoration: underline; }

/* ── dados do sócio ── */
.member-badge {
    display: inline-block;
    background: #ebf4ff;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .18rem .6rem;
    border-radius: 20px;
    margin-bottom: .9rem;
}
.conf-dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .12rem .8rem;
}
.conf-dl dt {
    font-size: .74rem;
    color: #9aa3b0;
    font-weight: 500;
    text-align: right;
    line-height: 1.9;
    white-space: nowrap;
}
.conf-dl dd {
    font-size: .82rem;
    color: #2d3748;
    line-height: 1.9;
    word-break: break-word;
}
.conf-billing-sep {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: .8rem 0 .65rem;
}
.conf-billing-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: .5rem;
}

/* ── acções ── */
.conf-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.btn-conf-outline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.35rem;
    border: 1.5px solid #c8d3e0;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-size: .83rem;
    font-weight: 500;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-conf-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-conf-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.35rem;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: .83rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.btn-conf-primary:hover { background: var(--accent-hover); }

/* ── estado de erro ── */
.conf-error-card {
    max-width: 420px;
    margin: 3rem auto;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
}
.conf-error-card h1 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: .35rem;
}
.conf-error-card p { font-size: .83rem; color: #718096; margin-bottom: 1.4rem; }

/* ── cabeçalho visível apenas na impressão ── */
.conf-print-header { display: none; }

/* ══ IMPRESSÃO ══ */
@media print {
    body.page-conf {
        display: block;
        font-size: 9pt;
    }
    body.page-conf .panel-brand { display: none !important; }
    body.page-conf .panel-form  { padding: .75rem 1rem !important; min-height: unset; }
    body.page-conf .conf-card   { max-width: 100%; }
    body.page-conf .conf-actions,
    body.page-conf .panel-form-footer { display: none !important; }

    /* duas colunas na impressão para caber numa página */
    body.page-conf .conf-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: .6rem;
        margin-bottom: .75rem;
    }
    body.page-conf .conf-inner-card { border: 1px solid #ccc; break-inside: avoid; }
    body.page-conf .conf-inner-card-header { padding: .5rem .9rem; }
    body.page-conf .conf-inner-card-body   { padding: .75rem .9rem; }

    body.page-conf .conf-hero { margin-bottom: 1rem; }
    body.page-conf .hero-icon { width: 46px; height: 46px; margin-bottom: .6rem; }
    body.page-conf .conf-hero h1 { font-size: 1.15rem; }
    body.page-conf .conf-hero-meta { margin-bottom: .5rem; }

    body.page-conf .mb-head {
        background: var(--navy) !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: .4rem .75rem;
    }
    body.page-conf .mb-row { padding: .45rem .75rem; }
    body.page-conf .conf-hero-note {
        background: #fffbeb !important;
        border: 1px solid #fde68a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.page-conf .conf-print-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding-bottom: .6rem;
        border-bottom: 2px solid var(--navy);
    }
    body.page-conf .conf-print-header img { height: 24px; }
    body.page-conf .conf-print-header span { font-size: .7rem; color: #9aa3b0; }
}

/* ═══════════════════════════════════════════════════════════
   MEMBER AREA  (conta/conta.php · quotas.php · senha.php)
═══════════════════════════════════════════════════════════ */

body.page-area {
    background: #f0f2f7;
    display: block;
    min-height: 100vh;
}

/* ── Top header ── */
.area-header {
    background: #fff;
    border-bottom: 1px solid #e8eaf0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 6px rgba(0,0,0,.045);
}
.area-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.area-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.area-logo { height: 30px; flex-shrink: 0; }

/* desktop nav */
.area-nav {
    display: flex;
    align-items: center;
    gap: .1rem;
    flex: 1;
}
.area-nav > a {
    font-size: .79rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: .38rem .72rem;
    border-radius: 7px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.area-nav > a:hover { background: #f1f3f8; color: #1e3a5f; }
.area-nav > a.active { background: #e8f0fb; color: #1e5aba; font-weight: 600; }

/* header right (desktop) */
.area-header-right {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}
.area-site-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .73rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: .25rem .6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.area-site-link:hover { background: #f1f3f8; color: #1e3a5f; border-color: #d1d5db; }
.area-user-name {
    font-size: .79rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.area-logout {
    font-size: .75rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    padding: .26rem .62rem;
    border-radius: 6px;
    transition: background .15s, color .15s, border-color .15s;
}
.area-logout:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

/* ── Hamburger button ── */
.area-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0 9px;
    background: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.area-hamburger:hover { background: #f1f3f8; border-color: #d1d5db; }
.area-hamburger span {
    display: block;
    height: 1.5px;
    background: #374151;
    border-radius: 2px;
    transform-origin: center;
    transition: transform .2s ease, opacity .2s ease;
}
.area-header.menu-open .area-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.area-header.menu-open .area-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.area-header.menu-open .area-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile dropdown menu ── */
.area-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #f0f2f7;
    padding: .5rem 1rem 1.1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.area-header.menu-open .area-mobile-menu { display: block; }
.area-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin-bottom: .75rem;
}
.area-mobile-nav a {
    display: flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    padding: .7rem .85rem;
    border-radius: 9px;
    transition: background .15s, color .15s;
}
.area-mobile-nav a:hover { background: #f5f6fa; }
.area-mobile-nav a.active { background: #e8f0fb; color: #1e5aba; font-weight: 600; }
.area-mobile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f2f7;
    padding-top: .85rem;
    margin-top: .25rem;
}
.area-mobile-user {
    font-size: .8rem;
    font-weight: 600;
    color: #4a5568;
}
.area-mobile-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.area-mobile-site {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    font-size: .75rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .28rem .6rem;
    transition: background .15s;
}
.area-mobile-site:hover { background: #f1f3f8; }
.area-mobile-logout {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 500;
    color: #e53e3e;
    text-decoration: none;
    border: 1px solid #feb2b2;
    background: #fff5f5;
    border-radius: 6px;
    padding: .28rem .6rem;
    transition: background .15s;
}
.area-mobile-logout:hover { background: #fed7d7; }

/* ── show hamburger on mobile ── */
@media (max-width: 768px) {
    .area-hamburger { display: flex; }
    .area-nav { display: none; }
    .area-header-right { display: none; }
    .area-header-inner { padding: 0 1rem; height: 56px; }
    .area-logo { height: 27px; }
}

/* ── Main layout ── */
.area-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ── Member hero ── */
.member-hero {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eaf0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.member-avatar-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f4f8;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.member-avatar-icon { color: #cbd5e0; }
.member-details { flex: 1; min-width: 0; }
.member-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 .2rem;
    line-height: 1.25;
}
.member-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}
.member-sub-tag {
    font-size: .71rem;
    font-weight: 600;
    color: #4a5568;
    background: #edf2f7;
    border-radius: 5px;
    padding: .15rem .45rem;
}
.member-num-tag { font-size: .71rem; color: #9ca3af; }
.member-status-ok {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: #276749;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 20px;
    padding: .18rem .6rem;
}
.member-status-ok::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #38a169;
    flex-shrink: 0;
}
.member-status-pend {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: #7b4a00;
    background: #fffbeb;
    border: 1px solid #f6e05e;
    border-radius: 20px;
    padding: .18rem .6rem;
}
.member-status-pend::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #d69e2e;
    flex-shrink: 0;
}

/* ── Pending payment alert card ── */
.pay-alert-card {
    background: #fffbeb;
    border: 1.5px solid #f6e05e;
    border-left: 4px solid #d69e2e;
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 1.25rem;
}
.pay-alert-title {
    font-size: .82rem;
    font-weight: 700;
    color: #744210;
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.pay-alert-title svg { flex-shrink: 0; }
.pay-alert-body { display: flex; flex-wrap: wrap; gap: .65rem 2rem; }
.pay-alert-item { display: flex; flex-direction: column; }
.pay-alert-label {
    font-size: .67rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .1rem;
}
.pay-alert-value {
    font-size: .9rem;
    font-weight: 700;
    color: #1a202c;
    font-variant-numeric: tabular-nums;
}
.pay-alert-tbanc {
    font-size: .65rem;
    color: #744210;
    line-height: 1.7;
}
.pay-alert-divider {
    border: none;
    border-top: 1px dashed #f6d860;
    margin: .75rem 0;
}

/* ── Generic card ── */
.area-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.25rem;
}
.area-card-title {
    font-size: .75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 1.1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #f0f2f7;
}

/* ── Form grid ── */
.area-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem 1.2rem;
}
.area-form-grid .col-span2 { grid-column: span 2; }
.area-field { display: flex; flex-direction: column; gap: .28rem; }
.area-label {
    font-size: .72rem;
    font-weight: 600;
    color: #4a5568;
}
.area-label .req { color: #e53e3e; margin-left: .15rem; }
.area-input,
.area-select {
    height: 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 .75rem;
    font-size: .83rem;
    color: #1a202c;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.area-input:focus,
.area-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,.12);
}
.area-input[readonly] { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }
.area-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2rem;
}

/* ── Photo upload ── */
.foto-section {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #f0f2f7;
    margin-bottom: .9rem;
}
.foto-current {
    width: 58px; height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f4f8;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.foto-current img { width: 100%; height: 100%; object-fit: cover; }
.foto-info { flex: 1; min-width: 0; }
.foto-info label {
    font-size: .72rem;
    font-weight: 600;
    color: #4a5568;
    display: block;
    margin-bottom: .35rem;
    cursor: pointer;
}
.foto-info small { font-size: .68rem; color: #9ca3af; display: block; margin-top: .2rem; }
#removefoto {
    font-size: .69rem;
    color: #e53e3e;
    border: 1px solid #feb2b2;
    background: #fff5f5;
    border-radius: 6px;
    padding: .2rem .5rem;
    cursor: pointer;
    margin-top: .35rem;
    display: inline-block;
}
#removefoto:hover { background: #fed7d7; }

/* ── Form actions ── */
.area-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px solid #f0f2f7;
}
.btn-area-cancel {
    font-size: .83rem;
    font-weight: 500;
    color: #6b7280;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .5rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .15s, border-color .15s;
}
.btn-area-cancel:hover { background: #f9fafb; border-color: #d1d5db; }
.btn-area-save {
    font-size: .83rem;
    font-weight: 600;
    color: #fff;
    background: #1e4fa3;
    border: none;
    border-radius: 8px;
    padding: .5rem 1.4rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: background .15s;
}
.btn-area-save:hover { background: #1a3f85; }
.btn-area-save:disabled { opacity: .65; cursor: not-allowed; }

/* ── Inline alert ── */
.area-alert {
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: .9rem;
    display: none;
}
.area-alert.error   { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }
.area-alert.success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }

/* ── Quota table ── */
.quota-wrap { overflow-x: auto; }
.quota-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}
.quota-table th {
    font-size: .68rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .5rem .8rem;
    text-align: left;
    border-bottom: 2px solid #e8eaf0;
    white-space: nowrap;
}
.quota-table td {
    padding: .7rem .8rem;
    border-bottom: 1px solid #f0f2f7;
    color: #374151;
    vertical-align: middle;
}
.quota-table tr:last-child td { border-bottom: none; }
.quota-table tr:hover td { background: #fafbfd; }
.qt-badge-ok {
    display: inline-block;
    font-size: .69rem; font-weight: 600;
    color: #276749; background: #f0fff4; border: 1px solid #9ae6b4;
    border-radius: 20px; padding: .14rem .5rem;
}
.qt-badge-pend {
    display: inline-block;
    font-size: .69rem; font-weight: 600;
    color: #7b4a00; background: #fffbeb; border: 1px solid #f6e05e;
    border-radius: 20px; padding: .14rem .5rem;
}
.qt-badge-anulado {
    display: inline-block;
    font-size: .69rem; font-weight: 600;
    color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: 20px; padding: .14rem .5rem;
}
.qt-empty {
    text-align: center; color: #9ca3af;
    padding: 2.5rem; font-size: .85rem;
}
.qt-loading {
    text-align: center; color: #9ca3af;
    padding: 2rem; font-size: .82rem;
}
.qt-fatura-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 600;
    color: #1e5aba;
    text-decoration: none;
    white-space: nowrap;
}
.qt-fatura-link::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e5aba' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.qt-fatura-link:hover { text-decoration: underline; color: #1a4da3; }

/* ── Password form ── */
.pass-field-wrap { position: relative; }
.pass-field-wrap .area-input { padding-right: 2.5rem; }
.btn-eye-area {
    position: absolute;
    right: .7rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: #9ca3af;
    padding: 0;
    display: flex; align-items: center;
}
.btn-eye-area:hover { color: #4a5568; }
.area-err-msg {
    font-size: .7rem;
    color: #e53e3e;
    display: none;
}
.area-field.has-error .area-input,
.area-field.has-error .area-select { border-color: #fc8181; }
.area-field.has-error .area-err-msg { display: block; }

.area-field-hint {
    display: block;
    font-size: .7rem;
    color: #9ca3af;
    margin-top: .28rem;
}

/* ── Billing clear confirm dialog ── */
.fat-confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.fat-confirm-overlay.visible { display: flex; }
.fat-confirm-box {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
}
.fat-confirm-title {
    font-size: .92rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: .5rem;
    font-family: var(--font-title);
}
.fat-confirm-msg {
    font-size: .81rem;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}
.fat-confirm-actions { display: flex; gap: .65rem; justify-content: flex-end; }
.fat-confirm-btn-no {
    padding: .48rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-family: var(--font-body);
}
.fat-confirm-btn-no:hover { background: #f7f8fa; }
.fat-confirm-btn-yes {
    padding: .48rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #e53e3e;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-body);
}
.fat-confirm-btn-yes:hover { background: #c53030; }

/* ── Section separator ── */
.area-section-sep {
    border: none;
    border-top: 1.5px dashed #e8eaf0;
    margin: 1.1rem 0;
}

/* ── sopio.pt link (desktop — defined above in header block) ── */

/* ── Dashboard grid ── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* ── Event card ── */
.dash-event-card {
    overflow: hidden;
    padding: 0;
}
.dash-event-cover {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}
.dash-event-cover img {
    width: 100%;
    object-fit: contain;
    display: block;
}
.dash-event-card > .area-card-title,
.dash-event-card > .dash-event-date,
.dash-event-card > .dash-event-name,
.dash-event-card > .dash-event-local,
.dash-event-card > .dash-event-desc,
.dash-event-card > .dash-btn-event,
.dash-event-card > .dash-event-empty {
    margin-left: 1.6rem;
    margin-right: 1.6rem;
}
.dash-event-card > .area-card-title { margin-top: 1.25rem; }
.dash-event-card > .dash-btn-event  { margin-bottom: 1.4rem; }
.dash-event-card > .dash-event-empty { margin-bottom: 1.4rem; }
.dash-event-date {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .73rem;
    font-weight: 600;
    color: #1e5aba;
    margin-bottom: .6rem;
}
.dash-event-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 .4rem;
    line-height: 1.3;
}
.dash-event-local {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: .7rem;
}
.dash-event-desc {
    font-size: .8rem;
    color: #4a5568;
    line-height: 1.55;
    margin-bottom: .9rem;
}
.dash-btn-event {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: #1e5aba;
    text-decoration: none;
    border: 1.5px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 8px;
    padding: .45rem 1rem;
    transition: background .15s, border-color .15s;
}
.dash-btn-event:hover { background: #dbeafe; border-color: #93c5fd; }
.dash-event-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.5rem 0;
    text-align: center;
    color: #9ca3af;
    font-size: .82rem;
    line-height: 1.55;
}
.dash-event-empty a { color: #4299e1; }

/* ── Members banner ── */
.dash-members-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #1e5aba 100%);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
}
.dash-banner-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: .25rem;
}
.dash-banner-icon svg { stroke: rgba(255,255,255,.9); }
.dash-banner-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.dash-banner-desc {
    font-size: .8rem;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    margin: 0;
}
.dash-btn-banner {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: #1e3a5c;
    background: #fff;
    border-radius: 8px;
    padding: .5rem 1.1rem;
    text-decoration: none;
    margin-top: .25rem;
    transition: background .15s, opacity .15s;
}
.dash-btn-banner:hover { background: #f0f8ff; }

/* ── Billing form ── */
.fat-info {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .78rem;
    color: #4a5568;
    background: #f0f6ff;
    border: 1px solid #bee3f8;
    border-radius: 9px;
    padding: .75rem 1rem;
    margin-bottom: 1.1rem;
    line-height: 1.55;
}
.fat-info svg { flex-shrink: 0; margin-top: .1rem; stroke: #2b6cb0; }

.fat-toggle {
    margin-bottom: 1.1rem;
}
.fat-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 600;
    color: #374151;
    user-select: none;
}
.fat-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1e5aba;
    flex-shrink: 0;
}

/* locked state — fields visually disabled */
.fat-fields.locked .area-input,
.fat-fields.locked .area-select {
    pointer-events: none;
    background: #f7f8fa !important;
    color: #b0b8c9 !important;
    border-color: #e8eaf0 !important;
    cursor: not-allowed;
    user-select: none;
}
.fat-fields.locked { opacity: .75; }

.fat-actions-hidden { display: none !important; }

.fat-locked-hint {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: .9rem;
    text-align: center;
}

/* ── Small screen layout ── */
@media (max-width: 640px) {
    .area-main { padding: 1.1rem 1rem 2rem; }
    .member-hero { gap: .9rem; }
    .area-form-grid { grid-template-columns: 1fr; }
    .area-form-grid .col-span2 { grid-column: span 1; }
    .area-form-actions { flex-direction: column-reverse; }
    .btn-area-cancel, .btn-area-save { width: 100%; justify-content: center; }
    .pay-alert-body { flex-direction: column; gap: .5rem; }
    .area-card { padding: 1.1rem; }
    .dash-event-card > .area-card-title,
    .dash-event-card > .dash-event-date,
    .dash-event-card > .dash-event-name,
    .dash-event-card > .dash-event-local,
    .dash-event-card > .dash-event-desc,
    .dash-event-card > .dash-btn-event,
    .dash-event-card > .dash-event-empty { margin-left: 1.1rem; margin-right: 1.1rem; }
    .dash-event-card > .area-card-title { margin-top: 1rem; }
    .dash-event-card > .dash-btn-event  { margin-bottom: 1.1rem; }
    .dash-event-card > .dash-event-empty { margin-bottom: 1.1rem; }
    .dash-grid { grid-template-columns: 1fr; }
}
