:root {
    --app-surface: #ffffff;
    --app-surface-soft: #f5f7fb;
    --app-surface-muted: #edf2f7;
    --app-border: rgba(15, 23, 42, 0.08);
    --app-muted: #64748b;
    --app-primary-shadow: rgba(var(--app-primary-rgb), 0.24);
    --app-shadow-soft: 0 10px 24px rgba(var(--app-primary-rgb), 0.08);
    --app-shadow-card: 0 18px 40px rgba(var(--app-primary-rgb), 0.11);
    --app-mobile-shell: min(100%, 1120px);
}

[data-bs-theme="dark"] {
    --app-surface: #0f172a;
    --app-surface-soft: #162033;
    --app-surface-muted: #1b263b;
    --app-border: rgba(148, 163, 184, 0.16);
    --app-muted: #94a3b8;
    --app-primary-shadow: rgba(var(--app-primary-rgb), 0.34);
    --app-shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.28);
    --app-shadow-card: 0 18px 42px rgba(2, 6, 23, 0.38);
}

.page-header-card,
.soft-card,
.auth-card,
.history-card,
.stat-card,
.summary-card,
.empty-state,
.fin-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px !important;
    border: 1px solid var(--app-border) !important;
    background: var(--app-surface) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.page-header-card::before,
.soft-card::before,
.auth-card::before,
.history-card::before,
.stat-card::before,
.summary-card::before,
.fin-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--app-primary-rgb), 0.18), transparent);
    pointer-events: none;
}

.page-header-card .card-body,
.card.soft-card .card-body {
    padding: 1.4rem;
}

.main-container {
    width: 100%;
    max-width: var(--app-mobile-shell);
    margin-inline: auto;
}

.navbar > .container-fluid {
    width: 100%;
    max-width: var(--app-mobile-shell);
    margin-inline: auto;
}

.fin-topnav-shell {
    min-height: 78px;
}

.fin-header-brand {
    min-width: 0;
}

.fin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.fin-header-icon {
    position: relative;
    overflow: hidden;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff, #f4f8ff) !important;
    border: 1px solid rgba(var(--app-primary-rgb), 0.12) !important;
    color: #1d4d8f !important;
    box-shadow: 0 12px 24px rgba(var(--app-primary-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fin-header-icon::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
    pointer-events: none;
}

[data-bs-theme="dark"] .fin-header-icon {
    background: linear-gradient(180deg, #132136, #0f172a) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #cfe1ff !important;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .fin-header-icon::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.fin-header-icon:hover,
.fin-header-icon:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(var(--app-primary-rgb), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.fin-header-icon i {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.fin-header-icon .sun,
.fin-header-icon .moon {
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.notify-badge {
    min-width: 18px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.63rem;
}

.filter-active-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32);
}

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

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(var(--app-primary-rgb), 0.08);
    color: var(--app-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    margin-bottom: 0.3rem;
    color: #162337;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

[data-bs-theme="dark"] .page-title {
    color: #f8fafc;
}

.page-subtitle {
    max-width: 48rem;
    color: var(--app-muted);
    font-size: 0.95rem;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.fin-filter-trigger {
    min-width: 162px;
    min-height: 50px;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 999px !important;
    font-weight: 800 !important;
}

.btn-brand {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong)) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 16px 30px rgba(var(--app-primary-rgb), 0.28) !important;
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--app-primary-strong), var(--app-primary)) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-soft,
.btn-ghost {
    min-height: 44px;
    border-radius: 16px !important;
    background: rgba(var(--app-primary-rgb), 0.08) !important;
    border: 1px solid rgba(var(--app-primary-rgb), 0.16) !important;
    color: var(--app-primary) !important;
}

.btn-ghost {
    background: var(--app-surface) !important;
    border-color: var(--app-border) !important;
    color: var(--app-muted) !important;
    box-shadow: none !important;
}

.btn-soft:hover,
.btn-ghost:hover {
    background: rgba(var(--app-primary-rgb), 0.12) !important;
}

.soft-card,
.auth-card,
.history-card,
.stat-card,
.summary-card,
.empty-state {
    padding: 1.35rem;
}

.history-card h2,
.history-card h3 {
    margin: 0;
    color: #152238;
    font-size: 1.05rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .history-card h2,
[data-bs-theme="dark"] .history-card h3 {
    color: #f8fafc;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.history-grid span,
.summary-row span,
.stat-card span,
.volume-row small,
.fin-data-point span {
    color: var(--app-muted);
}

.history-grid strong,
.summary-row strong,
.volume-row strong,
.fin-data-point strong {
    color: #132033;
}

[data-bs-theme="dark"] .history-grid strong,
[data-bs-theme="dark"] .summary-row strong,
[data-bs-theme="dark"] .volume-row strong,
[data-bs-theme="dark"] .fin-data-point strong {
    color: #f8fafc;
}

.stat-card {
    padding-inline-start: 1.55rem;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--app-primary), var(--app-primary-strong));
}

[dir="rtl"] .stat-card::after {
    inset: 0 0 0 auto;
}

.stat-card h2 {
    margin: 0.35rem 0 0.18rem;
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.summary-row,
.volume-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--app-border);
}

.summary-row:last-child,
.volume-row:last-child {
    border-bottom: 0;
}

.choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
    font-weight: 700;
    color: #1f2937;
}

[data-bs-theme="dark"] .choice-pill {
    color: #f8fafc;
}

.choice-pill input {
    accent-color: var(--app-primary);
}

.table-modern {
    color: inherit;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    padding: 1rem;
    background: var(--app-surface-soft);
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--app-border) !important;
}

.table-modern thead th:first-child {
    border-top-left-radius: 18px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 18px;
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--app-border) !important;
}

