/* ═══════════════════════════════════════════════════════════════════════════
   YOUR LOCATION — map card + the information under it
   One job: point at the visitor's real city and list what was resolved. The
   globe is deliberately simple — it opens on the visitor, drags to rotate, and
   carries no toolbar of its own.
═══════════════════════════════════════════════════════════════════════════ */

.ext-hero-map { display: flex; flex-direction: column; gap: 18px; }

.ext-map-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(99, 140, 255, .22);
    background:
        radial-gradient(520px 340px at 50% 34%, rgba(34, 211, 238, .10), transparent 68%),
        #060a14;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
}

/* ── header ──────────────────────────────────────────────────────────────── */

.ext-map-head {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 24px 14px;
}
.ext-map-label {
    display: block;
    font-size: 9.5px; font-weight: 800; letter-spacing: .2em;
    text-transform: uppercase; color: #5b6b8c;
}
.ext-map-head .ext-map-label { font-size: 10px; }

.ext-map-status {
    display: inline-flex !important; align-items: center; gap: 8px;
    margin: 0 !important; padding: 7px 13px; border-radius: 999px;
    font-size: 11.5px !important; font-weight: 700; white-space: nowrap;
    color: #ff6b80; background: rgba(255, 55, 80, .09);
    border: 1px solid rgba(255, 55, 80, .22);
}
.ext-map-status.is-off { color: #ff6b80; }

/* ── the map canvas ────────────────────────────────────────────────────────
   A canvas, not a sphere: the map fills its frame, the country fills the map. */

.ext-map-canvas {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: #0b1223;
    touch-action: manipulation;
    cursor: default;      /* the map does not move: zoom only */
}
.ext-map-canvas canvas { display: block; width: 100%; height: 100%; }
.ext-map-canvas.is-loading::after,
.ext-map-canvas.is-error::after {
    content: '';
    position: absolute; inset: 0;
}

/* controls */
.ext-map-tools {
    position: absolute; z-index: 5; top: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.ext-map-tools button {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 9px; cursor: pointer;
    font-size: 12px; color: #cbd5e1;
    background: rgba(8, 13, 24, .86);
    border: 1px solid rgba(148, 163, 184, .22);
    backdrop-filter: blur(8px);
    transition: all .18s ease;
}
.ext-map-tools button:hover {
    color: #fff; border-color: rgba(56, 189, 248, .6);
    background: rgba(56, 189, 248, .14);
}
.ext-map-tools button:last-child { color: #67e8f9; border-color: rgba(56, 189, 248, .3); }

/* ── the status bar under the map ──────────────────────────────────────────
   One line, the way the app shows it: a dot for the protection state, the
   country's flag, the country, the IP, and on the far right the visitor's
   own date and time. Nothing animates. */

/* The bar under the map is centred: flag, country, IP, then the date and the
   live clock. One line, in the middle, the way the app shows it. */
.ext-map-bar {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    gap: 11px; flex-wrap: wrap;
    padding: 16px 24px 14px;
    border-top: 1px solid rgba(148, 163, 184, .09);
    text-align: center;
}
.ext-map-bar .dot {
    flex: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: #34d399; box-shadow: 0 0 9px rgba(52, 211, 153, .85);
}
.ext-map-bar .dot.is-off {
    background: #ff3854; box-shadow: 0 0 9px rgba(255, 56, 84, .9);
}

.ext-map-flag,
.ext-map-info-flag {
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #0b1223;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
.ext-map-flag { width: 26px; height: 26px; }

.ext-map-bar-country {
    font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em;
    white-space: nowrap;
}
.ext-map-bar-ip {
    font-size: 13px; color: #93a4c8;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: nowrap;
}
.ext-map-bar-clock {
    display: inline-flex; align-items: baseline; gap: 8px;
    font-size: 12.5px; color: #7c8db0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: nowrap;
}
.ext-map-bar-date { color: #5b6b8c; }
.ext-map-bar-sep {
    width: 1px; height: 14px;
    background: rgba(148, 163, 184, .22);
}

/* ── the connect button under the bar ─────────────────────────────────────
   One button, the width of the card: it sends a visitor to the login and a
   signed-in one to the extension. */

.ext-map-cta {
    position: relative; z-index: 2;
    padding: 0 24px 22px;
    text-align: center;
}
.ext-map-connect {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 420px; margin: 0 auto;
    padding: 15px 22px; border-radius: 14px;
    font-size: 14px; font-weight: 700; color: #04121f;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    box-shadow: 0 12px 30px rgba(34, 211, 238, .18);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.ext-map-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(34, 211, 238, .28);
    filter: brightness(1.05);
}
.ext-map-connect i { font-size: 15px; }
.ext-map-cta-note {
    margin: 11px 0 0;
    font-size: 11.5px; color: #5b6b8c;
}
.ext-map-cta-note i { margin-right: 5px; }

/* ── information card under the map ──────────────────────────────────────── */

.ext-map-info {
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, .12);
    background: linear-gradient(155deg, rgba(18, 23, 33, .92), rgba(8, 11, 17, .92));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}
.ext-map-info-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.ext-map-info-flag { width: 28px; height: 28px; }
.ext-map-info-title + .ext-map-rows { margin-top: 16px; }

/* 2 x 2: country beside city, region and ISP underneath. */
.ext-map-rows {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px; margin: 0;
}
.ext-map-rows > div {
    display: grid; grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px; align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.ext-map-rows > div:nth-last-child(-n+2) { border-bottom: 0; }
.ext-map-rows dt { font-size: 11.5px; color: rgba(255, 255, 255, .38); }
.ext-map-rows dd {
    margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .84);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ext-map-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.ext-map-badges span {
    padding: 6px 10px; border-radius: 8px;
    font-size: 9px; font-weight: 700; letter-spacing: .06em;
    color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.ext-map-badges span.is-on {
    color: #ff6b80;
    background: rgba(255, 55, 80, .08);
    border-color: rgba(255, 55, 80, .2);
}

.ext-map-note { margin: 14px 0 0; font-size: 10.5px; color: rgba(255, 255, 255, .25); }

@media (max-width: 640px) {
    .ext-map-head { padding: 16px 18px 10px; }
    .ext-map-bar {
        flex-wrap: wrap; gap: 10px; padding: 13px 18px 15px;
    }
    .ext-map-bar-clock { margin-left: 0; width: 100%; }
    #globe { max-height: 320px; }

    .ext-map-rows { grid-template-columns: minmax(0, 1fr); }
    .ext-map-rows > div { grid-template-columns: 104px minmax(0, 1fr); }
    .ext-map-rows > div:nth-last-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .05); }
    .ext-map-info { padding: 20px; }
}

/* ── nothing on this card animates ───────────────────────────────────────────
   The map is a still image of where you are: no pulsing halo, no rotating
   rings, no blinking dot. Anything that moves draws the eye away from the
   country name. */

.ext-map-head strong,
.ext-map-status,
.ext-map-bar .dot {
    animation: none !important;
}

/* ── flat map: straight down, no sphere ─────────────────────────────────────
   The globe's ocean circle, rim and graticule are gone; what is left is the
   country shapes on a dark background, exactly like the app. */

.di-globe.is-flat,
.di-globe.is-flat .dg-root { background: transparent; }

.di-globe.is-flat .dg-country {
    stroke-width: .6;
    vector-effect: non-scaling-stroke;
}

.di-globe.is-flat .dg-home-pin text,
.di-globe.is-flat .dg-home-text {
    font-size: 13px;
    font-weight: 800;
    fill: #fff;
    paint-order: stroke; stroke: rgba(4, 8, 17, .92); stroke-width: 3px;
}

/* the flat map sits on a plain surface — no planet, no glow */

[dir="rtl"] [dir="rtl"] [dir="rtl"] 
@media (max-width: 640px) {
    }


/* IP-based DI VPN network recognition: green or neutral, never a false alarm. */
.ext-map-status.is-known {
    color: #6ee7b7 !important;
    background: rgba(52,211,153,.1) !important;
    border-color: rgba(52,211,153,.34) !important;
}
.ext-map-status.is-neutral {
    color: #bdc9dc !important;
    background: rgba(148,163,184,.08) !important;
    border-color: rgba(148,163,184,.25) !important;
}
.ext-map-status.is-known .dot { color: #6ee7b7; background: currentColor; }
.ext-map-status.is-neutral .dot { color: #94a3b8; background: currentColor; }
.ext-map-bar .dot.is-neutral {
    background: #94a3b8;
    box-shadow: none;
}
