:root {
    --app-bg: #f2f5fa;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;
    --app-text: #1d2736;
    --app-muted: #7b8795;
    --app-line: #e7edf5;
    --app-blue: #0f56d6;
    --app-blue-dark: #0a43ac;
    --app-blue-soft: #edf4ff;
    --app-green: #31b36b;
    --app-red: #ef5350;
    --app-shadow: 0 18px 40px rgba(31, 46, 79, 0.1);
}

.app-mode {
    padding: 16px 0;
    background: linear-gradient(180deg, #edf2f8 0%, #f6f8fb 100%);
    overflow-x: hidden;
}

.app-mode .sidebar,
.app-mode .topbar {
    display: none;
}

.app-mode .main-content {
    padding: 0;
    gap: 0;
    flex: 1;
}

.app-mode .app-shell {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: calc(100dvh - 32px);
}

.app-mode .phone-shell {
    width: min(100%, 390px);
    min-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid #e3e9f2;
    box-shadow: 0 24px 60px rgba(27, 41, 68, 0.14);
    position: relative;
}

.app-mode .app-bar {
    height: 80px;
    flex: 0 0 auto;
    padding: 4px 16px 8px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    background: #0f56d6;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 10px 24px rgba(15, 86, 214, 0.18);
}

.app-mode .app-bar__brand {
    display: grid;
    justify-items: center;
    align-content: center;
}

.app-mode .app-bar__brand--solo {
    gap: 0;
}

.app-mode .app-bar__brand--solo .app-bar__logo-badge {
    min-width: 0;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-mode .app-bar__brand--with-title {
    gap: 6px;
}

.app-mode .app-bar__logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(5, 17, 45, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-mode .app-bar__brand--with-title .app-bar__logo-badge {
    min-width: 68px;
    height: 24px;
    padding: 0 10px;
}

.app-mode .app-bar__logo {
    display: block;
    width: 56px;
    height: auto;
    object-fit: contain;
}

.app-mode .app-bar__brand--with-title .app-bar__logo {
    width: 46px;
}

.app-mode .app-bar__title {
    margin: 0;
    text-align: center;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.app-mode .app-bar__action {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.app-mode .app-bar__action-wrap {
    position: relative;
    justify-self: end;
    overflow: visible;
    z-index: 40;
}

.app-mode .app-bar__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4b4b;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(255, 75, 75, 0.28);
}

.app-mode .notification-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: -2px;
    width: min(320px, calc(100vw - 28px));
    max-height: min(62vh, 420px);
    overflow: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e4ebf6;
    box-shadow: 0 18px 36px rgba(23, 45, 84, 0.18);
    backdrop-filter: blur(18px);
    z-index: 10000;
    display: none;
}

.app-mode .notification-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 16px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e4ebf6;
    border-left: 1px solid #e4ebf6;
    transform: rotate(45deg);
    border-top-left-radius: 4px;
}

.app-mode .notification-popover[hidden] {
    display: none !important;
}

.app-mode .notification-popover.is-visible {
    display: block !important;
}

.app-mode .notification-popover__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #eef2f8;
}

.app-mode .notification-popover__header strong,
.app-mode .notification-popover__header small {
    display: block;
}

.app-mode .notification-popover__header strong {
    color: #182946;
    font-size: 0.9rem;
}

.app-mode .notification-popover__header small {
    margin-top: 4px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #7d8aa0;
}

.app-mode .notification-popover__close {
    width: 34px;
    height: 34px;
    border: 1px solid #e5ebf5;
    border-radius: 12px;
    background: #fff;
    color: #6f7f98;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.app-mode .notification-popover__body {
    display: grid;
    gap: 8px;
    padding: 10px 12px 12px;
    max-height: calc(min(62vh, 420px) - 64px);
    overflow: auto;
}

.app-mode .notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 11px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e7edf6;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.app-mode .notification-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.app-mode .notification-item__content {
    display: grid;
    gap: 4px;
}

.app-mode .notification-item__content strong,
.app-mode .notification-item__content span,
.app-mode .notification-item__content small {
    display: block;
}

.app-mode .notification-item__content strong {
    font-size: 0.8rem;
    color: #182946;
}

.app-mode .notification-item__content span {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #44546f;
}

.app-mode .notification-item__content small {
    font-size: 0.64rem;
    line-height: 1.4;
    color: #8090a8;
}

.app-mode .notification-item--open {
    border-color: #dfe9fb;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.app-mode .notification-item--open .notification-item__icon {
    background: rgba(15, 86, 214, 0.1);
    color: #0f56d6;
}

.app-mode .notification-item--overdue {
    border-color: #f4dddd;
    background: linear-gradient(180deg, #fff8f8 0%, #fff4f4 100%);
}

.app-mode .notification-item--overdue .notification-item__icon {
    background: rgba(239, 83, 80, 0.12);
    color: #ef5350;
}

.app-mode .notification-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 18px 12px;
    text-align: center;
}

.app-mode .notification-empty-state i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #18a85d;
    background: rgba(24, 168, 93, 0.1);
    font-size: 1.15rem;
}

.app-mode .notification-empty-state strong {
    color: #1a2a46;
    font-size: 0.86rem;
}

.app-mode .notification-empty-state span {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #7b8ba3;
}

.app-mode .screen-body {
    flex: 1 1 auto;
    min-height: calc(100dvh - 118px);
    padding: 18px 14px calc(116px + env(safe-area-inset-bottom));
    background: var(--app-surface);
    border-radius: 32px 32px 0 0;
    margin-top: -2px;
}

.app-mode .screen-stack,
.app-mode .grid,
.app-mode .grid-dashboard,
.app-mode .cards-list,
.app-mode .search-form,
.app-mode .form-grid,
.app-mode .kpi-list {
    display: grid;
    gap: 14px;
}

.app-mode .grid-dashboard,
.app-mode .form-grid--two {
    grid-template-columns: 1fr;
}

.app-mode .panel,
.app-mode .section-card {
    padding: 16px;
    background: var(--app-surface);
    border-radius: 22px;
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow);
}

.app-mode .section-title,
.app-mode .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.app-mode .section-title h2,
.app-mode .section-title h3,
.app-mode .section-header h2,
.app-mode .panel h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text);
}

.app-mode .muted,
.app-mode small {
    color: var(--app-muted);
}

.app-mode .dashboard-greeting {
    padding: 2px 2px 16px;
    position: relative;
    z-index: 1;
}

.app-mode .dashboard-greeting__content {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1f63e2 0%, #0f56d6 58%, #0a43ac 100%);
    box-shadow: 0 16px 28px rgba(15, 86, 214, 0.24);
}

.app-mode .dashboard-greeting__content::before,
.app-mode .dashboard-greeting__content::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.app-mode .dashboard-greeting__content::before {
    width: 120px;
    height: 120px;
    right: -26px;
    top: -34px;
    background: rgba(255, 255, 255, 0.1);
}

.app-mode .dashboard-greeting__content::after {
    width: 76px;
    height: 76px;
    left: -18px;
    bottom: -24px;
    background: rgba(255, 255, 255, 0.08);
}

.app-mode .dashboard-greeting__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #dfeaff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-mode .dashboard-greeting h2 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.app-mode .dashboard-greeting p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.app-mode .dashboard-greeting__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    position: relative;
    z-index: 1;
}

.app-mode.page-dashboard .screen-body {
    background: var(--app-surface);
    border-radius: 32px 32px 0 0;
    margin-top: -2px;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
    flex: 0 0 auto;
    min-height: auto;
}

.app-mode.page-dashboard .screen-stack {
    margin-top: 0;
}

.app-mode .metric-grid,
.app-mode .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-mode .stat-card,
.app-mode .metric-card {
    min-height: 112px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    box-shadow: none;
    display: grid;
    align-content: space-between;
    gap: 8px;
}

.app-mode .stat-card h3,
.app-mode .metric-card span {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--app-blue);
    font-weight: 600;
}

.app-mode .stat-card strong,
.app-mode .metric-card strong {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
    color: var(--app-text);
}

.app-mode .stat-card.is-danger strong,
.app-mode .report-box.is-danger strong {
    color: var(--app-red);
}

.app-mode .metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode .chart-wrap {
    display: grid;
    gap: 10px;
}

.app-mode .chart-bars {
    min-height: 145px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.app-mode .chart-bar {
    flex: 1;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.app-mode .chart-bar span {
    width: 100%;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #2979ff 0%, var(--app-blue) 100%);
}

.app-mode .chart-bar small {
    font-size: 0.72rem;
}

.app-mode .action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .action-box {
    min-height: 84px;
    padding: 12px 6px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: #fff;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
}

.app-mode .action-box i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode.page-dashboard .screen-stack.home-dashboard {
    display: grid;
    gap: 12px;
    align-content: start;
    align-items: start;
    grid-auto-rows: max-content;
}

.app-mode.page-dashboard .screen-stack.home-dashboard > * {
    grid-area: auto !important;
}

.app-mode.page-dashboard .home-summary-section,
.app-mode.page-dashboard .home-actions-section {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-mode.page-dashboard .home-actions-section {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.app-mode.page-dashboard .home-chart-section {
    padding: 16px 14px 16px;
    border-radius: 20px;
    border: 1px solid #edf1f7;
    box-shadow: 0 4px 12px rgba(24, 51, 92, 0.05);
    /* Não forçar height: deixa o empty state definir o espaço */
    height: auto;
    overflow: hidden;
}

.app-mode.page-dashboard .home-block-title {
    margin-bottom: 8px;
}

.app-mode.page-dashboard .home-block-title h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #15284a;
}

.app-mode.page-dashboard .home-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.app-mode.page-dashboard .home-metric-card {
    min-height: auto;
    padding: 10px 11px;
    border-radius: 17px;
    border: 1px solid #edf1f7;
    box-shadow: 0 3px 8px rgba(24, 51, 92, 0.04);
    gap: 0;
    background: #fff;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas:
        "label icon"
        "value icon"
        "meta meta";
    align-content: start;
    row-gap: 3px;
}

.app-mode.page-dashboard .home-metric-card__label {
    grid-area: label;
    display: block;
    max-width: 100%;
    font-size: 0.76rem;
    line-height: 1.22;
    color: #2163df;
    font-weight: 700;
    white-space: nowrap;
}

.app-mode.page-dashboard .home-metric-card strong {
    grid-area: value;
    font-size: 1.22rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #15284a;
    white-space: nowrap;
}

.app-mode.page-dashboard .home-metric-card .metric-icon {
    grid-area: icon;
    align-self: start;
    justify-self: end;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3ff;
    color: #0f56d6;
    font-size: 0.74rem;
}

.app-mode.page-dashboard .home-metric-card__foot {
    grid-area: meta;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #72829c;
    background: #f3f6fb;
}

.app-mode.page-dashboard .home-metric-card__foot--success {
    color: #31b36b;
    background: #eaf7f0;
}

.app-mode.page-dashboard .home-metric-card__foot--danger {
    color: #ef5350;
    background: #feeeee;
}

.app-mode.page-dashboard .home-metric-card__trend {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.app-mode.page-dashboard .home-metric-card__trend > span {
    font-size: 0.63rem;
    font-weight: 500;
    color: #8a95a7;
}

.app-mode.page-dashboard .home-metric-card__foot i {
    font-size: 0.64rem;
}

.app-mode.page-dashboard .home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.app-mode.page-dashboard .home-section-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #16284a;
}

.app-mode.page-dashboard .home-period-form {
    margin: 0;
}

.app-mode.page-dashboard .home-period-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 104px;
    padding: 0 14px;
    height: 36px;
    border-radius: 12px;
    background: #f5f7fc;
    border: 1px solid #edf1f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.app-mode.page-dashboard .home-period-select select {
    width: 100%;
    padding-right: 18px;
    border: 0;
    background: transparent;
    color: #435570;
    font-size: 0.74rem;
    font-weight: 700;
    appearance: none;
    outline: none;
}

.app-mode.page-dashboard .home-period-select i {
    position: absolute;
    right: 14px;
    color: #7f8da3;
    font-size: 0.76rem;
    pointer-events: none;
}

.app-mode.page-dashboard .home-chart {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    margin-top: 8px;
}

.app-mode.page-dashboard .home-chart__y-axis {
    min-height: 170px;
    display: grid;
    align-content: stretch;
}

.app-mode.page-dashboard .home-chart__y-axis span {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 0.64rem;
    font-weight: 600;
    color: #98a4b7;
}

.app-mode.page-dashboard .home-chart__plot {
    position: relative;
    min-height: 170px;
    padding-top: 22px;
}

.app-mode.page-dashboard .home-chart__grid {
    position: absolute;
    inset: 22px 0 16px 0;
    display: grid;
    align-content: stretch;
    z-index: 0;
}

.app-mode.page-dashboard .home-chart__grid span {
    border-top: 1px dashed #ebeff6;
}

.app-mode.page-dashboard .home-chart__grid span:last-child {
    border-top-style: solid;
}

.app-mode.page-dashboard .home-chart__bars {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 170px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(24px, 1fr);
    gap: 8px;
    align-items: end;
    padding-bottom: 16px;
}

.app-mode.page-dashboard .home-chart__bar-group {
    height: 100%;
    display: grid;
    grid-template-rows: 20px minmax(0, 1fr) auto;
    align-items: end;
    justify-items: center;
    gap: 4px;
}

.app-mode.page-dashboard .home-chart__value {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.66rem;
    font-weight: 700;
    color: #fff;
    background: #0f56d6;
    box-shadow: 0 4px 10px rgba(15, 86, 214, 0.2);
    position: relative;
    white-space: nowrap;
}

.app-mode.page-dashboard .home-chart__value::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 6px;
    height: 6px;
    background: #0f56d6;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 1px;
}

.app-mode.page-dashboard .home-chart__bar {
    width: 100%;
    min-height: 0;
    border-radius: 3px 3px 0 0;
    background: #0f56d6;
    box-shadow: none;
}

.app-mode.page-dashboard .home-chart__bar-group small {
    font-size: 0.62rem;
    color: #8b98ac;
}

.app-mode.page-dashboard .home-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 140px;
    max-height: 160px;
    text-align: center;
    padding: 16px;
}

.app-mode.page-dashboard .home-chart-empty__icon {
    font-size: 2.4rem;
    color: #c8d5ed;
    margin-bottom: 6px;
    line-height: 1;
}

.app-mode.page-dashboard .home-chart-empty strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #4a5878;
}

.app-mode.page-dashboard .home-chart-empty span {
    font-size: 0.80rem;
    color: #8b98b8;
    line-height: 1.5;
    max-width: 280px;
}

.app-mode.page-dashboard .home-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
    align-items: stretch;
}

.app-mode.page-dashboard .home-quick-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    min-height: 84px;
    border-radius: 20px;
    border: 1px solid #edf2f8;
    background: #fff;
    box-shadow: 0 3px 10px rgba(22, 43, 83, 0.045);
}

.app-mode.page-dashboard .home-quick-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c5ddd;
    background: #edf3ff;
    font-size: 0.95rem;
}

.app-mode.page-dashboard .home-quick-card__content {
    display: grid;
    gap: 4px;
}

.app-mode.page-dashboard .home-quick-card__content strong {
    font-size: 0.76rem;
    color: #0f56d6;
}

.app-mode.page-dashboard .home-quick-card__content small {
    color: #8190a8;
    font-size: 0.64rem;
}

.app-mode.page-dashboard .home-quick-card > .fa-chevron-right {
    color: #7f8ea5;
    font-size: 0.76rem;
}

.app-mode .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--app-line);
}

.app-mode .search-box input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--app-text);
}

.app-mode .search-box button {
    border: 0;
    background: transparent;
    color: var(--app-muted);
}

.app-mode .pill-row,
.app-mode .filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.app-mode .button,
.app-mode .pill,
.app-mode .filter-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid var(--app-line);
    background: #fff;
    color: var(--app-text);
    box-shadow: none;
    transform: none;
}

.app-mode .button-primary,
.app-mode .pill.is-active,
.app-mode .filter-row a.button-primary {
    border-color: var(--app-blue);
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
    color: #fff;
}

.app-mode .button-danger {
    border-color: #dc2626;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.app-mode .cta-button,
.app-mode .button.block {
    width: 100%;
    border-radius: 14px;
    padding: 14px 16px;
}

.app-mode .entity-list {
    display: grid;
}

.app-mode .entity-row,
.app-mode .list-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--app-line);
    background: transparent;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-radius: 0;
}

.app-mode a.list-card,
.app-mode a.entity-row__link {
    color: inherit;
    text-decoration: none;
}

