/* ================================================================
   SAVE YOUR COINS — SHARED DESIGN SYSTEM
   Complete replacement stylesheet for login and protected pages.
================================================================ */

/* ================================================================
   TABLE OF CONTENTS

   1. Design tokens and global defaults
   2. Protected application layout
   3. Shared cards, panels, forms, and buttons
   4. Transactions
   5. Budget and charts
   6. Authentication
   7. Profile and settings
   8. Dashboard additions
   9. Accounts overview and account details
   10. Savings goals
   11. Responsive rules
================================================================ */

:root {
    --navy-950: #152c3e;
    --navy-900: #203a50;
    --navy-800: #285269;
    --blue-600: #2980b9;
    --blue-500: #3498db;
    --teal-500: #1abc9c;
    --teal-400: #39d4b3;
    --green-600: #218c5b;
    --green-500: #27ae60;
    --red-600: #c0392b;
    --red-500: #e74c3c;
    --purple-500: #8e44ad;
    --amber-500: #f39c12;

    --text-primary: #263d50;
    --text-secondary: #718096;
    --text-soft: #8b98a4;
    --border-color: #e3e9ee;
    --border-strong: #d5dee6;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --page-background: #f2f7fa;

    --shadow-small: 0 5px 16px rgba(44, 62, 80, 0.08);
    --shadow-medium: 0 14px 35px rgba(44, 62, 80, 0.12);
    --shadow-large: 0 25px 70px rgba(44, 62, 80, 0.18);

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

.positive {
    color: var(--green-500) !important;
}

.negative {
    color: var(--red-500) !important;
}

.error_message,
.inline_message.error_message {
    color: var(--red-600);
    font-weight: 700;
}

.success_message {
    color: var(--green-600);
    font-weight: 700;
}

/* ================================================================
   PROTECTED APPLICATION PAGES
================================================================ */

.app_page {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top left, rgba(26, 188, 156, 0.11), transparent 28%),
        linear-gradient(180deg, #eef5f9 0%, var(--page-background) 38%, #f8fbfd 100%);
}

.app_header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 82px;
    padding: 13px clamp(20px, 4vw, 58px);
    color: white;
    background:
        linear-gradient(135deg, rgba(21, 44, 62, 0.98), rgba(40, 82, 105, 0.98) 64%, rgba(26, 188, 156, 0.96));
    box-shadow: 0 8px 30px rgba(21, 44, 62, 0.18);
    backdrop-filter: blur(12px);
}

.app_brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.app_brand_icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 23px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.app_brand_text strong {
    color: #78f1d4;
}

.app_navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
}

.app_navigation a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app_navigation a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.app_navigation a.active {
    color: var(--navy-900);
    background: white;
    box-shadow: 0 7px 18px rgba(12, 32, 45, 0.18);
}

.nav_icon {
    font-size: 16px;
    line-height: 1;
}

.app_user_controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.app_user_identity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
}

.user_avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

#current_username {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#logout_button {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    color: white;
    background: rgba(231, 76, 60, 0.2);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

#logout_button:hover {
    transform: translateY(-1px);
    background: rgba(231, 76, 60, 0.55);
}

.app_main {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 58px;
}

.page_hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-large);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 251, 0.92));
    box-shadow: var(--shadow-small);
}

.page_hero::after {
    content: "";
    position: absolute;
    top: -85px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.09), rgba(26, 188, 156, 0.15));
}

.page_hero > * {
    position: relative;
    z-index: 1;
}

.page_eyebrow,
.panel_eyebrow {
    margin-bottom: 7px;
    color: var(--teal-500);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.page_hero h1 {
    margin-bottom: 8px;
    color: var(--navy-900);
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -1.4px;
}

.page_description {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.hero_action,
.primary_button,
.secondary_button,
.dark_button,
.success_button,
.danger_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 11px 19px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.hero_action,
.primary_button {
    color: white;
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    box-shadow: 0 9px 23px rgba(41, 128, 185, 0.22);
}

.hero_action:hover,
.primary_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 29px rgba(41, 128, 185, 0.28);
}

.secondary_button {
    color: var(--blue-600);
    border: 1px solid rgba(41, 128, 185, 0.25);
    background: #eef7fc;
}

.secondary_button:hover {
    transform: translateY(-2px);
    background: #e0f1fa;
}

.dark_button {
    color: white;
    background: var(--navy-900);
}

.dark_button:hover {
    transform: translateY(-2px);
    background: var(--navy-950);
}

.success_button {
    color: white;
    background: var(--green-500);
}

.danger_button {
    color: white;
    background: var(--red-500);
}

.success_button:hover,
.danger_button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.full_width_button {
    width: 100%;
}

.summary_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 28px;
}

.dashboard_card,
.summary_card,
.balance_summary_box,
.information_card {
    position: relative;
    min-width: 0;
    padding: 23px;
    overflow: hidden;
    border: 1px solid rgba(227, 233, 238, 0.9);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dashboard_card:hover,
.summary_card:hover,
.balance_summary_box:hover,
.information_card:hover,
.account_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.summary_card,
.balance_summary_box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.summary_card::after,
.balance_summary_box::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.035;
}

.summary_icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
}

.summary_balance .summary_icon,
.balance_summary_box .summary_icon {
    color: var(--blue-600);
    background: rgba(41, 128, 185, 0.11);
}

.summary_income .summary_icon {
    color: var(--green-500);
    background: rgba(39, 174, 96, 0.11);
}

.summary_expense .summary_icon {
    color: var(--red-500);
    background: rgba(231, 76, 60, 0.11);
}

.summary_net .summary_icon {
    color: var(--purple-500);
    background: rgba(142, 68, 173, 0.11);
}

.summary_label {
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.summary_value,
.dashboard_card > p:not(.summary_label):not(.summary_hint) {
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: clamp(23px, 2.4vw, 31px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.summary_hint {
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.5;
}

.content_grid {
    display: grid;
    gap: 22px;
}

.dashboard_content_grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.8fr);
}

.content_panel {
    padding: 27px;
    border: 1px solid rgba(227, 233, 238, 0.92);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-small);
}

.content_panel + .content_panel,
.content_panel + .budget_tip_panel,
.transaction_summary_grid + .content_panel {
    margin-top: 22px;
}

.panel_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 23px;
}

.panel_header h2 {
    margin-bottom: 5px;
    color: var(--navy-900);
    font-size: 22px;
    letter-spacing: -0.4px;
}

.panel_header p:not(.panel_eyebrow) {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.panel_header_actions {
    align-items: center;
}

.panel_link {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--blue-600);
    background: #eef7fc;
    font-size: 11px;
    font-weight: 700;
}

.panel_link:hover {
    background: #e0f1fa;
}

.account_grid,
#accounts_list,
#dashboard_accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
}

.account_card {
    position: relative;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-left-width: 7px !important;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #fbfdfe);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.account_card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
}

.account_card p {
    margin-bottom: 15px;
    color: var(--navy-900);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.edit_account_button,
.delete_account_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px 5px 0 0;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.edit_account_button {
    color: var(--blue-600);
    background: #eef7fc;
}

.delete_account_button {
    color: var(--red-600);
    background: #fff0ee;
}

.edit_account_button:hover,
.delete_account_button:hover {
    transform: translateY(-1px);
}

.empty_state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 28px;
    border: 1px dashed var(--border-strong);
    border-radius: 15px;
    color: var(--text-secondary);
    background: var(--surface-soft);
    text-align: center;
}

.empty_state > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 11px;
    border-radius: 14px;
    color: var(--blue-600);
    background: rgba(41, 128, 185, 0.09);
    font-size: 21px;
}

.empty_state h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 14px;
}

.empty_state p {
    max-width: 360px;
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.6;
}

.recent_transaction_list,
.transaction_list,
#recent_transactions,
#transactions_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#recent_transactions {
    display: grid;
    gap: 11px;
    margin-bottom: 17px;
}

#recent_transactions li {
    position: relative;
    padding: 15px 16px 14px 19px;
    border: 1px solid var(--border-color);
    border-left-width: 5px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 11px rgba(44, 62, 80, 0.05);
}

#recent_transactions li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

#recent_transactions .income-card {
    border-left-color: var(--green-500);
}

#recent_transactions .expense-card {
    border-left-color: var(--red-500);
}

#recent_transactions h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 12px;
}

#recent_transactions p {
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
}

#recent_transactions p:last-child {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
}

.empty_transaction {
    display: block !important;
    padding: 24px !important;
    border: 1px dashed var(--border-strong) !important;
    border-left-width: 1px !important;
    color: var(--text-secondary) !important;
    background: var(--surface-soft) !important;
    text-align: center;
    font-size: 12px;
}

/* ----------------------------
   Transactions page
----------------------------- */

.transaction_summary_grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    gap: 18px;
    margin-bottom: 22px;
}

.balance_summary_box {
    margin: 0;
}

.information_card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.information_icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--teal-500);
    background: rgba(26, 188, 156, 0.1);
    font-weight: 800;
}

.information_card h2 {
    margin-bottom: 6px;
    color: var(--navy-900);
    font-size: 16px;
}

.information_card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.app_form {
    margin: 0 0 23px;
    padding: 23px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfdfe, #f6fafc);
    animation: fadeIn 0.25s ease;
}

#Add_Account_Form:not([style*="display: none"]) {
    display: grid !important;
}

#Add_Transaction_Form:not([style*="display: none"]) {
    display: grid !important;
}

.compact_form {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.65fr) auto;
    align-items: end;
    gap: 15px;
}

.transaction_form_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form_intro {
    grid-column: 1 / -1;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.form_intro h3 {
    margin-bottom: 4px;
    color: var(--navy-900);
    font-size: 15px;
}

.form_intro p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 10px;
}

.form_group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

.form_group label {
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
}

.form_group input,
.form_group select,
#Add_Transaction_Form input,
#Add_Transaction_Form select,
#Add_Account_Form input {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    outline: none;
    color: var(--text-primary);
    background: white;
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form_group input:focus,
.form_group select:focus,
#Add_Transaction_Form input:focus,
#Add_Transaction_Form select:focus,
#Add_Account_Form input:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.09);
}