.table-modern tbody tr:hover {
    background: rgba(var(--app-primary-rgb), 0.03);
}

.table-modern tbody tr:last-child td {
    border-bottom: 0 !important;
}

.table-responsive {
    border-radius: 24px;
}

.filter-panel-modern {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}

.stat-card-modern {
    position: relative;
    overflow: hidden;
    padding: 1.45rem;
    border-radius: 28px;
    border: 1px solid rgba(var(--app-primary-rgb), 0.12);
    background: linear-gradient(180deg, var(--app-surface), var(--app-surface-soft));
    box-shadow: var(--app-shadow-soft);
}

.stat-card-modern-primary {
    border-left: 4px solid var(--app-primary);
}

.stat-card-modern-success {
    border-left: 4px solid #16a34a;
}

.stat-card-modern-warning {
    border-left: 4px solid #f59e0b;
}

.stat-card-modern-danger {
    border-left: 4px solid #dc2626;
}

.stat-card-modern-info {
    border-left: 4px solid #0ea5e9;
}

[dir="rtl"] .stat-card-modern-primary,
[dir="rtl"] .stat-card-modern-success,
[dir="rtl"] .stat-card-modern-warning,
[dir="rtl"] .stat-card-modern-danger,
[dir="rtl"] .stat-card-modern-info {
    border-left: 1px solid rgba(var(--app-primary-rgb), 0.12);
    border-right-width: 4px;
    border-right-style: solid;
}

[dir="rtl"] .stat-card-modern-primary {
    border-right-color: var(--app-primary);
}

[dir="rtl"] .stat-card-modern-success {
    border-right-color: #16a34a;
}

[dir="rtl"] .stat-card-modern-warning {
    border-right-color: #f59e0b;
}

[dir="rtl"] .stat-card-modern-danger {
    border-right-color: #dc2626;
}

[dir="rtl"] .stat-card-modern-info {
    border-right-color: #0ea5e9;
}

