.us-geo-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(17, 18, 20, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: usgp-bg 0.3s ease;
}

.us-geo-popup.is-visible {
    display: flex;
}

/* ── Card ── */
.us-geo-popup__card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    position: relative;
    animation: usgp-rise 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,0,0,0.08);
}

/* ── Photo header ── */
.us-geo-popup__photo {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #111214;
}

.us-geo-popup__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* Gradient over photo */
.us-geo-popup__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 100%
    );
    pointer-events: none;
}

/* ── Close ── */
.us-geo-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.25s;
    font-family: inherit;
    backdrop-filter: blur(6px);
}

.us-geo-popup__close:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: rotate(90deg);
}

/* ── Badge on photo ── */
.us-geo-popup__badge {
    position: absolute;
    bottom: 18px;
    left: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
}

.us-geo-popup__flag-mini {
    display: flex;
    flex-direction: column;
    width: 28px;
    height: 18px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.us-geo-popup__flag-svg-mini {
    width: 100%;
    height: 100%;
    display: block;
}

.us-geo-popup__badge-label {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── Orange top rule ── */
.us-geo-popup__rule {
    height: 3px;
    background: #FF6A00;
}

/* ── Content ── */
.us-geo-popup__body {
    padding: 32px 36px 40px;
}

.us-geo-popup__eyebrow {
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #FF6A00;
    margin-bottom: 12px;
}

.us-geo-popup__heading {
    font-size: clamp(1.5em, 4vw, 1.95em);
    font-weight: 800;
    color: #111214;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.us-geo-popup__text {
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 30px;
}

.us-geo-popup__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FF6A00;
    color: #fff;
    text-decoration: none;
    padding: 17px 24px;
    font-size: 0.83em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s;
    font-family: inherit;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.us-geo-popup__cta:hover {
    background: #e05e00;
    color: #fff;
    text-decoration: none;
}

.us-geo-popup__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.us-geo-popup__cta:hover svg {
    transform: translateX(4px);
}

/* ── Animations ── */
@keyframes usgp-bg {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes usgp-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .us-geo-popup {
        padding: 0;
        align-items: flex-end;
    }

    .us-geo-popup__card {
        max-width: 100%;
        animation: usgp-sheet 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .us-geo-popup__photo {
        height: 190px;
    }

    .us-geo-popup__body {
        padding: 28px 24px 36px;
    }
}

@keyframes usgp-sheet {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0);    }
}