.color_form_group input[type="color"] {
    padding: 6px;
    cursor: pointer;
}

#date {
    cursor: pointer;
}

#save_account_button {
    align-self: end;
    white-space: nowrap;
}

.form_submit_button {
    grid-column: 1 / -1;
    justify-self: end;
    min-width: 190px;
}

.inline_message {
    min-height: 20px;
    margin: -4px 0 13px;
    font-size: 11px;
}

#transactions_list {
    display: grid;
    gap: 11px;
}

#transactions_list li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--red-500);
    border-radius: 13px;
    background: white;
    box-shadow: 0 4px 13px rgba(44, 62, 80, 0.055);
    animation: fadeIn 0.25s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#transactions_list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

#transactions_list li.transaction-income {
    border-left-color: var(--green-500);
}

#transactions_list li.transaction-expense {
    border-left-color: var(--red-500);
}

#transactions_list li > div {
    min-width: 0;
}

#transactions_list strong {
    color: var(--text-primary);
    font-size: 12px;
}

#transactions_list small {
    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.6;
}

#transactions_list input[type="checkbox"] {
    position: relative;
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin: 0;
    appearance: none;
    border: 2px solid var(--blue-600);
    border-radius: 6px;
    cursor: pointer;
}

#transactions_list input[type="checkbox"]:checked {
    background: var(--blue-600);
}

#transactions_list input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 14px;
    font-weight: 800;
}

.transaction_action_bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

#transaction_actions:not([style*="display: none"]) {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ----------------------------
   Budget page
----------------------------- */

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

.budget_category_grid,
#budget_categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}

#budget_categories .dashboard_card {
    min-height: 135px;
    border-top: 5px solid var(--teal-500);
}

#budget_categories .dashboard_card h3 {
    margin-bottom: 10px;
    color: var(--navy-900);
    font-size: 14px;
}

#budget_categories .dashboard_card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.budget_tip_panel {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 22px;
    padding: 23px 26px;
    border: 1px solid rgba(26, 188, 156, 0.2);
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1), rgba(41, 128, 185, 0.08));
}

.budget_tip_icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    color: var(--teal-500);
    background: white;
    box-shadow: var(--shadow-small);
    font-size: 19px;
}

.budget_tip_panel h2 {
    margin-bottom: 5px;
    color: var(--navy-900);
    font-size: 16px;
}

.budget_tip_panel p {
    max-width: 800px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.app_footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding: 20px clamp(20px, 4vw, 58px);
    color: rgba(255, 255, 255, 0.72);
    background: var(--navy-950);
}

.app_footer p {
    margin-bottom: 0;
    font-size: 10px;
}

.app_footer strong {
    color: white;
}

.footer_brand,
.footer_contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer_contact {
    align-items: flex-end;
    text-align: right;
}

.footer_contact a {
    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer_contact a:hover {
    color: var(--teal-500);
    transform: translateY(-1px);
}

@media (max-width: 620px) {

    .app_footer {
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .footer_contact {
        align-items: center;
        text-align: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------
   Budget month navigation
------------------------------------------------ */

.budget_month_navigation {
    display: grid;
    grid-template-columns:
        38px
        minmax(155px, 1fr)
        38px;
    align-items: center;
    gap: 8px;
}

.budget_month_select {
    width: 100%;
    min-width: 0;
    padding: 10px 34px 10px 12px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    color: var(--navy-900);
    background-color: white;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.budget_month_select:focus {
    border-color: var(--blue-600);

    box-shadow:
        0 0 0 3px
        rgba(41, 128, 185, 0.12);
}

.budget_month_button {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    color: var(--blue-700);
    background: white;

    font-family: inherit;
    font-size: 17px;
    font-weight: 800;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.budget_month_button:hover:not(:disabled) {
    transform: translateY(-1px);

    border-color: var(--blue-600);

    color: white;
    background: var(--blue-600);
}

.budget_month_button:disabled {
    cursor: not-allowed;

    opacity: 0.4;
    background: var(--surface-soft);
}

.budget_month_select:disabled {
    cursor: not-allowed;

    opacity: 0.65;
    background: var(--surface-soft);
}

@media (max-width: 620px) {

    .budget_month_navigation {
        grid-template-columns:
            40px
            minmax(0, 1fr)
            40px;

        width: 100%;
    }
}

/* ================================================================
   LOGIN AND REGISTRATION PAGE
================================================================ */

.auth_page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(26, 188, 156, 0.18), transparent 35%),
        linear-gradient(135deg, #edf4fa 0%, #f8fbfd 55%, #eef8f5 100%);
}

.auth_page_container {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(380px, 520px);
    width: min(1150px, calc(100% - 40px));
    min-height: 680px;
    margin: 40px auto;
    overflow: hidden;
    background: white;
    border-radius: 28px;
    box-shadow: var(--shadow-large);
}

.auth_brand_panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
    color: white;
    background: linear-gradient(145deg, #203a50, #285f78 58%, #1abc9c);
}

.auth_brand_panel::before,
.auth_brand_panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth_brand_panel::before {
    width: 290px;
    height: 290px;
    top: -110px;
    right: -100px;
}

.auth_brand_panel::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -70px;
}

.auth_logo {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 36px;
    backdrop-filter: blur(10px);
}

.auth_eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #c8f6ea;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.auth_brand_title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: white;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -1px;
}

.auth_brand_title span {
    color: #6ff3d3;
}

.auth_brand_description {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.8;
}

.auth_feature_list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
}

.auth_feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth_feature_icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #8affdf;
    background: rgba(111, 243, 211, 0.18);
    font-weight: 800;
}

.auth_feature h3 {
    margin: 1px 0 4px;
    font-size: 15px;
}

.auth_feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.auth_form_panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px;
}

.auth_form_header {
    margin-bottom: 24px;
}

.auth_form_header h2 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 31px;
}

.auth_form_header > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth_mobile_logo {
    display: none;
}

.auth_mobile_logo span {
    color: var(--blue-600);
}

.auth_tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: #eef3f7;
}

.auth_tab {
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth_tab.active {
    color: var(--blue-600);
    background: white;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
}

.auth_form_section[hidden] {
    display: none;
}

.auth_input_group {
    margin-bottom: 19px;
}

.auth_input_group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
}

.auth_input_group input {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    color: var(--text-primary);
    background: #fbfcfd;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth_input_group input::placeholder {
    color: #a5b1bb;
}

.auth_input_group input:focus {
    border-color: var(--blue-600);
    background: white;
    box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

.password_input_wrapper {
    position: relative;
}

.password_input_wrapper input {
    padding-right: 68px;
}

.password_toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px 7px;
    transform: translateY(-50%);
    color: var(--blue-600);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.password_toggle:hover {
    color: var(--teal-500);
}

.password_requirement {
    margin: 7px 0 0;
    color: var(--text-soft);
    font-size: 11px;
}

.auth_submit_button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(41, 128, 185, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth_submit_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(41, 128, 185, 0.28);
}

.auth_submit_button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth_message {
    min-height: 22px;
    margin: 16px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.auth_message_success {
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--green-600);
    background: #e9f9f1;
}

.auth_message_error {
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--red-600);
    background: #fff0ee;
}

.auth_privacy_note {
    margin: 25px 0 0;
    color: var(--text-soft);
    text-align: center;
    font-size: 11px;
    line-height: 1.7;
}

/* ================================================================
   RESPONSIVE LAYOUT
================================================================ */

@media (max-width: 1080px) {
    .app_header {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .app_brand_text {
        display: none;
    }

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

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

@media (max-width: 850px) {
    .app_header {
        position: relative;
        grid-template-columns: auto 1fr;
        padding: 12px 18px;
    }

    .app_navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 15px;
    }

    .app_navigation a {
        flex: 1 0 auto;
        justify-content: center;
    }

    .app_user_controls {
        grid-column: 2;
        grid-row: 1;
    }

    .app_main {
        width: min(100% - 28px, 760px);
        padding-top: 25px;
    }

    .page_hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

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

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

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

    #save_account_button {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .auth_page_container {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 28px));
        margin: 20px auto;
    }

    .auth_brand_panel {
        display: none;
    }

    .auth_form_panel {
        padding: 40px 32px;
    }

    .auth_mobile_logo {
        display: block;
        margin: 0 0 24px;
        color: var(--text-primary);
        font-size: 18px;
        font-weight: 800;
    }
}

@media (max-width: 620px) {
    .app_user_identity {
        display: none;
    }

    .app_navigation a {
        padding: 9px 11px;
        font-size: 11px;
    }

    .nav_icon {
        font-size: 14px;
    }

    .summary_grid,
    .budget_summary_grid {
        grid-template-columns: 1fr;
    }

    .transaction_form_grid,
    .compact_form {
        grid-template-columns: 1fr;
    }

    .form_submit_button,
    #save_account_button {
        grid-column: auto;
        width: 100%;
    }

    .panel_header,
    .panel_header_actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel_header_actions > button,
    .panel_link {
        width: 100%;
    }

    #transactions_list li {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #transactions_list li > span {
        width: 100%;
        margin-left: 35px !important;
        text-align: left;
    }

    .app_footer {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .app_header {
        padding-inline: 12px;
    }

    .app_brand_icon {
        width: 39px;
        height: 39px;
    }

    #logout_button {
        padding-inline: 12px;
    }

    .app_main {
        width: min(100% - 20px, 440px);
    }

    .page_hero,
    .content_panel {
        padding: 21px;
        border-radius: 18px;
    }

    .account_grid,
    #accounts_list,
    #dashboard_accounts,
    .budget_category_grid,
    #budget_categories {
        grid-template-columns: 1fr;
    }

    .auth_page_container {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .auth_form_panel {
        padding: 35px 22px;
    }

    .auth_form_header h2 {
        font-size: 26px;
    }
}

/* --------------------------------
   Account settings page
-------------------------------- */

.settings_layout {
    display: grid;
    grid-template-columns:
        minmax(240px, 330px)
        minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.profile_summary {
    position: sticky;
    top: 110px;
    text-align: center;
}

.profile_avatar {
    width: 88px;
    height: 88px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(41, 128, 185, 0.15),
            rgba(26, 188, 156, 0.18)
        );

    font-size: 42px;
}