.app-mode .entity-row--actionable {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.app-mode .list-card--actionable {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.app-mode .entity-row__link {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.app-mode .cards-list > :last-child,
.app-mode .entity-list > :last-child {
    border-bottom: 0;
}

.app-mode .avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    overflow: hidden;
}

.app-mode .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-mode .avatar-circle--profile {
    width: 56px;
    height: 56px;
}

.app-mode .entity-main,
.app-mode .list-card__main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.app-mode .entity-main strong,
.app-mode .list-card__main strong {
    font-size: 0.96rem;
}

.app-mode .entity-main small,
.app-mode .list-card__main small {
    font-size: 0.79rem;
}

.app-mode .entity-side,
.app-mode .list-card__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.app-mode .entity-side strong,
.app-mode .list-card__meta strong {
    font-size: 0.96rem;
}

.app-mode .entity-actions,
.app-mode .list-card__actions,
.app-mode .profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-mode .profile-actions {
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.app-mode .list-card__actions {
    align-self: center;
}

.app-mode .inline-form {
    margin: 0;
}

.app-mode .action-icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    color: var(--app-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.app-mode .action-icon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(31, 46, 79, 0.1);
}

.app-mode .action-icon-button--danger {
    color: var(--app-red);
    background: #fff5f5;
    border-color: #ffd8d6;
}

.app-mode .charge-reminder-button {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #dce4f1;
    background: #fff;
    color: var(--app-blue-dark);
    box-shadow: none;
    font-size: 0.76rem;
    line-height: 1.2;
    text-align: center;
}

.app-mode .charge-reminder-button i {
    color: var(--app-blue);
}

.app-mode .charge-confirm-button {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #cfeee0;
    background: linear-gradient(180deg, #f5fffa 0%, #ebfaf2 100%);
    color: #17905f;
    box-shadow: none;
    font-size: 0.76rem;
    line-height: 1.2;
    text-align: center;
}

.app-mode .charge-confirm-button i {
    color: #17905f;
}

.app-mode .status-tag,
.app-mode .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.app-mode .charge-list {
    gap: 0;
}

.app-mode .search-form + .charge-list {
    margin-top: 10px;
}

.app-mode .charge-list-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px 16px;
    border: 1px solid #e8edf6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(27, 41, 68, 0.07);
}

.app-mode .charge-list-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    order: 1;
}

.app-mode .charge-list-card__identity {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.app-mode .charge-list .charge-list-card + .charge-list-card {
    margin-top: 12px;
}

.app-mode .charge-list > :last-child {
    border-bottom: 1px solid #e8edf6;
}

.app-mode .charge-list-card .avatar-circle {
    width: 56px;
    height: 56px;
}

.app-mode .charge-list-card__main,
.app-mode .charge-list-card__side {
    display: grid;
    gap: 4px;
}

.app-mode .charge-list-card__main strong {
    font-size: 1.06rem;
    line-height: 1.1;
}

.app-mode .charge-list-card__main small,
.app-mode .charge-list-card__side small {
    font-size: 0.8rem;
    color: var(--app-muted);
    line-height: 1.22;
}

.app-mode .charge-list-card__installment,
.app-mode .charge-list-card__date {
    font-size: 0.84rem;
}

.app-mode .charge-list-card__installment {
    color: #7f91ad;
    font-weight: 600;
}

.app-mode .charge-list-card__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.app-mode .charge-list-card__date i {
    color: #7f91ad;
    font-size: 0.9rem;
}

.app-mode .charge-list-card__side {
    justify-items: end;
    text-align: right;
    align-content: start;
    min-width: 104px;
}

.app-mode .charge-list-card__side strong {
    font-size: 1.14rem;
    line-height: 1.1;
}

.app-mode .charge-list-card__meta-row {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.app-mode .charge-list-card__actions {
    display: flex;
    gap: 10px;
}

.app-mode .charge-list-card__actions--desktop {
    display: none !important;
}

.app-mode .charge-list-card__actions--mobile {
    display: flex;
    width: 100%;
    order: 2;
    margin-top: 4px;
}

.app-mode .charge-list-card__actions--mobile > :only-child {
    width: 100%;
}

.app-mode .charge-reminder-button,
.app-mode .charge-confirm-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 8px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    gap: 5px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    letter-spacing: 0;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
}

.app-mode .charge-reminder-button span,
.app-mode .charge-confirm-button span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-mode .charge-reminder-button i,
.app-mode .charge-confirm-button i {
    font-size: 0.82rem;
    flex-shrink: 0;
}

.app-mode .charge-reminder-button {
    border-width: 2px;
    flex: 0 1 auto;
}

.app-mode .charge-confirm-button {
    border-width: 2px;
    flex: 1 1 0;
}

.app-mode .badge-open,
.app-mode .status-open {
    background: #fff4dc;
    color: #93691f;
}

.app-mode .badge-overdue,
.app-mode .status-overdue {
    background: #ffe9e8;
    color: #d14b46;
}

.app-mode .badge-paid,
.app-mode .status-paid {
    background: #e8f8ef;
    color: var(--app-green);
}

.app-mode .row-arrow {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.app-mode .profile-card {
    display: grid;
    gap: 16px;
}

.app-mode .profile-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.app-mode .profile-head .avatar-circle {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
}

.app-mode .profile-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.app-mode .profile-info span {
    font-size: 0.87rem;
    color: var(--app-text);
}

.app-mode .tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--app-line);
}

.app-mode .tabs a {
    position: relative;
    padding: 0 2px 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--app-muted);
}

.app-mode .tabs a.is-active {
    color: var(--app-blue);
}

.app-mode .tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--app-blue);
}

.app-mode .debt-card {
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
    display: grid;
    gap: 12px;
}

.app-mode .debt-card strong {
    font-size: 1.85rem;
}

.app-mode .debt-card small {
    color: rgba(255, 255, 255, 0.84);
}

.app-mode .debt-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.app-mode .debt-card__meta {
    text-align: right;
}

.app-mode .debt-card .button {
    background: #fff;
    color: var(--app-blue);
    border-color: rgba(255, 255, 255, 0.4);
}

.app-mode .info-list,
.app-mode .kpi-list {
    display: grid;
    gap: 14px;
}

.app-mode .info-line,
.app-mode .kpi-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
}

.app-mode .contact-row,
.app-mode .quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.app-mode .contact-btn,
.app-mode .quick-action {
    padding: 14px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--app-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.app-mode .contact-btn i,
.app-mode .quick-action i {
    color: var(--app-blue);
}

.app-mode .contact-btn--route {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
}

.app-mode .location-card {
    gap: 12px;
}

.app-mode .location-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.app-mode .location-card__status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--app-blue-dark);
    background: #eef5ff;
    border: 1px solid #dce9ff;
}

.app-mode .location-card__status i {
    color: var(--app-blue);
}

.app-mode .location-card__meta {
    display: grid;
    gap: 10px;
}

.app-mode .location-card__picker {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #dce8fb;
}

.app-mode .location-card__picker-head strong,
.app-mode .location-card__picker-head small {
    display: block;
}

.app-mode .location-card__picker-head small {
    margin-top: 4px;
    color: var(--app-muted);
    line-height: 1.45;
}

.app-mode .location-picker-map {
    width: 100%;
    min-height: 250px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d7e5fb;
    background: linear-gradient(180deg, #dceaff 0%, #edf4ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.app-mode .location-picker-map .leaflet-control-attribution {
    font-size: 0.62rem;
}

.app-mode .location-picker-map .leaflet-popup-content-wrapper,
.app-mode .location-picker-map .leaflet-popup-tip {
    box-shadow: 0 12px 30px rgba(23, 49, 98, 0.16);
}

.app-mode .client-map-card {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e2ecfa;
}

.app-mode .client-map-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.app-mode .client-map-card__head strong,
.app-mode .client-map-card__head small {
    display: block;
}

.app-mode .client-map-card__head strong {
    color: var(--app-text);
}

.app-mode .client-map-card__head small {
    margin-top: 4px;
    color: var(--app-muted);
}

.app-mode .client-map-frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #d7e5fb;
    background: #dfeafb;
    min-height: 220px;
}

.app-mode .client-map-frame iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.app-mode .client-map-card__meta {
    display: grid;
    gap: 8px;
}

.app-mode .contract-card {
    position: relative;
    padding: 0;
    border-radius: 20px;
    border: 1px solid #dfe8f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.app-mode .contract-card__link {
    display: grid;
    gap: 14px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.app-mode .contract-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.app-mode .contract-card__title {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.app-mode .contract-card__title strong,
.app-mode .contract-card__title small {
    display: block;
}

.app-mode .contract-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .contract-chip {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e7eef8;
}

.app-mode .contract-chip span {
    font-size: 0.72rem;
    color: var(--app-muted);
}

.app-mode .contract-chip strong {
    font-size: 0.92rem;
    color: var(--app-text);
}

.app-mode .contract-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-mode .contract-card__footer small {
    color: var(--app-muted);
}

.app-mode .contract-card__delete {
    position: absolute;
    top: 14px;
    right: 14px;
}

.app-mode.page-cobranca_detalhes .screen-stack {
    gap: 12px;
}

.app-mode.page-cobranca_detalhes .charge-overview-card {
    padding: 14px;
    gap: 0;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__head {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__identity {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__identity strong {
    font-size: 1rem;
    color: var(--app-text);
}

.app-mode.page-cobranca_detalhes .charge-overview-card__identity span {
    font-size: 0.8rem;
    color: var(--app-muted);
}

.app-mode.page-cobranca_detalhes .charge-overview-card__profile-link {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--app-primary);
    text-decoration: none;
    transition: opacity 150ms;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__profile-link:hover {
    opacity: 0.7;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__actions .inline-form {
    display: contents;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__actions .button {
    min-height: 44px;
    justify-content: center;
    width: 100%;
}

.app-mode.page-cobranca_detalhes .charge-overview-card__meta,
.app-mode.page-cobranca_detalhes .charge-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-mode.page-cobranca_detalhes .charge-overview-chip,
.app-mode.page-cobranca_detalhes .charge-stat-card {
    padding: 12px;
    border-radius: 16px;
    min-height: 0;
}

.app-mode.page-cobranca_detalhes .charge-overview-chip {
    background: #f8fbff;
    border: 1px solid #e3ebf7;
}

.app-mode.page-cobranca_detalhes .charge-status-card {
    padding: 12px;
}

.app-mode.page-cobranca_detalhes .charge-status-card__header {
    margin-bottom: 10px;
}

.app-mode.page-cobranca_detalhes .charge-status-card__header h3 {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.2;
    color: var(--app-text);
}

.app-mode.page-cobranca_detalhes .charge-overview-chip span,
.app-mode.page-cobranca_detalhes .charge-stat-card h3 {
    font-size: 0.75rem;
}

.app-mode.page-cobranca_detalhes .charge-overview-chip strong,
.app-mode.page-cobranca_detalhes .charge-stat-card strong {
    font-size: 0.98rem;
    line-height: 1.2;
}

.app-mode.page-cobranca_detalhes .charge-stat-card {
    min-height: 88px;
    padding: 12px 13px;
    border-radius: 19px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(225, 232, 243, 0.95);
    box-shadow: none;
}

.app-mode.page-cobranca_detalhes .charge-stat-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-mode.page-cobranca_detalhes .charge-stat-card__icon i {
    font-size: 1.3rem;
}

.app-mode.page-cobranca_detalhes .charge-stat-card__content {
    min-width: 0;
}

.app-mode.page-cobranca_detalhes .charge-stat-card h3 {
    margin: 0;
    font-size: 0.71rem;
    font-weight: 500;
    color: #68748f;
}

.app-mode.page-cobranca_detalhes .charge-stat-card strong {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--app-text);
}

.app-mode.page-cobranca_detalhes .charge-stat-card--paid {
    background: linear-gradient(135deg, #f8fff8 0%, #f4fcf6 100%);
    border-color: #e2f2e6;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--paid .charge-stat-card__icon {
    background: linear-gradient(135deg, rgba(44, 192, 101, 0.14) 0%, rgba(44, 192, 101, 0.08) 100%);
    color: #14a85b;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--open {
    background: linear-gradient(135deg, #f7f9ff 0%, #f2f6ff 100%);
    border-color: #e1e9fb;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--open .charge-stat-card__icon {
    background: linear-gradient(135deg, rgba(34, 102, 241, 0.13) 0%, rgba(34, 102, 241, 0.08) 100%);
    color: #1d65eb;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--overdue {
    background: linear-gradient(135deg, #fff6f7 0%, #fff3f5 100%);
    border-color: #f6dde2;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--overdue .charge-stat-card__icon {
    background: linear-gradient(135deg, rgba(255, 70, 70, 0.12) 0%, rgba(255, 70, 70, 0.08) 100%);
    color: #ff3535;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--overdue strong {
    color: #ff2c2c;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--pending {
    background: linear-gradient(135deg, #fffaf1 0%, #fff7ea 100%);
    border-color: #faebce;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--pending .charge-stat-card__icon {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.15) 0%, rgba(255, 179, 0, 0.08) 100%);
    color: #ffb100;
}

.app-mode.page-cobranca_detalhes .charge-stat-card--pending strong {
    color: #d08a00;
}

.app-mode .payment-warning-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #fff7ea;
    border: 1px solid #ffe0a6;
}

.app-mode .payment-warning-card i {
    color: #d99000;
    font-size: 1.05rem;
}

.app-mode .payment-warning-card strong,
.app-mode .payment-warning-card small {
    display: block;
}

.app-mode .payment-warning-card small {
    color: #8c6a21;
}

.app-mode .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: end;
    justify-content: center;
    padding: 18px 12px;
    background: rgba(18, 28, 46, 0.4);
    backdrop-filter: blur(6px);
}

.app-mode .modal-backdrop[hidden] {
    display: none !important;
}

.app-mode .modal-backdrop.is-visible {
    display: flex !important;
}

.app-mode .payment-modal {
    width: min(100%, 460px);
    max-height: min(88vh, 760px);
    overflow: auto;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #e3ebf7;
    box-shadow: 0 22px 48px rgba(20, 33, 58, 0.22);
}

.app-mode .payment-modal__header,
.app-mode .payment-modal__body,
.app-mode .payment-modal__footer {
    padding: 18px;
}

.app-mode .payment-modal__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf2f9;
}

.app-mode .payment-modal__header h3,
.app-mode .payment-modal__header p {
    margin: 0;
}

.app-mode .payment-modal__header p {
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.app-mode .payment-modal__body {
    display: grid;
    gap: 14px;
}

.app-mode .payment-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #edf2f9;
}

.app-mode .payment-modal__close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    background: #fff;
    color: var(--app-muted);
}

.app-mode .payment-choice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #dfe8f5;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.app-mode .payment-choice-card i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    font-size: 1.1rem;
}

.app-mode .payment-choice-card strong,
.app-mode .payment-choice-card small {
    display: block;
}

.app-mode .payment-choice-card small {
    margin-top: 5px;
    color: var(--app-muted);
    line-height: 1.5;
}

.app-mode .charge-help-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff9ee 0%, #ffffff 100%);
    border: 1px solid #ffe1ae;
}

.app-mode .charge-help-card strong {
    color: #9a6406;
    font-size: 0.94rem;
    line-height: 1.35;
}

.app-mode .charge-help-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--app-text);
    font-size: 0.88rem;
    line-height: 1.45;
}

.app-mode .charge-help-modal {
    width: min(100%, 520px);
}

.app-mode .client-help-modal {
    width: min(100%, 520px);
}

.app-mode .field {
    display: grid;
    gap: 8px;
}

.app-mode .field label {
    font-size: 0.88rem;
    font-weight: 600;
}

.app-mode .field-help {
    margin: -2px 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--app-muted);
}

.app-mode .field input,
.app-mode .field select,
.app-mode .field textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid #dde5ef;
    background: #fff;
    color: var(--app-text);
    outline: none;
}

.app-mode .field input[readonly],
.app-mode .field input.is-readonly {
    background: #f5f8fd;
    color: #6f7f96;
}

.app-mode .field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    accent-color: var(--app-blue);
    flex: 0 0 auto;
}

.app-mode .field textarea {
    min-height: 110px;
    resize: vertical;
}

.app-mode .section-card--nested {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.app-mode .client-personal-section {
    gap: 14px;
}

.app-mode .client-personal-section .section-title h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--app-blue-dark, #0c2d6b);
}

.app-mode .client-personal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-mode .field--panel {
    gap: 10px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e2eaf5;
    border-bottom: 1px solid #e2eaf5;
    background: #fff;
}

.app-mode .field--panel:last-child {
    border-bottom: 1px solid #e2eaf5;
}

.app-mode .field--panel label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--app-text, #1a2740);
}

.app-mode .field--panel input {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.95rem;
    color: var(--app-text);
}

.app-mode .field--panel input::placeholder {
    color: #a3b1c6;
}

.app-mode .field--panel input:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.app-mode.page-cliente_form .client-personal-grid {
    gap: 11px 10px;
}

.app-mode.page-cliente_form .field--full {
    grid-column: 1 / -1;
}

.app-mode.page-cliente_form .field--panel {
    min-height: auto;
    align-content: start;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 4px;
}

.app-mode.page-cliente_form .field--panel label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5b72;
    letter-spacing: -0.01em;
}

.app-mode.page-cliente_form .field--panel input {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #d6e0eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 1px 2px rgba(21, 39, 76, 0.03);
    font-size: 0.9rem;
    font-weight: 500;
    color: #4f6077;
}

.app-mode.page-cliente_form .field--panel input::placeholder {
    color: #93a2b5;
}

.app-mode.page-cliente_form .field--panel input:focus {
    border-color: #b9cade;
    box-shadow: 0 0 0 3px rgba(15, 86, 214, 0.08);
    background: #fff;
}

.app-mode .charge-summary-card strong {
    font-weight: 700;
}

.app-mode .charge-plan-card {
    display: grid;
    gap: 12px;
}

.app-mode .charge-plan-table {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #dfe7f4;
    background: #fff;
}

.app-mode .charge-plan-table__head,
.app-mode .charge-plan-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1.8fr) minmax(92px, 0.9fr) minmax(92px, 0.9fr);
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
}

.app-mode .charge-plan-table__head {
    background: #f3f7fd;
    border-bottom: 1px solid #e3ebf7;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6980a8;
}

.app-mode .charge-plan-table__body {
    display: grid;
}

.app-mode .charge-plan-row {
    font-size: 0.85rem;
    color: var(--app-text);
    border-bottom: 1px solid #edf2f9;
}

.app-mode .charge-plan-row:last-child {
    border-bottom: 0;
}

.app-mode .charge-plan-row strong {
    color: var(--app-blue-dark);
}

.app-mode .charge-plan-row span:last-child {
    color: #60728f;
}

.app-mode .charge-plan-empty {
    padding: 18px 14px;
    text-align: center;
    color: var(--app-muted);
    font-size: 0.84rem;
}

.app-mode.page-cobranca_form .screen-body {
    padding: 14px 12px calc(112px + env(safe-area-inset-bottom));
}

.app-mode.page-cobranca_form .charge-form-card {
    padding: 12px;
    border-radius: 20px;
}

.app-mode.page-cobranca_form form.form-grid {
    gap: 10px;
}

.app-mode.page-cobranca_form .form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.app-mode.page-cobranca_form .field {
    gap: 6px;
    align-content: start;
}

.app-mode.page-cobranca_form .field label {
    font-size: 0.8rem;
}

.app-mode.page-cobranca_form .field input,
.app-mode.page-cobranca_form .field select,
.app-mode.page-cobranca_form .field textarea {
    padding: 11px 12px;
    border-radius: 12px;
}

.app-mode.page-cobranca_form .field input,
.app-mode.page-cobranca_form .field select {
    min-height: 46px;
}

.app-mode.page-cobranca_form .field textarea {
    min-height: 88px;
}

.app-mode.page-cobranca_form .field-help {
    font-size: 0.7rem;
    line-height: 1.35;
}

.app-mode.page-cobranca_form .section-card--nested {
    padding: 12px;
    border-radius: 16px;
}

.app-mode.page-cobranca_form .section-title,
.app-mode.page-cobranca_form .section-header {
    margin-bottom: 10px;
}

.app-mode.page-cobranca_form .section-title h3 {
    font-size: 0.94rem;
}

.app-mode.page-cobranca_form .charge-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-mode.page-cobranca_form .charge-summary-grid .info-line {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e3ebf7;
}

.app-mode.page-cobranca_form .charge-summary-grid .info-line span {
    font-size: 0.72rem;
    color: #6f7f96;
}

.app-mode.page-cobranca_form .charge-summary-grid .info-line strong {
    font-size: 0.92rem;
    line-height: 1.25;
}

.app-mode.page-cobranca_form .checkbox-grid {
    gap: 8px;
}