.stat-card-modern .stat-label {
    margin-bottom: 0.7rem;
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card-modern .stat-value {
    color: #132033;
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

[data-bs-theme="dark"] .stat-card-modern .stat-value {
    color: #f8fafc;
}

.stat-card-modern .stat-change {
    margin-top: 0.65rem;
    color: var(--app-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.soft-card-modern {
    padding: 0;
}

.soft-card-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.35rem 1rem;
    border-bottom: 1px solid var(--app-border);
}

.soft-card-modern-title {
    margin: 0 0 0.25rem;
    color: #132033;
    font-size: 1.05rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .soft-card-modern-title {
    color: #f8fafc;
}

.soft-card-modern-meta {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.84rem;
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 50px;
    padding-inline: 1rem;
    border-radius: 18px !important;
    border-color: var(--app-border) !important;
    background: var(--app-surface) !important;
}

textarea.form-control {
    min-height: unset;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: #8ca0b8;
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--app-primary-rgb), 0.35) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--app-primary-rgb), 0.12) !important;
}

.filter-panel-modern .form-control,
.filter-panel-modern .form-select,
.offcanvas .form-control,
.offcanvas .form-select {
    border-width: 1.5px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(var(--app-primary-rgb), 0.06);
}

.form-check-input:checked {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.fin-panel {
    display: flex;
    flex-direction: column;
}

.fin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.35rem 0;
}

.fin-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.fin-panel-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(var(--app-primary-rgb), 0.09);
    color: var(--app-primary);
    font-size: 1.1rem;
}

.fin-panel-title {
    margin: 0;
    color: #152238;
    font-size: 1.08rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-panel-title {
    color: #f8fafc;
}

.fin-panel-subtitle {
    margin: 0.3rem 0 0;
    color: var(--app-muted);
    font-size: 0.88rem;
}

.fin-panel-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.fin-panel-body {
    padding: 1.35rem;
}

.fin-panel-body-flush {
    padding: 0;
}

.fin-panel-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--app-primary-rgb), 0.08);
    color: var(--app-primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.fin-empty-state {
    display: grid;
    place-items: center;
    gap: 0.85rem;
    text-align: center;
    padding: 1.65rem;
    color: var(--app-muted) !important;
}

.fin-empty-state strong {
    color: #152238;
    font-size: 1rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-empty-state strong {
    color: #f8fafc;
}

.fin-empty-state p {
    margin: 0;
    max-width: 26rem;
}

.fin-empty-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(var(--app-primary-rgb), 0.08);
    color: var(--app-primary);
    font-size: 1.45rem;
}

.fin-hero-banner {
    position: relative;
    overflow: hidden;
    padding: 1.45rem;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
    color: #ffffff;
    box-shadow: 0 24px 44px rgba(var(--app-primary-rgb), 0.28);
}

.fin-hero-banner::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.fin-report-balance {
    position: relative;
    overflow: hidden;
    padding: 1.4rem;
    border-radius: 32px;
    background: linear-gradient(145deg, #0f172a, var(--app-primary));
    color: #ffffff;
    box-shadow: 0 26px 48px rgba(var(--app-primary-rgb), 0.28);
}

.fin-report-balance::after {
    content: "";
    position: absolute;
    inset: auto -32px -42px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.fin-report-balance h1,
.fin-report-balance h2,
.fin-report-balance p,
.fin-report-balance span,
.fin-report-balance strong,
.fin-report-balance small {
    color: inherit;
}

.fin-report-balance .fin-balance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1rem;
    align-items: end;
}

.fin-balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 800;
}

.fin-balance-reading {
    font-size: clamp(2rem, 7vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.06em;
}

.fin-balance-caption {
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.76) !important;
}

.fin-balance-stat-grid {
    display: grid;
    gap: 0.8rem;
}

.fin-balance-stat {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.fin-balance-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.fin-balance-stat strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.fin-hero-banner h2,
.fin-hero-banner h3,
.fin-hero-banner strong,
.fin-hero-banner p,
.fin-hero-banner span {
    color: inherit;
}

.fin-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.fin-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 800;
}

.fin-info-grid {
    display: grid;
    gap: 0.8rem;
}

.fin-data-point {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.fin-hero-banner .fin-data-point {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.fin-hero-banner .fin-data-point span {
    color: rgba(255, 255, 255, 0.76);
}

.fin-hero-banner .fin-data-point strong {
    color: #ffffff;
}

.fin-list-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.fin-list-card-unread {
    background: rgba(var(--app-primary-rgb), 0.07);
    border-color: rgba(var(--app-primary-rgb), 0.18);
}

.fin-list-leading {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    flex: 1 1 0;
    min-width: 0;
}

.fin-list-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(var(--app-primary-rgb), 0.1);
    color: var(--app-primary);
    font-size: 1.05rem;
}

.fin-order-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.05rem;
    border-radius: 26px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
}

.fin-order-card::after {
    content: "";
    position: absolute;
    inset: auto 1rem 0.55rem 1rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--app-primary-rgb), 0.25), rgba(var(--app-primary-rgb), 0.06));
}