.profile_summary h2 {
    margin: 0 0 7px;
    color: var(--text-primary);
}

.profile_summary > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.profile_details {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
}

.profile_details div {
    display: flex;
    justify-content: space-between;
    gap: 18px;

    padding: 13px 0;

    border-bottom:
        1px solid
        var(--border-color);
}

.profile_details dt {
    color: var(--text-secondary);
    font-size: 13px;
}

.profile_details dd {
    margin: 0;

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.settings_panels {
    display: grid;
    gap: 24px;
}

.settings_panel form {
    max-width: 560px;
}

.settings_panel .primary_button {
    margin-top: 4px;
}

.settings_message {
    min-height: 20px;

    margin: 16px 0 0;

    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.settings_message.success {
    color: #218c5b;
}

.settings_message.error {
    color: #c0392b;
}

.danger_zone {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    border:
        1px solid
        rgba(231, 76, 60, 0.35);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fff6f5
        );
}

.danger_zone h2 {
    margin: 3px 0 8px;
    color: #c0392b;
}

.danger_zone p {
    max-width: 620px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}

#delete_user_button {
    flex: 0 0 auto;

    padding: 11px 18px;

    border:
        1px solid
        #e74c3c;

    border-radius: 12px;

    background: transparent;
    color: #c0392b;

    font-family:
        "Poppins",
        sans-serif;

    font-weight: 700;
    cursor: pointer;
}

#delete_user_button:hover {
    background: #e74c3c;
    color: white;
}

@media (max-width: 850px) {

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

    .profile_summary {
        position: static;
    }

    .danger_zone {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --------------------------------
   Transaction quality-of-life UI
-------------------------------- */

#Add_Transaction_Form {
    scroll-margin-top: 120px;
    animation: transactionFormReveal 0.25s ease;
}

@keyframes transactionFormReveal {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------
   Search and filter toolbar
-------------------------------- */

.transaction_tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;

    margin: 22px 0 18px;
    padding: 16px;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.72);
}

#transaction_search {
    flex: 1;
    min-width: 230px;

    padding: 12px 14px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: white;
    color: var(--text-primary);

    font-family: "Poppins", sans-serif;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#transaction_search::placeholder {
    color: var(--text-secondary);
}

#transaction_search:focus {
    outline: none;

    border-color: #2980b9;

    box-shadow:
        0 0 0 3px
        rgba(41, 128, 185, 0.12);
}

#transaction_type_filter {
    min-width: 180px;

    padding: 12px 38px 12px 14px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: white;
    color: var(--text-primary);

    font-family: "Poppins", sans-serif;
    font-size: 14px;

    cursor: pointer;
}

#transaction_type_filter:focus {
    outline: none;

    border-color: #2980b9;

    box-shadow:
        0 0 0 3px
        rgba(41, 128, 185, 0.12);
}

#transaction_count {
    min-width: 110px;
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

/* --------------------------------
   Transaction form actions
-------------------------------- */

.transaction_form_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 6px;
}

#save_transaction_button,
#cancel_transaction_button {
    min-width: 150px;
}

#cancel_transaction_button {
    padding: 11px 18px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: transparent;
    color: var(--text-primary);

    font-family: "Poppins", sans-serif;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#cancel_transaction_button:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.18);

    transform: translateY(-1px);
}

#save_transaction_button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------
   Success and error messages
-------------------------------- */

.page_message {
    min-height: 24px;

    margin: 0 0 18px;
    padding: 0;

    font-size: 14px;
    font-weight: 600;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.page_message:empty {
    min-height: 0;
    margin: 0;
}

.page_message.success {
    padding: 12px 16px;

    border: 1px solid rgba(33, 140, 91, 0.25);
    border-radius: 12px;

    background: rgba(33, 140, 91, 0.08);
    color: #218c5b;
}

.page_message.error {
    padding: 12px 16px;

    border: 1px solid rgba(192, 57, 43, 0.25);
    border-radius: 12px;

    background: rgba(192, 57, 43, 0.08);
    color: #c0392b;
}

.inline_message {
    min-height: 20px;

    margin: 0 0 14px;

    font-size: 13px;
    font-weight: 600;
}

.error_message {
    min-height: 20px;

    margin: 0 0 14px;

    color: #c0392b;

    font-size: 13px;
    font-weight: 600;
}

/* --------------------------------
   Transaction list improvements
-------------------------------- */

#transactions_list {
    display: grid;
    gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#transactions_list li {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;

    border: 1px solid var(--border-color);
    border-radius: 14px;

    background: white;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

#transactions_list li:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.06);
}

#transactions_list li.transaction-income {
    border-left: 5px solid #2ecc71;
}

#transactions_list li.transaction-expense {
    border-left: 5px solid #e74c3c;
}

.transaction_information {
    flex: 1;
    min-width: 0;
}

.transaction_information strong {
    display: inline-block;

    margin-bottom: 3px;

    color: var(--text-primary);

    font-size: 15px;
    font-weight: 700;
}

.transaction_information small {
    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.6;
}

.transaction_checkbox {
    width: 18px;
    height: 18px;

    flex: 0 0 auto;

    accent-color: #2980b9;
    cursor: pointer;
}

.empty_transaction {
    display: block !important;

    padding: 34px 20px !important;

    border: 1px dashed var(--border-color) !important;
    border-left: 1px dashed var(--border-color) !important;

    background: transparent !important;
    color: var(--text-secondary);

    text-align: center;
}

/* --------------------------------
   Edit action bar
-------------------------------- */

.transaction_action_bar {
    margin-top: 18px;
}

#transaction_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    padding: 14px 16px;

    border: 1px solid var(--border-color);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.8);
}

/* --------------------------------
   Mobile adjustments
-------------------------------- */

@media (max-width: 700px) {

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

    #transaction_search,
    #transaction_type_filter {
        width: 100%;
        min-width: 0;
    }

    #transaction_count {
        width: 100%;

        text-align: left;
    }

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

    #save_transaction_button,
    #cancel_transaction_button {
        width: 100%;
    }

    #transactions_list li {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #transactions_list li > span:last-child {
        width: 100%;

        margin-left: 32px !important;

        text-align: left;
    }

    #transaction_actions {
        align-items: stretch;
        flex-direction: column;
    }

    #transaction_actions button {
        width: 100%;
    }
}

/*====================================
    PROFILE DROPDOWN
====================================*/

.profile_dropdown_container{

    position:relative;

}

.profile_button{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:10px 14px;

    background:transparent;

    border:none;

    border-radius:14px;

    cursor:pointer;

    transition:all .2s ease;

}

.profile_button:hover{

    background:rgba(0,0,0,.05);

}

.profile_avatar{

    width:46px;
    height:46px;

    border-radius:50%;

    background:#2980b9;

    color:white;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;

    font-size:16px;

    flex-shrink:0;

}

.profile_arrow{

    font-size:10px;

    color:#777;

    margin-top:2px;

    transition:transform .2s ease;

}

.profile_dropdown{

    position:absolute;

    top:110%;
    right:0;

    width:220px;

    background:white;

    border-radius:14px;

    box-shadow:
        0 12px 28px rgba(0,0,0,.15);

    border:1px solid #e5e5e5;

    display:none;

    overflow:hidden;

    z-index:1000;

}

.profile_dropdown button{

    width:100%;

    padding:14px 18px;

    border:none;

    background:white;

    text-align:left;

    cursor:pointer;

    font-size:15px;

    transition:background .2s ease;

}

.profile_dropdown button:hover{

    background:#f5f7fa;

}

.profile_dropdown.show{

    display:block;

}

#current_username{

    font-size:16px;

    font-weight:600;

    color:#222;

    white-space:nowrap;

}

.profile_button{

    border-bottom:2px solid transparent;

}

.profile_button:hover{

    background:#f7f9fb;

    border-bottom:2px solid #2980b9;

}

/* ====================================
   PROFILE PAGE SUMMARY
==================================== */

.profile_summary_avatar {
    display: grid;
    place-items: center;

    width: 110px;
    height: 110px;

    margin: 0 auto 18px;

    overflow: hidden;

    color: white;
    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--teal-500)
        );

    font-size: 30px;
    font-weight: 800;

    border: 5px solid rgba(41, 128, 185, 0.12);
    border-radius: 50%;

    box-shadow:
        0 10px 25px rgba(41, 128, 185, 0.2);
}

.profile_summary_avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.profile_picture_area {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    margin-bottom: 18px;
}

.profile_picture_controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    width: 100%;
}

.profile_picture_help {
    flex-basis: 100%;

    margin: 2px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.profile_picture_controls .form_message {
    flex-basis: 100%;

    margin: 0;

    text-align: center;
}

.subtle_danger_button {
    border: 1px solid rgba(192, 57, 43, 0.25);

    color: #c0392b;
    background: rgba(192, 57, 43, 0.06);
}

.subtle_danger_button:hover {
    border-color: rgba(192, 57, 43, 0.4);

    background: rgba(192, 57, 43, 0.12);
}

.profile_avatar {
    overflow: hidden;
}

.profile_avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.profile_summary {
    text-align: center;
}

.profile_summary h2 {
    margin-bottom: 5px;

    color: var(--navy-900);

    font-size: 25px;
    font-weight: 800;
}

.profile_summary > p {
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 13px;
}

.profile_details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    margin: 0;
}

.profile_details > div {
    padding: 15px;

    border: 1px solid var(--border-color);
    border-radius: 13px;

    background: var(--surface-soft);
}

