﻿/* =========================================================
   Bank Account Page
   ========================================================= */

.site-bank-account-page {
    min-height: calc(100vh - 160px);
    padding: 1.5rem 0 3.5rem;
    background: radial-gradient( circle at top right, rgba(14, 70, 163, .06), transparent 30rem ), #f7f8fa;
}

/* =========================================================
   Breadcrumb
   ========================================================= */

.site-bank-account-breadcrumb {
    margin-bottom: 1rem;
}

.site-bank-account-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8125rem;
}

.site-bank-account-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
}

    .site-bank-account-breadcrumb-item +
    .site-bank-account-breadcrumb-item::before {
        content: "/";
        margin-right: .5rem;
        color: #c0c5ce;
    }

    .site-bank-account-breadcrumb-item a {
        color: #5f6877;
        text-decoration: none;
        transition: color .2s ease;
    }

        .site-bank-account-breadcrumb-item a:hover {
            color: var(--site-primary, #0e46a3);
        }

    .site-bank-account-breadcrumb-item.active {
        color: #202938;
        font-weight: 600;
    }

/* =========================================================
   Hero
   ========================================================= */

.site-bank-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    background: linear-gradient( 135deg, #0e46a3 0%, #123a78 100% );
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(14, 70, 163, .16);
}

.site-bank-account-hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 5vw, 4rem);
}

.site-bank-account-hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: .4rem .75rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-bank-account-title {
    max-width: 42rem;
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.site-bank-account-description {
    max-width: 40rem;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.75;
}

.site-bank-account-hero-visual {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
}

    .site-bank-account-hero-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: .18;
        background-image: linear-gradient( rgba(255, 255, 255, .35) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, .35) 1px, transparent 1px );
        background-size: 2rem 2rem;
        mask-image: linear-gradient( to left, #000, transparent );
    }

.site-bank-account-hero-icon {
    display: inline-flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 9rem;
    height: 9rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 2rem;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .92);
    font-size: 3.5rem;
    transform: rotate(-5deg);
    backdrop-filter: blur(8px);
}

/* =========================================================
   Content
   ========================================================= */

.site-bank-account-content {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.site-bank-account-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.site-bank-account-eyebrow {
    display: block;
    margin-bottom: .3rem;
    color: var(--site-primary, #0e46a3);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.site-bank-account-section-heading h2 {
    margin: 0 0 .35rem;
    color: #172033;
    font-size: 1.35rem;
    font-weight: 700;
}

.site-bank-account-section-heading p {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.6;
}

.site-bank-account-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(14, 70, 163, .08);
    color: var(--site-primary, #0e46a3);
    font-size: .75rem;
    font-weight: 700;
}

/* =========================================================
   Account Cards
   ========================================================= */

.site-bank-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.site-bank-account-card {
    overflow: hidden;
    border: 1px solid #e7eaf0;
    border-radius: 1rem;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .site-bank-account-card:hover {
        border-color: rgba(14, 70, 163, .2);
        box-shadow: 0 16px 32px rgba(15, 23, 42, .07);
        transform: translateY(-2px);
    }

.site-bank-account-card-header {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #edf0f4;
    background: #f8fafc;
}

.site-bank-account-bank-icon {
    display: inline-flex;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    background: #fff;
    color: var(--site-primary, #0e46a3);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .06);
}

.site-bank-account-bank-info {
    min-width: 0;
}

.site-bank-account-label {
    display: block;
    margin-bottom: .2rem;
    color: #7a8494;
    font-size: .72rem;
    font-weight: 600;
}

.site-bank-account-bank-name {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.site-bank-account-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
}

.site-bank-account-detail {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.site-bank-account-detail-icon {
    display: inline-flex;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .625rem;
    background: rgba(14, 70, 163, .07);
    color: var(--site-primary, #0e46a3);
    font-size: .85rem;
}

.site-bank-account-detail strong {
    display: block;
    color: #253046;
    font-size: .875rem;
    font-weight: 700;
}

.site-bank-account-iban-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem;
    border: 1px dashed #ccd3dd;
    border-radius: .75rem;
    background: #f9fafb;
}

.site-bank-account-iban-content {
    min-width: 0;
}

.site-bank-account-iban {
    display: block;
    color: #1f2937;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.site-bank-account-copy-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 2.35rem;
    padding: .55rem .75rem;
    border: 1px solid rgba(14, 70, 163, .18);
    border-radius: .625rem;
    background: #fff;
    color: var(--site-primary, #0e46a3);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

    .site-bank-account-copy-button:hover {
        border-color: var(--site-primary, #0e46a3);
        background: var(--site-primary, #0e46a3);
        color: #fff;
    }

    .site-bank-account-copy-button.is-copied {
        border-color: #198754;
        background: #198754;
        color: #fff;
    }

/* =========================================================
   Notice and Empty State
   ========================================================= */

.site-bank-account-notice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: .8rem;
    background: rgba(14, 70, 163, .055);
    color: #5f6b7a;
}

.site-bank-account-notice-icon {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: .1rem;
    color: var(--site-primary, #0e46a3);
}

.site-bank-account-notice strong {
    display: block;
    margin-bottom: .2rem;
    color: #253046;
    font-size: .85rem;
}

.site-bank-account-notice p {
    margin: 0;
    font-size: .825rem;
    line-height: 1.6;
}

.site-bank-account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 18rem;
    padding: 2rem;
    border: 1px dashed #d7dce4;
    border-radius: 1rem;
    background: #fafbfc;
    text-align: center;
}

.site-bank-account-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgba(14, 70, 163, .08);
    color: var(--site-primary, #0e46a3);
    font-size: 1.5rem;
}

.site-bank-account-empty h2 {
    margin: 0 0 .5rem;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
}

.site-bank-account-empty p {
    max-width: 30rem;
    margin: 0;
    color: #6b7280;
    font-size: .875rem;
    line-height: 1.6;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991.98px) {
    .site-bank-account-hero {
        grid-template-columns: 1fr;
    }

    .site-bank-account-hero-visual {
        display: none;
    }

    .site-bank-account-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .site-bank-account-page {
        padding-top: 1rem;
    }

    .site-bank-account-hero-content {
        padding: 1.5rem;
    }

    .site-bank-account-title {
        font-size: 1.8rem;
    }

    .site-bank-account-description {
        font-size: .95rem;
    }

    .site-bank-account-section-heading {
        flex-direction: column;
    }

    .site-bank-account-iban-box {
        align-items: stretch;
        flex-direction: column;
    }

    .site-bank-account-copy-button {
        width: 100%;
    }
}