.fin-order-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.fin-order-leading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.fin-order-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(var(--app-primary-rgb), 0.09);
    color: var(--app-primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fin-order-avatar.success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.fin-order-avatar.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.fin-order-avatar.danger {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.fin-order-avatar.info {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.fin-order-title {
    margin: 0 0 0.2rem;
    color: #152238;
    font-size: 1rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-order-title {
    color: #f8fafc;
}

.fin-order-subtitle,
.fin-order-footnote {
    color: var(--app-muted);
    font-size: 0.86rem;
}

.fin-order-amount {
    display: block;
    color: #152238;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.1;
}

[data-bs-theme="dark"] .fin-order-amount {
    color: #f8fafc;
}

.fin-order-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.fin-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.15rem;
}

.fin-inline-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.fin-detail-sheet {
    width: 100%;
    margin-top: 0.9rem;
    border-top: 1px solid var(--app-border);
    padding-top: 0.9rem;
}

.fin-detail-sheet summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    cursor: pointer;
    color: var(--app-primary);
    font-weight: 800;
}

.fin-detail-sheet summary::-webkit-details-marker {
    display: none;
}

.fin-detail-sheet[open] summary {
    margin-bottom: 0.9rem;
}

.fin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.fin-detail-note {
    margin-top: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    color: var(--app-muted);
}

.fin-catalog-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fin-tab-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.fin-tab-nav::-webkit-scrollbar {
    display: none;
}

.fin-tab-nav .nav-link {
    min-width: 148px;
    padding: 0.95rem 1rem;
    border-radius: 24px !important;
    border: 1px solid var(--app-border) !important;
    background: var(--app-surface) !important;
    color: var(--app-muted) !important;
    font-weight: 800;
    box-shadow: var(--app-shadow-soft);
}

.fin-tab-nav .nav-link.active {
    background: rgba(var(--app-primary-rgb), 0.09) !important;
    border-color: rgba(var(--app-primary-rgb), 0.18) !important;
    color: var(--app-primary) !important;
}

.fin-tab-nav .nav-link span,
.fin-tab-nav .nav-link small {
    display: block;
    line-height: 1.15;
}

.fin-tab-nav .nav-link small {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.85;
}

.fin-tab-panel {
    margin-top: 1rem;
}

.fin-compact-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.fin-compact-title {
    margin: 0;
    color: #152238;
    font-size: clamp(1.3rem, 3.6vw, 1.7rem);
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-compact-title {
    color: #f8fafc;
}

.fin-compact-subtitle {
    max-width: 34rem;
    color: var(--app-muted);
    font-size: 0.92rem;
}

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

.fin-compact-btn {
    min-height: 40px;
    padding: 0.62rem 0.92rem !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

.fin-report-tabs .nav-link {
    min-width: auto;
    padding: 0.55rem 0.15rem 0.9rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
    white-space: nowrap;
    color: var(--app-muted) !important;
}

.fin-report-tabs .nav-item {
    flex: 0 0 auto;
}

.fin-report-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transform: scaleX(0.32);
    transform-origin: center;
    transition: transform 0.22s ease, background 0.22s ease;
}

.fin-report-tabs .nav-link:hover,
.fin-report-tabs .nav-link:focus {
    color: #152238 !important;
}

[data-bs-theme="dark"] .fin-report-tabs .nav-link:hover,
[data-bs-theme="dark"] .fin-report-tabs .nav-link:focus {
    color: #f8fafc !important;
}

.fin-report-tabs .nav-link.active {
    background: transparent !important;
    border: 0 !important;
    color: var(--app-primary) !important;
}

.fin-report-tabs .nav-link.active::after {
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-strong));
    transform: scaleX(1);
}

.fin-report-tabs .nav-link span {
    display: inline-block;
    font-size: 0.95rem;
}

.fin-report-tabs .nav-link small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-top: 0;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 1;
}

