/* Ocean Travel — Paleta Premium Oficial */
:root {
    --ot-preto: #0D0D0D;
    --ot-chumbo: #2B2B2B;
    --ot-offwhite: #F5F2EB;
    --ot-gold: #D6C29A;
    --ot-gold-dark: #B89B5E;
    --ot-gold-border: rgba(214, 194, 154, 0.35);
    --ot-gold-border-soft: rgba(214, 194, 154, 0.18);
    --font-display: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Admin: escala +20% sobre base (reduzido 20% do anterior 150%) ── */
html.admin-scale {
    font-size: 120%;
}

.theme-admin {
    background: var(--ot-preto);
    color: var(--ot-offwhite);
    min-height: 100vh;
}

.theme-admin .sys-sidebar {
    background: var(--ot-chumbo);
    border-right: 1px solid var(--ot-gold-border);
    width: 17rem;
    flex-shrink: 0;
}

html.admin-scale .sys-nav-link {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.65rem 1rem;
}

html.admin-scale .sys-sidebar-brand {
    font-size: 1.35rem;
}

html.admin-scale .sys-sidebar-sub {
    font-size: 0.875rem;
}

html.admin-scale .sys-header h1 {
    font-size: 1.75rem;
    line-height: 1.2;
}

html.admin-scale .sys-badge {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

html.admin-scale main {
    font-size: 1rem;
}

html.admin-scale main label {
    font-size: 1rem;
}

html.admin-scale main input,
html.admin-scale main select,
html.admin-scale main textarea,
html.admin-scale main button {
    font-size: 1rem;
}

html.admin-scale main table {
    font-size: 1rem;
}

html.admin-scale .admin-steps a {
    font-size: 0.9375rem;
    min-width: 7rem;
    padding: 0.85rem 0.65rem;
}

html.admin-scale .admin-steps a span {
    font-size: 1.25rem;
}

/* Login gestor — mesma escala */
html.admin-scale .theme-auth-admin .sys-auth-title {
    font-size: 2rem;
}

html.admin-scale .theme-auth-admin label,
html.admin-scale .theme-auth-admin input,
html.admin-scale .theme-auth-admin button[type="submit"] {
    font-size: 1rem;
}

.theme-admin .sys-sidebar-brand {
    color: var(--ot-offwhite);
}

.theme-admin .sys-sidebar-sub {
    color: var(--ot-gold);
}

.theme-admin .sys-nav-link {
    color: var(--ot-gold);
    transition: background 0.15s, color 0.15s;
}

.theme-admin .sys-nav-link:hover {
    background: rgba(13, 13, 13, 0.5);
    color: var(--ot-offwhite);
}

.theme-admin .sys-nav-link.active {
    background: var(--ot-preto);
    color: var(--ot-offwhite);
    border-left: 3px solid var(--ot-gold-dark);
}

.theme-admin .sys-nav-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    color: rgba(214, 194, 154, 0.55) !important;
}

.theme-admin .sys-nav-concierge {
    border: 1px solid rgba(184, 155, 94, 0.5);
    color: #D6C29A !important;
}

.theme-admin .sys-nav-concierge-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.theme-admin .sys-nav-concierge-icon {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    flex-shrink: 0;
}

.theme-admin .admin-info-callout {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #93c5fd !important;
    font-weight: 600;
}

.theme-admin .admin-date-picker {
    cursor: pointer;
}

.theme-admin .admin-date-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
    filter: invert(0.85) sepia(0.2);
}

.theme-admin .sys-header {
    background: var(--ot-chumbo);
    border-bottom: 1px solid var(--ot-gold-border);
}

.theme-admin .sys-header h1 {
    color: var(--ot-offwhite);
}

.theme-admin .sys-badge {
    background: rgba(184, 155, 94, 0.15);
    color: var(--ot-gold);
    border: 1px solid var(--ot-gold-border);
}

.theme-admin main {
    background: var(--ot-preto);
}

/* Remap Tailwind utilities dentro do admin */
.theme-admin .bg-white {
    background-color: var(--ot-chumbo) !important;
}

.theme-admin .bg-slate-50 {
    background-color: var(--ot-chumbo) !important;
}

.theme-admin .bg-slate-100 {
    background-color: rgba(214, 194, 154, 0.12) !important;
    color: var(--ot-gold) !important;
    border: 1px solid var(--ot-gold-border-soft);
}