.profile_details dt {
    margin-bottom: 5px;

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.profile_details dd {
    margin: 0;

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 700;
}

.profile_phone_number {
    margin-top: -8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.profile_phone_help {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.6;
}

/* ====================================
   PERSONAL INFORMATION PANEL
==================================== */

.personal_information_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.profile_information_form {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-soft);
}

.profile_information_form:first-child {
    border-top: 4px solid var(--blue-600);
}

.profile_information_form:last-child {
    border-top: 4px solid var(--teal-500);
}

.profile_field_heading {
    min-height: 77px;
    margin-bottom: 19px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.profile_field_heading h3 {
    margin-bottom: 6px;
    color: var(--navy-900);
    font-size: 16px;
}

.profile_field_heading p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.65;
}

.profile_information_form .auth_input_group {
    flex: 1;
}

.profile_information_form .primary_button {
    align-self: flex-start;
}

.profile_information_form .settings_message {
    min-height: 20px;
    margin: 13px 0 0;
    font-size: 11px;
}

@media (max-width: 720px) {

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

    .profile_field_heading {
        min-height: auto;
    }

    .profile_information_form .primary_button {
        width: 100%;
    }
}

@media (max-width: 620px) {

    .preference_item {
        align-items: flex-start;
        flex-direction: column;
    }

    .preference_toggle,
    .preference_select,
    .coming_soon_badge {
        margin-left: 56px;
    }

    .preference_select {
        width: calc(100% - 56px);
        min-width: 0;
    }

    .profile_picture_controls {
        flex-direction: column;
    }

    .profile_picture_controls button {
        width: 100%;
    }
}

/* ====================================
   PROFILE PREFERENCES
==================================== */

.preference_list {
    display: grid;
    gap: 14px;
}

.preference_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 20px;

    border: 1px solid var(--border-color);
    border-radius: 15px;

    background: var(--surface-soft);
}

.preference_text {
    display: flex;
    align-items: center;
    gap: 14px;

    min-width: 0;
}

.preference_icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border-radius: 13px;

    color: var(--blue-600);
    background: rgba(41, 128, 185, 0.1);

    font-size: 17px;
    font-weight: 800;
}

.preference_text h3 {
    margin-bottom: 4px;

    color: var(--navy-900);

    font-size: 14px;
}

.preference_text p {
    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.6;
}

.preference_toggle {
    position: relative;

    flex: 0 0 auto;

    width: 49px;
    height: 27px;

    padding: 0;

    border-radius: 999px;

    background: #dce4ea;

    cursor: not-allowed;
    opacity: 0.7;
}

.preference_toggle span {
    position: absolute;

    top: 4px;
    left: 4px;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: white;

    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.2);
}

.preference_select {
    flex: 0 0 auto;

    min-width: 180px;
    padding: 10px 12px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;

    color: var(--text-secondary);
    background: white;

    font-size: 11px;
}

.coming_soon_badge {
    flex: 0 0 auto;

    padding: 7px 11px;

    border-radius: 999px;

    color: var(--purple-500);
    background: rgba(142, 68, 173, 0.1);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* ====================================
   DATA EXPORT
==================================== */

.export_note {
    max-width: 540px;
    margin: 13px 0 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.65;
}

#profile_export_button:disabled,
#export_button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* ====================================
   PROFILE DANGER ZONE
==================================== */

.danger_zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    border: 1px solid rgba(231, 76, 60, 0.35);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 240, 238, 0.82)
        );
}

.danger_zone_content {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    min-width: 0;
}

.danger_icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    border-radius: 15px;

    color: white;
    background: var(--red-500);

    font-size: 22px;
    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(231, 76, 60, 0.22);
}

.danger_zone h2 {
    margin-bottom: 7px;

    color: var(--red-600);

    font-size: 20px;
}

.danger_zone p:not(.panel_eyebrow) {
    max-width: 650px;
    margin-bottom: 12px;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.7;
}

.danger_details {
    display: grid;
    gap: 6px;

    margin: 13px 0;
    padding-left: 20px;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.6;
}

.danger_warning {
    margin-bottom: 0 !important;

    color: var(--red-600) !important;

    font-weight: 800;
}

.danger_zone .danger_button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 720px) {

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

    .danger_zone .danger_button {
        width: 100%;
    }
}

/* ====================================
   CLEAN EXPORT DATA SECTION
==================================== */

.export_panel {
    position: relative;
    overflow: hidden;
}

.export_panel::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--teal-500)
        );
}

.export_option_list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.export_option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;

    min-width: 0;
    min-height: 190px;
    padding: 21px;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--surface-soft)
        );

    box-shadow:
        0 4px 14px
        rgba(44, 62, 80, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.export_option:hover {
    transform: translateY(-3px);

    border-color:
        rgba(41, 128, 185, 0.25);

    box-shadow:
        var(--shadow-small);
}

.export_option_text {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.export_icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    border-radius: 14px;

    color: var(--blue-600);
    background:
        rgba(41, 128, 185, 0.1);

    font-size: 18px;
    font-weight: 800;
}

.export_option:nth-child(2) .export_icon {
    color: var(--teal-500);
    background:
        rgba(26, 188, 156, 0.1);
}

.export_option:nth-child(3) .export_icon {
    color: var(--purple-500);
    background:
        rgba(142, 68, 173, 0.1);
}

.export_option:nth-child(4) .export_icon {
    color: var(--green-600);
    background:
        rgba(39, 174, 96, 0.1);
}

.export_option h3 {
    margin-bottom: 6px;

    color: var(--navy-900);

    font-size: 15px;
}

.export_option p {
    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.7;
}

.export_option button {
    width: 100%;
    margin-top: auto;
}

#export_section {
    scroll-margin-top: 110px;
}

@media (max-width: 760px) {

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

    .export_option {
        min-height: auto;
    }
}

/* ====================================
   HEADER PROFILE CONTROL
==================================== */

.profile_dropdown_container {
    position: relative;

    padding: 5px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: var(--radius-pill);

    background:
        rgba(255, 255, 255, 0.08);
}

.profile_button {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 50px;
    padding: 5px 13px 5px 6px;

    border: 1px solid transparent;
    border-radius: var(--radius-pill);

    color: white;
    background: transparent;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.profile_button:hover,
.profile_button:focus-visible {
    transform: translateY(-1px);

    border-color:
        rgba(255, 255, 255, 0.16);

    background:
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 6px 17px
        rgba(12, 32, 45, 0.15);

    outline: none;
}

.profile_button .profile_avatar {
    width: 39px;
    height: 39px;

    border:
        1px solid
        rgba(255, 255, 255, 0.24);

    color: var(--navy-900);
    background: white;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 4px 12px
        rgba(12, 32, 45, 0.16);
}

.profile_button #current_username {
    max-width: 150px;

    color: white;

    font-size: 13px;
    font-weight: 700;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile_arrow {
    color:
        rgba(255, 255, 255, 0.72);

    font-size: 9px;

    transition:
        transform 0.2s ease;
}

.profile_dropdown.show
    ~ .profile_arrow {
    transform: rotate(180deg);
}

/* ====================================
   PROFILE PICTURE CROP MODAL
==================================== */

.profile_crop_modal {
    position: fixed;
    z-index: 2000;
    inset: 0;

    display: grid;
    place-items: center;

    padding: 24px;
}

.profile_crop_modal[hidden] {
    display: none;
}

.profile_crop_backdrop {
    position: absolute;
    inset: 0;

    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.profile_crop_dialog {
    position: relative;
    z-index: 1;

    width: min(560px, 100%);
    max-height: calc(100vh - 48px);

    padding: 24px;

    overflow-y: auto;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    background: white;

    box-shadow:
        0 24px 70px
        rgba(15, 23, 42, 0.3);
}

.profile_crop_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.profile_crop_header h2 {
    margin: 0 0 5px;

    color: var(--navy-900);

    font-size: 21px;
}

.profile_crop_header p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
}

.profile_crop_close {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 1px solid var(--border-color);
    border-radius: 50%;

    color: var(--text-secondary);
    background: var(--surface-soft);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.profile_crop_workspace {
    width: 100%;
    height: 380px;

    overflow: hidden;

    border-radius: 16px;

    background: #111827;
}

.profile_crop_workspace img {
    display: block;

    max-width: 100%;
}

.profile_crop_controls {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;

    margin-top: 18px;
}

.profile_crop_controls label {
    color: var(--text-primary);

    font-size: 12px;
    font-weight: 700;
}

.profile_crop_controls input {
    width: 100%;
}

.profile_crop_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 22px;
}

body.crop_modal_open {
    overflow: hidden;
}

@media (max-width: 620px) {

    .profile_crop_modal {
        padding: 12px;
    }

    .profile_crop_dialog {
        padding: 18px;
    }

    .profile_crop_workspace {
        height: 310px;
    }

    .profile_crop_actions {
        flex-direction: column-reverse;
    }

    .profile_crop_actions button {
        width: 100%;
    }
}

/* ================================================================
   PERSONALIZED DASHBOARD HERO
================================================================ */

.personalized_dashboard_hero {
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at top right,
            rgba(26, 188, 156, 0.14),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #f6fbfd
        );
}

.dashboard_welcome {
    min-width: 0;
}

#dashboard_greeting {
    margin-bottom: 8px;
}

.dashboard_monthly_insight {
    display: inline-flex;
    align-items: center;

    margin: 18px 0 0;
    padding: 9px 14px;

    border: 1px solid rgba(41, 128, 185, 0.13);
    border-radius: var(--radius-pill);

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.07);

    font-size: 11px;
    font-weight: 700;
}

.dashboard_monthly_insight.positive {
    border-color: rgba(39, 174, 96, 0.18);

    color: #218c4f;
    background: rgba(39, 174, 96, 0.09);
}

.dashboard_monthly_insight.negative {
    border-color: rgba(231, 76, 60, 0.18);

    color: #c0392b;
    background: rgba(231, 76, 60, 0.08);
}

.dashboard_monthly_insight.neutral {
    color: var(--text-secondary);
    background: var(--surface-soft);
}

.dashboard_hero_actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    flex: 0 0 auto;
}

.dashboard_budget_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

/* ================================================================
   DASHBOARD FUN FACTS
================================================================ */

.dashboard_facts_section {
    margin-bottom: 24px;
    padding: 26px;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(247, 251, 253, 0.98)
        );

    box-shadow: var(--shadow-small);
}

.dashboard_facts_heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.dashboard_facts_heading h2 {
    margin: 3px 0 5px;

    color: var(--navy-900);

    font-size: 21px;
}

.dashboard_facts_heading > div > p:last-child {
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.7;
}