.fin-report-tabs .nav-link.active small {
    background: rgba(var(--app-primary-rgb), 0.1);
    border-color: rgba(var(--app-primary-rgb), 0.18);
    color: var(--app-primary);
}

.fin-report-tabs {
    gap: 1.15rem;
    padding-bottom: 0;
    border-bottom: 1px solid var(--app-border);
}

.fin-report-balance-compact {
    padding: 1.15rem;
    border-radius: 28px;
    box-shadow: 0 20px 38px rgba(var(--app-primary-rgb), 0.24);
}

.fin-report-balance-compact .fin-balance-badge {
    margin-bottom: 0.7rem;
    padding: 0.4rem 0.76rem;
    font-size: 0.76rem;
}

.fin-report-balance-compact .fin-balance-reading {
    font-size: clamp(1.7rem, 5vw, 2.3rem);
}

.fin-report-balance-compact .fin-balance-caption {
    max-width: 24rem;
    font-size: 0.88rem;
}

.fin-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.fin-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--app-primary-rgb), 0.14);
    background: rgba(var(--app-primary-rgb), 0.08);
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.fin-stat-rail {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
}

.fin-stat-rail::-webkit-scrollbar {
    display: none;
}

.fin-stat-chip {
    flex: 0 0 198px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
}

.fin-stat-chip-wide {
    flex-basis: 230px;
}

.fin-stat-chip-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(var(--app-primary-rgb), 0.1);
    color: var(--app-primary);
    font-size: 1.05rem;
}

.fin-stat-chip-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.fin-stat-chip-copy strong,
.fin-stat-chip-copy small {
    display: block;
}

.fin-stat-chip-copy strong {
    color: #152238;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
}

[data-bs-theme="dark"] .fin-stat-chip-copy strong {
    color: #f8fafc;
}

.fin-stat-chip-copy small {
    margin-top: 0.18rem;
    color: var(--app-muted);
    font-size: 0.77rem;
}

