/* =====================================================
   Chase Bank Clone - Global Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --chase-blue:      #0060a9;
    --chase-blue-dark: #004b85;
    --chase-blue-light:#1a7fc4;
    --white:           #ffffff;
    --gray-50:         #f8f9fa;
    --gray-100:        #f1f3f5;
    --gray-200:        #e9ecef;
    --gray-400:        #adb5bd;
    --gray-600:        #6c757d;
    --gray-800:        #343a40;
    --text-dark:       #1a1a2e;
    --text-muted:      #6c757d;
    --danger:          #dc3545;
    --success:         #28a745;
    --shadow-card:     0 8px 40px rgba(0,0,0,0.18);
    --radius:          16px;
    --transition:      all 0.25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-100);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* =====================================================
   Auth Layout (Login / Register / Forgot)
   ===================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Hero background image */
.auth-hero {
    position: relative;
    width: 100%;
    height: 380px;
    background: url('../img/image.png') center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* slight darkening overlay for legibility */
.auth-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

/* Chase Logo */
.chase-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.chase-logo-text {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.chase-logo-icon {
    width: 46px;
    height: 46px;
    margin-left: 10px;
}

.chase-logo-row {
    display: flex;
    align-items: center;
}

/* Uploaded photo logo */
.chase-logo-img {
    max-height: 90px;
    max-width: 340px;
    width: auto;
    object-fit: contain;
    /* force the logo to render in pure white */
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Auth body — rounded top corners overlap the hero */
.auth-card-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px 40px;
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -28px;
    position: relative;
    z-index: 5;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 520px;
    padding: 40px 8px 20px;
    /* no shadow, no border-radius — flat like the real Chase page */
}

.auth-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* Form Fields */
.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #767676;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #c8c8c8;
    background: transparent;
    outline: none;
    padding: 10px 36px 10px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-bottom-color: var(--chase-blue);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    top: -6px;
    font-size: 0.72rem;
    color: var(--chase-blue);
    font-weight: 500;
}

/* For standard label (non-floating) */
.form-group.static-label label {
    position: static;
    transform: none;
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group.static-label input {
    padding: 10px 36px 10px 0;
}

/* Password toggle */
.input-wrap {
    position: relative;
}

.toggle-pw {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    color: #888;
    transition: var(--transition);
}

.toggle-pw:hover { color: var(--chase-blue); }

.toggle-pw svg { width: 20px; height: 20px; }

/* Checkboxes row */
.check-row {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

.check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--chase-blue);
    cursor: pointer;
    flex-shrink: 0;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--chase-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    letter-spacing: 0.2px;
    transition: var(--transition);
    margin-bottom: 20px;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--chase-blue-dark);
}

.btn-primary:active { opacity: 0.92; }

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--chase-blue);
    color: var(--chase-blue);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--chase-blue);
    color: #fff;
}

/* Helper links */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-links a {
    color: var(--chase-blue);
    font-size: 0.88rem;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--chase-blue-dark);
    text-decoration: underline;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 20px 0;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-danger {
    background: #fff0f0;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #f0fff4;
    color: var(--success);
    border-left: 4px solid var(--success);
}

/* ---- Auth Footer ---- */
.auth-footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 24px 20px 20px;
    text-align: center;
}

/* Plain social icons — no circle background */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.2s;
    width: 22px;
    height: 22px;
}

.social-icons a:hover {
    color: var(--chase-blue);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* Primary footer links row */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--chase-blue);
    padding: 2px 10px;
    border-right: 1px solid #ccc;
    line-height: 1.4;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-links a:last-child { border-right: none; }
.footer-links a:hover { text-decoration: underline; }