.facts_month_badge {
    flex: 0 0 auto;

    padding: 8px 13px;

    border: 1px solid rgba(41, 128, 185, 0.14);
    border-radius: var(--radius-pill);

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.07);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard_facts_grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard_fact_card {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    min-width: 0;
    padding: 18px;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background: white;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard_fact_card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(41, 128, 185, 0.22);

    box-shadow:
        0 12px 28px
        rgba(44, 62, 80, 0.09);
}

.dashboard_fact_card_wide {
    grid-column: span 2;
}

.fact_icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border-radius: 12px;

    color: var(--blue-700);
    background:
        linear-gradient(
            135deg,
            rgba(41, 128, 185, 0.12),
            rgba(26, 188, 156, 0.12)
        );

    font-size: 17px;
    font-weight: 800;
}

.fact_label {
    margin: 0 0 5px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.fact_value {
    margin: 0 0 5px;

    color: var(--navy-900);

    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.fact_text_value {
    overflow: hidden;

    font-size: 15px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.fact_description {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.55;
}

/* ================================================================
   DASHBOARD RESPONSIVE
================================================================ */

@media (max-width: 1050px) {

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

@media (max-width: 720px) {

    .personalized_dashboard_hero {
        align-items: flex-start;
    }

    .dashboard_hero_actions {
        width: 100%;
    }

    .dashboard_hero_actions a {
        width: 100%;
    }

    .dashboard_facts_heading {
        flex-direction: column;
    }
}

@media (max-width: 620px) {

    .dashboard_facts_section {
        padding: 20px;
    }

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

    .dashboard_fact_card_wide {
        grid-column: auto;
    }
}

/* ================================================================
   BUDGET PAGE
================================================================ */

/* ------------------------------------------------
   Budget hero and month selector
------------------------------------------------ */

.budget_page_hero {
    align-items: center;
}

.budget_month_control {
    display: flex;
    flex-direction: column;
    gap: 7px;

    flex: 0 0 auto;

    min-width: 190px;
    padding: 14px 16px;

    border: 1px solid var(--border-color);
    border-radius: 15px;

    background: var(--surface-soft);
}

.budget_month_control label {
    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.budget_month_control input {
    width: 100%;
    padding: 10px 12px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    color: var(--navy-900);
    background: white;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    outline: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.budget_month_control input:focus {
    border-color: var(--blue-600);

    box-shadow:
        0 0 0 3px
        rgba(41, 128, 185, 0.12);
}

/* ------------------------------------------------
   Budget summary cards
------------------------------------------------ */

.budget_summary_grid {
    margin-bottom: 24px;
}

.summary_budgeted {
    border-top-color: var(--teal-500);
}

.summary_budgeted .summary_icon {
    color: #168f79;
    background: rgba(26, 188, 156, 0.12);
}

/* ------------------------------------------------
   Budget management section
------------------------------------------------ */

.budget_management_grid {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: stretch;
    margin-bottom: 24px;
}

.budget_form_panel,
.budget_overview_panel {
    min-width: 0;
}

#budget_form {
    display: flex;
    flex-direction: column;
    gap: 18px;

    animation: none;
}

#budget_form .form_group {
    align-items: stretch;
}

#budget_form label {
    margin-bottom: 7px;

    color: var(--text-primary);

    font-size: 11px;
    font-weight: 700;
}

#budget_form select,
#budget_form input {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;

    border: 1px solid var(--border-color);
    border-radius: 11px;

    color: var(--text-primary);
    background: white;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#budget_form select:focus,
#budget_form input:focus {
    border-color: var(--blue-600);

    box-shadow:
        0 0 0 3px
        rgba(41, 128, 185, 0.11);
}

#budget_form select:disabled,
#budget_form input:disabled {
    cursor: not-allowed;

    opacity: 0.65;
    background: var(--surface-soft);
}

.currency_input {
    position: relative;

    display: flex;
    align-items: center;
}

.currency_input > span {
    position: absolute;
    left: 13px;
    z-index: 1;

    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 700;

    pointer-events: none;
}

.currency_input input {
    padding-left: 29px !important;
}

.budget_form_actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-wrap: wrap;
}

.budget_form_actions button {
    min-width: 130px;
}

#budget_form_message {
    min-height: 19px;
    margin: 0;

    font-size: 11px;
}

/* ------------------------------------------------
   Budget health panel
------------------------------------------------ */

.budget_health_card {
    padding: 20px;

    border: 1px solid var(--border-color);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--surface-soft)
        );
}

.budget_health_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 11px 0;

    border-bottom: 1px solid var(--border-color);
}

.budget_health_row:first-child {
    padding-top: 0;
}

.budget_health_row span {
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
}

.budget_health_row strong {
    color: var(--navy-900);

    font-size: 14px;
    font-weight: 800;
}

.budget_health_progress {
    width: 100%;
    height: 12px;

    margin-top: 20px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: #e8eef2;
}

.budget_health_progress_fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--teal-500)
        );

    transition:
        width 0.45s ease,
        background 0.25s ease;
}

.budget_health_progress_fill.healthy {
    background:
        linear-gradient(
            90deg,
            #27ae60,
            #2ecc71
        );
}

.budget_health_progress_fill.warning {
    background:
        linear-gradient(
            90deg,
            #f39c12,
            #f1c40f
        );
}

.budget_health_progress_fill.over {
    background:
        linear-gradient(
            90deg,
            #e74c3c,
            #c0392b
        );
}

.budget_health_message {
    margin: 14px 0 0;

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}

.budget_health_message.healthy {
    color: #218c4f;
}

.budget_health_message.warning {
    color: #b9770e;
}

.budget_health_message.over {
    color: #c0392b;
}

.budget_health_message.neutral {
    color: var(--text-secondary);
}

/* ------------------------------------------------
   Category budget panel
------------------------------------------------ */

.budget_panel {
    margin-bottom: 24px;
}

.panel_header_actions {
    align-items: flex-start;
}

.budget_category_grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.budget_category_grid > .empty_state {
    grid-column: 1 / -1;
}

.budget_category_card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 19px;

    border: 1px solid var(--border-color);
    border-top: 4px solid var(--blue-600);
    border-radius: 16px;

    background: white;

    box-shadow:
        0 6px 18px
        rgba(44, 62, 80, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.budget_category_card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px
        rgba(44, 62, 80, 0.11);
}

.budget_category_card.healthy {
    border-top-color: #27ae60;
}

.budget_category_card.warning {
    border-top-color: #f39c12;
}

.budget_category_card.over {
    border-top-color: #e74c3c;
}

.budget_category_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 18px;
}

.budget_category_label {
    margin: 0 0 4px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.budget_category_header h3 {
    margin: 0;

    color: var(--navy-900);

    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.budget_status_badge {
    flex: 0 0 auto;

    padding: 6px 9px;

    border-radius: var(--radius-pill);

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.budget_status_badge.healthy {
    color: #218c4f;
    background: rgba(39, 174, 96, 0.11);
}

.budget_status_badge.warning {
    color: #a96708;
    background: rgba(243, 156, 18, 0.13);
}

.budget_status_badge.over {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.11);
}

.budget_category_amounts {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 16px;
}

.budget_category_amounts p {
    margin: 0;
    padding: 11px;

    border: 1px solid var(--border-color);
    border-radius: 11px;

    background: var(--surface-soft);

    text-align: left;
}

.budget_category_amounts span {
    display: block;

    margin-bottom: 4px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.budget_category_amounts strong {
    display: block;

    overflow: hidden;

    color: var(--navy-900);

    font-size: 13px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.budget_progress {
    width: 100%;
    height: 10px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: #e8eef2;
}

.budget_progress_fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    transition: width 0.45s ease;
}

.budget_progress_fill.healthy {
    background:
        linear-gradient(
            90deg,
            #27ae60,
            #2ecc71
        );
}

.budget_progress_fill.warning {
    background:
        linear-gradient(
            90deg,
            #f39c12,
            #f1c40f
        );
}

.budget_progress_fill.over {
    background:
        linear-gradient(
            90deg,
            #e74c3c,
            #c0392b
        );
}

.budget_remaining_text {
    margin: 10px 0 16px;

    font-size: 10px;
    font-weight: 700;

    text-align: left;
}

.budget_remaining_text.healthy {
    color: #218c4f;
}

.budget_remaining_text.warning {
    color: #a96708;
}

.budget_remaining_text.over {
    color: #c0392b;
}

.budget_category_actions {
    display: flex;
    gap: 9px;

    margin-top: auto;
}

.budget_category_actions button {
    flex: 1;

    padding: 9px 12px;

    border-radius: 10px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.budget_edit_button {
    border: 1px solid rgba(41, 128, 185, 0.22);

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.07);
}

.budget_edit_button:hover {
    border-color: var(--blue-600);

    background: rgba(41, 128, 185, 0.13);
}

.budget_delete_button {
    border: 1px solid rgba(231, 76, 60, 0.22);

    color: #c0392b;
    background: rgba(231, 76, 60, 0.07);
}

.budget_delete_button:hover {
    border-color: #e74c3c;

    background: rgba(231, 76, 60, 0.13);
}

.budget_category_actions button:disabled {
    cursor: not-allowed;

    opacity: 0.6;
}

/* ------------------------------------------------
   Budget tip panel
------------------------------------------------ */

.budget_tip_panel {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-bottom: 10px;
    padding: 20px;

    border: 1px solid rgba(26, 188, 156, 0.17);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(26, 188, 156, 0.08),
            rgba(41, 128, 185, 0.06)
        );
}

.budget_tip_icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    color: #168f79;
    background: rgba(26, 188, 156, 0.14);

    font-size: 18px;
}

.budget_tip_panel h2 {
    margin: 0 0 5px;

    color: var(--navy-900);

    font-size: 15px;
    text-align: left;
}

.budget_tip_panel p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.7;
    text-align: left;
}

/* ------------------------------------------------
   Budget page messages
------------------------------------------------ */