.fin-stat-chip-value {
    color: #152238;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

[data-bs-theme="dark"] .fin-stat-chip-value {
    color: #f8fafc;
}

.fin-stat-chip-value-text {
    font-size: 0.95rem;
}

.fin-rate-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fin-rate-card {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: linear-gradient(180deg, var(--app-surface), var(--app-surface-soft));
    box-shadow: var(--app-shadow-soft);
}

.fin-rate-card-empty {
    background: var(--app-surface);
}

.fin-rate-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fin-rate-card h3 {
    margin: 0 0 0.2rem;
    color: #152238;
    font-size: 1rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-rate-card h3 {
    color: #f8fafc;
}

.fin-rate-card p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.fin-rate-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: rgba(var(--app-primary-rgb), 0.09);
    border: 1px solid rgba(var(--app-primary-rgb), 0.16);
    color: var(--app-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.fin-rate-value {
    display: block;
    margin-bottom: 0.35rem;
    color: #152238;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

[data-bs-theme="dark"] .fin-rate-value {
    color: #f8fafc;
}

.fin-rate-value-empty {
    color: var(--app-muted);
    font-size: 1rem;
}

.currency-tag-picker {
    display: grid;
    gap: 0.9rem;
}

.currency-tag-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.currency-tag-picker-note {
    color: var(--app-muted);
    font-size: 0.84rem;
}

.currency-tag-picker-count {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.currency-tag-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.currency-tag {
    display: block;
    cursor: pointer;
}

.currency-tag input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.currency-tag-body {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 20px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.currency-tag:hover .currency-tag-body {
    transform: translateY(-1px);
}

.currency-tag-code {
    min-width: 52px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    border-radius: 14px;
    background: rgba(var(--app-primary-rgb), 0.09);
    color: var(--app-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.currency-tag-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.currency-tag-copy strong,
.currency-tag-copy small {
    display: block;
}

.currency-tag-copy strong {
    color: #152238;
    font-size: 0.9rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .currency-tag-copy strong {
    color: #f8fafc;
}

.currency-tag-copy small {
    margin-top: 0.12rem;
    color: var(--app-muted);
    font-size: 0.76rem;
}

.currency-tag-check {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
    color: transparent;
    transition: all 0.2s ease;
}

.currency-tag input:checked + .currency-tag-body {
    border-color: rgba(var(--app-primary-rgb), 0.22);
    background: rgba(var(--app-primary-rgb), 0.08);
}

.currency-tag input:checked + .currency-tag-body .currency-tag-check {
    border-color: rgba(var(--app-primary-rgb), 0.18);
    background: var(--app-primary);
    color: #ffffff;
}

.currency-tag input:checked + .currency-tag-body .currency-tag-code {
    background: rgba(var(--app-primary-rgb), 0.15);
}

.fin-sheet-card {
    padding: 1.1rem;
    border-radius: 28px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
}

.fin-sheet-card h3 {
    margin: 0 0 0.3rem;
    color: #152238;
    font-size: 1.05rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-sheet-card h3 {
    color: #f8fafc;
}

.fin-sheet-card p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.87rem;
}

.fin-tab-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.fin-service-card {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
}

.fin-service-card h3 {
    margin: 0 0 0.35rem;
    color: #152238;
    font-size: 1rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-service-card h3 {
    color: #f8fafc;
}

.fin-service-card p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.86rem;
}

.fin-service-card .fin-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.fin-feed-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-soft);
}

.fin-feed-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(var(--app-primary-rgb), 0.1);
    color: var(--app-primary);
    font-size: 1rem;
    font-weight: 800;
}

.fin-feed-avatar.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.fin-feed-avatar.success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.fin-feed-content {
    flex: 1 1 0;
    min-width: 0;
}

.fin-feed-content h3 {
    margin: 0 0 0.25rem;
    color: #152238;
    font-size: 0.98rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-feed-content h3 {
    color: #f8fafc;
}

.fin-feed-content p,
.fin-feed-content small {
    color: var(--app-muted);
}

.fin-list-card h3 {
    margin: 0 0 0.25rem;
    color: #152238;
    font-size: 1rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .fin-list-card h3 {
    color: #f8fafc;
}

.fin-list-card p,
.fin-list-card small {
    color: var(--app-muted);
}

.fin-check-list {
    display: grid;
    gap: 0.8rem;
}

.fin-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.fin-check-item i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--app-primary-rgb), 0.1);
    color: var(--app-primary);
}

.fin-check-item strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #152238;
}

[data-bs-theme="dark"] .fin-check-item strong {
    color: #f8fafc;
}

.preferences-block + .preferences-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--app-border);
}

.preferences-label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--app-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.preferences-grid-languages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preference-choice {
    width: 100%;
    min-height: 86px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
    color: #152238;
    font-weight: 800;
    transition: 0.2s ease;
}

[data-bs-theme="dark"] .preference-choice {
    color: #f8fafc;
}

.preference-choice i {
    color: var(--app-primary);
    font-size: 1.3rem;
}

.preference-choice:hover,
.preference-choice.active {
    background: rgba(var(--app-primary-rgb), 0.09);
    border-color: rgba(var(--app-primary-rgb), 0.16);
    box-shadow: var(--app-shadow-soft);
}

.settings-section-card {
    padding: 1.35rem;
    border-radius: 28px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.settings-color-input {
    width: 72px;
    min-width: 72px;
    min-height: 54px;
    padding: 0.35rem;
    border-radius: 18px !important;
}

.settings-color-chip {
    min-height: 54px;
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    border-radius: 18px;
    border: 1px dashed var(--app-border);
    background: var(--app-surface);
    color: var(--app-muted);
    font-weight: 700;
}

.settings-logo-preview-box {
    min-height: 126px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px dashed var(--app-border);
    background: var(--app-surface);
}

.settings-logo-preview {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.settings-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 24px;
}

.settings-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-preview-card {
    overflow: hidden;
}

.settings-brand-preview {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-top: 1.35rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.settings-brand-preview strong,
.settings-brand-preview span {
    display: block;
}

.settings-brand-preview span {
    margin-top: 0.2rem;
    color: var(--app-muted);
}

.settings-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 22px;
}

.settings-preview-swatch {
    height: 78px;
    margin: 1rem 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.settings-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.settings-metric-item {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.settings-metric-item span,
.settings-tip-item span {
    display: block;
    color: var(--app-muted);
}

.settings-metric-item span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-metric-item strong {
    display: block;
    margin-top: 0.45rem;
}

.settings-tips-list {
    display: grid;
    gap: 0.85rem;
}

.settings-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--app-border);
    background: var(--app-surface-soft);
}

.settings-tip-item i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(var(--app-primary-rgb), 0.1);
    color: var(--app-primary);
}

.auth-split-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: stretch;
}

.auth-showcase-card,
.auth-form-card {
    border-radius: 34px;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-card);
}

