:root {
    --ancora-primary: #2563eb;
    --ancora-app-bg: #0b111c;
    --ancora-app-bg-soft: #111827;
    --ancora-app-text: #e5eefb;
    --ancora-app-muted: #9fb2cc;
    --ancora-sidebar-width: 280px;
    --ancora-sidebar-bg: #070b12;
    --ancora-sidebar-panel: #0e1521;
    --ancora-sidebar-border: #1f2d42;
    --ancora-sidebar-muted: #93a4bb;
}

html[data-theme="light"] {
    --ancora-app-bg: #f4f7fb;
    --ancora-app-bg-soft: #ffffff;
    --ancora-app-text: #07111f;
    --ancora-app-muted: #52637a;
    --ancora-sidebar-bg: #ffffff;
    --ancora-sidebar-panel: #eef4ff;
    --ancora-sidebar-border: #d8e4f2;
    --ancora-sidebar-muted: #4b5f7a;
}

html {
    background: var(--ancora-app-bg);
}

body {
    background: var(--ancora-app-bg);
    color: var(--ancora-app-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-icon-sprite {
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.sidebar {
    bottom: 0;
    height: 100vh;
    left: 0;
    width: var(--ancora-sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    z-index: 40;
}

.app-sidebar {
    background:
        radial-gradient(circle at 30% 0%, rgba(37, 99, 235, 0.22), transparent 30rem),
        var(--ancora-sidebar-bg);
    border-right: 1px solid var(--ancora-sidebar-border);
    color: #e5eefb;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 100vh;
    overflow: hidden;
    padding: 1.15rem;
}

.app-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 900;
    gap: 0.75rem;
    letter-spacing: 0;
    min-height: 3rem;
    text-decoration: none;
}

.app-brand:hover {
    color: #ffffff;
}

.app-brand-icon {
    display: inline-block;
    height: 1.65rem;
    position: relative;
    width: 2.15rem;
}

.app-brand-icon::after {
    border: 2px solid #60a5fa;
    border-left-color: transparent;
    border-radius: 999px;
    content: "";
    height: 2.05rem;
    left: 1.45rem;
    position: absolute;
    top: -0.2rem;
    width: 2.05rem;
}

.app-brand-icon span {
    background: #3b82f6;
    border-radius: 999px;
    display: block;
    left: 0;
    position: absolute;
}

.app-brand-icon span:nth-child(1) {
    height: 0.34rem;
    top: 0.16rem;
    width: 1.88rem;
}

.app-brand-icon span:nth-child(2) {
    height: 0.34rem;
    top: 0.78rem;
    width: 1.12rem;
}

.app-brand-icon span:nth-child(3) {
    height: 0.42rem;
    left: 1.34rem;
    top: 0.74rem;
    width: 0.42rem;
}

.app-nav-scroll {
    flex: 1;
    margin: 0 -0.15rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.app-nav-scroll::-webkit-scrollbar {
    width: 0.35rem;
}

.app-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.app-nav-list {
    display: grid;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-nav-section {
    color: #6f8199;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 1.05rem 0 0.45rem 0.85rem;
    text-transform: uppercase;
}

.app-nav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ancora-sidebar-muted);
    display: flex;
    gap: 0.75rem;
    min-height: 3.05rem;
    padding: 0.42rem 0.75rem;
    position: relative;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-nav-link:hover,
.app-nav-link:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.16);
    color: #ffffff;
    outline: none;
    transform: translateX(2px);
}

.app-nav-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.36), rgba(37, 99, 235, 0.12));
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.06), 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

.app-nav-link.active::before {
    background: #60a5fa;
    border-radius: 999px;
    content: "";
    height: 1.5rem;
    left: 0.18rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0.2rem;
}

.app-nav-icon {
    align-items: center;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    color: currentColor;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.15rem;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    width: 2.15rem;
}

.app-nav-link.active .app-nav-icon {
    background: #1d4ed8;
    border-color: rgba(147, 197, 253, 0.42);
    color: #ffffff;
}

.app-nav-icon svg,
.app-user-menu-item svg {
    fill: none;
    height: 1.15rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.15rem;
}

.app-nav-text {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 0;
}

.app-topbar {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    min-height: 2.75rem;
    position: relative;
    z-index: 20;
}

.app-sidebar-toggle,
.app-sidebar-overlay {
    display: none;
}