.page_message {
    min-height: 0;
    margin: 0 0 14px;

    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.page_message:empty {
    display: none;
}

.page_message.success {
    padding: 10px 14px;

    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 11px;

    color: #218c4f;
    background: rgba(39, 174, 96, 0.09);
}

.page_message.error {
    padding: 10px 14px;

    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 11px;

    color: #c0392b;
    background: rgba(231, 76, 60, 0.08);
}

/* ================================================================
   BUDGET RESPONSIVE LAYOUT
================================================================ */

@media (max-width: 1050px) {

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

@media (max-width: 820px) {

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

    .budget_page_hero {
        align-items: flex-start;
    }

    .budget_month_control {
        width: 100%;
    }
}

@media (max-width: 620px) {

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

    .budget_form_actions {
        flex-direction: column;
    }

    .budget_form_actions button {
        width: 100%;
    }

    .budget_category_header {
        flex-direction: column;
    }

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

    .budget_tip_panel {
        flex-direction: column;
    }
}

/* ================================================================
   ACCOUNTS OVERVIEW PAGE
================================================================ */

.accounts_page_hero {
    align-items: center;
}

.accounts_summary_grid {
    margin-bottom: 24px;
}

.accounts_overview_panel {
    margin-bottom: 24px;
}

.accounts_overview_grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.accounts_overview_grid > .empty_state {
    grid-column: 1 / -1;
}

.account_overview_card {
    --account-color: var(--blue-600);

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 22px;

    border: 1px solid var(--border-color);
    border-top: 5px solid var(--account-color);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--surface-soft)
        );

    box-shadow:
        0 8px 22px
        rgba(44, 62, 80, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.account_overview_card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 34px
        rgba(44, 62, 80, 0.12);
}

.account_overview_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}

.account_identity {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 0;
}

.account_color_marker {
    flex: 0 0 auto;

    width: 15px;
    height: 42px;

    border-radius: var(--radius-pill);

    background: var(--account-color);
}

.account_overview_label {
    margin: 0 0 3px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.account_identity h3 {
    margin: 0;

    overflow: hidden;

    color: var(--navy-900);

    font-size: 19px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account_transaction_badge {
    flex: 0 0 auto;

    padding: 6px 10px;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);

    color: var(--text-secondary);
    background: white;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}

.account_balance_block {
    margin-bottom: 16px;
    padding: 17px;

    border: 1px solid var(--border-color);
    border-radius: 14px;

    background: white;
}

.account_balance_block span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.account_balance_block strong {
    color: var(--navy-900);

    font-size: 27px;
    font-weight: 800;
}

.account_metrics_grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 16px;
}

.account_metrics_grid > div {
    min-width: 0;
    padding: 12px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: white;
}

.account_metrics_grid span {
    display: block;

    margin-bottom: 6px;

    color: var(--text-soft);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account_metrics_grid strong {
    display: block;

    overflow: hidden;

    color: var(--navy-900);

    font-size: 12px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account_latest_activity {
    margin-bottom: 17px;
    padding: 13px 0;

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.account_latest_activity p {
    margin: 0 0 4px;

    color: var(--text-soft);

    font-size: 8px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.account_latest_activity strong {
    display: block;

    margin-bottom: 3px;

    overflow: hidden;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account_latest_activity span {
    color: var(--text-secondary);

    font-size: 10px;
}

.account_details_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin-top: auto;
    padding: 11px 15px;

    border: 1px solid rgba(41, 128, 185, 0.2);
    border-radius: 11px;

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.07);

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.account_details_button:hover {
    transform: translateY(-2px);

    border-color: var(--blue-600);

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.13);
}

@media (max-width: 900px) {

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

@media (max-width: 620px) {

    .account_overview_header {
        flex-direction: column;
    }

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

    .account_transaction_badge {
        align-self: flex-start;
    }
}

/* ================================================================
   ACCOUNT DETAILS PAGE
================================================================ */

.account_back_link {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;

    color: var(--blue-700);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.account_back_link:hover {
    color: var(--teal-500);
}

.account_details_hero {
    --account-detail-color: var(--blue-600);

    align-items: center;

    border-left: 6px solid var(--account-detail-color);
}

.account_details_identity {
    display: flex;
    align-items: center;
    gap: 16px;

    min-width: 0;
}

.account_details_color {
    flex: 0 0 auto;

    width: 18px;
    height: 72px;

    border-radius: var(--radius-pill);

    background: var(--blue-600);
}

.account_details_summary {
    margin-bottom: 24px;
}

.account_details_content_grid {
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(280px, 0.75fr);

    align-items: start;
}

.account_details_sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;

    min-width: 0;
}

.account_transaction_filter {
    min-width: 160px;
    padding: 10px 12px;

    border: 1px solid var(--border-color);
    border-radius: 11px;

    color: var(--text-primary);
    background: white;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    outline: none;

    cursor: pointer;
}

.account_transaction_filter:focus {
    border-color: var(--blue-600);

    box-shadow:
        0 0 0 3px
        rgba(41, 128, 185, 0.11);
}

.account_transaction_summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
    padding: 12px 14px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: var(--surface-soft);
}

.account_transaction_summary span {
    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 700;
}

.account_transaction_summary strong {
    color: var(--navy-900);

    font-size: 15px;
    font-weight: 800;
}

.account_details_transaction_list {
    max-height: 650px;
    padding-right: 4px;

    overflow-y: auto;
}

.account_details_transaction_list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.account_transaction_main {
    min-width: 0;
}

.account_transaction_main h3 {
    margin: 0 0 4px;

    overflow: hidden;

    color: var(--navy-900);

    font-size: 13px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account_transaction_main p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    text-align: left;
}

.account_details_transaction_list li > strong {
    flex: 0 0 auto;

    font-size: 12px;
    font-weight: 800;
}

.account_category_breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account_category_row {
    padding-bottom: 14px;

    border-bottom: 1px solid var(--border-color);
}

.account_category_row:last-child {
    padding-bottom: 0;

    border-bottom: none;
}

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

    margin-bottom: 8px;
}

.account_category_row_header span {
    overflow: hidden;

    color: var(--text-primary);

    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.account_category_row_header strong {
    flex: 0 0 auto;

    color: var(--navy-900);

    font-size: 11px;
    font-weight: 800;
}

.account_category_progress {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: #e8eef2;
}

.account_category_progress_fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--teal-500)
        );
}

.account_category_row p {
    margin: 6px 0 0;

    color: var(--text-secondary);

    font-size: 9px;
    text-align: left;
}

.account_information_list {
    display: flex;
    flex-direction: column;

    margin: 0 0 18px;
}

.account_information_list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 12px 0;

    border-bottom: 1px solid var(--border-color);
}

.account_information_list dt {
    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.account_information_list dd {
    margin: 0;

    overflow: hidden;

    color: var(--text-primary);

    font-size: 11px;
    font-weight: 700;

    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact_empty_state {
    padding: 16px;
}

@media (max-width: 950px) {

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

@media (max-width: 720px) {

    .account_details_hero {
        align-items: flex-start;
    }

    .account_details_identity {
        align-items: flex-start;
    }

    .account_transaction_filter {
        width: 100%;
    }
}

@media (max-width: 620px) {

    .account_details_transaction_list li {
        align-items: flex-start;
        flex-direction: column;
    }

    .account_details_color {
        height: 58px;
    }
}

/* ================================================================
   BUDGET CHARTS
================================================================ */

.budget_charts_section {
    margin-top: 26px;
    margin-bottom: 28px;
}

.budget_charts_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
}

.budget_charts_header h2 {
    margin: 2px 0 5px;

    color: var(--navy-900);

    font-size: 24px;
    font-weight: 800;
}

.budget_charts_header > div > p:last-child {
    max-width: 680px;
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.7;
}

.budget_charts_grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.budget_chart_panel {
    min-width: 0;
}

.budget_chart_panel_wide {
    grid-column: 1 / -1;
}

.budget_chart_panel .panel_header {
    margin-bottom: 16px;
}

.budget_chart_panel .panel_header h3 {
    margin: 2px 0 5px;

    color: var(--navy-900);

    font-size: 17px;
    font-weight: 800;
}

.budget_chart_panel .panel_header p:last-child {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.6;
}

.budget_chart_container {
    position: relative;

    width: 100%;
    height: 320px;
    min-height: 320px;
}

.budget_bar_chart_container {
    height: 360px;
    min-height: 360px;
}

.budget_line_chart_container {
    height: 390px;
    min-height: 390px;
}

.budget_chart_container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart_empty_state {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 24px;

    border: 1px dashed var(--border-color);
    border-radius: 15px;

    background: var(--surface-soft);

    text-align: center;
}

.chart_empty_state[hidden] {
    display: none;
}

.chart_empty_state span {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    margin-bottom: 11px;

    border-radius: 50%;

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.1);

    font-size: 20px;
    font-weight: 800;
}

.chart_empty_state h4,
.chart_empty_state h3 {
    margin: 0 0 5px;

    color: var(--navy-900);

    font-size: 14px;
    font-weight: 800;
}

.chart_empty_state p {
    max-width: 310px;
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.6;
}

/* ------------------------------------------------
   Chart loading appearance
------------------------------------------------ */

.budget_chart_panel.chart_loading
.budget_chart_container::after {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.82);

    font-size: 11px;
    font-weight: 700;

    content: "Loading chart...";
}

/* ------------------------------------------------
   Responsive chart layout
------------------------------------------------ */

@media (max-width: 980px) {

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

    .budget_chart_panel_wide {
        grid-column: auto;
    }
}

@media (max-width: 700px) {

    .budget_charts_header {
        flex-direction: column;
    }

    .budget_chart_container {
        height: 290px;
        min-height: 290px;
    }

    .budget_bar_chart_container {
        height: 340px;
        min-height: 340px;
    }

    .budget_line_chart_container {
        height: 340px;
        min-height: 340px;
    }
}

@media (max-width: 480px) {

    .budget_chart_container,
    .budget_bar_chart_container,
    .budget_line_chart_container {
        height: 300px;
        min-height: 300px;
    }

    .budget_charts_header h2 {
        font-size: 21px;
    }
}

/* ================================================================
   SAVINGS GOALS
================================================================ */

.savings_goals_section {
    margin-top: 28px;
    margin-bottom: 30px;
}

.savings_goals_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
}

.savings_goals_header h2 {
    margin: 2px 0 5px;

    color: var(--navy-900);

    font-size: 24px;
    font-weight: 800;
}

.savings_goals_header > div > p:last-child {
    max-width: 680px;
    margin: 0;

    color: var(--text-secondary);

    font-size: 11px;
    line-height: 1.7;
}