.auth-showcase-card {
    padding: 1.65rem;
    background: linear-gradient(155deg, #0f172a, var(--app-primary-strong));
    color: #ffffff;
}

.auth-showcase-card .eyebrow {
    margin-bottom: 1rem;
    color: #ffffff;
}

.auth-lead {
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.78);
}

.auth-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.auth-mini-card {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-mini-card strong,
.auth-mini-card span {
    display: block;
    color: #ffffff;
}

.auth-mini-card span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.auth-support-list {
    display: grid;
    gap: 0.85rem;
}

.auth-support-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-support-item i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.auth-support-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #ffffff;
}

.auth-support-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.auth-form-card {
    padding: 1.65rem;
    background: var(--app-surface);
}

.auth-form-header {
    margin-bottom: 1.3rem;
}

.auth-form-header .eyebrow {
    margin-bottom: 0.65rem;
}

.auth-form-header h2 {
    margin-bottom: 0.35rem;
    color: #152238;
    font-size: 1.6rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .auth-form-header h2 {
    color: #f8fafc;
}

.auth-form-header p {
    margin: 0;
    color: var(--app-muted);
}

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

.auth-centered-stage {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0 2.5rem;
}

.auth-centered-shell {
    width: min(100%, 390px);
}

.auth-form-card-centered {
    padding: 1.8rem;
}

.auth-form-card-centered .auth-form-header {
    margin-bottom: 1.1rem;
}

.auth-form-card-plain {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.auth-input-shell {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(var(--app-primary-rgb), 0.08);
    color: var(--app-primary);
    z-index: 1;
}

.auth-input-control {
    min-height: 58px;
    padding-left: 4rem !important;
    padding-right: 1rem !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    box-shadow: 0 12px 24px rgba(var(--app-primary-rgb), 0.08);
}

.auth-input-control-password {
    padding-right: 4rem !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--app-muted) !important;
    box-shadow: none !important;
    z-index: 1;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: var(--app-primary) !important;
}

.auth-note {
    margin-top: 1.2rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: var(--app-surface-soft);
    color: var(--app-muted);
    text-align: center;
}

.auth-footer-content {
    margin-top: 1rem;
}

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

@media (max-width: 991.98px) {
    .page-header-grid,
    .fin-hero-grid,
    .auth-split-shell {
        grid-template-columns: 1fr;
    }

    .page-actions,
    .fin-panel-tools {
        justify-content: flex-start;
    }

    .auth-mini-grid,
    .settings-preview-metrics,
    .fin-report-balance .fin-balance-grid,
    .fin-catalog-grid,
    .fin-rate-grid,
    .currency-tag-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .page-header-card .card-body,
    .card.soft-card .card-body,
    .fin-panel-body {
        padding: 1rem;
    }

    .page-header-card,
    .soft-card,
    .auth-card,
    .history-card,
    .stat-card,
    .summary-card,
    .empty-state,
    .fin-panel,
    .auth-showcase-card,
    .auth-form-card {
        border-radius: 24px !important;
    }

    .page-title {
        font-size: 1.55rem;
    }

    .history-grid,
    .preferences-grid,
    .preferences-grid-languages,
    .fin-detail-grid,
    .fin-catalog-grid,
    .fin-rate-grid,
    .currency-tag-grid {
        grid-template-columns: 1fr;
    }

    .soft-card,
    .auth-card,
    .history-card,
    .stat-card,
    .summary-card,
    .empty-state {
        padding: 1rem;
    }

    .fin-header-actions {
        gap: 0.4rem;
    }

    .fin-header-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 16px !important;
    }

    .main-container {
        max-width: 100%;
    }

    .form-control,
    .form-select,
    textarea.form-control {
        min-height: 54px;
        font-size: 16px;
        line-height: 1.25;
    }

    textarea.form-control {
        min-height: 108px;
    }

    .fin-sheet-card {
        padding: 0.85rem;
        border-radius: 24px;
    }

    .fin-panel-header {
        gap: 0.75rem;
        padding: 1rem 1rem 0;
    }

    .fin-panel-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 16px;
        font-size: 1rem;
    }

    .fin-panel-title {
        font-size: 1rem;
    }

    .fin-panel-subtitle {
        margin-top: 0.2rem;
        font-size: 0.82rem;
    }

    .fin-panel-body {
        padding: 1rem;
    }

    .fin-order-card {
        padding: 0.92rem 0.94rem 0.88rem;
        border-radius: 22px;
    }

    .fin-order-card::after {
        inset: auto 0.9rem 0.45rem 0.9rem;
    }

    .fin-order-top {
        flex-direction: column;
        gap: 0.72rem;
        margin-bottom: 0.72rem;
    }

    .fin-order-leading {
        gap: 0.72rem;
        width: 100%;
    }

    .fin-order-avatar {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        border-radius: 18px;
    }

    .fin-order-amount {
        font-size: 1rem;
    }

    .fin-order-meta {
        gap: 0.45rem 0.65rem;
        margin-bottom: 0.72rem;
    }

    .fin-detail-sheet {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .fin-report-balance,
    .fin-hero-banner {
        padding: 1.15rem;
        border-radius: 26px;
    }

    .auth-centered-stage {
        min-height: calc(100vh - 126px);
        align-items: flex-start;
        padding-top: 1rem;
    }

    .auth-centered-shell {
        width: min(100%, 100%);
    }

    .auth-input-control {
        min-height: 56px;
    }

    .fin-compact-header {
        align-items: stretch;
    }

    .fin-compact-actions {
        width: 100%;
    }

    .fin-report-tabs .nav-link {
        min-width: auto;
        padding-inline-end: 0.1rem;
    }

    .fin-report-tabs {
        gap: 0.95rem;
    }
}