.theme-admin .bg-slate-200 {
    background-color: var(--ot-gold-dark) !important;
    color: var(--ot-preto) !important;
    font-weight: 600;
}

/* Badges e contadores — contraste garantido (não usar Tailwind puro no admin) */
.theme-admin .admin-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: var(--ot-gold-dark) !important;
    color: var(--ot-preto) !important;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
}

.theme-admin .admin-status-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: rgba(214, 194, 154, 0.15) !important;
    color: var(--ot-gold) !important;
    border: 1px solid var(--ot-gold-border-soft);
}

.theme-admin .admin-status-success {
    background: rgba(34, 197, 94, 0.22) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.55) !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.6875rem;
}

.theme-admin .admin-status-danger {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(248, 113, 113, 0.45) !important;
    font-weight: 700;
}

.theme-admin .admin-success-callout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.45);
    color: #86efac !important;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
}

.theme-admin .admin-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #22c55e;
    color: #0D0D0D;
    font-size: 0.6875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.theme-admin .admin-parcela-pago {
    border: 1px solid rgba(74, 222, 128, 0.35) !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

.theme-admin .admin-link-muted {
    color: rgba(245, 242, 235, 0.65) !important;
}

.theme-admin .admin-link-muted:hover {
    color: var(--ot-gold) !important;
}

.theme-admin .admin-tag-humano {
    background: rgba(214, 194, 154, 0.18) !important;
    color: var(--ot-offwhite) !important;
    border: 1px solid var(--ot-gold-border);
}

.theme-admin .admin-tag-novas {
    background: rgba(220, 38, 38, 0.25) !important;
    color: #fecaca !important;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.theme-admin .text-slate-800,
.theme-admin .text-slate-700,
.theme-admin .font-semibold,
.theme-admin .font-medium,
.theme-admin h2, .theme-admin h3 {
    color: var(--ot-offwhite) !important;
}

.theme-admin .text-slate-600,
.theme-admin .text-slate-500 {
    color: var(--ot-gold) !important;
}

.theme-admin .text-slate-400 {
    color: rgba(214, 194, 154, 0.65) !important;
}

.theme-admin .border-slate-200,
.theme-admin .border-slate-100,
.theme-admin .border-slate-300 {
    border-color: var(--ot-gold-border-soft) !important;
}

.theme-admin .hover\:bg-slate-50:hover {
    background-color: rgba(13, 13, 13, 0.4) !important;
}

.theme-admin .text-ocean-600,
.theme-admin .text-ocean-700,
.theme-admin a.text-ocean-600 {
    color: var(--ot-gold) !important;
}

.theme-admin .bg-ocean-600,
.theme-admin .bg-ocean-700 {
    background-color: var(--ot-gold-dark) !important;
    color: var(--ot-preto) !important;
}

.theme-admin .hover\:bg-ocean-700:hover {
    background-color: var(--ot-gold) !important;
}

.theme-admin input,
.theme-admin select,
.theme-admin textarea {
    background: var(--ot-preto) !important;
    border-color: var(--ot-gold-border) !important;
    color: var(--ot-offwhite) !important;
}

.theme-admin input::placeholder,
.theme-admin textarea::placeholder {
    color: rgba(214, 194, 154, 0.5);
}

.theme-admin .admin-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ot-gold);
    margin-bottom: 0.35rem;
}

.theme-admin .admin-form-hint {
    display: block;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: rgba(245, 242, 235, 0.55);
    margin-top: 0.35rem;
}

.theme-admin .admin-form-intro {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(245, 242, 235, 0.7);
}

.theme-admin details.admin-parcelas-form > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ot-gold);
    list-style: none;
}

.theme-admin details.admin-parcelas-form > summary::-webkit-details-marker {
    display: none;
}

.theme-admin details.admin-parcelas-form > summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s;
}

.theme-admin details.admin-parcelas-form[open] > summary::before {
    transform: rotate(90deg);
}

/* Comprovantes — destaque aprovação */
.theme-admin .admin-comprovantes-alert {
    background: rgba(184, 155, 94, 0.08) !important;
}

.theme-admin .admin-comprovante-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    background: #f59e0b;
    color: #0D0D0D;
    font-size: 0.75rem;
    font-weight: 800;
}