.app-sidebar-toggle {
    align-items: center;
    background: rgba(11, 17, 28, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.7rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    color: #e5eefb;
    height: 2.5rem;
    justify-content: center;
    padding: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    width: 2.5rem;
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus-visible {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(96, 165, 250, 0.58);
    color: #ffffff;
    outline: none;
}

.app-sidebar-toggle svg {
    fill: none;
    height: 1.2rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.2rem;
}

.app-sidebar-toggle-close {
    display: none;
}

.app-sidebar-open .app-sidebar-toggle-open {
    display: none;
}

.app-sidebar-open .app-sidebar-toggle-close {
    display: block;
}

.app-topbar-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
    margin-left: auto;
}

.app-notification-dropdown {
    position: relative;
}

.app-notification-button {
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    color: #dbeafe;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    width: 2.35rem;
}

.app-notification-button:hover,
.app-notification-button:focus-visible,
.app-notification-button.show {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(96, 165, 250, 0.58);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.app-notification-button svg {
    fill: none;
    height: 1.08rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.08rem;
}

.app-notification-count {
    align-items: center;
    background: #ef4444;
    border: 2px solid var(--ancora-app-bg);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 950;
    height: 1.05rem;
    justify-content: center;
    min-width: 1.05rem;
    padding: 0 0.2rem;
    position: absolute;
    right: -0.18rem;
    top: -0.16rem;
}

.app-notification-menu {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.05rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    color: #f8fafc;
    min-width: 24rem;
    overflow: hidden;
    padding: 0;
}

.app-notification-header {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
}

.app-notification-header strong,
.app-notification-header span {
    display: block;
}

.app-notification-header strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 950;
}

.app-notification-header span {
    color: #9fb2cc;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.app-notification-header button {
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 0.65rem;
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 850;
    min-height: 2rem;
    padding: 0.35rem 0.6rem;
}

.app-notification-list {
    display: grid;
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.45rem;
}

.app-notification-item {
    align-items: start;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    color: #e5eefb;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.75rem;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.app-notification-item:hover,
.app-notification-item:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.16);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.app-notification-item.is-read {
    opacity: 0.68;
}

.app-notification-marker {
    background: #60a5fa;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.13);
    height: 0.62rem;
    margin-top: 0.38rem;
    width: 0.62rem;
}

.app-notification-item.warning .app-notification-marker {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.app-notification-item.danger .app-notification-marker {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.app-notification-content {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.app-notification-content strong {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 950;
}

.app-notification-content span {
    color: #b8c7dc;
    font-size: 0.8rem;
    line-height: 1.35;
}

.app-notification-content small {
    color: #7f93ad;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 0.15rem;
}

.app-notification-empty {
    color: #9fb2cc;
    font-size: 0.86rem;
    padding: 1.25rem;
    text-align: center;
}

.app-user-dropdown {
    position: relative;
}

.app-avatar-button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    padding: 0.15rem;
    position: relative;
}

.app-avatar-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.app-avatar {
    align-items: center;
    background: var(--ancora-app-bg);
    border: 1px solid rgba(147, 197, 253, 0.38);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 2.35rem;
    justify-content: center;
    letter-spacing: 0;
    overflow: hidden;
    width: 2.35rem;
}

.app-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.app-avatar-large {
    flex: 0 0 auto;
    height: 3rem;
    width: 3rem;
}

.app-avatar-presence {
    background: #22c55e;
    border: 2px solid var(--ancora-app-bg);
    border-radius: 999px;
    bottom: 0.18rem;
    height: 0.75rem;
    position: absolute;
    right: 0.16rem;
    width: 0.75rem;
}

.app-user-menu {
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.15rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    color: #f8fafc;
    min-width: 21rem;
    overflow: hidden;
    padding: 0.6rem;
}

.app-user-menu-header {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.75rem;
}

.app-user-menu-identity strong,
.app-user-menu-identity span {
    display: block;
}

.app-user-menu-identity strong {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-menu-identity span {
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

.app-status-badge {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.72);
    border-radius: 0.45rem;
    color: #22c55e;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 0.25rem 0.55rem;
}

.app-user-menu-list,
.app-user-menu-form {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    margin: 0;
    padding: 0.45rem 0;
}

.app-user-menu-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.75rem;
    color: #e5e7eb;
    display: flex;
    gap: 0.75rem;
    min-height: 2.55rem;
    padding: 0.55rem 0.7rem;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
    width: 100%;
}

.app-user-menu-item:hover,
.app-user-menu-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    outline: none;
}

.app-user-menu-item span {
    font-size: 0.92rem;
    font-weight: 800;
}

.app-user-preferences {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 0.8rem;
    padding: 0.8rem 0.15rem;
}

.app-preference-group {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.app-preference-label {
    color: #9ca3af;
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-segmented-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.25rem;
}

.app-segmented-control button {
    background: transparent;
    border: 0;
    border-radius: 0.65rem;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 900;
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.app-segmented-control button:hover,
.app-segmented-control button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
}

.app-segmented-control button.active {
    background: linear-gradient(135deg, #2563eb, #5138ee);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    color: #ffffff;
}

.app-preference-select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #93c5fd 50%),
        linear-gradient(135deg, #93c5fd 50%, transparent 50%),
        rgba(255, 255, 255, 0.05);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%,
        0 0;
    background-size:
        6px 6px,
        6px 6px,
        100% 100%;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 850;
    min-height: 2.35rem;
    padding: 0.45rem 2rem 0.45rem 0.7rem;
}

.app-preference-toggle {
    align-items: center;
    color: #e5e7eb;
    display: flex;
    gap: 0.65rem;
    margin: 0;
    min-height: 2rem;
}

.app-preference-toggle input {
    accent-color: #2563eb;
    height: 1rem;
    width: 1rem;
}

.app-preference-toggle span {
    font-size: 0.84rem;
    font-weight: 800;
}

.app-preference-status {
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 800;
    min-height: 1rem;
}

.app-preference-status.is-error {
    color: #fca5a5;
}

.app-photo-upload {
    cursor: pointer;
    margin: 0;
}

.app-photo-upload input[type="file"] {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.app-user-menu-logout {
    color: #fca5a5;
}

.app-user-menu-logout:hover,
.app-user-menu-logout:focus {
    background: rgba(220, 38, 38, 0.14);
    color: #fecaca;
}

.main-content {
    color: var(--ancora-app-text);
    margin-left: var(--ancora-sidebar-width);
    max-width: none;
    min-height: 100vh;
    min-width: 0;
    padding: 2rem 1.5rem;
    width: calc(100% - var(--ancora-sidebar-width));
}

.app-main > h1,
.app-main .page-header h1,
.app-main .data-page-header h1,
.app-main .dashboard-header h1 {
    color: #f8fafc;
}

.app-main .data-page-subtitle,
.app-main .dashboard-eyebrow {
    color: #a9bdd8;
}

.app-main .text-muted {
    color: var(--ancora-app-muted) !important;
}

.app-main .card,
.app-main .finance-card,
.app-main .dashboard-card,
.app-main .filter-bar,
.app-main .data-filter,
.app-main .dashboard-filter {
    color: var(--ancora-app-text);
}

.app-main .card .text-muted,
.app-main .finance-card .text-muted,
.app-main .dashboard-card .text-muted {
    color: var(--ancora-app-muted) !important;
}

.app-main label,
.app-main label.form-label {
    color: #ffffff;
}

.app-main .card label.form-label,
.app-main .filter-bar label.form-label,
.app-main .data-filter .form-label,
.app-main .dashboard-filter label {
    color: #ffffff;
}

.app-main .card {
    background: var(--ancora-app-bg);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.app-main .card-header {
    background: rgba(255, 255, 255, 0.025);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    color: #ffffff;
    font-weight: 850;
}

.app-main .form-control,
.app-main .form-select,
.app-main textarea.form-control {
    background-color: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

.app-main .form-control:focus,
.app-main .form-select:focus,
.app-main textarea.form-control:focus {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.16);
    color: #ffffff;
}

.app-main .form-control::placeholder,
.app-main textarea.form-control::placeholder {
    color: #64748b;
}

.app-main .form-text,
.app-main small.form-text {
    color: #a9bdd8 !important;
}

.app-main select option,
.app-preference-select option {
    background: #111827;
    color: #f8fafc;
}

.app-main input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1) brightness(1.8);
    opacity: 0.82;
}

.app-main .table:not(.data-table):not(.dashboard-table) {
    --bs-table-bg: rgba(15, 23, 42, 0.72);
    --bs-table-color: #e5eefb;
    --bs-table-hover-bg: rgba(59, 130, 246, 0.08);
    --bs-table-hover-color: #ffffff;
    background-color: transparent !important;
    border-color: rgba(148, 163, 184, 0.16);
    color: #e5eefb;
}

.app-main .table:not(.data-table):not(.dashboard-table) > :not(caption) > * > * {
    background-color: var(--bs-table-bg);
    border-bottom-color: rgba(148, 163, 184, 0.14);
    color: var(--bs-table-color);
}

.app-main .table:not(.data-table):not(.dashboard-table) thead th {
    background-color: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    font-weight: 900;
}

.app-main .table:not(.data-table):not(.dashboard-table) tbody tr:hover > * {
    background-color: rgba(59, 130, 246, 0.08);
    color: #ffffff;
}

.profile-page {
    display: grid;
    gap: 1.25rem;
}

.profile-header {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.profile-header h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 1.25rem + 1.4vw, 2.7rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.profile-header p {
    color: #b8c7dc;
    margin: 0.45rem 0 0;
}

.profile-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.profile-card {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.05rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    padding: 1.15rem;
}

.profile-appearance {
    padding: 1.15rem;
}

.profile-card-heading {
    align-items: start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profile-card-heading h2 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0;
}

.profile-card-heading p {
    color: #9fb2cc;
    font-size: 0.88rem;
    margin: 0.3rem 0 0;
}

.profile-cover {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.22)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220' viewBox='0 0 900 220'%3E%3Crect width='900' height='220' fill='%23141b28'/%3E%3Cg opacity='.42'%3E%3Ccircle cx='70' cy='42' r='44' fill='%235b6b80'/%3E%3Ccircle cx='136' cy='95' r='62' fill='%2329394f'/%3E%3Ccircle cx='246' cy='52' r='38' fill='%23b78952'/%3E%3Ccircle cx='335' cy='112' r='78' fill='%2344566c'/%3E%3Ccircle cx='482' cy='52' r='56' fill='%232b3c52'/%3E%3Ccircle cx='602' cy='122' r='72' fill='%23b8834c'/%3E%3Ccircle cx='742' cy='58' r='52' fill='%235f7188'/%3E%3Ccircle cx='842' cy='128' r='82' fill='%2328374b'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    min-height: 9.5rem;
}

.profile-avatar-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: -3rem;
    padding: 0 1.1rem;
}

.profile-avatar-preview {
    align-items: center;
    background: #0b111c;
    border: 5px solid #111827;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.6rem;
    font-weight: 950;
    height: 7rem;
    justify-content: center;
    overflow: hidden;
    width: 7rem;
}

.profile-avatar-action {
    cursor: pointer;
    position: relative;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.profile-avatar-action:hover {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
    transform: translateY(-1px);
}

.profile-avatar-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-photo-form {
    align-items: center;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.profile-photo-form small,
.profile-code-box small {
    color: #8fa3bd;
}

.profile-avatar-camera {
    align-items: center;
    background: rgba(23, 23, 23, 0.94);
    border: 2px solid #111827;
    border-radius: 999px;
    bottom: 0.35rem;
    color: #ffffff;
    display: inline-flex;
    height: 2.1rem;
    justify-content: center;
    position: absolute;
    right: 0.35rem;
    width: 2.1rem;
}

.profile-avatar-camera svg {
    fill: none;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.profile-avatar-action input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.profile-form {
    display: grid;
    gap: 1rem;
}

.profile-field {
    display: grid;
    gap: 0.45rem;
}

.profile-field label {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 850;
}

.profile-submit {
    border-radius: 0.8rem;
    font-weight: 850;
    min-height: 2.65rem;
}

.profile-current-email {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0.85rem;
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
}

.profile-current-email span {
    color: #8fa3bd;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-current-email strong {
    color: #ffffff;
    overflow-wrap: anywhere;
}

.profile-code-form {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    margin-top: 1rem;
    padding-top: 1rem;
}

.profile-code-box {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 0.9rem;
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    text-align: center;
}

.profile-code-box > span {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-code-input {
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: 0.28em;
    text-align: center;
}

.card-metric {
    border: none;
    border-left: 4px solid var(--ancora-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-metric.receita { border-left-color: #16a34a; }
.card-metric.despesa { border-left-color: #dc2626; }
.card-metric.saldo { border-left-color: #2563eb; }
.card-metric.economia { border-left-color: #9333ea; }

.table-actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.data-table-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    white-space: nowrap;
}

.page-header {
    margin-bottom: 1.5rem;
}

.data-page-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.data-page-header h1 {
    color: #ffffff;
    font-size: clamp(1.65rem, 1.1rem + 1vw, 2.1rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
}

.data-page-subtitle {
    color: #a9bdd8;
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.data-page-description {
    color: #c7d4e8;
    font-size: 0.96rem;
    margin: 0.45rem 0 0;
}

.admin-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    margin-bottom: 1rem;
}

.admin-profile-form {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
    justify-content: flex-end;
}

.admin-user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-status-form,
.admin-block-form {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.admin-block-form .form-control {
    max-width: 5.5rem;
}

.admin-profile-form .form-select {
    min-width: 8.5rem;
}

.admin-users-table {
    min-width: 1180px;
}

.support-ticket-form,
.support-message-form,
.support-ticket-meta {
    padding: 1rem;
}

.support-table {
    min-width: 860px;
}

.support-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.32fr);
}

.support-chat-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 58vh;
    overflow-y: auto;
    padding: 1rem;
}

.support-message {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    max-width: min(48rem, 92%);
    padding: 0.9rem 1rem;
}

.support-message.from-admin {
    align-self: flex-end;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(96, 165, 250, 0.34);
}

.support-message.from-client {
    align-self: flex-start;
}

.support-message-meta {
    align-items: center;
    color: #93a4bb;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 800;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.support-message-meta strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.support-message p {
    color: #dbeafe;
    margin: 0;
    white-space: pre-wrap;
}

.support-ticket-meta {
    display: grid;
    gap: 0.9rem;
}

.support-ticket-meta div {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: grid;
    gap: 0.35rem;
    padding-bottom: 0.8rem;
}

.support-ticket-meta div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.support-ticket-meta span {
    color: #93a4bb;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.support-ticket-meta strong {
    color: #ffffff;
}

.app-main .btn:not(.btn-close),
.auth-submit {
    align-items: center;
    border-radius: 0.95rem;
    display: inline-flex;
    font-weight: 900;
    gap: 0.45rem;
    justify-content: center;
    letter-spacing: 0;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.app-main .btn:not(.btn-close)::before,
.auth-submit::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 58%);
    border-radius: inherit;
    content: "";
    inset: 1px;
    opacity: 0.48;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.app-main .btn:not(.btn-close)::after,
.auth-submit::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    content: "";
    height: 120%;
    left: -75%;
    pointer-events: none;
    position: absolute;
    top: -10%;
    transform: skewX(-18deg);
    transition: left 0.45s ease;
    width: 45%;
    z-index: 0;
}

.app-main .btn:not(.btn-close):hover,
.app-main .btn:not(.btn-close):focus-visible,
.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-1px);
}

.app-main .btn:not(.btn-close):hover::after,
.app-main .btn:not(.btn-close):focus-visible::after,
.auth-submit:hover::after,
.auth-submit:focus-visible::after {
    left: 130%;
}

.app-main .btn:not(.btn-close) > *,
.auth-submit > * {
    position: relative;
    z-index: 1;
}

.app-main .btn:disabled,
.app-main .btn.disabled,
.auth-submit:disabled {
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.58;
    transform: none !important;
}

.app-main .btn-primary,
.auth-submit {
    background: linear-gradient(135deg, #2f6df6, #2455df);
    border-color: rgba(147, 197, 253, 0.34);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.app-main .btn-primary:hover,
.app-main .btn-primary:focus-visible,
.auth-submit:hover,
.auth-submit:focus-visible {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: rgba(191, 219, 254, 0.48);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.app-main .btn-success {
    background: linear-gradient(135deg, #10b981, #047857);
    border-color: rgba(110, 231, 183, 0.38);
    box-shadow: 0 16px 34px rgba(5, 150, 105, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.app-main .btn-success:hover,
.app-main .btn-success:focus-visible {
    background: linear-gradient(135deg, #14b88a, #03694f);
    border-color: rgba(167, 243, 208, 0.48);
    box-shadow: 0 20px 42px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.app-main .btn-secondary {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #dbeafe;
}

.app-main .btn-secondary:hover,
.app-main .btn-secondary:focus-visible {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(203, 213, 225, 0.36);
    color: #ffffff;
}

.app-main .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: rgba(253, 186, 116, 0.44);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #111827;
}

.app-main .btn-outline-primary,
.app-main .btn-outline-secondary,
.app-main .btn-outline-info,
.app-main .btn-outline-success,
.app-main .btn-outline-danger {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-main .btn-outline-primary {
    border-color: rgba(96, 165, 250, 0.48);
    color: #93c5fd;
}

.app-main .btn-outline-primary:hover,
.app-main .btn-outline-primary:focus-visible {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(147, 197, 253, 0.75);
    color: #ffffff;
}

.app-main .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.42);
    color: #cbd5e1;
}

.app-main .btn-outline-secondary:hover,
.app-main .btn-outline-secondary:focus-visible {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(203, 213, 225, 0.62);
    color: #ffffff;
}

.app-main .btn-outline-info {
    border-color: rgba(34, 211, 238, 0.48);
    color: #67e8f9;
}

.app-main .btn-outline-info:hover,
.app-main .btn-outline-info:focus-visible {
    background: rgba(8, 145, 178, 0.18);
    border-color: rgba(103, 232, 249, 0.75);
    color: #ffffff;
}

.app-main .btn-outline-success {
    border-color: rgba(52, 211, 153, 0.48);
    color: #6ee7b7;
}

.app-main .btn-outline-success:hover,
.app-main .btn-outline-success:focus-visible {
    background: rgba(5, 150, 105, 0.18);
    border-color: rgba(110, 231, 183, 0.75);
    color: #ffffff;
}

.app-main .btn-outline-danger {
    border-color: rgba(251, 113, 133, 0.48);
    color: #fda4af;
}

.app-main .btn-outline-danger:hover,
.app-main .btn-outline-danger:focus-visible {
    background: rgba(225, 29, 72, 0.18);
    border-color: rgba(253, 164, 175, 0.75);
    color: #ffffff;
}

.app-main .btn-sm:not(.btn-close) {
    border-radius: 0.75rem;
    font-size: 0.8rem;
    min-height: 2.1rem;
    padding: 0.35rem 0.7rem;
}

.action-button {
    align-items: center;
    border-radius: 1rem;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 950;
    gap: 0.55rem;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.75rem 1.15rem;
}

.action-button svg,
.data-filter-button svg,
.table-action-link svg {
    fill: none;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.action-button-primary {
    background: linear-gradient(135deg, #2f6df6, #2455df);
    border-color: transparent;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.action-button-primary:hover,
.action-button-primary:focus {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: transparent;
}

.action-button-success {
    background: linear-gradient(135deg, #10b981, #047857);
    border-color: transparent;
    box-shadow: 0 18px 42px rgba(5, 150, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.action-button-success:hover,
.action-button-success:focus {
    background: linear-gradient(135deg, #14b88a, #03694f);
    border-color: transparent;
}

.filter-bar {
    background: var(--ancora-app-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.data-filter {
    align-items: end;
    background: var(--ancora-app-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    margin-bottom: 1rem;
    padding: 1rem;
}

.data-filter.compact {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.data-page-header .data-filter {
    margin-bottom: 0;
}

.data-page-header .d-flex > .action-button {
    align-self: center;
    border-radius: 0.95rem;
    min-height: 3rem;
    padding: 0.65rem 1.05rem;
}

.filter-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.filter-field.compact-field {
    min-width: 5.75rem;
    width: 6.25rem;
}

.filter-field.year-field {
    min-width: 7rem;
    width: 7.5rem;
}

.data-filter .form-label {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
}

.data-filter .form-control,
.data-filter .form-select {
    background-color: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.7rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 750;
    height: 2.6rem;
    min-width: 0;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.data-filter .form-control:focus,
.data-filter .form-select:focus {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.data-filter-button {
    align-items: center;
    border-radius: 0.85rem;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 950;
    gap: 0.45rem;
    height: 2.6rem;
    justify-content: center;
    min-width: 7rem;
    padding: 0 0.95rem;
}

.data-table-card {
    background: var(--ancora-app-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.data-table-toolbar {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: #e5eefb;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 3.25rem;
    padding: 0.9rem 1rem;
}

.data-table-toolbar strong {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
}

.data-table-toolbar span {
    color: #93a4bb;
    font-size: 0.82rem;
    font-weight: 750;
}

.data-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    --bs-table-bg: transparent;
    --bs-table-color: #dbeafe;
    --bs-table-hover-bg: rgba(59, 130, 246, 0.08);
    --bs-table-hover-color: #ffffff;
    border-color: rgba(148, 163, 184, 0.12);
    color: #dbeafe;
    font-size: 0.93rem;
    margin: 0;
    min-width: 760px;
}

.data-table thead th {
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #8fa3bd;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 0.9rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table thead th:last-child:empty {
    text-align: right;
    width: 1%;
}

.data-table tbody tr {
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.data-table tbody td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.data-table tbody td.table-actions {
    padding-left: 0.5rem;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table strong,
.data-table .table-primary-text {
    color: #ffffff;
    font-weight: 900;
}

.data-table .table-muted-text {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
}

.data-table .money-positive {
    color: #34d399;
    font-weight: 900;
}

.data-table .money-negative {
    color: #fb7185;
    font-weight: 900;
}

.data-table .money-neutral {
    color: #bfdbfe;
    font-weight: 900;
}

.table-progress {
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    height: 0.5rem;
    margin-bottom: 0.35rem;
    min-width: 7rem;
    overflow: hidden;
}

.table-progress span {
    background: linear-gradient(90deg, #2563eb, #a855f7);
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0.35rem;
}

.data-pill {
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    gap: 0.35rem;
    letter-spacing: 0.02em;
    line-height: 1;
    min-height: 1.65rem;
    padding: 0.4rem 0.62rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-pill::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 0.42rem;
    width: 0.42rem;
}

.data-pill-receita,
.data-pill-pago,
.data-pill-quitada,
.data-pill-active,
.data-pill-online,
.data-pill-aberto,
.data-pill-normal,
.data-pill-baixa,
.data-pill-entrada {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #34d399;
}

.data-pill-despesa,
.data-pill-despesa_fixa,
.data-pill-despesa_variavel,
.data-pill-atrasado,
.data-pill-cancelado,
.data-pill-cancelada,
.data-pill-lost,
.data-pill-danger,
.data-pill-urgente,
.data-pill-saida {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.28);
    color: #fb7185;
}

.data-pill-economia,
.data-pill-transferencia,
.data-pill-parcial,
.data-pill-pendente,
.data-pill-em_atendimento,
.data-pill-alta {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.28);
    color: #c084fc;
}

.data-pill-divida,
.data-pill-ativa,
.data-pill-warning {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.data-pill-muted,
.data-pill-offline,
.data-pill-fechado,
.data-pill-carteira,
.data-pill-cartao,
.data-pill-conta_corrente,
.data-pill-conta_poupanca,
.data-pill-outro {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
}

.color-swatch {
    background: var(--swatch, #64748b);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.45rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    height: 1.2rem;
    margin-right: 0.45rem;
    vertical-align: middle;
    width: 1.6rem;
}

.table-action-link,
.table-actions .btn {
    --table-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/g%3E%3C/svg%3E");
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.62rem;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 850;
    gap: 0.35rem;
    justify-content: center;
    min-height: 2.1rem;
    padding: 0.35rem 0.65rem;
}

.table-action-link::before,
.table-actions .btn:not(.btn-close)::before {
    background: currentColor;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 0.95rem;
    inset: auto;
    opacity: 1;
    position: static;
    width: 0.95rem;
    z-index: 1;
    -webkit-mask: var(--table-action-icon) center / contain no-repeat;
    mask: var(--table-action-icon) center / contain no-repeat;
}

.table-actions .btn:not(.btn-close)::after {
    display: none;
}

.table-actions > a + a,
.table-actions > a + form,
.table-actions > form + a,
.table-actions > form + form {
    margin-left: 0.45rem;
}

.table-actions form {
    display: inline-flex !important;
    margin-bottom: 0;
    vertical-align: middle;
}

.table-actions .btn-outline-primary,
.table-action-link.edit {
    --table-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/g%3E%3C/svg%3E");
    border-color: rgba(96, 165, 250, 0.42);
    color: #93c5fd;
}

.table-actions .btn-outline-primary:hover,
.table-action-link.edit:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(147, 197, 253, 0.7);
    color: #ffffff;
}

.table-actions .btn-outline-info,
.table-action-link.info {
    --table-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
    border-color: rgba(34, 211, 238, 0.42);
    color: #67e8f9;
}

.table-actions .btn-outline-info:hover,
.table-action-link.info:hover {
    background: rgba(8, 145, 178, 0.18);
    border-color: rgba(103, 232, 249, 0.7);
    color: #ffffff;
}

.table-actions .btn-outline-success,
.table-action-link.success {
    --table-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/g%3E%3C/svg%3E");
    border-color: rgba(52, 211, 153, 0.42);
    color: #6ee7b7;
}

.table-actions .btn-outline-success:hover,
.table-action-link.success:hover {
    background: rgba(5, 150, 105, 0.18);
    border-color: rgba(110, 231, 183, 0.7);
    color: #ffffff;
}

.table-actions .btn-outline-danger,
.table-action-link.danger {
    --table-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='m19 6-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/g%3E%3C/svg%3E");
    border-color: rgba(251, 113, 133, 0.42);
    color: #fda4af;
}

.table-actions .btn-outline-danger:hover,
.table-action-link.danger:hover {
    background: rgba(225, 29, 72, 0.18);
    border-color: rgba(253, 164, 175, 0.72);
    color: #ffffff;
}

.data-table-empty {
    color: #94a3b8 !important;
    font-weight: 800;
    padding: 1.4rem !important;
    text-align: center;
}

.data-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.data-pagination .pagination {
    margin: 0;
}

.chart-container {
    position: relative;
    height: 280px;
}

.dashboard-page {
    display: grid;
    gap: 1.5rem;
}

.dashboard-header {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.dashboard-eyebrow {
    color: #a9bdd8;
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.dashboard-header h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.dashboard-filter {
    align-items: end;
    background: var(--ancora-app-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.15rem;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.85rem;
}

.dashboard-filter-field {
    display: grid;
    gap: 0.35rem;
    min-width: 7.25rem;
}

.dashboard-filter-year {
    min-width: 9.25rem;
}

.dashboard-filter label {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
}

.dashboard-filter input,
.dashboard-filter select {
    background-color: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.65rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    height: 2.55rem;
    min-width: 0;
    padding-left: 0.75rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.dashboard-filter input:focus,
.dashboard-filter select:focus {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.dashboard-filter-button {
    align-items: center;
    border-radius: 0.85rem;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 950;
    gap: 0.45rem;
    height: 2.55rem;
    justify-content: center;
    min-width: 6.4rem;
    padding: 0 0.9rem;
}

.dashboard-filter-button svg {
    fill: none;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.dashboard-metric-grid,
.dashboard-secondary-grid,
.dashboard-chart-grid,
.dashboard-table-grid {
    display: grid;
    gap: 1rem;
}

.dashboard-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-secondary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-chart-grid,
.dashboard-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-card,
.dashboard-card {
    background: var(--ancora-app-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.finance-card {
    border-left: 4px solid #2563eb;
    display: grid;
    gap: 0.35rem;
    min-height: 5.25rem;
    padding: 1rem 1.1rem;
}

.finance-card span {
    color: #a9bdd8;
    font-size: 0.86rem;
    font-weight: 700;
}

.finance-card strong {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.finance-card.accent-income {
    border-left-color: #16a34a;
}

.finance-card.accent-income strong,
.text-income {
    color: #34d399;
}

.finance-card.accent-expense {
    border-left-color: #dc2626;
}

.finance-card.accent-expense strong,
.finance-card.danger strong,
.text-expense {
    color: #fb7185;
}

.finance-card.accent-balance {
    border-left-color: #2563eb;
}

.finance-card.accent-savings {
    border-left-color: #9333ea;
}

.finance-card.accent-savings strong,
.text-savings {
    color: #a855f7;
}

.finance-card.compact {
    min-height: 4.7rem;
}

.finance-card.compact strong {
    font-size: 1.1rem;
}

.balance-hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.24), transparent 24rem),
        linear-gradient(145deg, #101214, #17191d 58%, #10141c);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    color: #ffffff;
    overflow: hidden;
    padding: 1.35rem;
}

.balance-hero-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.balance-hero-header span,
.balance-hero-stats span {
    color: #aeb8c7;
    font-size: 0.9rem;
    font-weight: 700;
}

.balance-amount {
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.balance-delta {
    align-items: flex-end;
    display: grid;
    gap: 0.15rem;
    justify-items: end;
}

.balance-delta span {
    border-radius: 999px;
    font-weight: 900;
    padding: 0.35rem 0.65rem;
}

.balance-delta small {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
}

.balance-delta.positive span {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.balance-delta.negative span {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
}

.balance-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.45rem;
}

.balance-hero-stats strong {
    color: #ffffff;
    margin-left: 0.25rem;
}

.balance-chart-wrap {
    height: 22rem;
    margin-top: 0.9rem;
    position: relative;
}

.dashboard-card {
    overflow: hidden;
}

.dashboard-card-header {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    justify-content: space-between;
    min-height: 4.25rem;
    padding: 1rem 1.1rem;
}

.dashboard-card-header h2 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

.dashboard-card-header p {
    color: var(--ancora-app-muted);
    font-size: 0.86rem;
    margin: 0.25rem 0 0;
}

.chart-container-soft {
    height: 22rem;
    padding: 1rem;
}

.category-chart-layout {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.1fr);
    padding: 1rem;
}

.category-donut-wrap {
    height: 18rem;
    position: relative;
}

.category-list {
    display: grid;
    gap: 0.65rem;
}

.category-list-item {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.85rem;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.7rem;
}

.category-list-item > span {
    background: var(--category-color);
    border-radius: 999px;
    height: 0.8rem;
    width: 0.8rem;
}

.category-list-item strong,
.category-list-item small {
    display: block;
}

.category-list-item strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.category-list-item small {
    color: var(--ancora-app-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.category-list-item b {
    color: #ffffff;
    font-size: 0.86rem;
    white-space: nowrap;
}

.dashboard-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    --bs-table-bg: transparent;
    font-size: 0.92rem;
    min-width: 36rem;
}

.dashboard-table thead th {
    background: rgba(255, 255, 255, 0.025);
    border-bottom-color: rgba(148, 163, 184, 0.16);
    color: #a9bdd8;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table tbody td {
    color: #e5eefb;
    vertical-align: middle;
}

.empty-row,
.empty-state {
    color: var(--ancora-app-muted);
    font-weight: 700;
    text-align: center;
}

.empty-state {
    background: rgba(15, 23, 42, 0.72);
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 0.85rem;
    padding: 1rem;
}

.status-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.3rem 0.55rem;
}

.status-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.danger {
    background: #fee2e2;
    color: #991b1b;
}

.dashboard-goals {
    padding-bottom: 0.25rem;
}

.goals-list {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.goal-item {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(10rem, 0.8fr) minmax(8rem, 1fr) auto;
}

.goal-item strong,
.goal-item span {
    display: block;
}

.goal-item strong {
    color: #ffffff;
    font-weight: 850;
}

.goal-item span {
    color: var(--ancora-app-muted);
    font-size: 0.86rem;
    margin-top: 0.15rem;
}

.goal-item b {
    color: #93c5fd;
    font-size: 0.9rem;
}

.goal-progress {
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    height: 0.7rem;
    overflow: hidden;
}

.goal-progress span {
    background: linear-gradient(90deg, #2563eb, #9333ea);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.guide-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guide-flow-item,
.guide-panel,
.guide-mini-panel {
    background: var(--ancora-app-bg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.5rem;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.guide-flow-item {
    padding: 1rem;
}

.guide-flow-item span,
.guide-step-number {
    align-items: center;
    background: var(--ancora-primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.guide-flow-item strong,
.guide-flow-item small {
    display: block;
}

.guide-flow-item strong {
    color: #ffffff;
    margin-top: 0.75rem;
}

.guide-flow-item small {
    color: var(--ancora-app-muted);
    margin-top: 0.25rem;
}

.guide-panel {
    display: grid;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.guide-step-content p,
.guide-step-content li,
.guide-mini-panel span {
    color: #dbeafe;
}

.guide-step-content h2,
.guide-mini-panel strong {
    color: #ffffff;
}

.guide-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-mini-panel {
    border-left: 3px solid var(--ancora-primary);
    padding: 0.75rem;
}

.guide-mini-panel strong,
.guide-mini-panel span {
    display: block;
}

.guide-mini-panel span {
    font-size: 0.92rem;
    margin-top: 0.25rem;
}

.guide-routine {
    border-left: 4px solid #16a34a;
}

.auth-page {
    background: var(--ancora-app-bg);
    color: var(--ancora-app-text);
    min-height: 100vh;
}

.auth-centered-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1rem;
}

.auth-centered-card {
    background: rgba(11, 17, 28, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.25rem;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
    padding: 2rem;
    width: min(100%, 24rem);
}

.auth-logo {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 1.45rem;
    font-weight: 800;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-logo:hover {
    color: #ffffff;
}

.auth-logo-icon {
    display: inline-block;
    height: 1.75rem;
    position: relative;
    width: 2.25rem;
}

.auth-logo-icon::after {
    border: 2px solid #2563eb;
    border-left-color: transparent;
    border-radius: 999px;
    content: "";
    height: 2.25rem;
    left: 1.55rem;
    position: absolute;
    top: -0.25rem;
    width: 2.25rem;
}

.auth-logo-icon span {
    background: #2563eb;
    border-radius: 999px;
    display: block;
    left: 0;
    position: absolute;
}

.auth-logo-icon span:nth-child(1) {
    height: 0.38rem;
    top: 0.1rem;
    width: 2rem;
}

.auth-logo-icon span:nth-child(2) {
    height: 0.38rem;
    top: 0.8rem;
    width: 1.25rem;
}

.auth-logo-icon span:nth-child(3) {
    height: 0.46rem;
    left: 1.45rem;
    top: 0.76rem;
    width: 0.46rem;
}

.auth-heading {
    margin-bottom: 2.4rem;
    text-align: center;
}

.auth-heading h1 {
    color: #f8fafc;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 0.7rem;
}

.auth-heading p {
    color: #a9bdd8;
    font-size: 0.95rem;
    margin: 0;
}

.auth-heading a,
.auth-switch a {
    color: #93c5fd;
    font-weight: 800;
    text-decoration: none;
}

.auth-heading a:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-form {
    display: grid;
    gap: 1.35rem;
}

.auth-field {
    display: grid;
    gap: 0.6rem;
}

.auth-field label {
    color: #dbeafe;
    font-size: 0.92rem;
    font-weight: 800;
}

.auth-input {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 0.65rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    color: #f8fafc;
    display: block;
    font-size: 1rem;
    height: 2.75rem;
    outline: none;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.auth-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-submit {
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #5138ee);
    border: 0;
    border-radius: 0.9rem;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 950;
    height: 3rem;
    justify-content: center;
    margin-top: 0.15rem;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
    width: 100%;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #1d4ed8, #432bd8);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.65rem;
    color: #991b1b;
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
    padding: 0.8rem 0.9rem;
}

.auth-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 0.65rem;
    color: #166534;
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
    padding: 0.8rem 0.9rem;
}

.auth-code-panel {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    display: grid;
    gap: 0.75rem;
    padding: 1.1rem;
    text-align: center;
}

.auth-code-panel > span:first-child {
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-code-panel small {
    color: #a9bdd8;
    font-size: 0.86rem;
}

.auth-code-input {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-align: center;
}

.auth-switch {
    color: #a9bdd8;
    font-size: 0.95rem;
    margin: 1.6rem 0 0;
    text-align: center;
}

.auth-footer {
    background: #07090d;
    color: #d7dde7;
    padding: 4rem 1rem 2.25rem;
}

.auth-footer-container {
    margin: 0 auto;
    width: min(100%, 72rem);
}

.auth-footer-main {
    align-items: start;
    display: grid;
    gap: 4rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr);
}

.auth-footer-brand-block {
    display: grid;
    gap: 1.35rem;
}

.auth-footer-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 800;
    gap: 0.65rem;
    text-decoration: none;
}

.auth-footer-brand:hover {
    color: #ffffff;
}

.auth-footer-brand-mark {
    align-items: center;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 0.55rem;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    height: 2rem;
    justify-content: center;
    letter-spacing: 0;
    width: 2rem;
}

.auth-footer-brand-logo {
    background: #ffffff;
    overflow: hidden;
}

.auth-footer-brand-logo img {
    display: block;
    height: 100%;
    object-fit: cover;
    transform: scale(1.42);
    width: 100%;
}

.auth-footer-description {
    color: #a8b2c1;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 22rem;
}

.auth-footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-footer-sections {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-footer-section h2 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1.1rem;
}

.auth-footer-section ul {
    display: grid;
    gap: 0.8rem;
}

.auth-footer-section a,
.auth-footer-bottom a {
    color: #a8b2c1;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.16s ease;
}

.auth-footer-section a:hover,
.auth-footer-bottom a:hover {
    color: #ffffff;
}

.auth-footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #a8b2c1;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.6rem;
    padding-top: 2rem;
}

.auth-footer-bottom p {
    margin: 0;
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] .auth-page {
    background: #f4f7fb;
    color: var(--ancora-app-text);
}

html[data-theme="light"] .app-sidebar {
    background:
        radial-gradient(circle at 30% 0%, rgba(37, 99, 235, 0.14), transparent 28rem),
        var(--ancora-sidebar-bg);
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.06);
    color: #07111f;
}

html[data-theme="light"] .app-brand,
html[data-theme="light"] .app-brand:hover {
    color: #07111f;
}

html[data-theme="light"] .app-nav-section {
    color: #64748b;
}

html[data-theme="light"] .app-nav-link {
    color: var(--ancora-sidebar-muted);
}

html[data-theme="light"] .app-nav-link:hover,
html[data-theme="light"] .app-nav-link:focus {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.16);
    color: #0f172a;
}

html[data-theme="light"] .app-nav-link.active {
    color: #ffffff;
}

html[data-theme="light"] .app-nav-icon {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.14);
}

html[data-theme="light"] .app-sidebar-toggle,
html[data-theme="light"] .app-notification-button,
html[data-theme="light"] .app-avatar {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.32);
    color: #0f172a;
}

html[data-theme="light"] .app-sidebar-toggle:hover,
html[data-theme="light"] .app-sidebar-toggle:focus-visible,
html[data-theme="light"] .app-notification-button:hover,
html[data-theme="light"] .app-notification-button:focus-visible,
html[data-theme="light"] .app-notification-button.show {
    background: #eef4ff;
    color: #0f172a;
}

html[data-theme="light"] .app-notification-count,
html[data-theme="light"] .app-avatar-presence {
    border-color: #f4f7fb;
}

html[data-theme="light"] .app-notification-menu,
html[data-theme="light"] .app-user-menu {
    background: #ffffff;
    border-color: #d8e4f2;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    color: #07111f;
}

html[data-theme="light"] .app-notification-header,
html[data-theme="light"] .app-user-menu-list,
html[data-theme="light"] .app-user-menu-form,
html[data-theme="light"] .app-user-preferences {
    border-color: #e2e8f0;
}

html[data-theme="light"] .app-notification-header strong,
html[data-theme="light"] .app-notification-content strong,
html[data-theme="light"] .app-user-menu-identity strong,
html[data-theme="light"] .app-user-menu-item,
html[data-theme="light"] .app-preference-toggle,
html[data-theme="light"] .app-main > h1,
html[data-theme="light"] .app-main .page-header h1,
html[data-theme="light"] .app-main .data-page-header h1,
html[data-theme="light"] .app-main .dashboard-header h1 {
    color: #07111f;
}

html[data-theme="light"] .app-notification-header span,
html[data-theme="light"] .app-notification-content span,
html[data-theme="light"] .app-notification-content small,
html[data-theme="light"] .app-notification-empty,
html[data-theme="light"] .app-user-menu-identity span,
html[data-theme="light"] .app-preference-label,
html[data-theme="light"] .app-main .data-page-description,
html[data-theme="light"] .app-main .data-page-subtitle,
html[data-theme="light"] .app-main .dashboard-eyebrow,
html[data-theme="light"] .app-main .text-muted {
    color: #52637a !important;
}

html[data-theme="light"] .app-notification-item,
html[data-theme="light"] .app-user-menu-item {
    color: #0f172a;
}

html[data-theme="light"] .app-notification-item:hover,
html[data-theme="light"] .app-notification-item:focus,
html[data-theme="light"] .app-user-menu-item:hover,
html[data-theme="light"] .app-user-menu-item:focus {
    background: #f1f6ff;
    color: #07111f;
}

html[data-theme="light"] .app-user-menu-logout,
html[data-theme="light"] .app-user-menu-logout:hover,
html[data-theme="light"] .app-user-menu-logout:focus {
    color: #dc2626;
}

html[data-theme="light"] .app-segmented-control,
html[data-theme="light"] .app-preference-select {
    background-color: #f8fbff;
    border-color: #d8e4f2;
    color: #07111f;
}

html[data-theme="light"] .app-segmented-control button {
    color: #52637a;
}

html[data-theme="light"] .app-segmented-control button:hover,
html[data-theme="light"] .app-segmented-control button:focus-visible {
    background: rgba(37, 99, 235, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .app-segmented-control button.active {
    color: #ffffff;
}

html[data-theme="light"] .app-main label.form-label,
html[data-theme="light"] .app-main label,
html[data-theme="light"] .app-main .card label.form-label,
html[data-theme="light"] .app-main .filter-bar label.form-label,
html[data-theme="light"] .app-main .data-filter .form-label,
html[data-theme="light"] .app-main .dashboard-filter label,
html[data-theme="light"] .data-filter .form-label,
html[data-theme="light"] .dashboard-filter label {
    color: #0f172a;
}

html[data-theme="light"] .app-main .card,
html[data-theme="light"] .app-main .finance-card,
html[data-theme="light"] .app-main .dashboard-card,
html[data-theme="light"] .app-main .filter-bar,
html[data-theme="light"] .app-main .data-filter,
html[data-theme="light"] .app-main .dashboard-filter,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .data-table-card,
html[data-theme="light"] .finance-card,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .guide-flow-item,
html[data-theme="light"] .guide-panel,
html[data-theme="light"] .guide-mini-panel,
html[data-theme="light"] .auth-centered-card {
    background: #ffffff;
    border-color: #d8e4f2;
    box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
    color: #07111f;
}

html[data-theme="light"] .app-main .card-header,
html[data-theme="light"] .data-table-toolbar,
html[data-theme="light"] .dashboard-card-header {
    background: #f8fbff;
    border-color: #d8e4f2;
    color: #07111f;
}

html[data-theme="light"] .app-main .form-control,
html[data-theme="light"] .app-main .form-select,
html[data-theme="light"] .app-main textarea.form-control,
html[data-theme="light"] .data-filter .form-control,
html[data-theme="light"] .data-filter .form-select,
html[data-theme="light"] .dashboard-filter input,
html[data-theme="light"] .dashboard-filter select,
html[data-theme="light"] .auth-input {
    background-color: #ffffff;
    border-color: #d8e4f2;
    color: #07111f;
}

html[data-theme="light"] .app-main .form-control:focus,
html[data-theme="light"] .app-main .form-select:focus,
html[data-theme="light"] .app-main textarea.form-control:focus,
html[data-theme="light"] .data-filter .form-control:focus,
html[data-theme="light"] .data-filter .form-select:focus,
html[data-theme="light"] .dashboard-filter input:focus,
html[data-theme="light"] .dashboard-filter select:focus,
html[data-theme="light"] .auth-input:focus {
    background-color: #ffffff;
    color: #07111f;
}

html[data-theme="light"] .data-table,
html[data-theme="light"] .dashboard-table {
    --bs-table-color: #0f172a;
    --bs-table-hover-color: #0f172a;
    color: #0f172a;
}

html[data-theme="light"] .data-table thead th,
html[data-theme="light"] .dashboard-table thead th {
    background: #f8fbff;
    border-color: #d8e4f2;
    color: #52637a;
}

html[data-theme="light"] .data-table tbody td,
html[data-theme="light"] .dashboard-table tbody td {
    border-color: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .data-table tbody tr:hover,
html[data-theme="light"] .dashboard-table tbody tr:hover {
    background: #f1f6ff;
}

html[data-theme="light"] .support-message {
    background: #f8fbff;
    border-color: #d8e4f2;
}

html[data-theme="light"] .support-message.from-admin {
    background: #eef4ff;
    border-color: rgba(37, 99, 235, 0.28);
}

html[data-theme="light"] .support-message p,
html[data-theme="light"] .support-ticket-meta strong {
    color: #07111f;
}

html[data-theme="light"] .support-message-meta,
html[data-theme="light"] .support-ticket-meta span {
    color: #52637a;
}

html[data-theme="light"] .data-table strong,
html[data-theme="light"] .data-table .table-primary-text,
html[data-theme="light"] .data-table-toolbar strong,
html[data-theme="light"] .dashboard-card-header h2,
html[data-theme="light"] .finance-card strong,
html[data-theme="light"] .guide-flow-item strong,
html[data-theme="light"] .guide-step-content h2,
html[data-theme="light"] .guide-mini-panel strong,
html[data-theme="light"] .auth-logo,
html[data-theme="light"] .auth-logo:hover,
html[data-theme="light"] .auth-heading h1,
html[data-theme="light"] .profile-header h1,
html[data-theme="light"] .profile-card-heading h2,
html[data-theme="light"] .profile-current-email strong {
    color: #07111f;
}

html[data-theme="light"] .finance-card span,
html[data-theme="light"] .dashboard-card-header p,
html[data-theme="light"] .guide-flow-item small,
html[data-theme="light"] .guide-step-content p,
html[data-theme="light"] .guide-step-content li,
html[data-theme="light"] .guide-mini-panel span,
html[data-theme="light"] .auth-heading p,
html[data-theme="light"] .auth-switch,
html[data-theme="light"] .auth-field label,
html[data-theme="light"] .profile-header p,
html[data-theme="light"] .profile-card-heading p,
html[data-theme="light"] .profile-photo-form small,
html[data-theme="light"] .profile-code-box small,
html[data-theme="light"] .profile-current-email span {
    color: #52637a;
}

html[data-theme="light"] .auth-code-panel,
html[data-theme="light"] .profile-code-box {
    background: #f8fbff;
    border-color: #d8e4f2;
}

html[data-theme="light"] .auth-code-input,
html[data-theme="light"] .profile-code-input {
    background: #ffffff;
    color: #07111f;
}

html[data-theme="light"] .app-main .form-text,
html[data-theme="light"] .app-main small.form-text {
    color: #52637a !important;
}

html[data-theme="light"] .app-main select option,
html[data-theme="light"] .app-preference-select option {
    background: #ffffff;
    color: #07111f;
}

html[data-theme="light"] .app-main input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.78;
}

html[data-theme="light"] .app-main .table:not(.data-table):not(.dashboard-table) {
    --bs-table-bg: #ffffff;
    --bs-table-color: #07111f;
    --bs-table-hover-bg: #f1f6ff;
    --bs-table-hover-color: #07111f;
    border-color: #d8e4f2;
    color: #07111f;
}

html[data-theme="light"] .app-main .table:not(.data-table):not(.dashboard-table) > :not(caption) > * > * {
    background-color: #ffffff;
    border-bottom-color: #d8e4f2;
    color: #07111f;
}

html[data-theme="light"] .app-main .table:not(.data-table):not(.dashboard-table) thead th {
    background-color: #f8fbff;
    color: #334155;
}

html[data-theme="light"] .app-main .table:not(.data-table):not(.dashboard-table) tbody tr:hover > * {
    background-color: #f1f6ff;
    color: #07111f;
}

html[data-theme="light"] .profile-current-email {
    background: #f8fbff;
    border-color: #d8e4f2;
    color: #07111f;
}

html[data-theme="light"] .profile-current-email span {
    color: #52637a;
}

html[data-theme="light"] .profile-current-email strong {
    color: #07111f;
}

html[data-theme="light"] .profile-avatar-preview {
    background: #ffffff;
    border-color: #ffffff;
    color: #07111f;
}

html[data-theme="light"] .profile-avatar-camera {
    background: rgba(15, 23, 42, 0.92);
    border-color: #ffffff;
    color: #ffffff;
}

html[data-theme="light"] .finance-card {
    border-left-color: #2563eb;
}

html[data-theme="light"] .finance-card.accent-income {
    border-left-color: #16a34a;
}

html[data-theme="light"] .finance-card.accent-expense,
html[data-theme="light"] .finance-card.danger {
    border-left-color: #dc2626;
}

html[data-theme="light"] .finance-card.accent-balance {
    border-left-color: #2563eb;
}

html[data-theme="light"] .finance-card.accent-savings {
    border-left-color: #9333ea;
}

html[data-theme="light"] .balance-hero {
    background:
        radial-gradient(circle at 80% 0%, rgba(147, 51, 234, 0.1), transparent 24rem),
        linear-gradient(145deg, #ffffff, #f8fbff 58%, #eef5ff);
    border-color: #d8e4f2;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    color: #07111f;
}

html[data-theme="light"] .balance-hero-header span,
html[data-theme="light"] .balance-hero-stats span,
html[data-theme="light"] .balance-delta small {
    color: #52637a;
}

html[data-theme="light"] .balance-amount,
html[data-theme="light"] .balance-hero-stats strong {
    color: #07111f;
}

html[data-theme="light"] .balance-delta.positive span {
    background: #dcfce7;
    color: #047857;
}

html[data-theme="light"] .balance-delta.negative span {
    background: #ffe4e6;
    color: #be123c;
}

html[data-theme="light"] .finance-card.accent-income strong,
html[data-theme="light"] .text-income,
html[data-theme="light"] .data-table .money-positive {
    color: #059669;
}

html[data-theme="light"] .finance-card.accent-expense strong,
html[data-theme="light"] .finance-card.danger strong,
html[data-theme="light"] .text-expense,
html[data-theme="light"] .data-table .money-negative {
    color: #e11d48;
}

html[data-theme="light"] .finance-card.accent-savings strong,
html[data-theme="light"] .text-savings {
    color: #7c3aed;
}

html[data-theme="light"] .data-table .money-neutral {
    color: #2563eb;
}

html[data-theme="light"] .data-pill-receita,
html[data-theme="light"] .data-pill-pago,
html[data-theme="light"] .data-pill-quitada,
html[data-theme="light"] .data-pill-active,
html[data-theme="light"] .data-pill-entrada {
    background: #dcfce7;
    border-color: #86efac;
    color: #047857;
}

html[data-theme="light"] .data-pill-despesa,
html[data-theme="light"] .data-pill-despesa_fixa,
html[data-theme="light"] .data-pill-despesa_variavel,
html[data-theme="light"] .data-pill-atrasado,
html[data-theme="light"] .data-pill-cancelado,
html[data-theme="light"] .data-pill-cancelada,
html[data-theme="light"] .data-pill-lost,
html[data-theme="light"] .data-pill-saida {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

html[data-theme="light"] .data-pill-economia,
html[data-theme="light"] .data-pill-transferencia,
html[data-theme="light"] .data-pill-parcial,
html[data-theme="light"] .data-pill-pendente {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #7e22ce;
}

html[data-theme="light"] .data-pill-divida,
html[data-theme="light"] .data-pill-ativa {
    background: #fef3c7;
    border-color: #facc15;
    color: #92400e;
}

html[data-theme="light"] .data-pill-muted,
html[data-theme="light"] .data-pill-carteira,
html[data-theme="light"] .data-pill-cartao,
html[data-theme="light"] .data-pill-conta_corrente,
html[data-theme="light"] .data-pill-conta_poupanca,
html[data-theme="light"] .data-pill-outro {
    background: #eef2f7;
    border-color: #cbd5e1;
    color: #334155;
}

html[data-theme="light"] .table-action-link,
html[data-theme="light"] .table-actions .btn {
    background: #ffffff;
}

html[data-theme="light"] .table-actions .btn-outline-primary,
html[data-theme="light"] .table-action-link.edit {
    border-color: #93c5fd;
    color: #2563eb;
}

html[data-theme="light"] .table-actions .btn-outline-primary:hover,
html[data-theme="light"] .table-action-link.edit:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

html[data-theme="light"] .table-actions .btn-outline-info,
html[data-theme="light"] .table-action-link.info {
    border-color: #67e8f9;
    color: #0891b2;
}

html[data-theme="light"] .table-actions .btn-outline-info:hover,
html[data-theme="light"] .table-action-link.info:hover {
    background: #ecfeff;
    border-color: #0891b2;
    color: #0e7490;
}

html[data-theme="light"] .table-actions .btn-outline-success,
html[data-theme="light"] .table-action-link.success {
    border-color: #86efac;
    color: #059669;
}

html[data-theme="light"] .table-actions .btn-outline-success:hover,
html[data-theme="light"] .table-action-link.success:hover {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
}

html[data-theme="light"] .table-actions .btn-outline-danger,
html[data-theme="light"] .table-action-link.danger {
    border-color: #fda4af;
    color: #e11d48;
}

html[data-theme="light"] .table-actions .btn-outline-danger:hover,
html[data-theme="light"] .table-action-link.danger:hover {
    background: #fff1f2;
    border-color: #e11d48;
    color: #be123c;
}

html[data-theme="light"] .category-list-item {
    background: #f8fbff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .category-list-item strong,
html[data-theme="light"] .category-list-item b {
    color: #07111f;
}

html[data-theme="light"] .category-list-item small {
    color: #52637a;
}

html[data-theme="light"] .app-notification-header button {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

html[data-theme="light"] .app-main .btn-secondary {
    background: #eef4ff;
    border-color: #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    color: #334155;
}

html[data-theme="light"] .app-main .btn-secondary:hover,
html[data-theme="light"] .app-main .btn-secondary:focus-visible {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

html[data-theme="light"] .app-main .btn-outline-primary,
html[data-theme="light"] .app-main .btn-outline-secondary,
html[data-theme="light"] .app-main .btn-outline-info,
html[data-theme="light"] .app-main .btn-outline-success,
html[data-theme="light"] .app-main .btn-outline-danger {
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .app-main .btn-outline-primary {
    border-color: #93c5fd;
    color: #2563eb;
}

html[data-theme="light"] .app-main .btn-outline-primary:hover,
html[data-theme="light"] .app-main .btn-outline-primary:focus-visible {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

html[data-theme="light"] .app-main .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #475569;
}

html[data-theme="light"] .app-main .btn-outline-secondary:hover,
html[data-theme="light"] .app-main .btn-outline-secondary:focus-visible {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

html[data-theme="light"] .app-main .btn-outline-info {
    border-color: #67e8f9;
    color: #0891b2;
}

html[data-theme="light"] .app-main .btn-outline-info:hover,
html[data-theme="light"] .app-main .btn-outline-info:focus-visible {
    background: #ecfeff;
    border-color: #0891b2;
    color: #0e7490;
}

html[data-theme="light"] .app-main .btn-outline-success {
    border-color: #86efac;
    color: #059669;
}

html[data-theme="light"] .app-main .btn-outline-success:hover,
html[data-theme="light"] .app-main .btn-outline-success:focus-visible {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
}

html[data-theme="light"] .app-main .btn-outline-danger {
    border-color: #fda4af;
    color: #e11d48;
}

html[data-theme="light"] .app-main .btn-outline-danger:hover,
html[data-theme="light"] .app-main .btn-outline-danger:focus-visible {
    background: #fff1f2;
    border-color: #e11d48;
    color: #be123c;
}

@media (max-width: 820px) {
    .app-main .row > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .dashboard-metric-grid,
    .dashboard-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart-grid,
    .dashboard-table-grid,
    .category-chart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    body.app-sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        bottom: 0;
        height: 100dvh;
        left: 0;
        min-height: 100dvh;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        width: min(20rem, calc(100vw - 4rem));
        z-index: 1050;
    }

    .app-sidebar {
        border-bottom: 0;
        border-right: 1px solid var(--ancora-sidebar-border);
        gap: 0.9rem;
        max-height: 100dvh;
        padding: 1rem;
    }

    .app-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .app-sidebar-overlay {
        background: rgba(2, 6, 23, 0.66);
        border: 0;
        cursor: default;
        height: 100dvh;
        inset: 0;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity 0.2s ease;
        width: 100vw;
        z-index: 1040;
    }

    .app-sidebar-open .app-sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .app-sidebar-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .app-brand {
        min-height: auto;
    }

    .app-nav-scroll {
        margin: 0;
        overflow-y: auto;
        padding-right: 0.15rem;
    }

    .app-nav-list {
        gap: 0.5rem;
        grid-template-columns: 1fr;
    }

    .app-nav-section {
        margin-left: 0.15rem;
        margin-top: 0.95rem;
    }

    .app-nav-link {
        border-radius: 1rem;
        min-height: 3.2rem;
        padding: 0.45rem 0.6rem;
    }

    .app-nav-link:hover,
    .app-nav-link:focus {
        transform: none;
    }

    .app-nav-link.active::before {
        height: 0.2rem;
        left: 1rem;
        top: 0.2rem;
        transform: none;
        width: 1.6rem;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
        width: 100%;
    }

    .app-topbar {
        backdrop-filter: blur(14px);
        background: rgba(11, 17, 28, 0.82);
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 1rem;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        min-height: 2.5rem;
        padding: 0.45rem;
        position: sticky;
        top: 0.75rem;
        z-index: 1030;
    }

    .app-user-menu {
        min-width: min(21rem, calc(100vw - 2rem));
    }

    .app-user-menu-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .app-status-badge {
        grid-column: 2;
        justify-self: start;
    }

    .page-header {
        align-items: stretch !important;
        flex-direction: column;
    }

    .page-header .btn {
        width: 100%;
    }

    .app-main > form > .btn,
    .app-main > form > a.btn {
        justify-content: center;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .data-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .data-page-header > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
        justify-content: stretch !important;
        width: 100%;
    }

    .data-page-header .action-button,
    .data-page-header > a {
        width: 100%;
    }

    .data-page-header .d-flex > .action-button {
        min-height: 3.2rem;
        width: 100%;
    }

    .data-filter,
    .data-filter.compact {
        display: grid;
        grid-template-columns: 1fr;
    }

    .data-page-header .filter-bar.data-filter.compact {
        border-radius: 0.95rem;
        margin: 0;
        padding: 0.85rem;
        width: 100%;
    }

    .filter-field.compact-field,
    .filter-field.year-field {
        min-width: 0;
        width: 100%;
    }

    .filter-field {
        gap: 0.3rem;
    }

    .data-filter .form-control,
    .data-filter .form-select {
        height: 2.45rem;
    }

    .data-filter-button {
        min-height: 2.65rem;
        width: 100%;
    }

    .data-table-card {
        border-radius: 0.9rem;
    }

    .data-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-filter {
        border-radius: 0.85rem;
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-filter-field,
    .dashboard-filter-year {
        min-width: 0;
    }

    .dashboard-filter input,
    .dashboard-filter select {
        min-width: 0;
        width: 100%;
    }

    .dashboard-filter-button {
        width: 100%;
    }

    .dashboard-metric-grid,
    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .balance-hero {
        border-radius: 1rem;
        padding: 1rem;
    }

    .balance-hero-header {
        align-items: start;
        flex-direction: column;
    }

    .balance-delta {
        align-items: start;
        justify-items: start;
    }

    .balance-amount {
        font-size: 1.9rem;
    }

    .balance-chart-wrap,
    .chart-container-soft {
        height: 18rem;
    }

    .category-donut-wrap {
        height: 15rem;
    }

    .goal-item {
        grid-template-columns: 1fr;
    }

    .guide-flow,
    .guide-grid,
    .guide-panel {
        grid-template-columns: 1fr;
    }

    .auth-centered-shell {
        align-items: flex-start;
        padding-top: 4rem;
    }

    .auth-footer {
        padding-top: 3rem;
    }

    .auth-footer-main,
    .auth-footer-sections {
        grid-template-columns: 1fr;
    }

    .auth-footer-main {
        gap: 2.5rem;
    }

    .auth-footer-sections {
        gap: 2rem;
    }

    .auth-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 0.75rem;
    }

    .app-topbar {
        border-radius: 0.85rem;
        top: 0.5rem;
    }

    .sidebar {
        width: min(19rem, calc(100vw - 3rem));
    }

    .data-page-header h1,
    .dashboard-header h1,
    .profile-header h1,
    .app-main .page-header h1 {
        font-size: 1.6rem;
        line-height: 1.12;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-cover {
        min-height: 7.5rem;
    }

    .profile-avatar-row {
        align-items: start;
        padding: 0;
    }

    .profile-avatar-preview {
        height: 5.75rem;
        width: 5.75rem;
    }

    .action-button,
    .data-filter-button,
    .dashboard-filter-button {
        min-height: 2.85rem;
    }

    .finance-card strong {
        font-size: 1.18rem;
    }

    .balance-amount {
        font-size: 1.65rem;
    }

    .balance-hero-stats {
        gap: 0.75rem;
    }

    .chart-container-soft,
    .balance-chart-wrap {
        height: 16rem;
    }

    .category-chart-layout {
        padding: 0.75rem;
    }

    .category-list-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .category-list-item b {
        grid-column: 2;
        white-space: normal;
    }

    .data-table-card,
    .dashboard-card,
    .finance-card,
    .guide-flow-item,
    .guide-panel,
    .guide-mini-panel,
    .app-main .card {
        border-radius: 0.85rem;
    }

    .data-table-wrap,
    .dashboard-table-wrap {
        overflow-x: visible;
    }

    .data-table,
    .dashboard-table {
        border-collapse: separate;
        border-spacing: 0;
        display: block;
        min-width: 0;
        width: 100%;
    }

    .data-table thead,
    .dashboard-table thead {
        display: none;
    }

    .data-table tbody,
    .dashboard-table tbody {
        display: grid;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .data-table tbody tr,
    .dashboard-table tbody tr {
        background: rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 0.85rem;
        display: grid;
        overflow: hidden;
    }

    .data-table tbody td,
    .dashboard-table tbody td {
        align-items: start;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        display: grid;
        gap: 0.65rem;
        grid-template-columns: minmax(6.5rem, 0.44fr) minmax(0, 1fr);
        padding: 0.75rem;
        text-align: left !important;
        white-space: normal;
    }

    .data-table tbody td:last-child,
    .dashboard-table tbody td:last-child {
        border-bottom: 0;
    }

    .data-table tbody td::before,
    .dashboard-table tbody td::before {
        color: #8fa3bd;
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .data-table tbody td[colspan],
    .dashboard-table tbody td[colspan] {
        display: block;
        text-align: center !important;
    }

    .data-table tbody td[colspan]::before,
    .dashboard-table tbody td[colspan]::before {
        content: "";
        display: none;
    }

    .data-table tbody td.table-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        justify-content: flex-start;
        padding-left: 0.75rem;
    }

    .data-table tbody td.table-actions::before {
        content: "";
        display: none;
    }

    .table-actions > a + a,
    .table-actions > a + form,
    .table-actions > form + a,
    .table-actions > form + form {
        margin-left: 0;
    }

    .admin-profile-form {
        align-items: stretch;
        flex: 1 1 100%;
        flex-direction: column;
        width: 100%;
    }

    .admin-status-form,
    .admin-block-form {
        align-items: stretch;
        flex: 1 1 100%;
        flex-direction: column;
        width: 100%;
    }

    .admin-block-form .form-control {
        max-width: none;
    }

    .admin-profile-form .form-select {
        min-width: 0;
        width: 100%;
    }

    .table-actions .btn,
    .table-action-link {
        flex: 1 1 7rem;
    }

    .data-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .data-pagination .pagination {
        flex-wrap: wrap;
    }

    .support-detail-grid {
        grid-template-columns: 1fr;
    }

    .support-message {
        max-width: 100%;
    }

    .auth-centered-shell {
        padding: 2rem 0.85rem;
    }

    .auth-centered-card {
        padding: 1.4rem;
    }

    .auth-heading h1 {
        font-size: 1.55rem;
    }
}

@media (max-width: 420px) {
    .data-table tbody td,
    .dashboard-table tbody td {
        grid-template-columns: 1fr;
    }

    .app-user-menu {
        min-width: calc(100vw - 1.5rem);
    }

    .app-notification-menu {
        min-width: calc(100vw - 1.5rem);
    }

    .category-list-item {
        grid-template-columns: 1fr;
    }

    .category-list-item > span {
        display: none;
    }

    .category-list-item b {
        grid-column: auto;
    }
}

.support-live-status {
    color: #9fb3cc;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 0.7rem;
}

.support-live-status.is-error {
    color: #ff8ba1;
}

html[data-theme="light"] .support-live-status {
    color: #53657d;
}

html[data-theme="light"] .support-live-status.is-error {
    color: #be123c;
}

@media (max-width: 640px) {
    .admin-users-table tbody td {
        grid-template-columns: 1fr;
    }

    .admin-users-table tbody td::before {
        margin-bottom: -0.25rem;
    }

    .admin-users-table tbody td.table-actions,
    .admin-user-actions {
        display: grid;
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .admin-users-table .admin-profile-form,
    .admin-users-table .admin-status-form,
    .admin-users-table .admin-block-form {
        display: grid;
        flex: none;
        gap: 0.65rem;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-users-table .admin-profile-form .form-select,
    .admin-users-table .admin-block-form .form-control,
    .admin-users-table .admin-profile-form .btn,
    .admin-users-table .admin-status-form .btn,
    .admin-users-table .admin-block-form .btn {
        max-width: none;
        min-height: 2.75rem;
        width: 100%;
    }
}