/* ================================================================
   SAVINGS GOALS — LARGER CARDS AND CONTROLS
================================================================ */

.savings_goals_section {
    margin-top: 42px;
}

.savings_goals_grid {
    grid-template-columns:
        repeat(2, minmax(360px, 1fr));

    gap: 24px;
}

.savings_goal_card {
    min-height: 420px;
    padding: 28px;

    border-radius: 20px;
}

.savings_goal_card_header {
    margin-bottom: 20px;
}

.savings_goal_identity h3 {
    margin-bottom: 8px;

    font-size: 22px;
}

.savings_goal_identity p {
    font-size: 13px;
    line-height: 1.7;
}

.savings_goal_status {
    padding: 7px 12px;

    font-size: 10px;
}

.savings_goal_amounts {
    gap: 14px;

    margin-bottom: 20px;
}

.savings_goal_amounts > div {
    padding: 16px;
}

.savings_goal_amounts span {
    font-size: 10px;
}

.savings_goal_amounts strong {
    font-size: 19px;
}

.savings_goal_progress_section {
    margin-bottom: 20px;
}

.savings_goal_progress_header span,
.savings_goal_progress_header strong {
    font-size: 12px;
}

.savings_goal_progress {
    height: 14px;
}

.savings_goal_metadata {
    gap: 11px;

    margin-bottom: 20px;
    padding: 16px 0;
}

.savings_goal_metadata_row span {
    font-size: 10px;
}

.savings_goal_metadata_row strong {
    font-size: 12px;
}

.savings_goal_actions {
    gap: 12px;
}

.savings_goal_actions button {
    min-height: 44px;
    padding: 11px 12px;

    font-size: 11px;
}

.toggle_savings_contribution_history_button {
    width: 100%;
    min-height: 44px;

    margin-top: 12px;

    font-size: 11px;
}

.savings_contribution_panel {
    margin-top: 18px;
    padding: 18px;
}

.savings_contribution_panel h4 {
    font-size: 16px;
}

.savings_contribution_form input {
    min-height: 43px;

    font-size: 13px;
}

.savings_contribution_actions button {
    min-height: 42px;

    font-size: 11px;
}

.savings_contribution_item {
    padding: 14px;
}

.savings_contribution_item_main strong {
    font-size: 14px;
}

.savings_contribution_item_main span {
    font-size: 11px;
}

.delete_savings_contribution_button {
    padding: 8px 11px;

    font-size: 10px;
}

@media (max-width: 950px) {

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

@media (max-width: 560px) {

    .savings_goal_card {
        min-height: auto;
        padding: 20px;
    }

    .savings_goal_identity h3 {
        font-size: 19px;
    }
}

/* ------------------------------------------------
   Savings-goal summary
------------------------------------------------ */

.savings_goals_summary_grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 15px;

    margin-bottom: 20px;
}

.savings_goal_summary_card {
    padding: 18px;
}

.savings_goal_summary_card span {
    display: block;

    margin-bottom: 7px;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.savings_goal_summary_card strong {
    color: var(--navy-900);

    font-size: 21px;
    font-weight: 800;
}

/* ------------------------------------------------
   Savings-goal layout
------------------------------------------------ */

.savings_goals_layout {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.75fr)
        minmax(0, 1.55fr);
    gap: 20px;

    align-items: start;
}

.savings_goal_form_panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 3001;

    width: min(620px, calc(100% - 32px));
    max-height: calc(100vh - 48px);

    padding: 28px;

    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid var(--border-color);
    border-radius: 22px;

    background: white;

    box-shadow:
        0 0 0 100vmax rgba(15, 23, 42, 0.72),
        0 28px 80px rgba(15, 23, 42, 0.32);

    transform: translate(-50%, -50%);
}


.savings_goal_form_panel[hidden] {
    display: none;
}

.savings_goal_form_panel form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.savings_goal_form_panel textarea {
    min-height: 105px;
    resize: vertical;
}

.savings_goal_form_panel small {
    display: block;

    margin-top: 6px;

    color: var(--text-secondary);

    font-size: 9px;
    line-height: 1.55;
}

.savings_goal_form_panel select,
.savings_goal_form_panel input,
.savings_goal_form_panel textarea {
    width: 100%;
}


body.savings_goal_modal_open {
    overflow: hidden;
}

@media (max-width: 620px) {

    .savings_goal_form_panel {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 20px;
        border-radius: 18px;
    }

    .savings_goal_form_actions {
        flex-direction: column;
    }

    #save_savings_goal_button,
    #cancel_savings_goal_button {
        width: 100%;
    }
}

/* ------------------------------------------------
   Goal grid and cards
------------------------------------------------ */

.savings_goals_grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 17px;

    min-width: 0;
}

.savings_goals_grid > .empty_state {
    grid-column: 1 / -1;
}

.savings_goal_card {
    --goal-account-color: var(--blue-600);

    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 20px;

    border: 1px solid var(--border-color);
    border-top: 5px solid var(--goal-account-color);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--surface-soft)
        );

    box-shadow:
        0 8px 22px
        rgba(44, 62, 80, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.savings_goal_card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px
        rgba(44, 62, 80, 0.11);
}

.savings_goal_card.completed {
    border-top-color: var(--green-500);
}

/* ------------------------------------------------
   Goal header
------------------------------------------------ */

.savings_goal_card_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 14px;
}

.savings_goal_identity {
    min-width: 0;
}

.savings_goal_identity h3 {
    margin: 0 0 5px;

    overflow: hidden;

    color: var(--navy-900);

    font-size: 17px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.savings_goal_identity p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.55;
}

.savings_goal_status {
    flex: 0 0 auto;

    padding: 5px 9px;

    border-radius: var(--radius-pill);

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.1);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.savings_goal_status.completed {
    color: var(--green-700);
    background: rgba(39, 174, 96, 0.12);
}

/* ------------------------------------------------
   Goal amounts
------------------------------------------------ */

.savings_goal_amounts {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 14px;
}

.savings_goal_amounts > div {
    min-width: 0;
    padding: 12px;

    border: 1px solid var(--border-color);
    border-radius: 12px;

    background: white;
}

.savings_goal_amounts span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-soft);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.savings_goal_amounts strong {
    display: block;

    overflow: hidden;

    color: var(--navy-900);

    font-size: 14px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------
   Goal progress
------------------------------------------------ */

.savings_goal_progress_section {
    margin-bottom: 14px;
}

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

    margin-bottom: 7px;
}

.savings_goal_progress_header span {
    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 700;
}

.savings_goal_progress_header strong {
    color: var(--navy-900);

    font-size: 10px;
    font-weight: 800;
}

.savings_goal_progress {
    width: 100%;
    height: 10px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: #e8eef2;
}

.savings_goal_progress_fill {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--teal-500)
        );

    transition: width 0.35s ease;
}

.savings_goal_card.completed
.savings_goal_progress_fill {
    background:
        linear-gradient(
            90deg,
            var(--green-500),
            var(--teal-500)
        );
}

/* ------------------------------------------------
   Goal metadata
------------------------------------------------ */

.savings_goal_metadata {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-bottom: 15px;
    padding: 12px 0;

    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.savings_goal_metadata_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.savings_goal_metadata_row span {
    color: var(--text-soft);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.savings_goal_metadata_row strong {
    overflow: hidden;

    color: var(--text-primary);

    font-size: 10px;
    font-weight: 700;

    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------
   Goal buttons
------------------------------------------------ */

.savings_goal_actions {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;

    margin-top: auto;
}

.savings_goal_actions button {
    min-width: 0;
    padding: 9px 8px;

    border-radius: 10px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.savings_goal_actions button:hover {
    transform: translateY(-1px);
}

.add_goal_contribution_button {
    border: 1px solid rgba(39, 174, 96, 0.24);

    color: var(--green-700);
    background: rgba(39, 174, 96, 0.09);
}

.edit_savings_goal_button {
    border: 1px solid rgba(41, 128, 185, 0.24);

    color: var(--blue-700);
    background: rgba(41, 128, 185, 0.08);
}

.delete_savings_goal_button {
    border: 1px solid rgba(231, 76, 60, 0.24);

    color: var(--red-600);
    background: rgba(231, 76, 60, 0.08);
}

/* ------------------------------------------------
   Contribution form
------------------------------------------------ */

.savings_contribution_panel {
    margin-top: 14px;
    padding: 14px;

    border: 1px solid var(--border-color);
    border-radius: 13px;

    background: white;
}

.savings_contribution_panel[hidden] {
    display: none;
}

.savings_contribution_panel h4 {
    margin: 0 0 12px;

    color: var(--navy-900);

    font-size: 13px;
    font-weight: 800;
}

.savings_contribution_form {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.savings_contribution_form
.form_group:last-of-type {
    grid-column: 1 / -1;
}

.savings_contribution_actions {
    display: flex;
    gap: 8px;

    grid-column: 1 / -1;
}

.savings_contribution_actions button {
    flex: 1;
}

/* ------------------------------------------------
   Contribution history
------------------------------------------------ */

.savings_contribution_history {
    margin-top: 14px;
}

.savings_contribution_history_header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;
}

.savings_contribution_history_header h4 {
    margin: 0;

    color: var(--navy-900);

    font-size: 12px;
    font-weight: 800;
}

.savings_contribution_list {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

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

    padding: 10px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: var(--surface-soft);
}

.savings_contribution_item_main {
    min-width: 0;
}

.savings_contribution_item_main strong {
    display: block;

    margin-bottom: 2px;

    color: var(--green-700);

    font-size: 11px;
    font-weight: 800;
}

.savings_contribution_item_main span {
    display: block;

    overflow: hidden;

    color: var(--text-secondary);

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete_savings_contribution_button {
    flex: 0 0 auto;

    padding: 6px 8px;

    border: 1px solid rgba(231, 76, 60, 0.22);
    border-radius: 8px;

    color: var(--red-600);
    background: rgba(231, 76, 60, 0.07);

    font-family: inherit;
    font-size: 8px;
    font-weight: 800;

    cursor: pointer;
}

/* ------------------------------------------------
   Responsive savings goals
------------------------------------------------ */

@media (max-width: 1050px) {

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

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

}

@media (max-width: 780px) {

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

    .savings_goals_header {
        flex-direction: column;
    }
}

@media (max-width: 560px) {

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

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

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

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

    .savings_contribution_form
    .form_group:last-of-type {
        grid-column: auto;
    }

    .savings_contribution_actions {
        grid-column: auto;
        flex-direction: column;
    }
}

/* ================================================================
   ACCOUNT-LINKED SAVINGS GOALS
================================================================ */

.account_linked_goals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account_linked_goal {
    padding: 14px;

    border: 1px solid var(--border-color);
    border-radius: 13px;

    background: var(--surface-soft);
}

.account_linked_goal.completed {
    border-color: rgba(39, 174, 96, 0.28);
    background: rgba(39, 174, 96, 0.06);
}

.account_linked_goal_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 9px;
}

.account_linked_goal_header h3 {
    margin: 0 0 3px;

    color: var(--navy-900);

    font-size: 12px;
    font-weight: 800;
}

.account_linked_goal_header span {
    color: var(--text-secondary);

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account_linked_goal_header strong {
    color: var(--blue-700);

    font-size: 11px;
    font-weight: 800;
}

.account_linked_goal_amount {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 8px;

    color: var(--text-secondary);

    font-size: 9px;
}

.account_linked_goal_progress {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: var(--radius-pill);

    background: #e1e8ed;
}

.account_linked_goal_progress_fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--teal-500)
        );
}

.account_linked_goal.completed
.account_linked_goal_progress_fill {
    background:
        linear-gradient(
            90deg,
            var(--green-500),
            var(--teal-500)
        );
}

.account_linked_goal_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 8px;
}

.account_linked_goal_footer span {
    color: var(--text-secondary);

    font-size: 8px;
}

.account_linked_goal_footer a {
    color: var(--blue-700);

    font-size: 8px;
    font-weight: 800;

    text-decoration: none;
}

/* ================================================================
   ACCOUNT BALANCE CHART
================================================================ */

.account_balance_chart_panel {
    grid-column: 1 / 2;
}

.account_balance_chart_container {
    position: relative;

    width: 100%;
    height: 340px;
    min-height: 340px;
}

.account_balance_chart_container canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 950px) {

    .account_balance_chart_panel {
        grid-column: auto;
    }
}

