/* Chase Login Modal & Dashboard */
.chase-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 74, 153, 0.92);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.chase-overlay.is-open {
    display: flex;
}

.chase-overlay--dashboard {
    align-items: stretch;
    justify-content: stretch;
    background: #eceef0;
    overflow: auto;
}

.chase-overlay--panel {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    overflow: auto;
}

.chase-panel {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: 85vh;
    overflow: auto;
    background: #eceef0;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.chase-panel__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #414042;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.chase-panel__close:hover {
    background: #fff;
}

.chase-overlay__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    opacity: 0.85;
}

.chase-overlay__close:hover {
    opacity: 1;
}

.chase-overlay--dashboard .chase-overlay__close {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 22px;
    top: 10px;
    right: 12px;
}

/* Login Card */
.chase-login-card {
    background: #fff;
    border-radius: 4px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    padding: 36px 40px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    position: relative;
}

.chase-login-card__field {
    margin-bottom: 28px;
}

.chase-login-card__label {
    display: block;
    font-size: 14px;
    color: #414042;
    margin-bottom: 6px;
}

.chase-login-card__input-wrap {
    position: relative;
    border-bottom: 1px solid #717171;
    padding-bottom: 4px;
}

.chase-login-card__input-wrap:focus-within {
    border-bottom-color: #117aca;
    border-bottom-width: 2px;
    padding-bottom: 3px;
}

.chase-login-card__input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: #414042;
    background: transparent;
    padding: 4px 0;
}

.chase-login-card__show-pw {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    color: #117aca;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
}

.chase-login-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    font-size: 14px;
}

.chase-login-card__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #414042;
    cursor: pointer;
}

.chase-login-card__remember input {
    width: 16px;
    height: 16px;
    accent-color: #117aca;
}

.chase-login-card__link {
    color: #117aca;
    text-decoration: none;
    font-size: 14px;
}

.chase-login-card__link:hover {
    text-decoration: underline;
}

.chase-login-card__error {
    color: #c41230;
    font-size: 13px;
    margin: -16px 0 16px;
    display: none;
}

.chase-login-card__error.is-visible {
    display: block;
}

.chase-login-card__btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background 0.15s;
}

.chase-login-card__btn--primary {
    background: #117aca;
    color: #fff;
    margin-bottom: 20px;
}

.chase-login-card__btn--primary:hover {
    background: #0e6ab3;
}

.chase-login-card__btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chase-login-card__btn--outline {
    background: #fff;
    color: #117aca;
    border: 1px solid #117aca;
}

.chase-login-card__btn--outline:hover {
    background: #f0f7fd;
}

.chase-login-card__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #717171;
    font-size: 14px;
}

.chase-login-card__divider::before,
.chase-login-card__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d0d0d0;
}

.chase-login-card__footer {
    margin-top: 24px;
    text-align: center;
}

.chase-login-card__footer a {
    display: block;
    color: #117aca;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.chase-login-card__footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.chase-dashboard {
    width: 100%;
}

.chase-dashboard__section-header {
    background: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d8d8d8;
}

.chase-dashboard__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #414042;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chase-dashboard__section-title svg {
    width: 14px;
    height: 14px;
    fill: #414042;
}

.chase-dashboard__info-icon {
    color: #117aca;
    font-size: 18px;
    cursor: pointer;
}

.chase-dashboard__account {
    background: #fff;
    border-bottom: 1px solid #d8d8d8;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 24px;
    align-items: start;
}

.chase-dashboard__account-info {
    min-width: 0;
}

.chase-dashboard__account-name {
    font-size: 15px;
    font-weight: 600;
    color: #414042;
    margin-bottom: 6px;
}

.chase-dashboard__account-name a {
    color: #117aca;
    text-decoration: none;
}

.chase-dashboard__account-hold {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #414042;
    margin-bottom: 12px;
}

.chase-dashboard__hold-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5a623;
    flex-shrink: 0;
}

.chase-dashboard__balance-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px 48px;
}

.chase-dashboard__balance-block label {
    display: block;
    font-size: 13px;
    color: #717171;
    margin-bottom: 4px;
}

.chase-dashboard__balance-block .amount {
    font-size: 32px;
    font-weight: 300;
    color: #414042;
    letter-spacing: -0.5px;
}

.chase-dashboard__balance-block .amount--negative {
    color: #c41230;
}

.chase-dashboard__monthly {
    display: flex;
    gap: 32px;
    font-size: 13px;
    color: #717171;
}

.chase-dashboard__monthly strong {
    display: block;
    font-size: 15px;
    color: #414042;
    font-weight: 600;
    margin-top: 2px;
}

.chase-dashboard__actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
}

.chase-dashboard__action-btn {
    padding: 8px 16px;
    border: 1px solid #117aca;
    background: #fff;
    color: #117aca;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.chase-dashboard__action-btn:hover {
    background: #f0f7fd;
}

.chase-dashboard__welcome {
    background: #fff;
    margin: 16px 16px 0;
    padding: 16px 20px;
    border-radius: 4px;
    border-left: 4px solid #117aca;
    font-size: 14px;
    color: #414042;
}

.chase-dashboard__welcome strong {
    color: #004879;
}

.chase-dashboard__signout {
    margin-left: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #117aca;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.chase-dashboard__signout:hover {
    color: #0e6ab3;
}

.chase-login-link--active {
    font-weight: 600;
}

@media (max-width: 768px) {
    .chase-login-card {
        padding: 28px 24px 24px;
    }

    .chase-dashboard__account {
        grid-template-columns: 1fr;
    }

    .chase-dashboard__actions {
        width: 100%;
    }

    .chase-dashboard__action-btn {
        flex: 1;
        text-align: center;
    }

    .chase-dashboard__balance-block .amount {
        font-size: 26px;
    }

    .chase-overlay--panel {
        padding: 12px;
    }

    .chase-panel {
        max-height: 90vh;
    }
}