.app-mode.page-cobranca_form .checkbox-option {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.83rem;
}

.app-mode.page-cobranca_form .charge-plan-card {
    gap: 8px;
}

.app-mode.page-cobranca_form .charge-plan-table {
    border-radius: 14px;
}

.app-mode.page-cobranca_form .charge-plan-table__body {
    max-height: 180px;
    overflow: auto;
}

.app-mode.page-cobranca_form .charge-plan-table__head,
.app-mode.page-cobranca_form .charge-plan-row {
    grid-template-columns: 42px minmax(0, 1.45fr) minmax(72px, 0.85fr) minmax(72px, 0.85fr);
    gap: 8px;
    padding: 9px 10px;
}

.app-mode.page-cobranca_form .charge-plan-table__head {
    font-size: 0.63rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.app-mode.page-cobranca_form .charge-plan-row {
    font-size: 0.74rem;
}

.app-mode.page-cobranca_form .charge-plan-empty {
    padding: 14px 10px;
    font-size: 0.76rem;
}

.app-mode.page-meu_banco .screen-stack {
    gap: 16px;
}

.app-mode.page-meu_banco .bank-panel-card {
    border-radius: 24px;
}

.app-mode.page-meu_banco .bank-balance-card--hero {
    position: relative;
    overflow: hidden;
    padding: 20px 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(145deg, #0f56d6 0%, #0c49ba 48%, #082f86 100%);
    box-shadow: 0 20px 38px rgba(15, 86, 214, 0.24);
}

.app-mode.page-meu_banco .bank-balance-card--hero::before,
.app-mode.page-meu_banco .bank-balance-card--hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.app-mode.page-meu_banco .bank-balance-card--hero::before {
    width: 160px;
    height: 160px;
    top: -56px;
    right: -44px;
    background: rgba(255, 255, 255, 0.1);
}

.app-mode.page-meu_banco .bank-balance-card--hero::after {
    width: 100px;
    height: 100px;
    left: -34px;
    bottom: -34px;
    background: rgba(255, 255, 255, 0.08);
}

.app-mode.page-meu_banco .bank-balance-card__head,
.app-mode.page-meu_banco .bank-balance-card__amount,
.app-mode.page-meu_banco .bank-balance-card__chips,
.app-mode.page-meu_banco .bank-balance-card__stats {
    position: relative;
    z-index: 1;
}

.app-mode.page-meu_banco .bank-balance-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.app-mode.page-meu_banco .bank-balance-card__eyebrow {
    display: inline-flex;
    margin-bottom: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.app-mode.page-meu_banco .bank-balance-card__head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}

.app-mode.page-meu_banco .bank-balance-card__brand {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-mode.page-meu_banco .bank-balance-card__amount {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.app-mode.page-meu_banco .bank-balance-card__amount small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
}

.app-mode.page-meu_banco .bank-balance-card__amount strong {
    font-size: 2.05rem;
    line-height: 1.02;
    color: #fff;
}

.app-mode.page-meu_banco .bank-balance-card__amount span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 280px;
}

.app-mode.page-meu_banco .bank-balance-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.app-mode.page-meu_banco .bank-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-mode.page-meu_banco .bank-balance-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-mode.page-meu_banco .bank-balance-card__stat {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    display: grid;
    gap: 6px;
}

.app-mode.page-meu_banco .bank-balance-card__stat span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    line-height: 1.35;
}

.app-mode.page-meu_banco .bank-balance-card__stat strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.2;
}

.app-mode.page-meu_banco .bank-metric-grid {
    gap: 10px;
}

.app-mode.page-meu_banco .bank-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(31, 46, 79, 0.08);
}

.app-mode.page-meu_banco .bank-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #0f56d6 0%, #5c9eff 100%);
}

.app-mode.page-meu_banco .bank-metric-card .metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
}

.app-mode.page-meu_banco .bank-statement-list {
    gap: 0;
}

.app-mode.page-meu_banco .bank-statement-row {
    padding: 15px 0;
}

.app-mode.page-meu_banco .bank-statement-row__icon {
    background: linear-gradient(180deg, #edf4ff 0%, #e4eeff 100%);
    border: 1px solid #dbe6fb;
}

.app-mode.page-meu_banco .bank-statement-row .entity-main strong {
    font-size: 0.94rem;
}

.app-mode.page-meu_banco .bank-statement-row .entity-main small {
    line-height: 1.45;
}

.app-mode .checkbox-grid {
    display: grid;
    gap: 12px;
}

.app-mode .checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--app-line);
    color: var(--app-text);
    font-weight: 600;
}

.app-mode .checkbox-option input[type="hidden"] {
    display: none;
}

.app-mode .field input[type="file"] {
    display: none;
}

.app-mode .upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.app-mode .upload-item {
    min-width: 0;
}

.app-mode .upload-box {
    min-height: 80px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px dashed #d9e2ef;
    background: #fff;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.app-mode .upload-box:hover,
.app-mode .upload-box:focus-visible {
    transform: translateY(-1px);
    border-color: #bed4fb;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.app-mode .upload-box.is-selected {
    border-style: solid;
    border-color: #bed4fb;
    background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
    box-shadow: 0 10px 18px rgba(24, 50, 95, 0.06);
}

.app-mode .upload-box i {
    font-size: 1.15rem;
    color: #bfd3fb;
}

.app-mode .upload-box strong {
    font-size: 0.68rem;
}

.app-mode .upload-box small {
    font-size: 0.6rem;
    line-height: 1.35;
    word-break: break-word;
}

.app-mode .file-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-mode .file-chip {
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--app-blue-soft);
    color: var(--app-blue);
    font-size: 0.74rem;
    font-weight: 600;
}

.app-mode .profile-photo-uploader {
    display: grid;
}

.app-mode .profile-photo-uploader__button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px dashed #d7e3f4;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.app-mode .profile-photo-uploader__preview {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode .profile-photo-uploader__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-mode .profile-photo-uploader__button strong,
.app-mode .profile-photo-uploader__button small {
    display: block;
}

.app-mode .profile-photo-uploader__button small {
    margin-top: 4px;
    color: var(--app-muted);
}

.app-mode .upload-action-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid #dce6f4;
    background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
    box-shadow: 0 10px 22px rgba(24, 50, 95, 0.06);
    color: inherit;
    text-decoration: none;
}

.app-mode .upload-action-button__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, var(--app-blue) 0%, var(--app-blue-dark) 100%);
}

.app-mode .upload-action-button__content {
    display: grid;
    gap: 4px;
}

.app-mode .upload-action-button__content strong,
.app-mode .upload-action-button__content small {
    display: block;
}

.app-mode .upload-action-button__content small {
    color: var(--app-muted);
}

.app-mode .document-grid {
    display: grid;
    gap: 10px;
}

.app-mode .document-card {
    justify-content: flex-start;
}

.app-mode .empty-state {
    padding: 20px 14px;
    text-align: center;
    color: var(--app-muted);
    font-size: 0.88rem;
}

.app-mode .report-grid {
    display: grid;
    gap: 14px;
}

.app-mode .report-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-mode .report-box {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: #fff;
}

.app-mode .report-box span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--app-blue);
    font-weight: 600;
}

.app-mode .report-box strong {
    font-size: 1.28rem;
}

.app-mode .report-distribution {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 12px;
}

.app-mode .donut-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
}

.app-mode .donut-chart::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: #fff;
}

.app-mode .legend-list {
    display: grid;
    gap: 10px;
}

.app-mode .legend-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.83rem;
}

.app-mode .legend-item span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-mode .line-chart {
    width: 100%;
    height: 170px;
}

.app-mode .line-chart svg {
    width: 100%;
    height: 100%;
}

.app-mode .line-chart path {
    fill: none;
    stroke: var(--app-blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-mode .line-chart circle {
    fill: var(--app-blue);
}

.app-mode .mobile-nav {
    display: grid;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(100%, 390px);
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 4px;
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border: 1px solid var(--app-line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 34px rgba(31, 46, 79, 0.16);
    z-index: 40;
}

.app-mode .mobile-nav a {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.app-mode .mobile-nav a i {
    font-size: 1.02rem;
}

.app-mode .mobile-nav a.is-active {
    color: var(--app-blue);
    font-weight: 700;
    position: relative;
}

.app-mode .mobile-nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: var(--app-blue);
}

.app-mode .mobile-nav__primary {
    width: 58px;
    height: 58px;
    margin: -24px auto 0;
    border-radius: 50%;
    background: var(--app-blue);
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 8px 20px rgba(15, 86, 214, 0.3);
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 180ms ease, box-shadow 180ms ease;
    font-size: 1.5rem;
}

.app-mode .mobile-nav__primary.is-open {
    transform: rotate(45deg);
    box-shadow: 0 16px 28px rgba(15, 86, 214, 0.32);
}

.app-mode .mobile-nav__fab-wrap {
    position: relative;
    display: grid;
    justify-items: center;
}

.app-mode .mobile-fab-menu {
    position: absolute;
    bottom: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.96);
    width: max-content;
    min-width: 176px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(219, 229, 243, 0.9);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 40px rgba(24, 42, 77, 0.16);
    display: grid;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 3;
}

.app-mode .mobile-fab-menu[hidden] {
    display: grid !important;
    opacity: 0;
    pointer-events: none;
}

.app-mode .mobile-fab-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.app-mode .mobile-fab-menu__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    color: var(--app-text);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #e6eef8;
    text-decoration: none;
    white-space: nowrap;
}

.app-mode .mobile-fab-menu__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-mode .mobile-fab-menu__label {
    font-size: 0.8rem;
    font-weight: 700;
}

.guest-mode .login-screen {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 34px 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(15, 86, 214, 0.18), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(44, 127, 255, 0.14), transparent 26%),
        linear-gradient(180deg, #eef3ff 0%, #f7f9fc 52%, #f4f7fb 100%);
}

.guest-mode .login-scene {
    width: min(1120px, 100%);
    position: relative;
}

.guest-mode .login-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    animation: loginFloat 10s ease-in-out infinite;
}

.guest-mode .login-orb--one {
    width: 190px;
    height: 190px;
    left: -70px;
    top: -40px;
    background: radial-gradient(circle, rgba(15, 86, 214, 0.22), rgba(15, 86, 214, 0));
}

.guest-mode .login-orb--two {
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(58, 136, 255, 0.18), rgba(58, 136, 255, 0));
    animation-duration: 12s;
}

.guest-mode .login-orb--three {
    width: 120px;
    height: 120px;
    right: 34%;
    top: 16%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
    animation-duration: 8s;
}

.guest-mode .login-card--advanced {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.guest-mode .login-hero--advanced {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 42px 46px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(165deg, #2868e6 0%, #1458d4 52%, #0a43ac 100%);
    box-shadow: 0 34px 70px rgba(21, 74, 179, 0.24);
    animation: fadeUp 600ms ease both;
}

.guest-mode .login-hero--advanced::before {
    content: "";
    position: absolute;
    inset: auto -40px -46px auto;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.guest-mode .login-hero--advanced h1 {
    max-width: 560px;
    margin: 16px 0 14px;
    font-size: clamp(3.1rem, 5vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.guest-mode .login-hero--advanced p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.03rem;
    line-height: 1.55;
}

.guest-mode .login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guest-mode .login-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.guest-mode .login-highlight {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.guest-mode .login-highlight strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.guest-mode .login-highlight span {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    line-height: 1.45;
}

.guest-mode .login-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 34px rgba(18, 60, 148, 0.18);
    animation: loginFloatCard 9s ease-in-out infinite;
}

.guest-mode .login-floating-card i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

.guest-mode .login-floating-card strong,
.guest-mode .login-floating-card span {
    display: block;
}

.guest-mode .login-floating-card strong {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.guest-mode .login-floating-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
}

.guest-mode .login-floating-card--one {
    right: 24px;
    top: 36px;
}

.guest-mode .login-floating-card--two {
    right: 36px;
    bottom: 26px;
    animation-duration: 11s;
}

.guest-mode .login-panel {
    min-height: 420px;
    align-content: center;
    gap: 18px;
    padding: 28px 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 60px rgba(28, 43, 77, 0.12);
    backdrop-filter: blur(22px);
    animation: fadeUp 760ms ease both;
}

.guest-mode .login-panel__header {
    display: grid;
    gap: 8px;
}

.guest-mode .login-panel__eyebrow {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-blue);
    font-weight: 700;
}

.guest-mode .login-panel__header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--app-text);
    letter-spacing: -0.03em;
}

.guest-mode .login-panel__header p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.guest-mode .input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid #d7e3f8;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.guest-mode .input-shell i {
    color: #7e9ad5;
    font-size: 1rem;
}

.guest-mode .input-shell input {
    height: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--app-text);
}

.guest-mode .input-shell:focus-within {
    transform: translateY(-1px);
    border-color: #a9c4ff;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(15, 86, 214, 0.08);
}

.guest-mode .login-submit {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
    padding: 18px 20px;
    font-size: 1rem;
    box-shadow: 0 18px 36px rgba(15, 86, 214, 0.22);
}

.guest-mode .login-submit i {
    transition: transform 180ms ease;
}

.guest-mode .login-submit:hover i {
    transform: translateX(4px);
}

@keyframes loginFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -14px, 0);
    }
}

