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

/* ── Base ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header-logo-square {
    width: 40px;
    height: 40px;
    background: #9b0019;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.header-brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}

.header-brand-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.header-nav-link {
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.header-nav-link:hover { color: #9b0019; }

/* ── Main ── */
.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ── Hero (index) ── */
.hero {
    text-align: center;
    padding: 80px 24px 60px;
    max-width: 640px;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.hero-input {
    width: 100%;
    max-width: 380px;
    padding: 13px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #111827;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-input::placeholder { color: #9ca3af; }
.hero-input:focus {
    border-color: #9b0019;
    box-shadow: 0 0 0 3px rgba(155, 0, 25, 0.12);
}
.hero-input--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.hero-input-error-msg {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: -4px;
}

/* ── Loading overlay ── */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.loading-overlay.is-active { display: flex; }

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #9b0019;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}
.loading-subtext {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: -12px;
}

/* ── Buttons ── */
.btn-primary {
    background: #9b0019;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary:hover { background: #7a0014; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 24px;
    transition: color 0.15s;
}

.btn-secondary:hover { color: #9b0019; }

/* ── WhatsApp float ── */
.btn-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #16a34a;
    color: #fff;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
    transition: background 0.15s, transform 0.15s;
    z-index: 100;
}

.btn-whatsapp:hover {
    background: #15803d;
    transform: translateY(-2px);
}

/* ── Results page wrapper ── */
.results-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 48px 24px 64px;
}

/* ── Greeting ── */
.results-greeting {
    margin-bottom: 32px;
}

.results-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.results-subtitle {
    font-size: 0.95rem;
    color: #2563eb;
    line-height: 1.6;
    max-width: 560px;
}

/* ── Alert ── */
.aviso-mensagem {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Debt banner ── */
.divida-banner {
    background: #9b0019;
    border-radius: 14px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.divida-banner-label {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 6px;
}

.divida-banner-valor {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.divida-banner-right {
    text-align: right;
}

.divida-banner-cliente {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.divida-banner-cpf {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
}

/* ── Proposals section ── */
.propostas-section {
    margin-bottom: 8px;
}

.propostas-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.propostas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    align-items: start;
}

/* ── Proposal card ── */
.proposta-outer {
    position: relative;
}

.proposta-outer--destaque {
    padding-top: 18px;
}

.proposta-recomendado {
    position: absolute;
    top: 0;
    left: 14px;
    background: #9b0019;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

.proposta-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.proposta-card--destaque {
    border-color: #9b0019;
    border-width: 2px;
}

.proposta-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #f3f4f6;
}

.proposta-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.proposta-off-badge {
    background: #f3f4f6;
    color: #374151;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.proposta-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.parcelas-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111827;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-top: 4px;
}

.parcelas-select:focus {
    border-color: #9b0019;
    box-shadow: 0 0 0 3px rgba(155, 0, 25, 0.12);
}

.proposta-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.proposta-valor {
    font-size: 2rem;
    font-weight: 800;
    color: #9b0019;
    line-height: 1.1;
    margin-top: 2px;
}

.proposta-total-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.proposta-economia {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #9b0019;
    font-weight: 500;
    margin-top: 4px;
}

.proposta-card-footer {
    padding: 0 20px 20px;
}

.proposta-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.proposta-btn--primary {
    background: #9b0019;
    color: #fff;
    border-color: #9b0019;
}

.proposta-btn--primary:hover {
    background: #7a0014;
    border-color: #7a0014;
}

.proposta-btn--secondary {
    background: #fff;
    color: #374151;
    border-color: #e5e7eb;
}

.proposta-btn--secondary:hover {
    border-color: #9b0019;
    color: #9b0019;
}

/* ── Empty states ── */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.sem-dividas {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ── Admin ── */
.admin-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 40px 24px 60px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 28px;
    gap: 0;
}

.admin-tab {
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.admin-tab:hover { color: #111827; }

.admin-tab--active {
    color: #9b0019;
    border-bottom-color: #9b0019;
}

.admin-flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.admin-flash--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.admin-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.admin-table-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ── Admin card (table container) ── */
.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Admin table ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    padding: 11px 16px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.admin-table th.th-id     { width: 44px; }
.admin-table th.th-center { text-align: center; }
.admin-table th.th-right  { text-align: right; }
.admin-table th.th-actions{ width: 72px; }

.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafafa; }

/* Column helpers */
.td-id       { color: #9ca3af; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.td-center   { text-align: center; }
.td-right    { text-align: right; }
.td-mono     { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.82rem; }
.td-dias     { color: #374151; font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-nil      { color: #d1d5db; }
.td-actions  { text-align: right; white-space: nowrap; }
.td-datetime { color: #6b7280; white-space: nowrap; }
.td-cpf      { color: #111827; letter-spacing: 0.02em; }
.td-nome     { color: #111827; font-weight: 500; }
.td-descricao{
    max-width: 300px;
    line-height: 1.45;
    color: #111827;
    font-size: 0.82rem;
}
.td-empty    {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ── Admin badges ── */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.admin-badge--red      { background: #fef2f2; color: #9b0019; }
.admin-badge--red-soft { background: #fef2f2; color: #b91c1c; }
.admin-badge--blue     { background: #eff6ff; color: #1d4ed8; }
.admin-badge--gray     { background: #f3f4f6; color: #374151; }
.admin-badge--green    { background: #f0fdf4; color: #166534; }

/* ── Admin form ── */
.admin-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    max-width: 660px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-form-group--full {
    grid-column: 1 / -1;
}

.admin-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-required { color: #9b0019; }

.admin-input {
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.admin-input:focus {
    border-color: #9b0019;
    box-shadow: 0 0 0 3px rgba(155, 0, 25, 0.12);
}

.admin-hint {
    font-size: 0.75rem;
    color: #9ca3af;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Icon action buttons ── */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    text-decoration: none;
    vertical-align: middle;
}

.btn-icon:hover { background: #f3f4f6; color: #111827; border-color: #d1d5db; }
.btn-icon--danger:hover { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* ── Footer ── */
.footer {
    text-align: center;
    padding: 20px 24px;
    font-size: 0.75rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}

/* ── Aceite page ── */
.aceite-wrapper {
    width: 100%;
    max-width: 720px;
    padding: 48px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aceite-header { margin-bottom: 4px; }

.aceite-back {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.15s;
}
.aceite-back:hover { color: #9b0019; }

.aceite-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.aceite-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.aceite-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.aceite-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
    flex-wrap: wrap;
}

.aceite-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.aceite-client-info { text-align: right; }

.aceite-client-nome {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.aceite-client-cpf {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.aceite-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.aceite-table th {
    padding: 10px 24px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.aceite-th-right { text-align: right; }

.aceite-table td {
    padding: 12px 24px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.aceite-table tbody tr:last-child td { border-bottom: none; }

.aceite-td-date {
    color: #6b7280;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    white-space: nowrap;
}

.aceite-td-valor {
    text-align: right;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.aceite-total-row td {
    padding: 14px 24px;
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
}

.aceite-desconto-badge {
    background: #fef2f2;
    color: #9b0019;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.aceite-proposta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.aceite-proposta-item {
    padding: 20px 24px;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.aceite-proposta-item:nth-child(2n) { border-right: none; }
.aceite-proposta-item:nth-child(3),
.aceite-proposta-item:nth-child(4) { border-bottom: none; }

.aceite-proposta-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    margin-bottom: 6px;
}

.aceite-proposta-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.aceite-proposta-value--highlight {
    font-size: 1.375rem;
    color: #9b0019;
}

.aceite-economia-strip {
    background: #9b0019;
    color: #fff;
    padding: 12px 24px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aceite-economia-strip strong { font-weight: 700; }

.aceite-legal-icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aceite-legal-body {
    padding: 20px 24px;
}

.aceite-legal-intro {
    font-size: 0.875rem;
    color: #2563eb;
    line-height: 1.65;
    margin-bottom: 16px;
}

.aceite-clauses {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aceite-clauses li {
    font-size: 0.84rem;
    color: #374151;
    line-height: 1.65;
}

.aceite-clauses--conditions {
    list-style: none;
    padding-left: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.aceite-clauses--conditions li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}

.aceite-clauses--conditions li:last-child { border-bottom: none; }

.aceite-clause-label {
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}

.aceite-clause-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

.aceite-legal-footer {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.65;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.aceite-checkbox-area {
    padding: 16px 24px 20px;
    border-top: 1px solid #f3f4f6;
}

.aceite-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    user-select: none;
}

.aceite-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #9b0019;
    cursor: pointer;
    flex-shrink: 0;
}

.aceite-checkbox-note {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 6px;
    margin-left: 28px;
}

.aceite-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aceite-btn-voltar {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.aceite-btn-voltar:hover { border-color: #9b0019; color: #9b0019; }

.aceite-btn-confirmar {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    background: #9b0019;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.aceite-btn-confirmar:hover:not(:disabled) { background: #7a0014; }

.aceite-btn-confirmar:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* ── Confirmado page ── */
.confirmado-wrapper {
    max-width: 520px;
    width: 100%;
    padding: 80px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirmado-icon {
    width: 68px;
    height: 68px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    margin-bottom: 24px;
}

.confirmado-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.confirmado-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 28px;
}

.confirmado-resumo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px 32px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    width: 100%;
}

.confirmado-resumo-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

.confirmado-resumo-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confirmado-resumo-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
}

.confirmado-resumo-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.confirmado-resumo-value--highlight { color: #9b0019; }

.confirmado-note {
    font-size: 0.84rem;
    color: #9ca3af;
    margin-bottom: 32px;
    line-height: 1.55;
}

/* ── Admin login ── */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    width: 100%;
}

.login-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px;
    width: 100%;
    max-width: 400px;
}

.login-header { margin-bottom: 28px; }

.login-logo { margin-bottom: 20px; }

.login-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Admin detail helpers ── */
.td-valor-destaque { font-weight: 700; color: #111827; }

.admin-detalhe-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 3px;
}

.admin-detalhe-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

/* ── Loading overlay ── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.loading-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e5e7eb;
    border-top-color: #9b0019;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.loading-sub {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}
