        :root {
            font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            color-scheme: dark;
            --bg: #0b1020;
            --panel: #151d30;
            --panel-alt: #1b2540;
            --panel-soft: #111a2d;
            --border: rgba(168, 185, 224, .13);
            --text: #f5f7ff;
            --muted: #a0adc7;
            --subtle: #7484a5;
            --accent: #9c9aff;
            --aqua: #6ce2cc;
            --shadow: 0 24px 80px rgba(1, 5, 17, .28);
        }
        html[data-theme="light"] {
            color-scheme: light;
            --bg: #f3f6fd;
            --panel: #ffffff;
            --panel-alt: #f3f6ff;
            --panel-soft: #ffffff;
            --border: rgba(25, 44, 90, .11);
            --text: #18223a;
            --muted: #5b6982;
            --subtle: #748097;
            --accent: #5959d9;
            --aqua: #03877b;
            --shadow: 0 24px 70px rgba(41, 55, 89, .08);
        }
        * { box-sizing: border-box; }
        .visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
        html { scroll-behavior: smooth; }
        body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg); }
        body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:-1;
            background: radial-gradient(circle at 82% 8%, rgba(98,83,212,.13), transparent 30%),
                        radial-gradient(circle at 8% 80%, rgba(47,168,178,.07),transparent 32%); }
        button,input { font: inherit; }
        button { cursor: pointer; }
        a { color: inherit; }
        :focus-visible { outline: 3px solid #8b9cff; outline-offset: 3px; }
        .container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
        .site-header { border-bottom: 1px solid var(--border); background: rgba(13,20,39,.75); }
        html[data-theme="light"] .site-header { background: rgba(255,255,255,.82); }
        .header-inner { min-height: 82px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
        .brand { display:inline-flex; align-items:center; gap:12px; text-decoration:none; }
        .brand-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:13px;
            background: linear-gradient(140deg,#8a87ff,#575bd9); color:#fff; box-shadow: 0 8px 22px rgba(97,87,239,.28); }
        .brand-name { font-weight: 800; letter-spacing: -.65px; font-size: 20px; }
        .brand-name em { color: var(--accent); font-style: normal; }
        .brand-sub { color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: 1.45px; text-transform: uppercase; display:block; margin-top:3px; }
        .header-actions { display:flex; align-items:center; gap:12px; }
        .language-form { display:flex; align-items:center; gap:7px; }
        .language-select { min-width:125px; max-width:160px; padding:11px 9px; border-radius:11px; border:1px solid var(--border); background:var(--panel); color:var(--text); font-size:12px; cursor:pointer; }
        .language-apply { background:var(--panel-alt); color:var(--text); padding:9px 10px; border:1px solid var(--border); border-radius:10px; font-size:12px; cursor:pointer; }
        .language-select:focus-visible { outline:2px solid var(--accent); }
        .language-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 16px; padding:17px 0; border-top:1px solid var(--border); margin-top:22px; }
        .language-links a { text-decoration:none; color:var(--muted); font-size:12px; }
        .language-links a:hover,.language-links a[aria-current=page] { color:var(--text); text-decoration:underline; }
        .about-section { margin-top:36px; padding:29px 32px; }
        .about-section h2 { font-size:22px; letter-spacing:-.5px; margin:0 0 13px; }
        .about-section p { font-size:14px; line-height:1.85; color:var(--muted); margin:10px 0; }
        .header-link { color: var(--muted); text-decoration:none; font-size: 13px; font-weight: 600; }
        .header-link:hover { color:var(--text); }
        .theme-toggle { display:grid; place-items:center; border:1px solid var(--border); background:var(--panel); color:var(--text);
            width:42px; height:42px; border-radius:13px; transition: transform .2s, background .2s; }
        .theme-toggle:hover { transform: translateY(-2px); background:var(--panel-alt); }
        .hero { padding:58px 0 38px; position: relative; }
        .eyebrow { display:inline-flex; align-items:center; gap:9px; border: 1px solid rgba(130,140,255,.26);
            padding:7px 12px; border-radius:100px; background:rgba(126,124,250,.08);
            color:var(--accent); font-size:11px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; }
        .eyebrow .dot,.status-dot { width:7px; height:7px; border-radius:50%; background:var(--aqua); box-shadow:0 0 0 4px rgba(87,219,192,.13); }
        .hero-grid { display:flex; align-items:center; justify-content:space-between; gap:18px; }
        h1 { font-size: clamp(35px, 5vw, 60px); line-height:1.09; letter-spacing:-2.9px; margin:20px 0 16px; max-width: 760px; font-weight:800; }
        h1 .gradient { background:linear-gradient(100deg,#9a9cff 0%,#71decb 100%); -webkit-background-clip:text;
            background-clip:text; color:transparent; }
        .hero p { color:var(--muted); font-size:15px; line-height:1.8; margin:0; max-width:630px; }
        .globe-art { flex:0 0 226px; width:226px; height:226px; display:grid; place-items:center; position:relative;
            border-radius:50%; border:1px solid rgba(128,150,245,.12);
            background:radial-gradient(circle at 45% 42%,rgba(112,102,242,.16),rgba(65,173,192,.04) 55%,transparent 75%); }
        .globe-art::after { content:""; position:absolute; inset:16px; border:1px dashed rgba(146,148,246,.23); border-radius:50%; }
        .globe-art > svg { width:138px; height:138px; color:rgba(142,155,245,.55); }
        .floating-pin { position:absolute; right:14px; top:44px; width:35px; height:35px; border-radius:12px;
            display:grid; place-items:center; color:#12243d; background:#6ce2cc; box-shadow:0 8px 23px rgba(69,220,192,.28); }
        .search-panel { border:1px solid var(--border); background:var(--panel); box-shadow:var(--shadow);
            padding:18px; border-radius:22px; display:flex; align-items:end; gap:14px; }
        .search-field { flex:1; min-width:0; }
        .field-label { display:block; color:var(--muted); font-size:12px; font-weight:700; margin-bottom:10px; }
        .input-wrap { display:flex; align-items:center; gap:12px; padding:0 16px; background:var(--panel-alt);
            border:1px solid var(--border); border-radius:13px; min-height:52px; }
        .input-wrap:focus-within { border-color:#8988ff; box-shadow:0 0 0 3px rgba(129,126,248,.12); }
        .input-wrap svg { color:var(--subtle); flex-shrink:0; }
        .input-wrap input { color:var(--text); width:100%; height:48px; outline:0; border:0; background:transparent; font-size:14px; }
        .input-wrap input::placeholder { color:var(--subtle); }
        .search-button { border:0; color:white; font-weight:750; padding:0 23px; min-height:52px; border-radius:13px;
            display:flex; align-items:center; justify-content:center; gap:9px; white-space:nowrap;
            background:linear-gradient(120deg,#736cf2,#5959db); box-shadow:0 8px 24px rgba(82,78,227,.25); }
        .search-button:hover { filter:brightness(1.12); }
        .reset-button { display:flex; align-items:center; justify-content:center; min-height:52px; padding:0 14px; border-radius:13px;
            text-decoration:none; border:1px solid var(--border); color:var(--muted); white-space:nowrap;
            font-size:12px; font-weight:750; }
        .reset-button:hover { background:var(--panel-alt); color:var(--text); }
        .search-help { margin:12px 4px 27px; color:var(--subtle); font-size:12px; }
        .alert { display:flex; align-items:flex-start; gap:12px; padding:16px 18px; margin:0 0 22px;
            border:1px solid rgba(255,176,94,.3); background:rgba(239,168,82,.08); border-radius:15px; color:var(--text); }
        .alert strong { display:block; font-size:13px; margin:0 0 4px; }
        .alert p { font-size:12px; color:var(--muted); margin:0; line-height:1.65; }
        .alert svg { color:#ffbd78; flex-shrink:0; }
        .dashboard { display:grid; grid-template-columns: 368px minmax(0,1fr); gap:22px; align-items:start; }
        .left-column { display:grid; gap:22px; }
        .card { background:var(--panel); border:1px solid var(--border); border-radius:21px; box-shadow:var(--shadow); overflow:hidden; }
        .card-pad { padding:25px; }
        .section-tag { color:var(--subtle); font-size:11px; font-weight:800; letter-spacing:1.25px; text-transform:uppercase; }
        .card-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
        .type-pill { color:var(--aqua); font-size:11px; font-weight:800; border-radius:8px; padding:7px 10px;
            background:rgba(88,209,191,.11); border:1px solid rgba(88,209,191,.18); }
        .ip-number { font-weight:800; font-size:clamp(25px,2.7vw,37px); line-height:1.15; letter-spacing:-1.2px;
            overflow-wrap:anywhere; margin:24px 0 21px; font-variant-numeric: tabular-nums; }
        .ip-status { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
        .ip-status .status-dot { width:6px; height:6px; box-shadow:none; }
        .ip-country-note { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 10px;
            margin-top:16px; padding:11px 13px; border-radius:12px;
            border:1px solid rgba(88,209,191,.18); background:rgba(88,209,191,.06);
            font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
        .ip-country-label { color:var(--muted); }
        .ip-country-label strong { color:var(--text); font-weight:800; }
        .ip-country-compliment { color:var(--aqua); font-weight:750; }
        .ip-bottom { margin-top:22px; border-top:1px solid var(--border); padding-top:19px; display:flex;
            align-items:center; justify-content:space-between; gap:10px; }
        .source-note { color:var(--subtle); font-size:11px; }
        .copy-button { border:1px solid var(--border); border-radius:10px; background:var(--panel-alt); color:var(--text);
            padding:9px 12px; display:flex; align-items:center; gap:8px; font-size:12px; font-weight:750; }
        .copy-button:hover { border-color:rgba(145,141,247,.55); }
        .details-heading { display:flex; align-items:center; gap:9px; margin:0 0 20px; font-size:17px; font-weight:800; letter-spacing:-.35px; }
        .details-heading svg { color:var(--accent); }
        .detail-list { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:21px 15px; }
        .detail-label { font-size:11px; color:var(--subtle); margin-bottom:8px; display:block; }
        .detail-value { display:block; overflow-wrap:anywhere; font-size:13px; font-weight:700; }
        .detail-item.wide { grid-column:1/-1; }
        .detail-separator { border-top:1px solid var(--border); margin:22px 0; }
        .network-icon { display:inline-flex; align-items:center; justify-content:center; height:25px; width:25px;
            border-radius:8px; background:rgba(137,129,249,.13); }
        .map-card { min-height:630px; display:flex; flex-direction:column; }
        .map-header { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:25px 27px 21px; }
        .map-title { margin:0; font-size:20px; font-weight:800; letter-spacing:-.5px; }
        .map-subtitle { font-size:12px; color:var(--muted); line-height:1.6; margin:7px 0 0; }
        .map-link { text-decoration:none; display:inline-flex; align-items:center; gap:7px; color:var(--accent);
            font-size:12px; font-weight:700; white-space:nowrap; }
        .map-link:hover { text-decoration:underline; }
        .map-shell { position:relative; min-height:525px; flex:1; margin:0 12px 12px; overflow:hidden; border-radius:14px; background:#dfe8f2; }
        #map { position:absolute; inset:0; z-index:1; }
        .map-unavailable { height:100%; min-height:525px; display:flex; align-items:center; justify-content:center;
            flex-direction:column; gap:14px; background:var(--panel-alt); color:var(--muted); padding:25px; text-align:center; }
        .map-unavailable svg { color:var(--accent); }
        .map-unavailable strong { color:var(--text); }
        .map-overlay { position:absolute; left:17px; top:18px; z-index:500; pointer-events:none;
            padding:12px 16px; background:rgba(14,26,47,.91); backdrop-filter:blur(13px);
            border:1px solid rgba(255,255,255,.14); border-radius:13px; box-shadow:0 12px 25px rgba(7,17,37,.18); }
        .map-overlay small { display:block; color:#a2b6d6; font-size:10px; margin-bottom:5px; }
        .map-overlay strong { display:block; font-size:13px; color:#fff; }
        .map-overlay span { display:block; margin-top:5px; color:#bfd4eb; font-size:10px; }
        .map-marker { width:22px; height:22px; background:#6257ef; border:5px solid white; border-radius:50%;
            box-shadow:0 0 0 10px rgba(92,77,243,.2),0 4px 18px rgba(54,36,199,.5); }
        .leaflet-popup-content-wrapper { border-radius:12px; }
        .leaflet-popup-content { margin:12px 16px; font-family:inherit; }
        .map-popup-title { color:#19223c; font-size:13px; font-weight:800; }
        .map-popup-note { color:#657189; font-size:11px; margin-top:5px; }
        .below { padding:36px 0 52px; }
        .info-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
        .mini-card { border:1px solid var(--border); border-radius:16px; background:var(--panel-soft); padding:22px; }
        .mini-icon { display:flex; align-items:center; justify-content:center; width:39px; height:39px; border-radius:12px;
            margin-bottom:15px; background:rgba(119,116,245,.13); color:var(--accent); }
        .mini-card h3 { margin:0 0 8px; font-size:13px; font-weight:800; }
        .mini-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.75; }
        .footer { border-top:1px solid var(--border); padding:23px 0 30px; }
        .footer-content { display:flex; justify-content:space-between; gap:14px; color:var(--subtle); font-size:11px; line-height:1.8; }
        .footer-content a { color:var(--muted); text-decoration:none; }
        .footer-content a:hover { text-decoration:underline; }
        /* Layout: desktop -> tablet -> phone; never allow child content to force horizontal scroll. */
        .hero-grid > div:first-child,.header-actions,.header-inner,.detail-item,.map-header > div,.map-card { min-width:0; }
        .brand { min-width:0; }
        .brand > span:last-child { min-width:0; }
        .map-touch-toggle[hidden] { display:none!important; }
        .map-touch-toggle { position:absolute; bottom:18px; left:14px; z-index:650;
            display:inline-flex; align-items:center; justify-content:center; gap:8px;
            max-width:calc(100% - 96px); min-height:44px; padding:10px 13px;
            border:1px solid rgba(255,255,255,.22); border-radius:11px;
            background:rgba(14,26,47,.93); color:#fff; font-size:12px; font-weight:750;
            line-height:1.3; box-shadow:0 7px 20px rgba(0,0,0,.24); backdrop-filter:blur(10px); }
        .map-touch-toggle[aria-pressed="true"] { background:#4e49b8; }
        #map.map-scroll-friendly { touch-action:pan-y!important; }
        #map.map-touch-active { touch-action:none!important; }
        @media (max-width: 1050px) {
            .dashboard { grid-template-columns: 320px minmax(0,1fr); }
            .globe-art { display:none; }
            .map-card { min-height:590px; }
        }
        @media (max-width: 900px) {
            .hero { padding-top:42px; }
            .globe-art { display:none; }
            .dashboard { grid-template-columns:minmax(0,1fr); }
            .left-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
            .left-column .card { height:100%; }
            .map-card { min-height:0; }
            .map-shell,.map-unavailable { min-height:420px; }
            .info-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
        }
        @media (max-width: 760px) {
            /* Reading order on mobile: IP -> map -> details. */
            .dashboard { display:flex; flex-direction:column; gap:16px; }
            .left-column { display:contents; }
            .left-column > .card:first-child { order:1; }
            .dashboard > .map-card { order:2; }
            .left-column > .card:nth-child(2) { order:3; }
            .dashboard > .card,.left-column > .card { width:100%; height:auto; }
            .info-strip { grid-template-columns:1fr; gap:12px; }
            .below { padding-top:22px; }
        }
        @media (max-width: 640px) {
            .container { padding-right:16px; padding-left:16px; }
            .site-header { position:relative; }
            .header-inner { display:flex; flex-direction:column; align-items:stretch;
                gap:12px; padding-top:13px; padding-bottom:13px; min-height:0; }
            .header-link,.brand-sub { display:none; }
            .brand { align-self:flex-start; gap:10px; }
            .brand-name { font-size:19px; letter-spacing:-.65px; }
            .brand-icon { height:39px; width:39px; flex:0 0 39px; border-radius:12px; }
            .header-actions { display:flex; width:100%; align-items:stretch; gap:9px; }
            .language-form { display:flex; flex:1 1 auto; min-width:0; gap:9px; }
            .language-select { flex:1 1 auto; width:100%; min-width:0; max-width:none;
                min-height:46px; padding:10px 11px; font-size:16px; line-height:1.3; border-radius:12px; }
            .language-apply { flex:0 0 auto; min-height:46px; padding:10px 13px;
                font-size:13px; line-height:1.2; font-weight:700; border-radius:12px; }
            .theme-toggle { flex:0 0 46px; height:46px; width:46px; border-radius:12px; }
            .hero { padding-top:33px; padding-bottom:25px; }
            .eyebrow { max-width:100%; font-size:10px; letter-spacing:.8px; }
            h1 { font-size:clamp(30px,8.3vw,42px); line-height:1.12; letter-spacing:-1.35px;
                overflow-wrap:break-word; hyphens:auto; margin:17px 0 12px; }
            .hero p { font-size:14px; line-height:1.65; }
            .search-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
                gap:10px; padding:13px; border-radius:18px; }
            .search-field { grid-column:1/-1; min-width:0; }
            .field-label { font-size:12px; margin-bottom:9px; }
            .input-wrap { gap:9px; padding:0 12px; min-height:50px; border-radius:12px; }
            .input-wrap input { height:48px; min-width:0; font-size:16px; }
            .input-wrap input::placeholder { font-size:13px; }
            .search-button,.reset-button { min-height:48px; min-width:0; width:100%;
                padding:10px 11px; white-space:normal; line-height:1.3;
                text-align:center; font-size:13px; border-radius:12px; }
            .search-help { font-size:12px; line-height:1.55; margin:10px 3px 18px; }
            .card { border-radius:18px; }
            .card-pad { padding:20px; }
            .ip-number { font-size:clamp(25px,7.2vw,34px); margin:18px 0 17px; }
            .ip-bottom { margin-top:19px; padding-top:16px; }
            .copy-button { min-height:44px; padding:10px 12px; }
            .details-heading { margin-bottom:18px; }
            .detail-list { gap:19px 14px; }
            .detail-label { margin-bottom:6px; font-size:12px; }
            .detail-value { font-size:13px; line-height:1.5; }
            .map-header { align-items:flex-start; flex-direction:column; gap:12px;
                padding:21px 19px 16px; }
            .map-title { font-size:19px; }
            .map-subtitle { font-size:13px; line-height:1.55; }
            .map-link { min-height:44px; white-space:normal; padding:9px 11px;
                border-radius:11px; border:1px solid var(--border); background:var(--panel-alt); }
            .map-shell { height:clamp(300px,84vw,420px); min-height:0; flex:0 0 auto; margin:0 9px 9px; border-radius:12px; }
            .map-unavailable { min-height:0; height:100%; padding:20px; }
            .map-overlay { top:12px; left:12px; right:auto; max-width:calc(100% - 24px); padding:10px 12px; }
            .map-overlay strong { max-width: min(210px, 56vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
            .about-section { margin-top:20px; padding:21px 19px; }
            .about-section h2 { font-size:20px; }
            .about-section p { font-size:13px; line-height:1.7; }
            .mini-card { padding:17px 18px; }
            .mini-icon { margin-bottom:11px; }
            .mini-card h3 { font-size:14px; }
            .mini-card p { font-size:13px; }
            .footer { padding:21px 0 16px; }
            .footer-content { flex-direction:column; gap:8px; font-size:12px; }
            .language-links { justify-content:flex-start; gap:6px 9px;
                padding:16px; margin-top:19px; }
            .language-links a { display:inline-flex; align-items:center; padding:9px 10px;
                border:1px solid var(--border); border-radius:10px;
                font-size:12px; min-height:40px; }
            .language-links a[aria-current=page] { border-color:var(--accent); text-decoration:none; }
        }
        @media (max-width: 395px) {
            .container { padding-right:13px; padding-left:13px; }
            .hero { padding-top:26px; padding-bottom:20px; }
            .search-panel { grid-template-columns:minmax(0,1fr); }
            .search-button,.reset-button { grid-column:1; }
            .search-button { min-height:50px; }
            .card-pad { padding:18px; }
            .map-shell { height:clamp(290px,86vw,340px); }
            .ip-bottom { align-items:flex-start; }
            .source-note { max-width:53%; line-height:1.5; }
            .geo-details > .detail-item:last-child { grid-column:1/-1; }
            .network-details > .detail-item:nth-child(2) { grid-column:1/-1; }
        }
        @media (prefers-reduced-data: reduce) {
            .globe-art { display:none; }
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
        }