@media (max-width: 620px) {

    .account_balance_chart_container {
        height: 290px;
        min-height: 290px;
    }
}

.account_card_balance {
    margin: 12px 0 2px;

    color: var(--navy-900);

    font-size: 24px;
    font-weight: 800;
}

.account_card_balance_label {
    margin: 0 0 16px;

    color: var(--text-secondary);

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view_account_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 13px;

    border: 1px solid rgba(41, 128, 185, 0.25);
    border-radius: 20px;

    color: #2980b9;
    background: rgba(41, 128, 185, 0.08);

    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.view_account_button:hover {
    color: white;
    background: #2980b9;
}

/* ================================================================
   SAVINGS GOALS — FINAL SIZE OVERRIDES
================================================================ */

body .savings_goals_section {
    width: 100%;
    margin-top: 48px;
}

body .savings_goals_layout {
    grid-template-columns: 1fr;
    width: 100%;
}

body .savings_goals_grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(420px, 1fr));

    width: 100%;
    gap: 28px;
}

body .savings_goal_card {
    width: auto;
    min-width: 0;
    min-height: 460px;

    padding: 30px;

    border-radius: 22px;
}

body .savings_goal_identity h3 {
    font-size: 24px;
}

body .savings_goal_identity p {
    font-size: 14px;
}

body .savings_goal_amounts strong {
    font-size: 21px;
}

body .savings_goal_amounts span,
body .savings_goal_metadata_row span {
    font-size: 11px;
}

body .savings_goal_metadata_row strong {
    font-size: 13px;
}

body .savings_goal_actions button,
body .toggle_savings_contribution_history_button {
    min-height: 48px;

    padding: 12px 15px;

    font-size: 12px;
}

body .savings_contribution_panel {
    padding: 20px;
}

body .savings_contribution_form input {
    min-height: 46px;

    font-size: 14px;
}

@media (max-width: 1050px) {

    body .savings_goals_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    body .savings_goal_card {
        min-height: auto;
        padding: 21px;
    }

    body .savings_goal_identity h3 {
        font-size: 20px;
    }
}

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

#save_savings_goal_button,
#cancel_savings_goal_button {
    flex: 1;
    min-height: 46px;
}

#save_savings_goal_button:disabled {
    cursor: wait;
    opacity: 0.65;
}


/* ================================================================
   SAVINGS GOAL MODALS
================================================================ */

body.savings_goal_modal_open,
body.savings_contribution_modal_open {
    overflow: hidden;
}


/* Add or edit goal modal */

.savings_goal_form_panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 3001;

    width: min(620px, calc(100% - 32px));
    max-height: calc(100vh - 48px);

    padding: 28px;
    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid var(--border-color);
    border-radius: 22px;

    background: white;

    box-shadow:
        0 0 0 100vmax rgba(15, 23, 42, 0.72),
        0 28px 80px rgba(15, 23, 42, 0.32);

    transform: translate(-50%, -50%);
}

.savings_goal_form_panel[hidden] {
    display: none;
}


/* Add contribution modal */

.savings_contribution_panel {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 3002;

    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 48px);

    margin: 0;
    padding: 26px;

    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid var(--border-color);
    border-radius: 20px;

    background: white;

    box-shadow:
        0 0 0 100vmax rgba(15, 23, 42, 0.72),
        0 28px 80px rgba(15, 23, 42, 0.32);

    transform: translate(-50%, -50%);
}

.savings_contribution_panel h4 {
    margin-bottom: 20px;

    font-size: 20px;
}

.savings_contribution_form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.savings_contribution_actions {
    gap: 12px;
}

.savings_contribution_actions button {
    min-height: 46px;

    padding: 11px 16px;

    font-size: 12px;
}


/* Goal form buttons */

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

#save_savings_goal_button,
#cancel_savings_goal_button {
    flex: 1;

    min-height: 46px;
}


/* Mobile modal sizing */

@media (max-width: 620px) {

    .savings_goal_form_panel,
    .savings_contribution_panel {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);

        padding: 20px;

        border-radius: 18px;
    }

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

    .savings_contribution_form
    .form_group:last-of-type {
        grid-column: auto;
    }

    .savings_contribution_actions,
    .savings_goal_form_actions {
        grid-column: auto;
        flex-direction: column;
    }

    .savings_contribution_actions button,
    #save_savings_goal_button,
    #cancel_savings_goal_button {
        width: 100%;
    }
}


/* ================================================================
   ACCOUNT RECOVERY
================================================================ */

.recovery_page {
    display: grid;
    place-items: center;
    padding: 36px 20px;
}

.recovery_layout {
    display: grid;
    grid-template-columns:
        minmax(320px, 0.9fr)
        minmax(390px, 1fr);

    width: min(980px, 100%);
    min-height: 590px;

    overflow: hidden;

    border: 1px solid rgba(227, 233, 238, 0.9);
    border-radius: 28px;

    background: white;
    box-shadow: var(--shadow-large);
}

.recovery_brand_panel {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 45px;

    overflow: hidden;

    color: white;

    background:
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, 0.14),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            var(--navy-950),
            var(--navy-800) 60%,
            var(--teal-500)
        );
}

.recovery_brand_panel::after {
    content: "";

    position: absolute;
    right: -90px;
    bottom: -100px;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);
}

.recovery_brand {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    width: fit-content;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.recovery_brand strong {
    color: #78f1d4;
}

.recovery_brand_icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.12);

    font-size: 24px;
}

.recovery_brand_content {
    position: relative;
    z-index: 1;
}

.recovery_brand_content h1 {
    max-width: 410px;
    margin-bottom: 18px;

    color: white;

    font-size: clamp(35px, 5vw, 51px);
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.recovery_brand_content > p:not(.auth_eyebrow) {
    max-width: 430px;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    line-height: 1.8;
}

.recovery_security_note {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.09);
}

.recovery_security_note span {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    color: var(--navy-900);
    background: #78f1d4;

    font-size: 12px;
    font-weight: 800;
}

.recovery_security_note p {
    margin: 1px 0 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 11px;
    line-height: 1.65;
}

.recovery_form_panel {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 55px;
}

.recovery_back_link {
    width: fit-content;
    margin-bottom: 38px;

    color: var(--blue-600);

    font-size: 11px;
    font-weight: 700;
}

.recovery_back_link:hover {
    text-decoration: underline;
}

.recovery_form_header {
    margin-bottom: 28px;
}

.recovery_form_icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    margin-bottom: 19px;

    border-radius: 16px;

    color: var(--blue-600);
    background:
        linear-gradient(
            135deg,
            rgba(41, 128, 185, 0.12),
            rgba(26, 188, 156, 0.13)
        );

    font-size: 22px;
    font-weight: 800;
}

.recovery_form_header h2 {
    margin-bottom: 9px;

    color: var(--navy-900);

    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.recovery_form_header > p:not(.panel_eyebrow) {
    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.7;
}

.recovery_form-panel .auth_submit_button,
.recovery_form_panel .auth_submit_button {
    width: 100%;
}

.recovery_message {
    min-height: 23px;
    margin: 16px 0 0;

    font-size: 11px;
    line-height: 1.6;
}

.recovery_help_text {
    margin: 20px 0 0;
    padding-top: 18px;

    border-top: 1px solid var(--border-color);

    color: var(--text-soft);

    font-size: 10px;
    line-height: 1.7;
}

@media (max-width: 780px) {

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

    .recovery_brand_panel {
        min-height: 300px;
        padding: 35px;
    }

    .recovery_brand_content {
        margin: 45px 0;
    }

    .recovery_form_panel {
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {

    .recovery_page {
        padding: 0;
    }

    .recovery_layout {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .recovery_brand_panel {
        min-height: 265px;
        padding: 28px 23px;
    }

    .recovery_brand_content h1 {
        font-size: 32px;
    }

    .recovery_security_note {
        display: none;
    }

    .recovery_form_panel {
        padding: 35px 23px;
    }
}