.theme-admin .admin-parcela-comprovante {
    border: 2px solid rgba(245, 158, 11, 0.55) !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.theme-admin .admin-comprovante-callout {
    background: rgba(13, 13, 13, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.theme-admin .admin-btn-comprovante {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: var(--ot-gold-dark);
    color: var(--ot-preto) !important;
    text-decoration: none;
    transition: background 0.15s;
}

.theme-admin .admin-btn-comprovante:hover {
    background: var(--ot-gold);
}

.theme-admin .admin-btn-confirmar-pagamento {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    background: #16a34a;
    color: #fff !important;
}

.theme-admin .admin-btn-confirmar-pagamento:hover {
    background: #15803d;
}

.theme-admin .admin-btn-aprovar-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid var(--ot-gold-border);
    color: var(--ot-gold) !important;
    text-decoration: none;
}

.theme-admin .admin-btn-aprovar-link:hover {
    background: rgba(184, 155, 94, 0.15);
}

.theme-admin .sys-btn-primary {
    background: var(--ot-gold-dark);
    color: var(--ot-preto);
    font-weight: 600;
    border: none;
    transition: background 0.15s;
}

.theme-admin .sys-btn-primary:hover {
    background: var(--ot-gold);
}

.theme-admin .sys-card {
    background: var(--ot-chumbo);
    border: 1px solid var(--ot-gold-border);
    border-radius: 0.75rem;
}

/* ── Portal cliente (claro: off-white + preto/dourado) ── */
.theme-portal {
    background: var(--ot-offwhite);
    color: var(--ot-preto);
    min-height: 100vh;
}

.theme-portal .sys-header {
    background: var(--ot-preto);
    border-bottom: 2px solid var(--ot-gold-dark);
}

.theme-portal .sys-header-brand {
    color: var(--ot-offwhite);
}

.theme-portal .sys-header-sub {
    color: var(--ot-gold);
}

.theme-portal .sys-nav-link {
    color: rgba(245, 242, 235, 0.85);
}

.theme-portal .sys-nav-link:hover {
    color: var(--ot-gold);
    background: rgba(255, 255, 255, 0.06);
}

.theme-portal .sys-nav-link.active {
    color: var(--ot-gold);
    background: rgba(214, 194, 154, 0.12);
    font-weight: 600;
}

.theme-portal .sys-nav-user {
    color: var(--ot-gold);
}

.theme-portal .sys-title {
    color: var(--ot-preto);
    font-weight: 600;
}

.theme-portal .sys-subtitle {
    color: var(--ot-chumbo);
}

.theme-portal .sys-card {
    background: #fff;
    border: 1px solid var(--ot-gold-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(13, 13, 13, 0.06);
}

.theme-portal .sys-card:hover {
    box-shadow: 0 4px 16px rgba(13, 13, 13, 0.08);
}

.theme-portal .sys-price {
    color: var(--ot-gold-dark);
    font-weight: 700;
}

.theme-portal .sys-btn-primary {
    background: var(--ot-preto);
    color: var(--ot-offwhite);
    font-weight: 600;
    border: none;
    transition: background 0.15s;
}

.theme-portal .sys-btn-primary:hover {
    background: var(--ot-chumbo);
}

.theme-portal .sys-btn-gold {
    background: var(--ot-gold-dark);
    color: var(--ot-preto);
}

.theme-portal .sys-btn-gold:hover {
    background: var(--ot-gold);
}

.theme-portal .sys-footer {
    color: var(--ot-chumbo);
}

.theme-portal .sys-footer a {
    color: var(--ot-gold-dark);
}

.theme-portal input,
.theme-portal select,
.theme-portal textarea {
    background: #fff;
    border: 1px solid var(--ot-gold-border);
    color: var(--ot-preto);
}

.theme-portal label {
    color: var(--ot-chumbo);
    font-weight: 500;
}

/* ── Auth admin (login gestor) ── */
.theme-auth-admin {
    background: var(--ot-preto);
    min-height: 100vh;
}

.theme-auth-admin .sys-auth-card {
    background: var(--ot-chumbo);
    border: 1px solid var(--ot-gold-border);
}

.theme-auth-admin .sys-auth-title {
    color: var(--ot-offwhite);
}

.theme-auth-admin .sys-auth-sub {
    color: var(--ot-gold);
}

.theme-auth-admin label {
    color: var(--ot-offwhite);
}

.theme-auth-admin input {
    background: var(--ot-preto);
    border: 1px solid var(--ot-gold-border);
    color: var(--ot-offwhite);
}

.theme-auth-admin .sys-link {
    color: var(--ot-gold);
}

.theme-auth-admin .sys-btn-primary {
    background: linear-gradient(180deg, #D6C29A 0%, #B89B5E 100%) !important;
    color: #0D0D0D !important;
    -webkit-text-fill-color: #0D0D0D !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8125rem;
    border: 1px solid #B89B5E !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.15s, box-shadow 0.15s;
}

.theme-auth-admin .sys-btn-primary:hover {
    background: linear-gradient(180deg, #E0CEAA 0%, #C9AD6E 100%) !important;
    color: #0D0D0D !important;
    -webkit-text-fill-color: #0D0D0D !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-auth-admin .sys-badge {
    background: rgba(184, 155, 94, 0.15);
    color: #D6C29A;
    border: 1px solid var(--ot-gold-border);
}

/* ── Auth portal (login cliente) ── */
.theme-auth-portal {
    background: var(--ot-offwhite);
    min-height: 100vh;
}

.theme-auth-portal .sys-auth-card {
    background: #fff;
    border: 1px solid var(--ot-gold-border);
    box-shadow: 0 8px 32px rgba(13, 13, 13, 0.08);
}

.theme-auth-portal .sys-auth-title {
    color: var(--ot-preto);
}

.theme-auth-portal .sys-auth-sub {
    color: var(--ot-chumbo);
}

.theme-auth-portal label {
    color: var(--ot-chumbo);
}

.theme-auth-portal input {
    background: var(--ot-offwhite);
    border: 1px solid var(--ot-gold-border);
    color: var(--ot-preto);
}

.theme-auth-portal .sys-tab-active {
    border-color: var(--ot-gold-dark);
    color: var(--ot-preto);
}

.theme-auth-portal .sys-link {
    color: var(--ot-gold-dark);
}

.theme-auth-portal .sys-btn-primary {
    background: #0D0D0D;
    color: #F5F2EB !important;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.theme-auth-portal .sys-btn-primary:hover {
    background: #2B2B2B;
    color: #F5F2EB !important;
}

/* Utilitários compartilhados */
.sys-font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.sys-font-body {
    font-family: var(--font-body);
}

.sys-alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fecaca;
}

.theme-portal .sys-alert-error,
.theme-auth-portal .sys-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.sys-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.theme-portal .sys-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.theme-portal .sys-link {
    color: var(--ot-gold-dark);
}

.theme-portal .sys-link:hover {
    color: var(--ot-preto);
}

/* Abas portal (negociação) — segmented control premium */
.theme-portal .portal-neg-tabs.sys-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    padding: 0.375rem;
    background: #fff;
    border: 1px solid var(--ot-gold-border);
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(13, 13, 13, 0.06);
}

.theme-portal .portal-neg-tabs .sys-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.65rem 0.35rem;
    min-height: 3.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6b6560;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.theme-portal .portal-neg-tabs .portal-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    opacity: 0.75;
    transition: opacity 0.18s;
}

.theme-portal .portal-neg-tabs .portal-tab-label {
    line-height: 1.2;
}

.theme-portal .portal-neg-tabs .sys-tab:hover {
    color: var(--ot-preto);
    background: rgba(214, 194, 154, 0.2);
    border-color: rgba(184, 155, 94, 0.25);
}

.theme-portal .portal-neg-tabs .sys-tab:hover .portal-tab-icon {
    opacity: 1;
}

.theme-portal .portal-neg-tabs .sys-tab-active {
    color: var(--ot-offwhite);
    background: var(--ot-preto);
    border-color: var(--ot-preto);
    box-shadow: 0 2px 8px rgba(13, 13, 13, 0.18);
}

.theme-portal .portal-neg-tabs .sys-tab-active .portal-tab-icon {
    opacity: 1;
    color: var(--ot-gold);
}

@media (min-width: 480px) {
    .theme-portal .portal-neg-tabs .sys-tab {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
        min-height: 2.75rem;
    }
}

.sys-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}

.sys-badge-pending {
    background: rgba(214, 194, 154, 0.25);
    color: var(--ot-chumbo);
}

.sys-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.sys-badge-danger {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.theme-admin .bg-teal-50 {
    background-color: rgba(214, 194, 154, 0.12) !important;
}

.theme-admin .text-green-600 { color: #86efac !important; }
.theme-admin .text-red-600, .theme-admin .text-red-700 { color: #fca5a5 !important; }
.theme-admin .bg-green-50 { background: rgba(34, 197, 94, 0.12) !important; color: #86efac !important; }
.theme-admin .bg-amber-100 { background: rgba(184, 155, 94, 0.2) !important; }
.theme-admin .text-amber-600, .theme-admin .text-amber-700 { color: var(--ot-gold) !important; }

/* ══════════════════════════════════════════
   RESPONSIVO — mobile first (admin + portal)
   ══════════════════════════════════════════ */

/* Admin: menu lateral vira drawer no mobile */
.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 40;
}

.admin-overlay.is-open {
    display: block;
}

.admin-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--ot-gold-border);
    background: rgba(184, 155, 94, 0.12);
    color: var(--ot-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.admin-menu-btn svg {
    width: 1.35rem;
    height: 1.35rem;
}

.sys-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

.sys-table-scroll table {
    min-width: 640px;
}

@media (max-width: 1023px) {
    .admin-menu-btn {
        display: inline-flex;
    }

    .theme-admin .sys-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 50;
        width: min(88vw, 18rem);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    }

    .theme-admin .sys-sidebar.is-open {
        transform: translateX(0);
    }

    .theme-admin .sys-header {
        padding: 1rem 1rem;
    }

    .theme-admin main {
        padding: 1rem !important;
    }

    html.admin-scale .sys-header h1 {
        font-size: 1.35rem;
    }

    html.admin-scale .admin-steps {
        flex-direction: column;
        gap: 0.5rem;
    }

    html.admin-scale .admin-steps a {
        min-width: 0;
        width: 100%;
    }

    .theme-admin .flex.justify-between,
    .theme-admin .flex.flex-col.sm\:flex-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .theme-admin form.flex.gap-2,
    .theme-admin .p-4.border-t.flex {
        flex-wrap: wrap;
    }

    .theme-admin form.flex.gap-2 input[type="text"],
    .theme-admin .p-4.border-t.flex input[type="text"] {
        min-width: 0;
        flex: 1 1 100%;
    }

    /* Painel negociações: colunas empilhadas (scroll vertical) */
    .admin-neg-board {
        flex-direction: column !important;
        overflow-x: visible !important;
    }

    .admin-neg-col {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    /* Ficha pacote admin */
    .theme-admin .pacote-detalhe > header h2 {
        font-size: 1.35rem !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .theme-admin .pacote-detalhe > header .text-3xl {
        font-size: 1.5rem !important;
    }

    .theme-admin .pacote-capa-img {
        max-height: none !important;
    }

    .theme-admin .pacote-detalhe ul li.flex.gap-3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-admin main {
        overflow-x: hidden;
        min-width: 0;
    }

    .admin-pacote-card {
        word-break: break-word;
    }
}

@media (min-width: 1280px) {
    .admin-neg-board {
        flex-direction: row !important;
        overflow-x: auto;
    }

    .admin-neg-col {
        flex: 1 1 0 !important;
        min-width: 220px !important;
    }
}

@media (max-width: 639px) {
    html.admin-scale {
        font-size: 112%;
    }

    html.admin-scale .sys-header h1 {
        font-size: 1.2rem;
    }
}

/* Portal: navegação mobile — barra inferior fixa */
.portal-bottom-nav {
    display: none;
}

.portal-bottom-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.25rem;
    color: rgba(245, 242, 235, 0.75);
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    min-height: 3.5rem;
}

.portal-bottom-link svg {
    width: 1.35rem;
    height: 1.35rem;
}

.portal-bottom-link.active,
.portal-bottom-link:active {
    color: var(--ot-gold);
}

.portal-nav-desktop {
    display: flex;
}

.pacote-badge {
    display: block;
    width: 100%;
    word-break: break-word;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .pacote-badge {
        width: auto;
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .portal-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        background: var(--ot-preto);
        border-top: 2px solid var(--ot-gold-dark);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .portal-main {
        padding-bottom: 5.5rem !important;
        min-width: 0;
        overflow-x: hidden;
    }

    .portal-nav-desktop {
        display: none !important;
    }

    .portal-menu-btn,
    .portal-nav-panel {
        display: none !important;
    }

    .theme-portal .sys-font-display.sys-title,
    .pacote-detalhe > header h2 {
        font-size: 1.35rem !important;
        line-height: 1.3;
        word-break: break-word;
    }

    .pacote-detalhe > header p.text-lg {
        font-size: 1rem;
    }

    .pacote-detalhe > header .text-3xl {
        font-size: 1.5rem !important;
    }

    .pacote-capa-img {
        max-height: none !important;
    }

    .pacote-detalhe section h3 {
        font-size: 1.1rem !important;
    }

    .pacote-detalhe ul li.flex.gap-3 {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-sticky-actions {
        position: fixed;
        bottom: calc(3.75rem + env(safe-area-inset-bottom, 0));
        left: 0;
        right: 0;
        z-index: 35;
        background: rgba(245, 242, 235, 0.97);
        backdrop-filter: blur(8px);
        padding: 0.75rem 1rem;
        margin: 0 !important;
        border-top: 1px solid rgba(184, 155, 94, 0.35);
        box-shadow: 0 -4px 16px rgba(13, 13, 13, 0.08);
    }

    body:has(.portal-sticky-actions) .portal-main {
        padding-bottom: 10rem !important;
    }

    .portal-breadcrumb {
        font-size: 0.875rem;
    }

    .theme-portal .sys-card .p-6 {
        padding: 1rem !important;
    }

    .theme-portal .grid.lg\:grid-cols-3,
    .theme-portal .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    #chat-messages {
        max-height: 50vh !important;
        min-height: 200px;
    }

    .theme-auth-portal,
    .theme-auth-admin {
        padding: 1rem;
    }

    .sys-auth-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .portal-top-header > div {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Chat — áudio e imagem */
.chat-media-toolbar {
    width: 100%;
}
.chat-media-idle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.chat-rec-active {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.65rem;
    border-radius: 0.625rem;
    background: rgba(229, 62, 62, 0.08);
    border: 1px solid rgba(229, 62, 62, 0.28);
}
.chat-media-toolbar.is-recording .chat-media-idle {
    display: none;
}
.chat-media-toolbar.is-recording .chat-rec-active {
    display: flex;
}
.chat-media-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(184, 155, 94, 0.35);
    background: rgba(214, 194, 154, 0.12);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}
.chat-media-btn--photo {
    border-radius: 0.5rem;
}
.chat-media-btn--mic {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    border: none;
    background: #8696a0;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.chat-media-btn--mic:hover {
    background: #667781;
}
.chat-media-btn--mic:active {
    transform: scale(0.96);
}
.chat-rec-cancel {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 155, 94, 0.45);
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.chat-rec-send {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    background: #25d366;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.chat-rec-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c53030;
    flex: 1;
    min-width: 0;
    text-align: center;
}
.chat-rec-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #e53e3e;
    animation: chat-rec-pulse 1s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes chat-rec-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.2); }
}
.chat-rec-status {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}
.chat-rec-status.hidden {
    display: none;
}
.chat-media-btn:hover {
    background: rgba(214, 194, 154, 0.22);
}
.chat-media-btn--mic:hover {
    background: #667781;
}
.chat-audio-player {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: min(260px, 100%);
    max-width: 100%;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    background: #f0ede6;
    border-radius: 0.65rem;
    border: 1px solid rgba(184, 155, 94, 0.3);
}
.chat-msg-bubble .chat-audio-player {
    background: #f0ede6 !important;
    color: #1f2937 !important;
}
.chat-audio-play-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: #8696a0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.chat-audio-player--playing .chat-audio-play-btn {
    background: #667781;
}
.chat-audio-play-btn .hidden {
    display: none;
}
.chat-audio-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.chat-audio-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}
.chat-audio-time {
    font-size: 0.6875rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
.chat-audio-el {
    display: none !important;
}
.chat-msg-img {
    display: block;
    max-width: min(280px, 100%);
    max-height: 320px;
    border-radius: 0.5rem;
    object-fit: cover;
}
.chat-msg-bubble .chat-msg-caption {
    opacity: 0.9;
}
.chat-msg-media-link {
    display: block;
}