/* Secondary footer links row */
.footer-links-2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.footer-links-2 a {
    color: var(--chase-blue);
    padding: 2px 10px;
    border-right: 1px solid #ccc;
    line-height: 1.4;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-links-2 a:last-child { border-right: none; }
.footer-links-2 a:hover { text-decoration: underline; }

/* Tertiary footer links row */
.footer-links-3 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.footer-links-3 a {
    color: var(--chase-blue);
    padding: 2px 10px;
    border-right: 1px solid #ccc;
    line-height: 1.4;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-links-3 a:last-child { border-right: none; }
.footer-links-3 a:hover { text-decoration: underline; }

.footer-copy {
    font-size: 0.74rem;
    color: #767676;
    margin-top: 8px;
    line-height: 1.5;
}

/* =====================================================
   Chase App Dashboard - Mobile-First
   ===================================================== */

/* App shell */
.app-shell {
    min-height: 100vh;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

/* ---- Blue Header ---- */
.app-header {
    background: var(--chase-blue);
    padding: 20px 20px 52px;
    color: #fff;
}

/* Top bar */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.app-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 11px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    cursor: text;
}

.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.app-icon-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.app-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    border: 2px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

/* Greeting row */
.app-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.app-greeting-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo-img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.app-greeting-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.app-plus-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
}

/* Quick Action Pills */
.app-actions {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.app-actions::-webkit-scrollbar { display: none; }

.app-action-pill {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 88px;
    position: relative;
    transition: background 0.2s;
}
.app-action-pill:hover { background: rgba(255,255,255,0.26); }

.app-action-icon { color: rgba(255,255,255,0.9); }

.app-action-label {
    font-size: 0.72rem;
    text-align: left;
    line-height: 1.3;
    color: #fff;
}

.app-action-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1;
}

/* ---- Page Body ---- */
.app-body {
    flex: 1;
    padding: 0 0 80px;
    background: #f0f2f5;
}

/* ---- White Section Card ---- */
.dash-section-card {
    background: #fff;
    border-radius: 14px;
    margin: 0 12px 16px;
    padding: 18px 16px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    position: relative;
    z-index: 10;
}

/* First card overlaps the blue header */
.dash-section-card:first-child {
    margin-top: -36px;
}

.dash-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

/* Account rows */
.acc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

.acc-info { flex: 1; }

.acc-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.acc-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.acc-balance {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.acc-divider {
    height: 1px;
    background: #eee;
    margin: 0 -16px;
}

.acc-open-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--chase-blue);
    font-size: 0.88rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 0 8px;
}