@keyframes loginFloatCard {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@media (min-width: 992px) {
    .app-mode {
        padding: 0;
        background: linear-gradient(180deg, #eff4fb 0%, #f7f9fc 100%);
    }

    .app-mode .sidebar,
    .app-mode .topbar {
        display: flex;
    }

    .app-mode .app-shell {
        justify-content: stretch;
        align-items: stretch;
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        margin: 0;
    }

    .app-mode .main-content {
        display: flex;
        flex-direction: column;
        gap: 22px;
        flex: 1;
        min-width: 0;
        padding: 28px;
    }

    .app-mode .phone-shell {
        flex: 1;
        width: 100%;
        min-height: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .app-mode .app-bar,
    .app-mode .mobile-nav {
        display: none;
    }

    .app-mode .screen-body {
        min-height: 0;
        margin-top: 0;
        padding: 0 0 24px;
        background: transparent;
        border-radius: 0;
    }

    .app-mode .screen-stack {
        gap: 22px;
    }

    .app-mode .charge-list-card__meta-row {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .app-mode .charge-list-card__actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
        order: -1;
    }

    .app-mode .charge-list-card__actions--desktop {
        display: flex !important;
    }

    .app-mode .charge-list-card__actions--mobile {
        display: none;
    }

    .app-mode .charge-list-card {
        display: grid;
        gap: 10px;
        padding: 14px 8px;
        border: 0;
        border-bottom: 1px solid rgba(113, 146, 212, 0.2);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .app-mode .charge-list-card__top {
        gap: 14px;
        align-items: start;
    }

    .app-mode .charge-list-card__main,
    .app-mode .charge-list-card__side {
        gap: 5px;
    }

    .app-mode .charge-list-card__main small,
    .app-mode .charge-list-card__side small {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .app-mode .charge-reminder-button,
    .app-mode .charge-confirm-button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .app-mode .charge-list .charge-list-card + .charge-list-card {
        margin-top: 0;
    }

    .app-mode .charge-list > :last-child {
        border-bottom: 0;
    }

    .app-mode.page-dashboard .screen-stack {
        margin-top: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        align-items: start;
    }

    .app-mode .dashboard-greeting {
        padding: 0;
    }

    .app-mode .dashboard-greeting__content {
        padding: 24px 26px;
        border-radius: 28px;
        background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
        box-shadow: var(--app-shadow);
        border: 1px solid var(--app-line);
    }

    .app-mode .dashboard-greeting__content::before {
        background: rgba(15, 86, 214, 0.08);
    }

    .app-mode .dashboard-greeting__content::after {
        background: rgba(15, 86, 214, 0.05);
    }

    .app-mode .dashboard-greeting__badge {
        color: var(--app-blue);
        background: var(--app-blue-soft);
        border-color: #dbe7ff;
    }

    .app-mode .dashboard-greeting h2 {
        color: var(--app-text);
        font-size: 2.1rem;
    }

    .app-mode .dashboard-greeting p {
        color: var(--app-muted);
    }

    .app-mode .dashboard-greeting__icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        color: var(--app-blue);
        background: var(--app-blue-soft);
        border-color: #dce7fb;
        box-shadow: none;
    }

    .app-mode .section-card,
    .app-mode .panel {
        padding: 24px;
        border-radius: 28px;
    }

    .app-mode .metric-grid,
    .app-mode .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-mode.page-dashboard .home-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-mode .metric-card,
    .app-mode .stat-card {
        min-height: 150px;
    }

    .app-mode.page-dashboard .home-chart {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .app-mode.page-dashboard .home-chart__y-axis,
    .app-mode.page-dashboard .home-chart__plot,
    .app-mode.page-dashboard .home-chart__bars {
        min-height: 280px;
    }

    .app-mode.page-dashboard .home-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-mode .chart-bars {
        min-height: 220px;
    }

    .app-mode .chart-bar span {
        border-radius: 14px 14px 6px 6px;
    }

    .app-mode .action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-mode .action-box {
        min-height: 112px;
        font-size: 0.82rem;
    }

    .app-mode .entity-row,
    .app-mode .list-card {
        padding: 18px 0;
    }

    .app-mode .entity-main strong,
    .app-mode .list-card__main strong {
        font-size: 1.02rem;
    }

    .app-mode .entity-main small,
    .app-mode .list-card__main small {
        font-size: 0.83rem;
    }

    .app-mode .report-distribution {
        grid-template-columns: 160px 1fr;
    }

    .app-mode .donut-chart {
        width: 160px;
        height: 160px;
    }

    .app-mode .donut-chart::after {
        inset: 30px;
    }

    .app-mode.page-cliente_detalhes .screen-stack {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        grid-template-areas:
            "profile profile"
            "debt summary"
            "contact summary"
            "charges history";
        align-items: start;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(1) {
        grid-area: profile;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(2) {
        grid-area: debt;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(3) {
        grid-area: summary;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(4) {
        grid-area: contact;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(5) {
        grid-area: charges;
    }

    .app-mode.page-cliente_detalhes .screen-stack > :nth-child(6) {
        grid-area: history;
    }

    .app-mode.page-relatorios .screen-stack.report-page {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: none;
        align-items: start;
    }

    .app-mode.page-relatorios .screen-stack.report-page > * {
        grid-area: auto !important;
    }

    .app-mode.page-meu_banco .screen-stack {
        display: grid;
        grid-template-columns: 1.08fr 0.92fr;
        grid-template-areas:
            "hero hero"
            "metrics control"
            "statement statement";
        align-items: start;
    }

    .app-mode.page-meu_banco .screen-stack > :nth-child(1) {
        grid-area: hero;
    }

    .app-mode.page-meu_banco .screen-stack > :nth-child(2) {
        grid-area: metrics;
    }

    .app-mode.page-meu_banco .screen-stack > :nth-child(3) {
        grid-area: control;
    }

    .app-mode.page-meu_banco .screen-stack > :nth-child(4) {
        grid-area: statement;
    }

    .app-mode.page-meu_banco .bank-balance-card--hero {
        padding: 28px;
        border-radius: 30px;
    }

    .app-mode.page-meu_banco .bank-balance-card__amount strong {
        font-size: 2.7rem;
    }

    .app-mode.page-meu_banco .bank-balance-card__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-mode.page-meu_banco .bank-panel-card {
        height: 100%;
    }

    .app-mode.page-cobranca_form .section-card,
    .app-mode.page-cliente_form .section-card,
    .app-mode.page-pagamento_form .screen-stack {
        max-width: 900px;
    }

    .app-mode.page-cliente_form .client-personal-section {
        gap: 15px;
    }

    .app-mode.page-cliente_form .client-personal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-mode.page-cliente_form .client-personal-section .section-title h3 {
        font-size: 1rem;
    }

    .app-mode.page-pagamento_form .screen-stack {
        margin: 0 auto;
    }

    .app-mode.page-cobranca_form .section-card,
    .app-mode.page-cliente_form .section-card {
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .app-mode {
        padding: 0;
    }

    .app-mode .app-shell {
        min-height: 100dvh;
    }

    .app-mode .phone-shell {
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .app-mode .app-bar {
        position: sticky;
        top: 0;
        z-index: 9000;
        height: 80px;
        padding: 4px 16px 8px;
        pointer-events: auto;
    }

    .app-mode .app-bar__action {
        pointer-events: auto !important;
        position: relative;
        z-index: 9001;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    .app-mode .screen-body {
        position: relative;
        z-index: 1;
        min-height: calc(100dvh - 80px);
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .app-mode.page-dashboard .screen-body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .app-mode .notification-popover {
        top: calc(100% + 10px);
        right: -2px;
        bottom: auto;
        left: auto;
        width: min(320px, calc(100vw - 24px));
        max-height: min(60vh, 420px);
        border-radius: 20px;
        box-shadow: 0 18px 36px rgba(20, 33, 58, 0.18);
    }

    .app-mode .mobile-nav {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-left: 0;
        border-right: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -12px 28px rgba(31, 46, 79, 0.14);
    }
}

@media (max-width: 980px) {
    .guest-mode .login-card--advanced {
        grid-template-columns: 1fr;
    }

    .guest-mode .login-panel {
        min-height: auto;
    }

    .guest-mode .login-floating-card {
        position: static;
        margin-top: 16px;
    }

    .guest-mode .login-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .app-mode .upload-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-mode.page-cobranca_form .screen-body,
    .app-mode.page-cliente_form .screen-body {
        overflow: visible;
    }

    .app-mode .modal-backdrop.is-visible {
        display: flex !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 10050 !important;
        padding: 0;
        align-items: flex-end;
        background: rgba(14, 24, 42, 0.42);
        backdrop-filter: blur(4px);
    }

    .app-mode.page-cobranca_form .charge-help-modal {
        width: 100%;
        max-width: none;
        max-height: min(84dvh, 720px);
        margin: 0;
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -18px 42px rgba(20, 33, 58, 0.24);
    }

    .app-mode.page-cliente_form .client-help-modal {
        width: 100%;
        max-width: none;
        max-height: min(84dvh, 720px);
        margin: 0;
        border-radius: 26px 26px 0 0;
        box-shadow: 0 -18px 42px rgba(20, 33, 58, 0.24);
    }

    .app-mode.page-cobranca_form .charge-help-modal .payment-modal__header,
    .app-mode.page-cobranca_form .charge-help-modal .payment-modal__body,
    .app-mode.page-cobranca_form .charge-help-modal .payment-modal__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-mode.page-cliente_form .client-help-modal .payment-modal__header,
    .app-mode.page-cliente_form .client-help-modal .payment-modal__body,
    .app-mode.page-cliente_form .client-help-modal .payment-modal__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-mode.has-open-modal {
        overflow: hidden;
    }

    .app-mode .charge-plan-table__head,
    .app-mode .charge-plan-row {
        grid-template-columns: 48px minmax(0, 1.55fr) minmax(78px, 0.85fr) minmax(78px, 0.85fr);
        gap: 8px;
        padding: 11px 10px;
        font-size: 0.78rem;
    }

    .app-mode .charge-plan-table__head {
        font-size: 0.67rem;
    }

    .app-mode.page-cobranca_form .screen-body {
        padding: 12px 10px calc(112px + env(safe-area-inset-bottom));
    }

    .app-mode.page-cobranca_form .charge-form-card {
        padding: 10px;
        border-radius: 18px;
    }

    .app-mode.page-cobranca_form .form-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: start;
    }

    .app-mode.page-cobranca_form .field label {
        font-size: 0.78rem;
    }

    .app-mode.page-cobranca_form .field input,
    .app-mode.page-cobranca_form .field select,
    .app-mode.page-cobranca_form .field textarea {
        padding: 10px 11px;
    }

    .app-mode.page-cobranca_form .field input,
    .app-mode.page-cobranca_form .field select {
        min-height: 44px;
    }

    .app-mode.page-cobranca_form .field textarea {
        min-height: 82px;
    }

    .app-mode.page-cobranca_form .charge-summary-grid .info-line {
        padding: 9px;
    }

    .app-mode.page-cobranca_form .charge-summary-grid .info-line strong {
        font-size: 0.86rem;
    }

    .app-mode.page-cobranca_form .checkbox-option {
        font-size: 0.8rem;
    }

    .app-mode.page-cobranca_form .charge-plan-table__body {
        max-height: 156px;
    }

    .app-mode.page-cobranca_form .charge-plan-table__head,
    .app-mode.page-cobranca_form .charge-plan-row {
        grid-template-columns: 34px minmax(0, 1.25fr) minmax(62px, 0.8fr) minmax(62px, 0.8fr);
        gap: 6px;
        padding: 8px 8px;
    }

    .app-mode.page-cobranca_form .charge-plan-table__head {
        font-size: 0.58rem;
    }

    .app-mode.page-cobranca_form .charge-plan-row {
        font-size: 0.68rem;
    }

    .app-mode.page-meu_banco .bank-balance-card--hero {
        padding: 18px 16px;
    }

    .app-mode.page-meu_banco .bank-balance-card__amount strong {
        font-size: 1.78rem;
    }

    .app-mode.page-meu_banco .bank-balance-card__stats {
        gap: 8px;
    }

    .app-mode.page-meu_banco .bank-balance-card__stat {
        padding: 10px;
        border-radius: 16px;
    }

    .app-mode.page-meu_banco .bank-balance-card__stat strong {
        font-size: 0.92rem;
    }

    .app-mode.page-meu_banco .bank-chip {
        font-size: 0.7rem;
    }

    .guest-mode .login-screen {
        padding: 0;
    }

    .guest-mode .login-scene {
        width: 100%;
    }

    .guest-mode .login-card--advanced {
        gap: 0;
    }

    .guest-mode .login-hero--advanced,
    .guest-mode .login-panel {
        border-radius: 0;
        box-shadow: none;
    }

    .guest-mode .login-hero--advanced {
        min-height: auto;
        padding: 32px 22px 24px;
    }

    .guest-mode .login-hero--advanced h1 {
        font-size: 2.55rem;
    }

    .guest-mode .login-panel {
        padding: 22px;
        background: #f9fbff;
        border: 0;
    }

    .guest-mode .login-orb {
        display: none;
    }
}

.guest-mode > .alert {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100% - 28px));
    z-index: 30;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 44px rgba(20, 35, 68, 0.14);
}

body.guest-mode {
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(30, 70, 180, 0.18), transparent 65%),
        radial-gradient(circle at 15% 20%, rgba(50, 120, 255, 0.12), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(20, 60, 180, 0.10), transparent 28%),
        linear-gradient(175deg, #0e2460 0%, #0a1a4a 40%, #060e2e 100%);
}

.guest-mode .login-screen {
    min-height: 100svh;
    min-height: 100dvh;
    height: 100svh;
    height: 100dvh;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: none;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(30, 70, 180, 0.18), transparent 65%),
        radial-gradient(circle at 15% 20%, rgba(50, 120, 255, 0.12), transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(20, 60, 180, 0.10), transparent 28%),
        linear-gradient(175deg, #0e2460 0%, #0a1a4a 40%, #060e2e 100%);
}

.guest-mode .login-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1.5px 1.5px at 12% 30%, rgba(150, 200, 255, 0.18) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 65%, rgba(150, 200, 255, 0.12) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 75% 20%, rgba(150, 200, 255, 0.16) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 50%, rgba(150, 200, 255, 0.10) 50%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.guest-mode .login-frame {
    width: min(480px, 100%);
    margin: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.guest-mode .login-layout {
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.guest-mode .login-ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    animation: loginAmbientFloat 14s ease-in-out infinite;
}

.guest-mode .login-ambient--one {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -80px;
    background: radial-gradient(circle, rgba(40, 100, 240, 0.20), transparent);
}

.guest-mode .login-ambient--two {
    width: 160px;
    height: 160px;
    right: -40px;
    top: 30%;
    background: radial-gradient(circle, rgba(60, 130, 255, 0.14), transparent);
    animation-duration: 11s;
}

.guest-mode .login-ambient--three {
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(30, 80, 200, 0.16), transparent);
    animation-duration: 16s;
}

.guest-mode .login-brand-panel,
.guest-mode .login-access-panel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
}

.guest-mode .login-back-button {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-mode .login-back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(-2px);
}

.guest-mode .login-brand-panel {
    min-height: 620px;
    padding: 36px;
    display: grid;
    align-content: space-between;
    gap: 26px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(160deg, #2a6be8 0%, #1459d6 56%, #093f9e 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(12, 67, 169, 0.24);
    animation: fadeUp 620ms ease both;
}

.guest-mode .login-brand-panel::before,
.guest-mode .login-brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.guest-mode .login-brand-panel::before {
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.guest-mode .login-brand-panel::after {
    width: 180px;
    height: 180px;
    left: -64px;
    top: -72px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}

.guest-mode .login-brand-panel__badge,
.guest-mode .login-access-panel__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.guest-mode .login-brand-panel__badge {
    position: relative;
    z-index: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.guest-mode .login-brand-panel__copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    max-width: 470px;
}

.guest-mode .login-brand-panel__eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(232, 240, 255, 0.82);
    font-weight: 700;
}

.guest-mode .login-brand-panel__copy h1 {
    margin: 0;
    font-size: clamp(3rem, 4.7vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.guest-mode .login-brand-panel__copy p {
    margin: 0;
    max-width: 450px;
    font-size: 1.04rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.guest-mode .login-brand-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 500px;
}

.guest-mode .login-brand-card {
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: fadeUp 620ms ease both, loginCardDrift 10s ease-in-out 820ms infinite;
}

.guest-mode .login-brand-card--accent {
    background: rgba(255, 255, 255, 0.18);
    animation-delay: 140ms, 1s;
}

.guest-mode .login-brand-card span,
.guest-mode .login-brand-card small {
    display: block;
}

.guest-mode .login-brand-card span {
    margin-bottom: 10px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(233, 240, 255, 0.78);
    font-weight: 700;
}

.guest-mode .login-brand-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.guest-mode .login-brand-card small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.5;
}

.guest-mode .login-brand-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 500px;
}

.guest-mode .login-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.guest-mode .login-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    width: 220px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 36px rgba(18, 60, 148, 0.16);
    animation: fadeUp 720ms ease both, loginFloatCardModern 11s ease-in-out 1s infinite;
    z-index: 1;
}

.guest-mode .login-float-card i {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
}

.guest-mode .login-float-card strong,
.guest-mode .login-float-card span {
    display: block;
}

.guest-mode .login-float-card strong {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.guest-mode .login-float-card span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    line-height: 1.45;
}

.guest-mode .login-float-card--top {
    top: 28px;
    right: 28px;
}

.guest-mode .login-float-card--bottom {
    right: 34px;
    bottom: 28px;
    animation-delay: 180ms, 1.2s;
}

.guest-mode .login-access-panel {
    min-height: auto;
    padding: 36px 28px 32px;
    display: grid;
    align-content: start;
    gap: 24px;
    border-radius: 28px;
    background: rgba(12, 28, 72, 0.55);
    border: 1px solid rgba(100, 160, 255, 0.10);
    backdrop-filter: blur(28px) saturate(1.3);
    box-shadow:
        0 30px 70px rgba(4, 12, 40, 0.40),
        inset 0 1px 0 rgba(100, 160, 255, 0.08);
    animation: fadeUp 760ms ease both;
}

.guest-mode .login-access-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 0%, rgba(60, 120, 255, 0.06), transparent 50%),
        linear-gradient(180deg, rgba(60, 120, 255, 0.04), transparent 30%);
    pointer-events: none;
}

.guest-mode .login-access-panel__top,
.guest-mode .login-panel__header,
.guest-mode .login-access-highlights,
.guest-mode .login-form {
    position: relative;
    z-index: 1;
}

.guest-mode .login-access-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.guest-mode .login-access-panel__tag {
    color: rgba(160, 200, 255, 0.85);
    background: rgba(60, 120, 255, 0.10);
    border: 1px solid rgba(80, 140, 255, 0.12);
}

.guest-mode .login-access-panel__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(160, 195, 255, 0.65);
    font-size: 0.86rem;
    font-weight: 600;
}

.guest-mode .login-panel__header {
    display: grid;
    gap: 10px;
}

.guest-mode .login-panel__header h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.guest-mode .login-panel__header p {
    margin: 0;
    max-width: 400px;
    color: rgba(180, 210, 255, 0.60);
    font-size: 0.92rem;
    line-height: 1.6;
}

.guest-mode .login-access-highlights {
    display: grid;
    gap: 12px;
}

.guest-mode .login-access-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(20, 45, 100, 0.50);
    border: 1px solid rgba(80, 140, 255, 0.10);
    animation: fadeUp 560ms ease both;
}

.guest-mode .login-access-highlight:nth-child(2) {
    animation-delay: 120ms;
}

.guest-mode .login-access-highlight:nth-child(3) {
    animation-delay: 240ms;
}

.guest-mode .login-access-highlight i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(50, 100, 220, 0.25);
    color: rgba(130, 185, 255, 0.90);
    font-size: 0.95rem;
}

.guest-mode .login-access-highlight strong,
.guest-mode .login-access-highlight span {
    display: block;
}

.guest-mode .login-access-highlight strong {
    margin-bottom: 2px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}

.guest-mode .login-access-highlight span {
    font-size: 0.78rem;
    color: rgba(160, 195, 255, 0.55);
    line-height: 1.4;
}

.guest-mode .login-form {
    display: grid;
    gap: 18px;
    margin-top: 4px;
}

.guest-mode .login-form .field {
    gap: 9px;
}

.guest-mode .login-form .field label {
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.guest-mode .login-form .input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(80, 140, 255, 0.12);
    background: rgba(15, 30, 70, 0.60);
    box-shadow: inset 0 1px 0 rgba(80, 140, 255, 0.05);
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.guest-mode .login-form .input-shell i {
    color: rgba(130, 175, 255, 0.50);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.guest-mode .login-form .input-shell input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font-size: 0.92rem;
}

.guest-mode .login-form .input-shell input:-webkit-autofill,
.guest-mode .login-form .input-shell input:-webkit-autofill:hover,
.guest-mode .login-form .input-shell input:-webkit-autofill:focus,
.guest-mode .login-form .input-shell input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 30, 70, 0.96) inset;
    box-shadow: 0 0 0 1000px rgba(15, 30, 70, 0.96) inset;
    border-radius: 12px;
    transition: background-color 9999s ease-out 0s;
}

.guest-mode .login-form .input-shell input:-moz-autofill {
    box-shadow: 0 0 0 1000px rgba(15, 30, 70, 0.96) inset;
    color: #ffffff;
}

.guest-mode .login-form .input-shell input::placeholder {
    color: rgba(140, 180, 255, 0.35);
}

.guest-mode .login-form .input-shell:focus-within {
    border-color: rgba(80, 140, 255, 0.30);
    background: rgba(15, 30, 80, 0.70);
    box-shadow:
        0 0 0 4px rgba(50, 110, 255, 0.10),
        inset 0 1px 0 rgba(80, 140, 255, 0.08);
}

.guest-mode .login-submit {
    position: relative;
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    padding: 16px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a5ce8 0%, #2b6ff5 50%, #3d85ff 100%);
    border: 1px solid rgba(100, 160, 255, 0.20);
    color: #ffffff;
    box-shadow:
        0 12px 32px rgba(20, 70, 200, 0.35),
        0 0 0 1px rgba(80, 140, 255, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    cursor: pointer;
    text-decoration: none;
}

.guest-mode .login-submit > * {
    position: relative;
    z-index: 1;
}

.guest-mode .login-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 420ms ease;
}

.guest-mode .login-submit:hover::after {
    transform: translateX(120%);
}

.guest-mode .login-submit i {
    transition: transform 180ms ease;
}

.guest-mode .login-submit:hover i {
    transform: translateX(4px);
}

/* ---- Hero Brand (Logo) ---- */
.guest-mode .login-hero-brand {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.guest-mode .login-hero-brand__logo {
    display: block;
    width: 160px;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.guest-mode .login-hero-brand__subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(160, 195, 255, 0.55);
}

/* ---- Password toggle ---- */
.guest-mode .input-shell__eye {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(60, 110, 220, 0.12);
    color: rgba(140, 185, 255, 0.55);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.guest-mode .input-shell__eye:hover {
    background: rgba(60, 110, 220, 0.22);
    color: rgba(160, 205, 255, 0.80);
}

/* ---- Forgot password ---- */
.guest-mode .login-forgot-link {
    display: block;
    text-align: right;
    font-size: 0.80rem;
    font-weight: 600;
    color: rgba(100, 170, 255, 0.70);
    text-decoration: none;
    margin-top: -2px;
    transition: color 180ms ease;
}

.guest-mode .login-forgot-link:hover {
    color: rgba(130, 195, 255, 0.95);
}

/* ---- Divider ---- */
.guest-mode .login-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.guest-mode .login-divider::before,
.guest-mode .login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(80, 140, 255, 0.10);
}

.guest-mode .login-divider span {
    font-size: 0.80rem;
    font-weight: 600;
    color: rgba(140, 180, 255, 0.40);
    white-space: nowrap;
}

/* ---- Secondary button ---- */
.guest-mode .login-submit--secondary {
    background: rgba(15, 30, 70, 0.50);
    border: 1px solid rgba(80, 140, 255, 0.12);
    color: rgba(200, 220, 255, 0.85);
    box-shadow: 0 8px 24px rgba(4, 12, 40, 0.20);
}

.guest-mode .login-submit--secondary::after {
    display: none;
}

.guest-mode .login-submit--secondary:hover {
    background: rgba(20, 40, 90, 0.60);
    border-color: rgba(80, 140, 255, 0.20);
}

/* ---- Security footer ---- */
.guest-mode .login-security-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 4px;
}

.guest-mode .login-security-footer i {
    color: rgba(80, 160, 255, 0.55);
    font-size: 0.85rem;
}

.guest-mode .login-security-footer span {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(140, 180, 255, 0.40);
}

@keyframes loginAmbientFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -16px, 0);
    }
}

@keyframes loginCardDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes loginFloatCardModern {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@media (max-width: 1080px) {
    .guest-mode .login-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .guest-mode > .alert {
        top: 16px;
        width: min(640px, calc(100% - 20px));
    }

    .guest-mode .login-screen {
        padding: 20px 14px 24px;
    }

    .guest-mode .login-panel__header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 560px) {
    .guest-mode .login-screen {
        padding: 14px 10px 18px;
        align-items: start;
    }

    .guest-mode .login-access-panel {
        padding: 24px 18px 22px;
        border-radius: 22px;
        gap: 18px;
    }

    .guest-mode .login-access-panel--solo {
        padding: 24px 18px 22px;
        gap: 18px;
    }

    .guest-mode .login-hero-brand__logo {
        width: 110px;
    }

    .guest-mode .login-hero-brand__subtitle {
        font-size: 0.60rem;
    }

    .guest-mode .login-hero-brand {
        gap: 5px;
    }

    .guest-mode .login-panel__header {
        gap: 8px;
    }

    .guest-mode .login-panel__header h2 {
        font-size: 1.6rem;
    }

    .guest-mode .login-panel__header p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .guest-mode .login-access-highlights {
        gap: 8px;
    }

    .guest-mode .login-access-highlight {
        padding: 10px 12px;
        border-radius: 14px;
        gap: 10px;
    }

    .guest-mode .login-access-highlight i {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 0.85rem;
    }

    .guest-mode .login-access-highlight strong {
        font-size: 0.82rem;
    }

    .guest-mode .login-access-highlight span {
        font-size: 0.72rem;
    }

    .guest-mode .login-form {
        gap: 12px;
    }

    .guest-mode .login-form .field {
        gap: 6px;
    }

    .guest-mode .login-form .field label {
        font-size: 0.80rem;
    }

    .guest-mode .login-form .input-shell {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .guest-mode .login-form .input-shell input {
        height: 46px;
        font-size: 0.86rem;
    }

    .guest-mode .login-submit {
        min-height: 48px;
        padding: 14px 18px;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    .guest-mode .login-divider {
        gap: 12px;
    }

    .guest-mode .login-security-footer {
        padding-top: 2px;
    }

    .guest-mode .login-security-footer span {
        font-size: 0.70rem;
    }

    .guest-mode .login-access-note {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .guest-mode .login-access-note i {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .guest-mode .login-access-note strong {
        font-size: 0.82rem;
    }

    .guest-mode .login-access-note span {
        font-size: 0.72rem;
    }

    /* Esconde highlights no mobile pequeno para caber tudo na tela */
    .guest-mode .login-access-highlights {
        display: none;
    }

    /* Login panel mais compacto */
    .guest-mode .login-access-panel--solo {
        gap: 14px;
    }

    /* Logo menor */
    .guest-mode .login-hero-brand {
        gap: 4px;
    }
}

/* Telas muito pequenas */
@media (max-width: 420px) {
    .guest-mode .login-screen {
        padding: 8px 6px 12px;
    }

    .guest-mode .login-access-panel,
    .guest-mode .login-access-panel--solo {
        padding: 20px 14px 18px;
        border-radius: 20px;
        gap: 14px;
    }

    .guest-mode .login-hero-brand__logo {
        width: 90px;
    }

    .guest-mode .login-panel__header h2 {
        font-size: 1.45rem;
    }

    .guest-mode .login-panel__header p {
        font-size: 0.78rem;
    }

    .guest-mode .login-form .input-shell {
        min-height: 44px;
        padding: 0 12px;
    }

    .guest-mode .login-form .input-shell input {
        height: 42px;
    }

    .guest-mode .login-submit {
        min-height: 44px;
        padding: 12px 16px;
    }
}

/* Viewports com altura reduzida — login sem scroll */
@media (max-height: 760px) and (max-width: 560px) {
    .guest-mode .login-screen {
        align-items: flex-start;
        padding-top: 10px;
    }

    .guest-mode .login-panel__header p {
        display: none;
    }

    .guest-mode .login-access-panel,
    .guest-mode .login-access-panel--solo {
        gap: 10px;
    }

    /* Esconde o bloco de nota no registro em telas curtas */
    .guest-mode .login-access-note {
        display: none;
    }
}

/* Viewports muito curtos */
@media (max-height: 700px) and (max-width: 560px) {
    .guest-mode .login-access-panel,
    .guest-mode .login-access-panel--solo {
        gap: 8px;
    }

    .guest-mode .login-hero-brand__logo {
        width: 76px;
    }

    .guest-mode .login-hero-brand__subtitle {
        font-size: 0.54rem;
    }

    .guest-mode .login-panel__header {
        gap: 4px;
    }

    .guest-mode .login-panel__header h2 {
        font-size: 1.25rem;
    }

    .guest-mode .login-form .input-shell {
        min-height: 40px;
    }

    .guest-mode .login-form .input-shell input {
        height: 38px;
        font-size: 0.82rem;
    }

    .guest-mode .login-submit {
        min-height: 40px;
        font-size: 0.84rem;
    }

    .guest-mode .login-divider {
        gap: 8px;
    }

    .guest-mode .login-security-footer {
        display: none;
    }
}

/* ===========================
   RELATÃ“RIO â€” Filtros de perÃ­odo
   =========================== */
.report-filters-card { padding: 14px 16px 10px; }

.report-period-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.period-tab { padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; background: #f0f4ff; color: #4a5578; text-decoration: none; transition: background 0.18s, color 0.18s; white-space: nowrap; }
.period-tab:hover { background: #dce8ff; color: #0f56d6; }
.period-tab--active { background: #0f56d6; color: #fff; }

.report-period-range { font-size: 12px; color: #8a96b0; display: flex; align-items: center; gap: 6px; margin: 0; }

/* KPI grid */
.report-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.report-kpi { border-radius: 16px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 3px; border: 1.5px solid transparent; }
.report-kpi--received { background: #f0fdf4; border-color: #bbf7d0; }
.report-kpi--expected { background: #eff6ff; border-color: #bfdbfe; }
.report-kpi--open     { background: #fffbeb; border-color: #fde68a; }
.report-kpi--overdue  { background: #fef2f2; border-color: #fecaca; }
.report-kpi__label { font-size: 11px; font-weight: 600; color: #6b7280; display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 0.3px; }
.report-kpi--received .report-kpi__label { color: #16a34a; }
.report-kpi--expected .report-kpi__label { color: #1d4ed8; }
.report-kpi--open .report-kpi__label     { color: #d97706; }
.report-kpi--overdue .report-kpi__label  { color: #dc2626; }
.report-kpi__value { font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.1; margin-top: 2px; }
.report-kpi small { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* Barra de progresso */
.report-progress-wrap { margin-top: 4px; }
.report-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; color: #6b7280; font-weight: 600; }
.report-progress-header strong { color: #0f56d6; font-size: 13px; }
.report-progress-bar { height: 8px; border-radius: 100px; background: #e8edf7; overflow: hidden; }
.report-progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #0f56d6, #3b82f6); transition: width 0.6s ease; }

/* Stat rows */
.report-stat-rows { display: flex; flex-direction: column; gap: 0; }
.report-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; color: #374151; }
.report-stat-row:last-child { border-bottom: none; }
.report-stat-row strong { font-weight: 700; color: #0f172a; }
.report-stat-row--success strong { color: #16a34a; }
.report-stat-row--danger strong  { color: #dc2626; }

/* Rank */
.report-rank { background: linear-gradient(135deg, #0f56d6, #5a9fff); color: #fff; font-size: 12px; font-weight: 800; }

/* Outros */
.entity-row--static { pointer-events: none; }
.avatar-circle--success { background: linear-gradient(135deg, #16a34a, #4ade80); color: #fff; }
.text-success { color: #16a34a; }

/* Print / PDF */
@media print {
    .mobile-nav, .app-bar, .topbar, .sidebar, .report-filters-card { display: none !important; }
    body, .app-shell, .main-content, .phone-shell, .screen-body { display: block !important; width: 100% !important; max-width: 100% !important; background: #fff !important; box-shadow: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; }
    .screen-stack { display: block !important; padding: 20px !important; }
    .section-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #e2e8f0 !important; margin-bottom: 16px !important; }
    .report-kpi-grid { grid-template-columns: 1fr 1fr !important; }
    a { text-decoration: none !important; color: inherit !important; }
}

/* ===========================
   APP DRAWER â€” Menu lateral
   =========================== */
.app-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(10, 18, 40, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.app-drawer-backdrop.is-open {
    opacity: 1;
}

.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    z-index: 10200;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 0 24px 24px 0;
    box-shadow: 8px 0 40px rgba(15, 28, 70, 0.18);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.app-drawer.is-open {
    transform: translateX(0);
}

.app-mode .desktop-only-nav {
    display: none !important;
}

/* Header do drawer */
.app-drawer__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 18px 18px;
    background: linear-gradient(135deg, #0f56d6 0%, #1a6ef5 100%);
    flex-shrink: 0;
}

.app-drawer__user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.app-drawer__user-info {
    flex: 1;
    min-width: 0;
}

.app-drawer__user-info > strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-drawer__user-email {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-drawer__plan-meta {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.app-drawer__plan-meta--active {
    background: rgba(8, 173, 112, 0.18);
    border-color: rgba(167, 243, 208, 0.26);
}

.app-drawer__plan-meta--trial {
    background: rgba(255,255,255,0.14);
}

.app-drawer__plan-meta--expired {
    background: rgba(11, 29, 69, 0.24);
    border-color: rgba(255,255,255,0.14);
}

.app-drawer__plan-meta--admin {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.24);
}

.app-drawer__plan-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.app-drawer__plan-days {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.84);
    line-height: 1.3;
}

.app-drawer__close {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s;
}

.app-drawer__close:hover {
    background: rgba(255,255,255,0.28);
}

/* Nav items */
.app-drawer__nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.app-drawer__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.16s;
    border-left: 3px solid transparent;
}

.app-drawer__item:hover {
    background: #f0f4ff;
    color: #0f56d6;
}

.app-drawer__item--active {
    background: #eff6ff;
    color: #0f56d6;
    border-left-color: #0f56d6;
}

.app-drawer__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0f56d6;
    flex-shrink: 0;
    transition: background 0.16s;
}

.app-drawer__item--active .app-drawer__icon {
    background: #dbeafe;
}

.app-drawer__arrow {
    margin-left: auto;
    font-size: 11px;
    color: #c0cae0;
}

/* Footer / logout */
.app-drawer__footer {
    padding: 14px 12px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.app-drawer__logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #ef5350;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.16s;
}

.app-drawer__logout:hover {
    background: #fef2f2;
}

.app-drawer__logout i {
    font-size: 16px;
}

/* Garantir que o drawer fica acima de tudo no mobile */
.app-mode .app-drawer-backdrop,
.app-mode .app-drawer {
    position: fixed !important;
    z-index: 99999 !important;
}

.topbar-description {
    margin: 8px 0 0;
    color: #7d8aa3;
    font-size: 1rem;
    line-height: 1.55;
}

.topbar-user-caret {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a4bc;
    font-size: 0.8rem;
}

.sidebar-support {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-support__icon,
.sidebar-support__arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
}

.sidebar-support__content {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sidebar-support__content strong,
.sidebar-support__content small {
    display: block;
}

.sidebar-support__content small {
    color: rgba(255, 255, 255, 0.72);
}

.report-page {
    display: grid;
    gap: 18px;
}

.report-mobile-only {
    display: none;
}

.report-toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
}

.report-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-period-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #f2f5fb;
    color: #51627f;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.report-period-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(17, 89, 219, 0.08);
}

.report-period-tab.is-active {
    background: linear-gradient(135deg, #1159db 0%, #2f79f7 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(17, 89, 219, 0.2);
}

.report-range-chip {
    min-height: 44px;
    min-width: 268px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid #dfe7f3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #7a88a3;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.report-metric-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
}

.report-metric-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    box-shadow: 0 14px 24px rgba(17, 89, 219, 0.16);
}

.report-metric-card--received .report-metric-card__icon {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.report-metric-card--expected .report-metric-card__icon {
    background: linear-gradient(135deg, #1159db 0%, #2f79f7 100%);
}

.report-metric-card--open .report-metric-card__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ffb837 100%);
}

.report-metric-card--overdue .report-metric-card__icon {
    background: linear-gradient(135deg, #ef4444 0%, #ff6d6d 100%);
}

.report-metric-card__body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.report-metric-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.report-metric-card__label,
.report-metric-card__value,
.report-metric-card__bottom small {
    display: block;
}

.report-metric-card__label {
    color: #75839e;
    font-size: 0.92rem;
    font-weight: 700;
}

.report-metric-card__value {
    margin-top: 4px;
    color: #17315f;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.report-metric-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-metric-card__bottom small {
    color: #8b97ad;
    font-size: 0.83rem;
}

.report-delta-badge {
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.report-delta-badge--received {
    background: rgba(34, 197, 94, 0.12);
    color: #169c49;
}

.report-delta-badge--expected {
    background: rgba(17, 89, 219, 0.1);
    color: #1159db;
}

.report-delta-badge--open {
    background: rgba(245, 158, 11, 0.12);
    color: #d98900;
}

.report-delta-badge--overdue {
    background: rgba(239, 68, 68, 0.12);
    color: #e24343;
}

.report-progress-card {
    padding: 12px 16px;
}

.report-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #51627f;
    font-weight: 700;
}

.report-progress-head strong {
    color: #1159db;
}

.report-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e9f0fb;
    overflow: hidden;
}

.report-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1159db 0%, #2f79f7 100%);
}

.report-panels-grid,
.report-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.report-panel {
    padding: 18px;
}

.report-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.report-panel__head h3 {
    margin: 0;
    color: #17315f;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.report-bar-chart {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-top: 8px;
}

.report-bar-chart__y-axis {
    min-height: 280px;
    display: grid;
    align-content: stretch;
}

.report-bar-chart__y-axis span {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 0.74rem;
    font-weight: 600;
    color: #98a4b7;
}

.report-bar-chart__plot {
    position: relative;
    min-height: 280px;
    padding-top: 30px;
}

.report-bar-chart__grid {
    position: absolute;
    inset: 30px 0 18px 0;
    display: grid;
    align-content: stretch;
    z-index: 0;
}

.report-bar-chart__grid span {
    border-top: 1px dashed #ebeff6;
}

.report-bar-chart__grid span:last-child {
    border-top-style: solid;
}

.report-bar-chart__bars {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 280px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(28px, 1fr);
    gap: 12px;
    align-items: end;
    padding-bottom: 18px;
}

.report-bar-chart__bar-group {
    height: 100%;
    display: grid;
    grid-template-rows: 28px minmax(0, 1fr) auto;
    align-items: end;
    justify-items: center;
    gap: 6px;
}

.report-bar-chart__value {
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #0f56d6;
    box-shadow: 0 8px 18px rgba(15, 86, 214, 0.22);
    position: relative;
    white-space: nowrap;
}

.report-bar-chart__value::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background: #0f56d6;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 1px;
}

.report-bar-chart__bar {
    width: 100%;
    min-height: 0;
    border-radius: 4px 4px 0 0;
    background: #0f56d6;
    box-shadow: none;
}

.report-bar-chart__bar-group small {
    font-size: 0.72rem;
    color: #8b98ac;
}

.report-distribution-card {
    min-height: 260px;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.report-donut-chart {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.16), 0 16px 28px rgba(17, 89, 219, 0.08);
}

.report-donut-chart__hole {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(17, 89, 219, 0.08);
}

.report-distribution-table {
    display: grid;
}

.report-distribution-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px 132px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f8;
    color: #51627f;
}

.report-distribution-row strong {
    color: #17315f;
    text-align: right;
}

.report-distribution-row--total {
    border-bottom: 0;
    font-weight: 800;
}

.report-distribution-row__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.report-distribution-row__dot {
    font-size: 0.72rem;
}

.report-distribution-row__dot--received {
    color: #1159db;
}

.report-distribution-row__dot--open {
    color: #66a4ff;
}

.report-distribution-row__dot--overdue {
    color: #f0504f;
}

.report-simple-table,
.report-ranking-table {
    display: grid;
}

.report-simple-table__head,
.report-simple-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f8;
}

.report-simple-table__head {
    padding-top: 0;
    color: #7487ad;
    font-size: 0.85rem;
    font-weight: 700;
}

.report-simple-table__row span {
    color: #51627f;
}

.report-simple-table__row strong {
    color: #17315f;
    text-align: right;
}

.report-simple-table__row.is-success strong {
    color: #18a858;
}

.report-simple-table__row.is-danger strong {
    color: #e24343;
}

.report-ranking-table__head,
.report-ranking-table__row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 118px 140px;
    align-items: center;
    gap: 12px;
}

.report-ranking-table__head {
    padding: 0 0 12px;
    color: #7487ad;
    font-size: 0.84rem;
    font-weight: 700;
    border-bottom: 1px solid #edf2f8;
}

.report-ranking-table__row {
    padding: 14px 0;
    border-bottom: 1px solid #edf2f8;
    color: #17315f;
}

.report-ranking-table__row > strong {
    text-align: right;
}

.report-ranking-table__client {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.report-ranking-table__client strong,
.report-ranking-table__client small {
    display: block;
}

.report-ranking-table__client small {
    color: #8b97ad;
    font-size: 0.82rem;
}

.report-rank-badge {
    width: 52px;
    min-height: 52px;
    padding: 8px 6px 7px;
    border-radius: 12px;
    background: linear-gradient(180deg, #edf3ff 0%, #dfeaff 100%);
    color: #1159db;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    justify-items: center;
    font-weight: 800;
    gap: 3px;
    border: 1px solid #d8e5fb;
    box-shadow: 0 10px 18px rgba(17, 89, 219, 0.08);
}

.report-rank-badge__icon,
.report-rank-badge__text {
    display: block;
}

.report-rank-badge__icon {
    font-size: 0.9rem;
    line-height: 1;
}

.report-rank-badge__text {
    font-size: 0.8rem;
    line-height: 1;
}

.report-rank-badge--top-1 {
    background: linear-gradient(180deg, #fff3bf 0%, #ffd666 100%);
    border-color: #ffda73;
    color: #a36200;
    box-shadow: 0 12px 22px rgba(255, 196, 44, 0.18);
}

.report-rank-badge--top-2 {
    background: linear-gradient(180deg, #f4f8ff 0%, #dbe6f8 100%);
    border-color: #d5dfef;
    color: #627796;
}

.report-rank-badge--top-3 {
    background: linear-gradient(180deg, #f9e4d7 0%, #e6b899 100%);
    border-color: #e0bb9d;
    color: #955b32;
}

.report-panel__footer-link {
    margin-top: 18px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #d8e4f8;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
    color: #1159db;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.report-panel__footer-link span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.report-mobile-summary-card,
.report-mobile-panel {
    padding: 14px;
}

.report-mobile-filter-form {
    margin-bottom: 12px;
}

.report-mobile-select {
    position: relative;
    display: block;
}

.report-mobile-select select {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 14px;
    border-radius: 14px;
    border: 1px solid #dfe6f2;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    color: #4f5f7d;
    font-size: 0.98rem;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.report-mobile-select i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #8a97ad;
    font-size: 0.82rem;
    pointer-events: none;
}

.report-mobile-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.report-mobile-metric-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e6ecf7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 8px 18px rgba(19, 88, 214, 0.05);
}

.report-mobile-metric-card__label,
.report-mobile-metric-card__value {
    display: block;
}

.report-mobile-metric-card__label {
    color: #1f69e4;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
}

.report-mobile-metric-card__value {
    margin-top: 6px;
    color: #213e73;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.report-mobile-metric-card--overdue .report-mobile-metric-card__value {
    color: #ff5348;
}

.report-mobile-panel__head {
    margin-bottom: 12px;
}

.report-mobile-panel__head h3 {
    margin: 0;
    color: #2a3242;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.report-mobile-distribution {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.report-donut-chart--mobile {
    width: 88px;
    height: 88px;
    box-shadow: none;
}

.report-donut-chart--mobile .report-donut-chart__hole {
    inset: 18px;
    box-shadow: none;
}

.report-mobile-legend {
    display: grid;
    gap: 8px;
}

.report-mobile-legend__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7891;
    font-size: 0.84rem;
}

.report-mobile-legend__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.report-mobile-legend__row strong {
    color: #243d70;
    font-size: 0.86rem;
    font-weight: 800;
}

.report-mobile-legend__dot {
    font-size: 0.72rem;
}

.report-mobile-legend__dot--received {
    color: #1159db;
}

.report-mobile-legend__dot--open {
    color: #66a4ff;
}

.report-mobile-legend__dot--overdue {
    color: #f0504f;
}

.report-mobile-ranking {
    display: grid;
    gap: 10px;
}

.report-mobile-ranking__row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
        "rank client"
        "amount amount"
        "meta meta";
    gap: 6px 10px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f8;
}

.report-rank-badge--mobile {
    grid-area: rank;
    width: 40px;
    min-height: 40px;
    padding: 6px 4px 5px;
    border-radius: 12px;
}

.report-rank-badge--mobile .report-rank-badge__icon {
    font-size: 0.74rem;
}

.report-rank-badge--mobile .report-rank-badge__text {
    font-size: 0.7rem;
}

.report-mobile-ranking__client {
    grid-area: client;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.report-mobile-ranking__client strong,
.report-mobile-ranking__client small,
.report-mobile-ranking__meta small,
.report-mobile-ranking__meta strong,
.report-mobile-ranking__amount small,
.report-mobile-ranking__amount strong {
    display: block;
}

.report-mobile-ranking__client strong,
.report-mobile-ranking__meta strong,
.report-mobile-ranking__amount strong {
    color: #17315f;
}

.report-mobile-ranking__client small,
.report-mobile-ranking__meta small,
.report-mobile-ranking__amount small {
    color: #8b97ad;
    font-size: 0.78rem;
}

.report-mobile-ranking__meta {
    grid-area: meta;
}

.report-mobile-ranking__amount {
    grid-area: amount;
}

.report-mobile-ranking__meta,
.report-mobile-ranking__amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.report-panel__footer-link--mobile {
    margin-top: 14px;
}

.page-relatorios .report-panel--statement .report-panel__head {
    align-items: flex-start;
}

.page-relatorios .report-panel--statement .report-panel__head small {
    color: #8a97ad;
    font-size: 0.88rem;
}

.page-relatorios .report-statement-list {
    gap: 0;
}

.page-relatorios .report-statement-row {
    padding: 15px 0;
}

.page-relatorios .report-statement-row__icon {
    background: linear-gradient(180deg, #edf4ff 0%, #e4eeff 100%);
    border: 1px solid #dbe6fb;
}

.page-relatorios .report-statement-row .entity-main strong {
    font-size: 0.94rem;
}

.page-relatorios .report-statement-row .entity-main small {
    line-height: 1.45;
}

.report-bar-chart--mobile {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    margin-top: 0;
}

.report-bar-chart--mobile .report-bar-chart__y-axis {
    min-height: 170px;
}

.report-bar-chart--mobile .report-bar-chart__y-axis span {
    font-size: 0.64rem;
}

.report-bar-chart--mobile .report-bar-chart__plot {
    min-height: 170px;
    padding-top: 22px;
}

.report-bar-chart--mobile .report-bar-chart__grid {
    inset: 22px 0 16px 0;
}

.report-bar-chart--mobile .report-bar-chart__bars {
    min-height: 170px;
    grid-auto-columns: minmax(24px, 1fr);
    gap: 8px;
    padding-bottom: 16px;
}

.report-bar-chart--mobile .report-bar-chart__bar-group {
    grid-template-rows: 20px minmax(0, 1fr) auto;
    gap: 4px;
}

.report-bar-chart--mobile .report-bar-chart__value {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.66rem;
}

.report-bar-chart--mobile .report-bar-chart__value::after {
    bottom: -3px;
    width: 6px;
    height: 6px;
}

.report-bar-chart--mobile .report-bar-chart__bar {
    border-radius: 3px 3px 0 0;
}

.report-bar-chart--mobile .report-bar-chart__bar-group small {
    font-size: 0.62rem;
}

@media (min-width: 992px) {
    .page-relatorios .sidebar {
        width: 272px;
        padding: 20px 18px 26px;
        gap: 24px;
    }

    .page-relatorios .sidebar-nav a {
        min-height: 50px;
        border-radius: 18px;
    }

    .page-relatorios .sidebar-nav a.is-active {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.12) 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 22px rgba(7, 46, 130, 0.2);
        transform: none;
    }

    .page-relatorios .sidebar-logout {
        display: none;
    }

    .page-relatorios .main-content {
        padding: 18px 24px 28px;
    }

    .page-relatorios .topbar {
        align-items: flex-start;
    }

    .page-relatorios .topbar-page-action--icon {
        width: 50px;
        min-width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 18px 28px rgba(17, 89, 219, 0.2);
    }

    .page-relatorios .topbar-chip {
        min-height: 50px;
        padding: 0 18px;
        border-radius: 999px;
    }

    .page-relatorios .avatar-pill {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .page-relatorios .phone-shell {
        background: transparent;
    }

    .page-relatorios .screen-body {
        padding-top: 16px;
    }
}

@media (max-width: 991px) {
    .report-mobile-only {
        display: block;
    }

    .report-desktop-only {
        display: none !important;
    }
}

@media (max-width: 1180px) {
    .report-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-panels-grid,
    .report-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-relatorios .screen-body {
        padding: 12px 12px calc(112px + env(safe-area-inset-bottom));
    }

    .report-page {
        gap: 12px;
    }

    .report-panel,
    .report-toolbar-card,
    .report-progress-card {
        padding: 16px;
    }

    .report-toolbar-card {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .report-period-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .report-period-tabs::-webkit-scrollbar {
        display: none;
    }

    .report-period-tab {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 10px 15px;
        scroll-snap-align: start;
    }

    .report-range-chip {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .report-metrics-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .report-metric-card {
        padding: 16px;
    }

    .report-metric-card__value {
        font-size: 1.6rem;
    }

    .report-progress-head {
        font-size: 0.96rem;
    }

    .report-bar-chart {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .report-bar-chart__y-axis,
    .report-bar-chart__plot,
    .report-bar-chart__bars {
        min-height: 220px;
    }

    .report-distribution-card {
        grid-template-columns: 1fr;
        min-height: 0;
        justify-items: center;
        gap: 16px;
    }

    .report-distribution-table {
        width: 100%;
    }

    .report-distribution-row {
        grid-template-columns: minmax(0, 1fr) 70px 108px;
        gap: 8px;
        font-size: 0.88rem;
    }

    .report-simple-table__head,
    .report-ranking-table__head,
    .report-ranking-table__row {
        grid-template-columns: 60px minmax(0, 1fr) 84px 102px;
        font-size: 0.88rem;
    }

    .report-panel__footer-link {
        min-height: 48px;
        padding: 0 14px;
        font-size: 0.9rem;
    }

    .report-mobile-summary-card,
    .report-mobile-panel {
        padding: 12px;
        border-radius: 20px;
    }

    .report-mobile-select select {
        min-height: 44px;
        font-size: 0.94rem;
    }

    .report-mobile-metric-card__value {
        font-size: 0.94rem;
    }

    .report-mobile-ranking__row {
        padding: 11px 0;
    }

    .page-relatorios .report-statement-row {
        padding: 12px 0;
    }

    .report-mobile-distribution {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
    }

    .report-donut-chart--mobile {
        width: 86px;
        height: 86px;
    }

    .report-bar-chart--mobile .report-bar-chart__y-axis,
    .report-bar-chart--mobile .report-bar-chart__plot,
    .report-bar-chart--mobile .report-bar-chart__bars {
        min-height: 148px;
    }
}

@media (max-width: 560px) {
    .page-relatorios .screen-body {
        padding: 10px 10px calc(104px + env(safe-area-inset-bottom));
    }

    .report-page {
        gap: 12px;
    }

    .report-toolbar-card,
    .report-panel,
    .report-progress-card {
        padding: 14px;
    }

    .report-metric-card {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px;
        gap: 12px;
    }

    .report-metric-card__icon {
        width: 42px;
        height: 42px;
    }

    .report-metric-card__top,
    .report-metric-card__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-metric-card__value {
        font-size: 1.4rem;
    }

    .report-metric-card__bottom {
        gap: 4px;
    }

    .report-progress-head {
        margin-bottom: 8px;
        font-size: 0.92rem;
    }

    .report-progress-track {
        height: 7px;
    }

    .report-bar-chart {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
    }

    .report-bar-chart__y-axis span {
        font-size: 0.64rem;
    }

    .report-bar-chart__y-axis,
    .report-bar-chart__plot,
    .report-bar-chart__bars {
        min-height: 188px;
    }

    .report-bar-chart__plot {
        padding-top: 24px;
    }

    .report-bar-chart__grid {
        inset: 24px 0 16px 0;
    }

    .report-bar-chart__bars {
        gap: 8px;
        padding-bottom: 16px;
    }

    .report-bar-chart__bar-group {
        grid-template-rows: 24px minmax(0, 1fr) auto;
        gap: 4px;
    }

    .report-bar-chart__value {
        padding: 4px 7px;
        border-radius: 6px;
        font-size: 0.66rem;
    }

    .report-donut-chart {
        width: 136px;
        height: 136px;
    }

    .report-donut-chart__hole {
        inset: 26px;
    }

    .report-distribution-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
        align-items: start;
        padding: 10px 0;
    }

    .report-distribution-row strong:nth-of-type(1) {
        text-align: right;
    }

    .report-distribution-row strong:nth-of-type(2) {
        grid-column: 2;
        color: #7f8da6;
        font-size: 0.82rem;
    }

    .report-simple-table__head,
    .report-ranking-table__head {
        display: none;
    }

    .report-simple-table__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px 0;
    }

    .report-ranking-table {
        gap: 10px;
    }

    .report-ranking-table__row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        grid-template-areas:
            "rank client amount"
            "rank client payments";
        gap: 4px 10px;
        padding: 12px;
        border: 1px solid #e6edf8;
        border-radius: 16px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        box-shadow: 0 8px 18px rgba(17, 89, 219, 0.05);
    }

    .report-ranking-table__row > strong:nth-of-type(1) {
        grid-area: payments;
        justify-self: end;
        color: #7b88a1;
        font-size: 0.82rem;
    }

    .report-ranking-table__row > strong:nth-of-type(1)::before {
        content: "Pagamentos ";
        font-weight: 700;
    }

    .report-ranking-table__row > strong:nth-of-type(2) {
        grid-area: amount;
        justify-self: end;
        font-size: 1rem;
    }

    .report-rank-badge {
        grid-area: rank;
        width: 42px;
        min-height: 42px;
        padding: 6px 4px 5px;
        border-radius: 11px;
    }

    .report-ranking-table__client {
        grid-area: client;
    }

    .report-panel__footer-link {
        min-height: 46px;
        font-size: 0.86rem;
    }

    .report-mobile-summary-card,
    .report-mobile-panel {
        padding: 12px;
        border-radius: 18px;
    }

    .report-mobile-filter-form {
        margin-bottom: 10px;
    }

    .report-mobile-select select {
        min-height: 42px;
        padding: 0 40px 0 13px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .report-mobile-metrics-grid {
        gap: 10px;
    }

    .report-mobile-metric-card {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .report-mobile-metric-card__label {
        font-size: 0.72rem;
    }

    .report-mobile-metric-card__value {
        margin-top: 5px;
        font-size: 0.88rem;
    }

    .report-mobile-panel__head {
        margin-bottom: 10px;
    }

    .report-mobile-panel__head h3 {
        font-size: 0.9rem;
    }

    .report-mobile-ranking {
        gap: 8px;
    }

    .report-mobile-ranking__row {
        gap: 5px 8px;
    }

    .report-rank-badge--mobile {
        width: 34px;
        min-height: 34px;
        padding: 5px 3px 4px;
        border-radius: 11px;
    }

    .report-mobile-ranking__client strong,
    .report-mobile-ranking__meta strong,
    .report-mobile-ranking__amount strong {
        font-size: 0.95rem;
    }

    .page-relatorios .report-statement-row {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .page-relatorios .report-statement-row__icon {
        width: 38px;
        height: 38px;
    }

    .report-mobile-distribution {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
    }

    .report-donut-chart--mobile {
        width: 84px;
        height: 84px;
    }

    .report-donut-chart--mobile .report-donut-chart__hole {
        inset: 17px;
    }

    .report-mobile-legend {
        gap: 7px;
    }

    .report-mobile-legend__row {
        font-size: 0.8rem;
    }

    .report-mobile-legend__row strong {
        font-size: 0.82rem;
    }

    .report-bar-chart--mobile .report-bar-chart__y-axis,
    .report-bar-chart--mobile .report-bar-chart__plot,
    .report-bar-chart--mobile .report-bar-chart__bars {
        min-height: 138px;
    }
}

@media (max-width: 400px) {
    .report-period-tab {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 0.84rem;
    }

    .report-range-chip {
        justify-content: flex-start;
        padding: 10px 12px;
        min-height: 0;
        font-size: 0.88rem;
    }

    .report-metric-card__label {
        font-size: 0.84rem;
    }

    .report-metric-card__value {
        font-size: 1.28rem;
    }

    .report-delta-badge {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    .report-distribution-row__label {
        font-size: 0.86rem;
    }

    .report-ranking-table__row {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "rank client"
            "amount amount"
            "payments payments";
    }

    .report-ranking-table__row > strong:nth-of-type(1),
    .report-ranking-table__row > strong:nth-of-type(2) {
        justify-self: start;
    }

    .report-mobile-metric-card__label {
        font-size: 0.7rem;
    }

    .report-mobile-metric-card__value {
        font-size: 0.82rem;
    }

    .report-mobile-ranking__client small,
    .report-mobile-ranking__meta small,
    .report-mobile-ranking__amount small {
        font-size: 0.74rem;
    }

    .report-rank-badge__icon {
        font-size: 0.72rem;
    }

    .report-rank-badge__text {
        font-size: 0.66rem;
    }

    .page-relatorios .report-statement-row {
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-areas:
            "icon main"
            "icon side";
        gap: 8px 10px;
        align-items: start;
    }

    .page-relatorios .report-statement-row__icon {
        grid-area: icon;
        width: 36px;
        height: 36px;
    }

    .page-relatorios .report-statement-row .entity-main {
        grid-area: main;
    }

    .page-relatorios .report-statement-row .entity-side {
        grid-area: side;
        align-items: flex-start;
    }

    .page-relatorios .report-statement-row .entity-main strong {
        font-size: 0.88rem;
    }

    .page-relatorios .report-statement-row .entity-main small {
        font-size: 0.76rem;
    }

    .report-mobile-distribution {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
    }

    .report-donut-chart--mobile {
        width: 78px;
        height: 78px;
    }

    .report-donut-chart--mobile .report-donut-chart__hole {
        inset: 16px;
    }
}

@media print {
    .sidebar-support,
    .report-toolbar-card,
    .report-panel__footer-link {
        display: none !important;
    }

    .report-metrics-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .report-panels-grid,
    .report-bottom-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   ADMIN PANEL — Mobile-First Professional Redesign v2
   ============================================================ */

/* ---- Account Management Modal ---- */
/* Note: selectors without .app-mode because modal is moved to document.body via JS */
.admin-modal-overlay[hidden] {
    display: none !important;
}

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: adminFadeIn 200ms ease;
    cursor: pointer;
}

.admin-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 50px rgba(15, 30, 60, 0.18);
    animation: adminSlideUp 280ms ease;
    overflow: hidden;
}

.admin-modal__header {
    padding: 20px 18px 14px;
    border-bottom: 1px solid #edf2fa;
    position: relative;
    flex-shrink: 0;
}

.admin-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e8eef8;
    background: #f8faff;
    color: #5f7090;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms, color 150ms;
}

.admin-modal__close:hover {
    background: #edf2fa;
    color: #1a5ce8;
}

.admin-modal__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-right: 44px;
}

.admin-modal__identity > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-modal__identity strong {
    color: #0f1e3d;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-modal__identity span {
    color: #667892;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-modal__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-modal__tabs {
    display: flex;
    gap: 4px;
    padding: 8px 18px;
    border-bottom: 1px solid #edf2fa;
    background: #fbfcff;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-modal__tabs::-webkit-scrollbar { display: none; }

.admin-modal__tab {
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #6b7a9e;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 150ms, color 150ms;
}

.admin-modal__tab:hover {
    background: #edf4ff;
    color: #1a5ce8;
}

.admin-modal__tab.is-active {
    background: linear-gradient(135deg, #1a5ce8, #2b6ff5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 92, 232, 0.25);
}

.admin-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    scrollbar-width: thin;
}

.admin-modal__panel {
    display: none;
}

.admin-modal__panel.is-active {
    display: block;
}

@keyframes adminFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes adminSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
    .admin-modal-overlay {
        align-items: center;
    }

    .admin-modal {
        max-width: 600px;
        max-height: 85vh;
        border-radius: 24px;
        animation-name: adminScaleIn;
    }

    @keyframes adminScaleIn {
        from { transform: scale(0.95); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
}


/* ---- Filter Toggle (mobile) ---- */
.app-mode .admin-filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e4ecf8;
    color: #3d5278;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms, border-color 160ms;
}

.app-mode .admin-filter-toggle-btn:hover {
    background: #f0f5ff;
    border-color: #c0d0f0;
}

.app-mode .admin-filter-toggle-btn i {
    font-size: 0.76rem;
    transition: transform 250ms ease;
}

.app-mode .admin-filter-toggle-btn.is-open i {
    transform: rotate(180deg);
}

.app-mode .admin-filter-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms ease;
}

.app-mode .admin-filter-collapsible.is-open {
    grid-template-rows: 1fr;
}

.app-mode .admin-filter-collapsible__inner {
    overflow: hidden;
}

.app-mode .admin-filter-collapsible__inner .admin-accounts-filter-form {
    padding-top: 12px;
}


/* ---- Impersonation Banner ---- */
.app-mode .admin-impersonation-banner {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    position: relative;
    overflow: hidden;
}

.app-mode .admin-impersonation-banner::before {
    content: "";
    position: absolute;
    right: -16px;
    top: -16px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.10);
}

.app-mode .admin-impersonation-banner strong {
    color: #92400e;
    font-size: 0.92rem;
}

.app-mode .admin-impersonation-banner span {
    color: #b45309;
    font-size: 0.82rem;
    display: block;
    margin-top: 2px;
}

/* ---- Shared text colors ---- */
.app-mode .admin-profile-head strong,
.app-mode .admin-account-row__content strong,
.app-mode .admin-metric-card strong {
    color: var(--app-text);
}

.app-mode .admin-profile-head span,
.app-mode .admin-account-row__content span,
.app-mode .admin-account-row__content small,
.app-mode .admin-metric-card small {
    color: var(--app-muted);
}

/* ---- Tab Navigation ---- */
.app-mode .admin-tabs-card {
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(15, 50, 120, 0.08);
    border: 1px solid #e8eef8;
}

.app-mode .admin-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-mode .admin-tabs::-webkit-scrollbar {
    display: none;
}

.app-mode .admin-tabs .pill {
    white-space: nowrap;
    padding: 10px 8px;
    border-radius: 14px;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.01em;
    background: transparent;
    color: #6b7a9e;
    border: none;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.app-mode .admin-tabs .pill.is-active {
    background: linear-gradient(135deg, #1a5ce8 0%, #2b6ff5 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 92, 232, 0.30);
}

/* ---- Screen Layout ---- */
.app-mode .admin-panel-screen {
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow-x: hidden;
}

.app-mode .admin-dashboard-grid,
.app-mode .admin-account-grid {
    display: grid;
    gap: 14px;
    min-width: 0;
}

/* Inputs no admin sempre 100% */
.app-mode .admin-panel-screen input,
.app-mode .admin-panel-screen select,
.app-mode .admin-panel-screen textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* Info-lines com texto muito longo */
.app-mode .admin-panel-screen .info-line {
    overflow: hidden;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.app-mode .admin-panel-screen .info-line strong {
    word-break: break-all;
    font-size: 0.78rem;
    min-width: 0;
    text-align: right;
}

/* ---- Stats Grid ---- */
.app-mode .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* ---- Metric Cards ---- */
.app-mode .admin-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8eef8;
    box-shadow: 0 2px 10px rgba(20, 50, 120, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-mode .admin-metric-card::after {
    content: "";
    position: absolute;
    inset: auto -16px -22px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15, 86, 214, 0.07);
    pointer-events: none;
}

.app-mode .admin-metric-card__label {
    display: block;
    color: #7a8bb0;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.app-mode .admin-metric-card strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f1e3d;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.app-mode .admin-metric-card small {
    display: block;
    font-size: 0.74rem;
    color: #8a96b0;
    line-height: 1.4;
}

/* ---- Account Lists ---- */
.app-mode .admin-account-list {
    display: grid;
    gap: 10px;
}

.app-mode .admin-account-list--spaced {
    margin-top: 14px;
}

.app-mode .section-title--stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.app-mode .section-title--stacked p {
    margin: 6px 0 0;
    color: #7b8aa5;
    font-size: 0.82rem;
    line-height: 1.5;
}

.app-mode .admin-accounts-workspace,
.app-mode .admin-account-detail-stack,
.app-mode .admin-detail-grid,
.app-mode .admin-maintenance-stack {
    display: grid;
    gap: 14px;
}

.app-mode .admin-accounts-filter-form {
    display: grid;
    gap: 12px;
}

.app-mode .admin-accounts-filter-form__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .admin-account-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e4ecf8;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow: 0 6px 18px rgba(20, 50, 120, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.app-mode .admin-account-card:hover {
    border-color: #c9d8f2;
    box-shadow: 0 14px 32px rgba(20, 50, 120, 0.10);
    transform: translateY(-1px);
}

.app-mode .admin-account-card.is-selected {
    border-color: rgba(26, 92, 232, 0.28);
    box-shadow: 0 18px 34px rgba(26, 92, 232, 0.12);
}

.app-mode .admin-account-card__header,
.app-mode .admin-account-card__identity,
.app-mode .admin-account-card__title,
.app-mode .admin-account-card__meta,
.app-mode .admin-account-card__facts,
.app-mode .admin-account-card__timeline,
.app-mode .admin-account-card__buttons,
.app-mode .admin-account-hero__top,
.app-mode .admin-account-hero__meta,
.app-mode .admin-account-chip-list,
.app-mode .admin-account-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.app-mode .admin-account-card__header {
    justify-content: space-between;
    align-items: center;
}

.app-mode .admin-account-card__identity {
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.app-mode .admin-account-card__title-wrap {
    display: grid;
    gap: 5px;
    min-width: 0;
    flex: 1 1 auto;
}

.app-mode .admin-account-card__title-wrap span {
    color: #667892;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-mode .admin-account-card__title {
    align-items: center;
}

.app-mode .admin-account-card__title strong {
    color: #11203f;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
}

.app-mode .admin-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #42526b;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.app-mode .admin-account-card__meta span,
.app-mode .admin-account-chip,
.app-mode .admin-account-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.app-mode .admin-account-card__meta {
    color: #63748d;
    font-size: 0.76rem;
}

.app-mode .admin-account-card__meta i,
.app-mode .admin-account-chip i,
.app-mode .admin-account-hero__meta i {
    color: #1a5ce8;
    font-size: 0.76rem;
}

.app-mode .admin-account-card__facts span {
    padding: 7px 10px;
    border-radius: 12px;
    background: #f4f7fc;
    color: #4e607b;
    font-size: 0.74rem;
    font-weight: 700;
}

.app-mode .admin-account-card__summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(244, 247, 252, 0.95);
    border: 1px solid #e7eef8;
    color: #4a5e7a;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
}

.app-mode .admin-account-card__summary i {
    color: #1a5ce8;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.app-mode .admin-account-card__summary--warn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.app-mode .admin-account-card__summary--warn i {
    color: #b45309;
}

.app-mode .admin-account-card__summary--danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.14);
    color: #991b1b;
}

.app-mode .admin-account-card__summary--danger i {
    color: #dc2626;
}

.app-mode .admin-account-card__info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #667892;
    padding: 0 2px;
}

.admin-card-plan-tag {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.2;
}

.admin-card-plan-tag--active {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.admin-card-plan-tag--trial {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.admin-card-plan-tag--blocked {
    background: rgba(107, 114, 128, 0.08);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.18);
}

.admin-card-plan-tag--expired {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.app-mode .admin-account-card__actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
}

.app-mode .admin-account-card__actions-grid .admin-account-action-form {
    display: contents;
}

.app-mode .admin-account-card__actions-grid .button {
    min-height: 44px;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.80rem;
}

.app-mode .admin-account-card__actions-grid > :only-child {
    grid-column: 1 / -1;
}

.app-mode .admin-account-hero-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(26, 92, 232, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.app-mode .admin-account-hero {
    display: grid;
    gap: 16px;
}

.app-mode .admin-account-hero__content {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.app-mode .admin-account-hero__top {
    justify-content: space-between;
    align-items: flex-start;
}

.app-mode .admin-account-hero__top h3 {
    margin: 0;
    color: #0f1e3d;
    font-size: 1.22rem;
    line-height: 1.1;
}

.app-mode .admin-account-hero__top p {
    margin: 6px 0 0;
    color: #6f809a;
    font-size: 0.84rem;
}

.app-mode .admin-account-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.app-mode .admin-account-hero__meta {
    color: #50627d;
    font-size: 0.78rem;
}

.app-mode .admin-account-chip-list {
    gap: 8px;
}

.app-mode .admin-account-chip {
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(244, 247, 252, 0.96);
    border: 1px solid #e8eef8;
    color: #41526d;
    font-size: 0.75rem;
    font-weight: 700;
}

.app-mode .admin-account-hero__actions .button {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
}

.app-mode .admin-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .admin-insight-card {
    position: relative;
    padding: 14px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e7eef8;
    display: grid;
    gap: 5px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-mode .admin-insight-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(20, 50, 120, 0.07);
}

.app-mode .admin-insight-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.app-mode .admin-insight-card__icon--blue {
    background: rgba(26, 92, 232, 0.10);
    color: #1a5ce8;
}

.app-mode .admin-insight-card__icon--green {
    background: rgba(15, 166, 107, 0.10);
    color: #0d9060;
}

.app-mode .admin-insight-card__icon--amber {
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
}

.app-mode .admin-insight-card__icon--purple {
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.app-mode .admin-insight-card span {
    color: #7a8aa2;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.app-mode .admin-insight-card strong {
    color: #102140;
    font-size: 1rem;
    line-height: 1.2;
}

.app-mode .admin-insight-card small {
    color: #667892;
    font-size: 0.75rem;
    line-height: 1.45;
}

.app-mode .admin-info-list--spaced {
    margin-top: 16px;
}

.app-mode .admin-action-panel {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e8eef8;
    background: #fbfdff;
}

.app-mode .admin-danger-zone {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: rgba(254, 242, 242, 0.86);
}

.app-mode .admin-danger-zone strong {
    display: block;
    margin-bottom: 6px;
    color: #b42318;
    font-size: 0.88rem;
}

.app-mode .admin-danger-zone p,
.app-mode .admin-note-card {
    margin: 0;
    color: #7b4450;
    font-size: 0.78rem;
    line-height: 1.55;
}

.app-mode .admin-danger-zone .button,
.app-mode .admin-note-card {
    width: 100%;
}

.app-mode .admin-note-card {
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid #e7eef8;
    color: #5f7090;
}

/* ---- Account Rows ---- */
.app-mode .admin-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-mode .admin-account-row--panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid #e8eef8;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 50, 120, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.app-mode .admin-account-row--panel:hover {
    border-color: #c8d8f4;
    box-shadow: 0 4px 18px rgba(20, 50, 120, 0.08);
}

/* ---- Avatars ---- */
.app-mode .admin-account-row__avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(26, 92, 232, 0.14) 0%, rgba(26, 92, 232, 0.06) 100%);
    color: #1a5ce8;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.app-mode .admin-profile-head__avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(26, 92, 232, 0.14) 0%, rgba(26, 92, 232, 0.06) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a5ce8;
    font-weight: 800;
    font-size: 1.3rem;
}

.app-mode .admin-profile-head__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Content areas ---- */
.app-mode .admin-account-row__content {
    display: grid;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
}

.app-mode .admin-account-row__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.app-mode .admin-account-row__content strong {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-mode .admin-account-row__content span {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-mode .admin-account-row__content small {
    font-size: 0.72rem;
    line-height: 1.4;
}

.app-mode .admin-profile-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f4fb;
}

.app-mode .admin-profile-head div {
    display: grid;
    gap: 4px;
}

/* ---- Meta / Actions ---- */
.app-mode .admin-account-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.app-mode .admin-account-row__actions {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.app-mode .admin-account-row--panel .admin-account-row__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f4fb;
    padding-top: 12px;
    margin-top: 2px;
}

.app-mode .admin-account-row--panel .admin-account-row__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 0;
    align-items: stretch;
}

.app-mode .admin-account-row--panel .admin-account-row__actions > * {
    min-width: 0;
    width: 100%;
}

.app-mode .admin-account-row--panel .admin-account-row__actions > :only-child {
    grid-column: 1 / -1;
}

.app-mode .admin-account-action-form {
    display: flex;
    width: 100%;
}

.app-mode .admin-account-action-form .button {
    width: 100%;
}

.app-mode .admin-account-row--panel .admin-account-row__actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 0.80rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: 42px;
    border-radius: 12px;
}

/* ---- Registered Accounts ---- */
.app-mode .admin-account-row--account {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.app-mode .admin-account-row--account .admin-account-row__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.app-mode .admin-account-row--account .admin-account-row__content--account {
    gap: 6px;
}

.app-mode .admin-account-row--account .admin-account-row__content--account strong {
    font-size: 0.96rem;
}

.app-mode .admin-account-row--account .admin-account-row__email {
    color: #64748b;
}

.app-mode .admin-account-row--account .admin-account-row__facts {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #7c8ba1;
}

.app-mode .admin-account-row--account .admin-account-row__separator {
    color: #c4cfdf;
    font-size: 0.72rem;
    line-height: 1;
}

.app-mode .admin-account-row--account .admin-account-row__meta {
    grid-column: 1 / -1;
    display: block;
    border-top: 1px solid #f0f4fb;
    padding-top: 14px;
    margin-top: 0;
}

.app-mode .admin-account-row--account .admin-account-row__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-mode .admin-account-row--account .admin-account-row__actions .button {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 14px;
}

.app-mode .admin-account-row--account .admin-account-row__actions .button-secondary {
    background: #fff;
    border: 1px solid #d8e3f4;
    box-shadow: none;
}

.app-mode .admin-account-row--account .admin-account-row__actions .button-primary {
    box-shadow: 0 12px 24px rgba(20, 88, 212, 0.18);
}

.app-mode .admin-account-row--account .admin-account-row__actions .button-danger {
    border: 1px solid rgba(229, 73, 73, 0.14);
}

/* ---- Status Badges ---- */
.app-mode .admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.app-mode .admin-status-badge.is-active {
    background: rgba(15, 166, 107, 0.10);
    color: #0d9060;
    border: 1px solid rgba(15, 166, 107, 0.18);
}

.app-mode .admin-status-badge.is-trial {
    background: rgba(26, 92, 232, 0.10);
    color: #1a5ce8;
    border: 1px solid rgba(26, 92, 232, 0.16);
}

.app-mode .admin-status-badge.is-blocked {
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.app-mode .admin-status-badge.is-expired {
    background: rgba(239, 68, 68, 0.10);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.16);
}

/* ---- Inline Forms ---- */
.app-mode .admin-inline-form {
    display: grid;
    gap: 10px;
}

/* ---- Search Form ---- */
.app-mode .admin-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

.app-mode .admin-search-form .button {
    align-self: end;
}

/* ---- Checkbox Field ---- */
.app-mode .checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e8eef8;
    border-radius: 16px;
    color: var(--app-text);
    background: #f8faff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}

.app-mode .checkbox-field:hover {
    border-color: #c0d0f0;
    background: #f0f5ff;
}

.app-mode .checkbox-field input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1a5ce8;
    flex-shrink: 0;
}

.app-mode .checkbox-field span {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ---- Overview Card ---- */
.app-mode .admin-overview-card .section-title {
    margin-bottom: 14px;
}

/* ---- Desktop breakpoints ---- */
@media (min-width: 1024px) {
    .app-mode .admin-filter-toggle-btn {
        display: none;
    }

    .app-mode .admin-filter-collapsible {
        grid-template-rows: 1fr !important;
    }

    .app-mode .admin-filter-collapsible__inner {
        overflow: visible;
    }

    .app-mode .admin-filter-collapsible__inner .admin-accounts-filter-form {
        padding-top: 0;
    }

    .app-mode .admin-tabs-card {
        position: static;
        backdrop-filter: none;
    }

    .app-mode .admin-tabs {
        display: flex;
        gap: 8px;
        overflow: visible;
    }

    .app-mode .admin-tabs .pill {
        padding: 10px 18px;
        font-size: 0.84rem;
    }

    .app-mode .admin-impersonation-banner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .app-mode .admin-dashboard-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .app-mode .section-title--stacked {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .app-mode .section-title--stacked > div {
        max-width: 640px;
    }

    .app-mode .admin-accounts-workspace {
        grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.12fr);
        align-items: start;
    }

    .app-mode .admin-account-detail-stack {
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(26, 92, 232, 0.15) transparent;
    }

    .app-mode .admin-account-detail-stack::-webkit-scrollbar {
        width: 5px;
    }

    .app-mode .admin-account-detail-stack::-webkit-scrollbar-thumb {
        background: rgba(26, 92, 232, 0.15);
        border-radius: 8px;
    }

    .app-mode .admin-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .app-mode .admin-accounts-filter-form {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr)) auto;
        align-items: end;
    }

    .app-mode .admin-accounts-filter-form__actions {
        width: 220px;
    }

    .app-mode .admin-account-hero {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .app-mode .admin-account-card__buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-mode .admin-account-card__buttons--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-mode .admin-account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .app-mode .admin-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-mode .admin-account-row--panel {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .app-mode .admin-account-row--panel .admin-account-row__meta {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        align-items: flex-end;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .app-mode .admin-account-row--account {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
    }

    .app-mode .admin-account-row--account .admin-account-row__meta {
        grid-column: 2;
        width: min(100%, 284px);
    }

    .app-mode .admin-account-row--panel .admin-account-row__actions {
        width: min(100%, 360px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .app-mode .admin-account-row--account .admin-account-row__actions {
        width: min(100%, 284px);
    }

    .app-mode .admin-inline-form {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

/* ---- Small mobile ---- */
@media (max-width: 420px) {
    .app-mode .admin-tabs {
        grid-template-columns: repeat(4, minmax(60px, 1fr));
    }

    .app-mode .admin-tabs .pill {
        font-size: 0.68rem;
        padding: 9px 4px;
    }

    .app-mode .admin-metric-card {
        min-height: 106px;
        padding: 13px;
    }

    .app-mode .admin-metric-card strong {
        font-size: 1.45rem;
    }

    .app-mode .admin-insight-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-mode .admin-accounts-filter-form__actions,
    .app-mode .admin-account-card__buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-mode .admin-account-row--panel .admin-account-row__actions .button {
        font-size: 0.74rem;
        padding: 0 10px;
        min-height: 40px;
    }

    .app-mode .admin-account-row--account .admin-account-row__title {
        gap: 6px;
    }
}

.guest-mode .login-layout--compact {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}

.guest-mode .login-access-panel--solo {
    min-height: auto;
    padding: 36px 28px 32px;
    display: grid;
    gap: 24px;
}

.guest-mode .login-access-panel--solo .login-panel__header {
    gap: 12px;
}

.guest-mode .login-access-panel--solo .login-panel__header h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.guest-mode .login-access-panel--solo .login-panel__header p {
    max-width: 400px;
}

.guest-mode .login-access-panel--solo .login-form {
    gap: 16px;
    margin-top: 0;
}

.guest-mode .login-access-note {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(80, 140, 255, 0.10);
    background: rgba(20, 45, 100, 0.40);
}

.guest-mode .login-access-note i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(130, 185, 255, 0.90);
    background: rgba(50, 100, 220, 0.20);
    font-size: 1rem;
}

.guest-mode .login-access-note strong,
.guest-mode .login-access-note span {
    display: block;
}

.guest-mode .login-access-note strong {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 0.90rem;
}

.guest-mode .login-access-note span {
    color: rgba(160, 195, 255, 0.55);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 1023px) {
    .guest-mode .login-layout--compact {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .app-mode .app-bar__logo-badge {
        min-width: 72px;
        height: 26px;
        padding: 0 10px;
    }

    .app-mode .app-bar__logo {
        width: 52px;
    }

    .app-mode .app-bar__brand--with-title .app-bar__logo-badge {
        min-width: 64px;
        height: 22px;
        padding: 0 9px;
    }

    .app-mode .app-bar__brand--with-title .app-bar__logo {
        width: 42px;
    }

    .guest-mode .login-access-panel--solo {
        gap: 22px;
    }

    .guest-mode .login-access-panel--solo .login-panel__header h2 {
        font-size: 2.05rem;
    }
}

.site-loader {
    --site-loader-blue: #0a1f54;
    --site-loader-blue-deep: #060f30;
    --site-loader-glow: rgba(100, 160, 255, 0.38);
    --site-loader-accent: rgba(130, 195, 255, 0.55);
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition:
        opacity 620ms cubic-bezier(0.4, 0, 0, 1),
        visibility 620ms cubic-bezier(0.4, 0, 0, 1),
        transform 620ms cubic-bezier(0.4, 0, 0, 1),
        filter 620ms cubic-bezier(0.4, 0, 0, 1);
}

.site-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(60, 110, 220, 0.10), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(90, 155, 255, 0.14), transparent 35%),
        radial-gradient(circle at 78% 80%, rgba(40, 95, 220, 0.10), transparent 30%),
        linear-gradient(175deg, #0e2460 0%, var(--site-loader-blue) 40%, var(--site-loader-blue-deep) 100%);
}

/* Partículas flutuantes de fundo */
.site-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(170, 210, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 42% 68%, rgba(170, 210, 255, 0.25) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 72% 18%, rgba(170, 210, 255, 0.30) 50%, transparent 50%),
        radial-gradient(1px 1px at 88% 55%, rgba(170, 210, 255, 0.20) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 30% 85%, rgba(170, 210, 255, 0.28) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 40%, rgba(170, 210, 255, 0.22) 50%, transparent 50%);
    animation: siteLoaderParticles 4.5s ease-in-out infinite alternate;
    pointer-events: none;
}

.site-loader__backdrop,
.site-loader__aurora,
.site-loader__stage {
    position: relative;
    z-index: 1;
}

.site-loader__backdrop {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px) saturate(1.3);
}

.site-loader__aurora {
    position: absolute;
    border-radius: 999px;
    filter: blur(52px);
    opacity: 0.32;
    animation: siteLoaderAurora 8s ease-in-out infinite;
}

.site-loader__aurora--one {
    width: min(28vw, 280px);
    height: min(28vw, 280px);
    top: 10%;
    left: -4%;
    background: rgba(90, 155, 255, 0.28);
}

.site-loader__aurora--two {
    width: min(32vw, 340px);
    height: min(32vw, 340px);
    right: -6%;
    bottom: 6%;
    background: rgba(20, 80, 230, 0.20);
    animation-delay: -3s;
}

.site-loader__stage {
    width: min(72vw, 280px);
    display: grid;
    justify-items: center;
    gap: 28px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    animation: siteLoaderStageIn 900ms 120ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.site-loader__logo-shell {
    position: relative;
    width: min(44vw, 200px);
    aspect-ratio: 2.55 / 1;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.site-loader__logo {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.site-loader__logo--base {
    position: relative;
    z-index: 1;
    opacity: 0.10;
    animation: siteLoaderBasePulse 3s ease-in-out infinite;
}

.site-loader__logo-reveal {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0.22;
    animation: siteLoaderLogoReveal 1.8s 350ms cubic-bezier(0.14, 0.84, 0.22, 1) forwards;
}

.site-loader__logo--main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    animation: siteLoaderLogoOpacity 550ms 400ms linear forwards;
}

.site-loader__logo-sheen {
    position: absolute;
    inset: -10% -14%;
    z-index: 3;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 35%,
        rgba(255, 255, 255, 0.45) 49%,
        rgba(200, 230, 255, 0.22) 56%,
        rgba(255, 255, 255, 0) 72%
    );
    filter: blur(6px);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-140%) skewX(-16deg);
    animation: siteLoaderSheen 1.6s 550ms cubic-bezier(0.14, 0.84, 0.22, 1) forwards;
}

.site-loader__copy {
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    animation: siteLoaderCopyIn 650ms 700ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.site-loader__copy strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.03em;
}

.site-loader__copy span {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(180, 210, 255, 0.60);
    letter-spacing: 0.01em;
}

.site-loader__progress {
    position: relative;
    width: min(36vw, 140px);
    height: 3px;
    opacity: 0;
    animation: siteLoaderCopyIn 500ms 900ms cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.site-loader__progress-track,
.site-loader__progress-bar {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.site-loader__progress-track {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.site-loader__progress-bar {
    display: block;
    inset: 0 auto 0 0;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(80, 140, 255, 0) 0%, #5080ee 20%, #4da0ff 55%, #78d4ff 100%);
    box-shadow:
        0 0 14px var(--site-loader-glow),
        0 0 22px rgba(100, 165, 255, 0.18);
    animation: siteLoaderProgress 2.2s 950ms ease-in-out infinite;
}

html[data-loader-mode="returning"] .site-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.site-loader-is-exiting .site-loader {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.03);
    filter: blur(6px);
    pointer-events: none;
}

body.site-loader-is-exiting .site-loader__stage {
    opacity: 0;
    transform: translateY(-12px) scale(1.03);
    transition:
        opacity 420ms ease,
        transform 420ms ease;
}

body.site-loader-is-active {
    overflow: hidden;
}

@keyframes siteLoaderStageIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes siteLoaderAurora {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.28;
    }
    50% {
        transform: translate3d(14px, -16px, 0) scale(1.08);
        opacity: 0.38;
    }
}

@keyframes siteLoaderHalo {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.90);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes siteLoaderBasePulse {
    0%, 100% {
        opacity: 0.12;
        transform: scale(0.997);
    }
    50% {
        opacity: 0.24;
        transform: scale(1.008);
    }
}

@keyframes siteLoaderLogoReveal {
    0% {
        opacity: 0.14;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes siteLoaderLogoOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes siteLoaderSheen {
    0% {
        opacity: 0;
        transform: translateX(-140%) skewX(-16deg);
    }
    18% {
        opacity: 0.90;
    }
    100% {
        opacity: 0;
        transform: translateX(140%) skewX(-16deg);
    }
}

@keyframes siteLoaderCopyIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes siteLoaderParticles {
    0% {
        opacity: 0.4;
        transform: translateY(0);
    }
    100% {
        opacity: 0.7;
        transform: translateY(-6px);
    }
}

@keyframes siteLoaderProgress {
    0% {
        transform: translateX(-130%);
    }
    55% {
        transform: translateX(120%);
    }
    100% {
        transform: translateX(185%);
    }
}

@media (max-width: 640px) {
    .site-loader__stage {
        width: min(76vw, 260px);
        gap: 22px;
    }

    .site-loader__logo-shell {
        width: min(48vw, 170px);
    }

    .site-loader__progress {
        width: min(40vw, 130px);
    }

    .site-loader__copy strong {
        font-size: 0.76rem;
    }

    .site-loader__copy span {
        font-size: 0.67rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader,
    .site-loader__stage,
    .site-loader__aurora,
    .site-loader__logo--base,
    .site-loader__logo-reveal,
    .site-loader__logo--main,
    .site-loader__logo-sheen,
    .site-loader__progress-bar,
    .site-loader__copy {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* Remover espaço em branco abaixo do conteudo do dashboard no mobile */
@media (max-width: 560px) {
    .app-mode.page-dashboard .screen-body {
        min-height: auto !important;
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }

    .app-mode.page-dashboard .home-quick-grid {
        gap: 10px;
    }

    .app-mode.page-dashboard .home-quick-card {
        padding: 12px 10px;
        min-height: 80px;
    }

    .app-mode.page-dashboard .home-quick-card__content {
        gap: 2px;
    }

    .app-mode.page-dashboard .home-quick-card__content strong {
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .app-mode.page-dashboard .home-quick-card__content small {
        font-size: 0.62rem;
        line-height: 1.3;
    }
}

@media (max-width: 420px) {
    .app-mode .app-bar {
        height: 72px;
        padding: 4px 12px 6px;
        border-radius: 0 0 22px 22px;
    }

    .app-mode .app-bar__action,
    .app-mode .app-bar__action--placeholder {
        width: 36px;
        height: 36px;
        font-size: 0.98rem;
    }

    .app-mode .app-bar__logo {
        width: 50px;
    }

    .app-mode .screen-body {
        min-height: calc(100dvh - 72px);
    }

    .app-mode .mobile-nav {
        gap: 2px;
        padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
    }

    .app-mode .mobile-nav a {
        gap: 4px;
        font-size: 0.68rem;
    }

    .app-mode .mobile-nav a i {
        font-size: 0.95rem;
    }

    .app-mode .mobile-nav a.is-active::after {
        bottom: -8px;
        width: 20px;
    }

    .app-mode .mobile-nav__primary {
        width: 52px;
        height: 52px;
        margin: -18px auto 0;
        font-size: 1.35rem;
    }

    .app-mode.page-dashboard .screen-body {
        padding: 10px 10px calc(68px + env(safe-area-inset-bottom)) !important;
    }

    .app-mode.page-dashboard .home-metric-grid {
        gap: 6px;
    }

    .app-mode.page-dashboard .home-metric-card {
        padding: 9px;
        grid-template-columns: minmax(0, 1fr) 26px;
        row-gap: 2px;
    }

    .app-mode.page-dashboard .home-metric-card__label {
        font-size: 0.7rem;
        line-height: 1.15;
        white-space: normal;
    }

    .app-mode.page-dashboard .home-metric-card strong {
        font-size: clamp(1rem, 5vw, 1.1rem);
    }

    .app-mode.page-dashboard .home-metric-card .metric-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        font-size: 0.68rem;
    }

    .app-mode.page-dashboard .home-metric-card__foot {
        max-width: 100%;
        padding: 3px 7px;
        font-size: 0.64rem;
        line-height: 1.15;
        white-space: normal;
    }

    .app-mode.page-dashboard .home-metric-card__trend {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 3px;
    }

    .app-mode.page-dashboard .home-metric-card__trend > span {
        font-size: 0.58rem;
        line-height: 1.2;
    }

    .app-mode.page-dashboard .home-chart-section {
        padding: 14px 12px 10px;
    }

    .app-mode.page-dashboard .home-section-head {
        gap: 8px;
        margin-bottom: 4px;
    }

    .app-mode.page-dashboard .home-section-head h3 {
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .app-mode.page-dashboard .home-period-select {
        min-width: 94px;
        height: 32px;
        padding: 0 12px;
    }

    .app-mode.page-dashboard .home-period-select select {
        font-size: 0.69rem;
    }

    .app-mode.page-dashboard .home-period-select i {
        right: 12px;
        font-size: 0.7rem;
    }

    .app-mode.page-dashboard .home-chart {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 6px;
        margin-top: 6px;
    }

    .app-mode.page-dashboard .home-chart__y-axis,
    .app-mode.page-dashboard .home-chart__plot,
    .app-mode.page-dashboard .home-chart__bars {
        min-height: 132px;
    }

    .app-mode.page-dashboard .home-chart__y-axis span {
        font-size: 0.58rem;
    }

    .app-mode.page-dashboard .home-chart__plot {
        padding-top: 18px;
    }

    .app-mode.page-dashboard .home-chart__grid {
        inset: 18px 0 14px 0;
    }

    .app-mode.page-dashboard .home-chart__bars {
        grid-auto-columns: minmax(22px, 1fr);
        gap: 6px;
        padding-bottom: 14px;
    }

    .app-mode.page-dashboard .home-chart__bar-group {
        grid-template-rows: 18px minmax(0, 1fr) auto;
        gap: 3px;
    }

    .app-mode.page-dashboard .home-chart__value {
        padding: 3px 6px;
        font-size: 0.58rem;
        border-radius: 5px;
    }

    .app-mode.page-dashboard .home-chart__bar-group small {
        font-size: 0.56rem;
    }

    .app-mode.page-dashboard .home-quick-grid {
        gap: 8px;
    }

    .app-mode.page-dashboard .home-quick-card {
        min-height: 72px;
        padding: 10px 8px;
        gap: 8px;
        border-radius: 18px;
    }

    .app-mode.page-dashboard .home-quick-card__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.88rem;
    }

    .app-mode.page-dashboard .home-quick-card__content strong {
        font-size: 0.7rem;
        line-height: 1.18;
    }

    .app-mode.page-dashboard .home-quick-card__content small {
        font-size: 0.58rem;
        line-height: 1.25;
    }
}

@media (max-width: 360px) {
    .app-mode.page-dashboard .home-metric-card strong {
        font-size: 0.95rem;
    }

    .app-mode.page-dashboard .home-section-head {
        align-items: flex-start;
    }

    .app-mode.page-dashboard .home-section-head h3 {
        max-width: 150px;
    }

    .app-mode.page-dashboard .home-chart__y-axis,
    .app-mode.page-dashboard .home-chart__plot,
    .app-mode.page-dashboard .home-chart__bars {
        min-height: 122px;
    }

    .app-mode.page-dashboard .home-chart__bars {
        gap: 4px;
    }

    .app-mode.page-dashboard .home-quick-card {
        min-height: 70px;
    }
}

@media (min-height: 820px) and (max-width: 560px) {
    .app-mode.page-dashboard .screen-body {
        display: flex;
        flex-direction: column;
    }

    .app-mode.page-dashboard .screen-stack.home-dashboard {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        min-height: 100%;
        gap: 14px;
    }

    .app-mode.page-dashboard .home-chart-section {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 300px;
    }

    .app-mode.page-dashboard .home-chart {
        flex: 1 1 auto;
        min-height: 240px;
    }

    .app-mode.page-dashboard .home-chart__y-axis,
    .app-mode.page-dashboard .home-chart__plot,
    .app-mode.page-dashboard .home-chart__bars {
        min-height: 240px;
    }
}

@media (min-height: 920px) and (max-width: 560px) {
    .app-mode.page-dashboard .home-chart-section {
        min-height: 340px;
    }

    .app-mode.page-dashboard .home-chart,
    .app-mode.page-dashboard .home-chart__y-axis,
    .app-mode.page-dashboard .home-chart__plot,
    .app-mode.page-dashboard .home-chart__bars {
        min-height: 280px;
    }
}

@media (max-height: 760px) and (max-width: 420px) {
    .guest-mode .login-screen {
        padding: 4px 6px 8px;
    }

    .guest-mode .login-access-panel,
    .guest-mode .login-access-panel--solo {
        padding: 14px 12px 12px;
        border-radius: 18px;
        gap: 10px;
    }

    .guest-mode .login-hero-brand {
        gap: 4px;
    }

    .guest-mode .login-hero-brand__logo {
        width: 76px;
    }

    .guest-mode .login-hero-brand__subtitle {
        font-size: 0.52rem;
    }

    .guest-mode .login-panel__header {
        gap: 6px;
    }

    .guest-mode .login-panel__header h2 {
        font-size: 1.22rem;
    }

    .guest-mode .login-panel__header p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .guest-mode .login-access-highlights {
        gap: 6px;
    }

    .guest-mode .login-access-highlight {
        padding: 7px 9px;
        border-radius: 12px;
        gap: 8px;
    }

    .guest-mode .login-access-highlight i {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: 0.74rem;
    }

    .guest-mode .login-access-highlight strong {
        font-size: 0.74rem;
    }

    .guest-mode .login-access-highlight span {
        font-size: 0.64rem;
        line-height: 1.2;
    }

    .guest-mode .login-form {
        gap: 10px;
    }

    .guest-mode .login-form .field {
        gap: 4px;
    }

    .guest-mode .login-form .field label {
        font-size: 0.76rem;
    }

    .guest-mode .login-form .input-shell {
        min-height: 40px;
        padding: 0 10px;
        border-radius: 12px;
    }

    .guest-mode .login-form .input-shell input {
        height: 38px;
        font-size: 0.8rem;
    }

    .guest-mode .input-shell__eye {
        width: 32px;
        height: 32px;
    }

    .guest-mode .login-forgot-link {
        font-size: 0.72rem;
    }

    .guest-mode .login-submit {
        min-height: 40px;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 0.84rem;
        box-shadow: 0 12px 24px rgba(15, 86, 214, 0.18);
    }

    .guest-mode .login-security-footer {
        display: none;
    }
}

@media (max-height: 700px) and (max-width: 420px) {
    .guest-mode .login-panel__header p {
        display: none;
    }

    .guest-mode .login-access-highlight:last-child {
        display: none;
    }

    .guest-mode .login-divider {
        gap: 8px;
    }
}
