body:has(.aml-signup) .about-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: var(--bs-primary);
    transition: background-color 0.5s;
}

body:has(.aml-signup) .about-navbar.active {
    background-color: rgba(0, 0, 0, 0.6);
}

body:has(.aml-signup) .main-container {
    padding-top: var(--aml-header-space, 148px);
}

.aml-signup,
.aml-signup button,
.aml-signup input,
.aml-panel,
.aml-panel button,
.aml-panel a {
    font-family: "Montserrat", sans-serif;
}

.aml-signup {
    --aml-inline: 8vw;
    color: #1c2b4a;
    background: #e8e8e8;
    padding-bottom: 72px;
}

.aml-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 204, 51, 0.22), transparent 28%),
        linear-gradient(115deg, #002266 0%, #003399 52%, #0a4ec4 100%);
    color: #fff;
    padding: 48px var(--aml-inline) 96px;
}

.aml-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -40px;
    width: 340px;
    height: 220px;
    background: linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.12) 42% 58%, transparent 58%);
    pointer-events: none;
}

.aml-kicker {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffcc33;
}

.aml-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.aml-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.aml-hero-note {
    position: absolute;
    right: var(--aml-inline);
    bottom: 72px;
    z-index: 1;
    max-width: 15rem;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.15;
}

.aml-card {
    position: relative;
    z-index: 2;
    width: auto;
    margin: -48px var(--aml-inline) 0;
    padding: 28px 28px 32px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 34, 102, 0.14);
}

.aml-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.aml-card h2 {
    margin: 0 0 6px;
    color: #003399;
    font-size: 1.75rem;
    font-weight: 700;
}

.aml-card-head p {
    margin: 0;
    color: #5c6b82;
}

.aml-search {
    position: relative;
    flex: 0 0 300px;
}

.aml-search input {
    width: 100%;
    border: 1px solid #d7e0ee;
    border-radius: 999px;
    background: #f7f9fc;
    padding: 13px 16px 13px 44px;
    color: #1c2b4a;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aml-search input:focus {
    outline: none;
    border-color: #003399;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 51, 153, 0.12);
}

.aml-search span {
    position: absolute;
    left: 16px;
    top: 50%;
    display: flex;
    color: #6d7c90;
    transform: translateY(-50%);
}

.aml-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.aml-country {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 76px;
    padding: 14px 14px 14px 16px;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 1px 2px rgba(15, 35, 70, 0.04);
    color: #1c2b4a;
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.aml-country:hover,
.aml-country:focus {
    transform: translateY(-2px);
    border-color: #003399;
    outline: none;
    box-shadow: 0 14px 28px rgba(0, 51, 153, 0.12);
}

.aml-flag {
    display: block;
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(15, 35, 70, 0.12);
    flex: 0 0 auto;
}

.aml-flag[hidden] {
    display: none;
}

.aml-country-name {
    flex: 1;
}

.aml-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef3fa;
    color: #5b6b82;
    flex: 0 0 auto;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.aml-country:hover .aml-chevron,
.aml-country:focus .aml-chevron {
    background: #003399;
    color: #fff;
    transform: translateX(2px);
}

.aml-empty-filter {
    display: none;
    margin: 18px 0 0;
    color: #5c6b82;
}

.aml-empty-filter.is-visible {
    display: block;
}

.aml-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 18, 42, 0.55);
    backdrop-filter: blur(8px);
}

.aml-panel[hidden] {
    display: none !important;
}

body.aml-panel-open {
    overflow: hidden;
}

.aml-panel-card {
    position: relative;
    width: min(640px, 100%);
    padding: 28px 22px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 18, 51, 0.32);
    overflow: hidden;
    animation: aml-panel-in 0.16s ease;
}

.aml-panel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #003399 0%, #0a4ec4 70%, #ffcc33 100%);
}

@keyframes aml-panel-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#aml-panel-body.is-loading {
    min-height: 48px;
}

.aml-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f3f6fb;
    color: #1c2b4a;
    font-size: 1.5rem;
    line-height: 1;
}

.aml-panel-close:hover,
.aml-panel-close:focus {
    background: #e7eef8;
    outline: none;
}

.aml-panel-kicker {
    margin: 0 0 14px;
    color: #003399;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.aml-selected-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto 28px;
    padding: 10px 18px 10px 12px;
    border: 1px solid #d7e3f5;
    border-radius: 999px;
    background: #f7f9fc;
    color: #003399;
    font-size: 1.05rem;
    font-weight: 700;
}

.aml-orgs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.aml-org {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 12px 12px 14px;
    border: 1px solid #e6edf6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: #1c2b4a;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 35, 70, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.aml-org:hover,
.aml-org:focus {
    transform: translateY(-3px);
    border-color: #003399;
    color: #003399;
    outline: none;
    box-shadow: 0 16px 32px rgba(0, 51, 153, 0.14);
}

.aml-org.is-disabled {
    color: #8b97a8;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.aml-org.is-disabled img {
    filter: grayscale(1);
}

.aml-org.is-disabled .aml-org-name,
.aml-org.is-disabled .aml-org-fallback {
    color: #8b97a8;
}

.aml-org-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #eef2f7;
}

.aml-org img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.aml-org-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.aml-org-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #eef3fa;
    color: #003399;
    font-size: 1.35rem;
    font-weight: 700;
}

.aml-message,
.aml-status {
    margin: 0;
    color: #5c6b82;
    text-align: center;
}

@media (max-width: 991px) {
    .aml-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aml-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .aml-search {
        flex-basis: auto;
    }

    .aml-hero-note {
        position: static;
        margin-top: 22px;
    }
}

@media (max-width: 575px) {
    .aml-hero {
        padding: 40px 20px 88px;
    }

    .aml-grid {
        grid-template-columns: 1fr;
    }

    .aml-card {
        padding: 22px 16px 26px;
    }

    .aml-panel-card {
        padding: 28px 16px 20px;
    }

    .aml-orgs {
        grid-template-columns: 1fr;
    }
}