/* ---- Offers Section ---- */
.offers-section {
    padding: 16px 12px 8px;
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.offers-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.offers-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.offers-all {
    font-size: 0.82rem;
    color: var(--chase-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.offers-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.offers-scroll::-webkit-scrollbar { display: none; }

.offer-card {
    width: 82px;
    height: 72px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.offer-card-blue {
    background: #e8f0fe;
    color: var(--chase-blue);
    flex-direction: column;
}

.offer-card-blue span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--chase-blue);
}

.offer-card-white { background: #fff; }

/* ---- List Card (Invest / Schedule) ---- */
.dash-list-card {
    background: #fff;
    border-radius: 14px;
    margin: 0 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.dash-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.dash-list-row:hover { background: #f8f9fa; }

.dash-list-info { flex: 1; }

.dash-list-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.dash-list-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- Transaction rows (app style) ---- */
.tx-app-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
}

.tx-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tx-app-icon.credit { background: #e8f5e9; color: #2e7d32; }
.tx-app-icon.debit  { background: #fce8e8; color: #c62828; }

.tx-app-info { flex: 1; min-width: 0; }

.tx-app-desc {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-app-date {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tx-app-amount {
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}
.tx-app-amount.credit { color: #2e7d32; }
.tx-app-amount.debit  { color: #c62828; }

/* ---- Bottom Navigation ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0 16px;
    position: relative;
    flex: 1;
}

.bottom-nav-item svg { transition: color 0.2s; }

.bottom-nav-item.active {
    color: var(--chase-blue);
}

.bottom-nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--chase-blue);
    position: absolute;
    bottom: -8px;
}

/* =====================================================
   Transfer Page
   ===================================================== */

.transfer-card {
    background: #fff;
    border-radius: 12px;
    margin: 0 12px 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.transfer-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.transfer-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.transfer-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fce8e8;
    color: #c62828;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form groups */
.tf-group {
    margin-bottom: 22px;
}

.tf-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Custom Select & Inputs */
.tf-custom-select {
    position: relative;
    width: 100%;
}

.tf-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ebf0f9;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    min-height: 56px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.tf-select-trigger:hover {
    background: #e2e8f4;
}

.tf-trigger-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

#selectedLabel {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tf-selected-bal {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6d7278;
}

.tf-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tf-custom-select.active .tf-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tf-option {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid #f0f4fa;
    transition: background 0.15s;
}

.tf-option:last-child {
    border-bottom: none;
}

.tf-option:hover {
    background: #f8fafc;
}

.tf-option.selected {
    background: #f0f7ff;
}

.tf-option.selected .tf-opt-label {
    color: var(--chase-blue);
}

.tf-opt-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tf-opt-bal {
    font-size: 0.82rem;
    font-weight: 500;
    color: #6d7278;
}

.tf-input, .tf-amount-wrap {
    width: 100%;
    background: #ebf0f9;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    box-sizing: border-box;
}

.tf-chevron {
    color: #888;
    transition: transform 0.2s;
}

.tf-custom-select.active .tf-chevron {
    transform: rotate(180deg);
}

.tf-available {
    font-size: 0.78rem;
    color: #6d7278;
    margin-top: 8px;
    padding-left: 2px;
}

.tf-input {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: background 0.2s;
}
.tf-input::placeholder { color: #99a2ad; }
.tf-input:focus { background: #e2e8f4; }

/* Amount with $ prefix */
.tf-amount-wrap {
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.tf-amount-wrap:focus-within { background: #e2e8f4; }

.tf-dollar {
    padding: 0 4px 0 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    flex-shrink: 0;
}

.tf-amount-input {
    background: transparent;
    border: none;
    padding: 14px 16px 14px 4px;
    flex: 1;
}
.tf-amount-input:focus { background: transparent; }

/* Submit button - updated to match image precisely */
.tf-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0060a3; /* Chase dark blue from the button image */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    font-family: inherit;
    transition: background 0.2s;
}
.tf-submit-btn:hover:not(:disabled) { background: #004d82; }
.tf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0060a3;
}
.tf-submit-btn svg {
    margin-left: 4px;
}

/* =====================================================
   Transactions Page
   ===================================================== */

/* Page header */
.tx-page-header {
    padding: 28px 20px 16px;
    background: #f4f5f7;
}

.tx-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Stacked account rows */
.tx-acc-list {
    background: #fff;
    border-radius: 14px;
    margin: 0 12px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.tx-acc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.tx-acc-row:hover { background: #f8f9fb; }

.tx-acc-row.active {
    background: #f0f5ff;
    border-left-color: var(--chase-blue);
}

.tx-acc-row-icon {
    width: 40px;
    height: 36px;
    background: #e8f0fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-acc-row-info { flex: 1; min-width: 0; }

.tx-acc-row-name {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-dark);
}

.tx-acc-row-no {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.tx-acc-row-bal {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.tx-acc-list-divider {
    height: 1px;
    background: #eee;
    margin: 0 18px;
}

/* Detail block */
.tx-detail-block {
    background: #fff;
    border-radius: 14px;
    margin: 0 12px 16px;
    padding: 18px 16px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tx-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.tx-detail-name {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tx-badge {
    background: #e8f0fe;
    color: var(--chase-blue);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tx-detail-acc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.tx-detail-right {
    text-align: right;
    flex-shrink: 0;
}

.tx-detail-bal-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.tx-detail-bal {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Transaction history */
.tx-history-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tx-empty {
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}

.tx-history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tx-history-row:last-child { border-bottom: none; }

.tx-hist-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tx-hist-icon.credit { background: #e8f5e9; color: #2e7d32; }
.tx-hist-icon.debit  { background: #f0f0f0; color: #555; }

.tx-hist-info {
    flex: 1;
    min-width: 0;
}

.tx-hist-desc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-hist-date {
    font-size: 0.72rem;
    color: var(--chase-blue);
    margin-top: 2px;
}

.tx-hist-right {
    text-align: right;
    flex-shrink: 0;
}

.tx-hist-amount {
    font-size: 0.9rem;
    font-weight: 700;
}
.tx-hist-amount.credit { color: #2e7d32; }
.tx-hist-amount.debit  { color: var(--text-dark); }

.tx-hist-bal {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tx-hist-receipt {
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.tx-hist-receipt:hover { background: #e0e4ea; }

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 768px) {
    .chase-logo-text { font-size: 2rem; }
    .chase-logo-icon { width: 38px; height: 38px; }
    .auth-card { padding: 28px 4px 20px; }

    .nav-menu { display: none; }
    .hamburger { display: flex; }

    .dash-welcome { font-size: 1.2rem; }
    .accounts-grid { grid-template-columns: 1fr; }
    .quick-actions { gap: 8px; }
    .qa-btn { padding: 9px 14px; font-size: 0.82rem; }

    .footer-links a,
    .footer-links-2 a,
    .footer-links-3 a { padding: 2px 7px; font-size: 0.73rem; }
}

@media (max-width: 480px) {
    .chase-logo-text { font-size: 1.7rem; letter-spacing: 4px; }
    .chase-logo-icon { width: 32px; height: 32px; }
    .check-row { gap: 16px; }
}

/* =====================================================
   Animations & Utilities
   ===================================================== */

.fade-in {
    animation: fadeIn 0.5s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }

/* =====================================================
   Security Modal
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--chase-blue);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-top: -5px;
}

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

#modalMessage {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

/* =====================================================
   Transfer Restricted Modal (Custom Chase Style)
   ===================================================== */
.restrict-modal .modal-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.restrict-modal .modal-content {
    max-width: 480px;
    border-radius: 4px;
}

.restrict-modal .modal-header {
    background: #0060A3;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shield-icon {
    color: #fff;
    display: flex;
}

.modal-logo-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.error-code-bar {
    background: #F0F2F5;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
}

.error-code-bar svg {
    color: #FFB300;
}

.restrict-body {
    padding: 30px 24px;
    text-align: left;
}

.restrict-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 16px;
}

.restrict-greeting {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.restrict-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 24px;
}

.restrict-footer-text {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 30px;
}

.restrict-footer-text strong {
    color: #333;
}

.restrict-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary-chase {
    background: #065796;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary-chase:hover {
    background: #004d82;
}

.btn-secondary-chase {
    background: #fff;
    color: #333;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.btn-secondary-chase:hover {
    background: #F9FAFB;
}

/* Spinner for button */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* =====================================================
   Cards Page
   ===================================================== */
.cards-page-container {
    padding: 24px 20px;
}

.cards-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.cards-header-icon {
    width: 48px;
    height: 48px;
    background: #ebf0f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cards-header-icon img {
    width: 32px;
    height: auto;
}

.cards-header-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.cards-header-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 0;
}

.apply-new-btn {
    width: 100%;
    background: #0060a3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    cursor: pointer;
}

.cards-empty-state {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
}

.empty-card-icon-wrap {
    width: 60px;
    height: 60px;
    background: #ebf0f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #0060a3;
}

.cards-empty-state h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.cards-empty-state p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #666;
    max-width: 260px;
    margin: 0 auto 24px;
}

.apply-first-btn {
    background: #0060a3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.apply-first-btn svg {
    color: #fff;
}

/* =====================================================
   Card Application Modal
   ===================================================== */
.app-modal .modal-content {
    max-width: 480px;
    border-radius: 8px;
    padding: 0;
}

.app-modal .modal-header {
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
    padding: 18px 24px;
}

.app-modal .modal-header-left {
    color: #0060a3;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-modal .modal-close {
    color: #666;
    font-size: 24px;
}

.modal-step-body {
    padding: 24px;
}

/* Step Progress Indicator */
.modal-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: #f0f2f5;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.step-num.active {
    background: #0060a3;
    color: #fff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #f0f2f5;
    z-index: 1;
}

.step-line.active {
    background: #0060a3;
}

/* Step Titles */
.step-title-group {
    text-align: center;
    margin-bottom: 24px;
}

.step-main-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.step-sub-title {
    font-size: 0.88rem;
    color: #666;
}

/* Step 1: Card Selection */
.card-selection-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 4px;
}

.card-selection-list::-webkit-scrollbar {
    width: 6px;
}
.card-selection-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.card-selection-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.card-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-item:hover {
    border-color: #0060a3;
    background: #f8fafc;
}

.card-item.selected {
    border-color: #0060a3;
    border-width: 2px;
    padding: 15px;
    background: #f0f7ff;
}

.card-item-left h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.card-item-left p {
    font-size: 0.78rem;
    color: #666;
}

.card-item-right {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0060a3;
}

/* Step 2 Elements */
.input-with-icon {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0060a3;
}

.input-with-icon .tf-input {
    padding-left: 40px;
    background: #fff;
    border: 1px solid #d1d5db;
}

.input-sub-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-footer .btn-primary-chase {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-footer .btn-secondary-chase {
    flex: 1;
}

/* Step 3: Review */
.review-success-header {
    text-align: center;
    margin-bottom: 24px;
}

.check-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 3px solid #10b981;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.review-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    font-size: 0.85rem;
    color: #666;
}

.review-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #000;
    text-align: right;
}

.next-steps-info {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.next-steps-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.next-step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #444;
    align-items: flex-start;
}

.next-step-item:last-child {
    margin-bottom: 0;
}

.next-step-item svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================
   Pending Applications Section
   ===================================================== */
.pending-section {
    margin-top: 30px;
    margin-bottom: 20px;
}

.pending-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.pending-title svg {
    color: #f59e0b;
}

.pending-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.pending-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pending-card-icon {
    width: 48px;
    height: 48px;
    background: #fff8eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
}

.pending-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: #000;
}

.pending-card-date {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.status-badge-review {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff8eb;
    color: #f59e0b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* SSN Toggle Styles */
.ssn-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssn-toggle:hover {
    color: #0060a3;
}

/* =====================================================
   Notifications Page
   ===================================================== */
.notifications-container {
    padding: 24px 20px;
}

.notifications-container h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0b2343;
    margin-bottom: 24px;
}

.notification-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.notif-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-warning {
    background: #fff8eb;
    color: #f59e0b;
}

.notif-info {
    background: #eff6ff;
    color: #3b82f6;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.notif-message {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}

.notif-time {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}
