        :root {
            --bg: #030508;
            --surface: #0a0d14;
            --surface2: #0f1420;
            --border: rgba(255,255,255,0.06);
            --accent: #00f5c4;
            --accent2: #0066ff;
            --accent3: #ff3d71;
            --text: #e8eaf0;
            --muted: #4a5168;
            --mono: 'Space Mono', monospace;
            --sans: 'Syne', sans-serif;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: var(--sans);
            min-height: 100vh;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(rgba(0,245,196,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,245,196,0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: 0;
            animation: gridShift 20s linear infinite;
        }

        @keyframes gridShift {
            0% { transform: translateY(0); }
            100% { transform: translateY(60px); }
        }

        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(120px);
            pointer-events: none;
            z-index: 0;
            opacity: 0.15;
        }
        .orb-1 { width: 600px; height: 600px; background: var(--accent2); top: -200px; left: -200px; }
        .orb-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; right: -100px; }
        .orb-3 { width: 300px; height: 300px; background: var(--accent3); top: 40%; right: 20%; opacity: 0.08; }

        .wrapper {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px 80px;
        }

        header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 60px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            animation: logoBreathe 3s ease-in-out infinite;
        }

        .logo-icon img {
            width: 30px;
            height: 30px;
            object-fit: contain;
            display: block;
        }

        @keyframes logoBreathe {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }

        .logo-text {
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.5px;
        }

        .logo-text span { color: var(--accent); }

        .header-right {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .lang-switch {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--mono);
            font-size: 12px;
        }

        .lang-switch a {
            color: var(--muted);
            text-decoration: none;
            padding: 3px 7px;
            border-radius: 4px;
            border: 1px solid transparent;
            transition: color 0.2s, background 0.2s, border-color 0.2s;
        }

        .lang-switch a:hover { color: var(--accent); }

        .lang-switch a.active {
            color: var(--accent);
            background: rgba(0,245,196,0.08);
            border-color: rgba(0,245,196,0.2);
        }

        .lang-switch .lang-sep {
            color: var(--muted);
            opacity: 0.4;
        }

        .status-pill {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,245,196,0.08);
            border: 1px solid rgba(0,245,196,0.2);
            padding: 6px 14px;
            border-radius: 50px;
            font-size: 12px;
            font-family: var(--mono);
            color: var(--accent);
        }

        .status-dot {
            width: 7px;
            height: 7px;
            background: var(--accent);
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(0.8); }
        }

        .hero {
            text-align: center;
            margin-bottom: 50px;
        }

        .hero-label {
            font-family: var(--mono);
            font-size: 11px;
            letter-spacing: 3px;
            color: var(--muted);
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .ip-display {
            font-family: var(--mono);
            font-size: clamp(28px, 5vw, 48px);
            font-weight: 700;
            letter-spacing: -1px;
            color: white;
            line-height: 1.2;
            margin-bottom: 8px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ip-display .cursor {
            display: inline-block;
            width: 3px;
            height: 1em;
            background: var(--accent);
            margin-left: 6px;
            animation: blink 1s step-end infinite;
            vertical-align: middle;
        }

        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

        .ip-v6 {
            font-family: var(--mono);
            font-size: 13px;
            color: var(--muted);
            margin-bottom: 24px;
            word-break: break-all;
            padding: 0 20px;
        }

        .ip-v6 .label {
            color: var(--accent);
            font-size: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-right: 8px;
        }

        .actions {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 50px;
        }

        .btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: 8px;
            font-family: var(--sans);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
        }

        .btn-primary {
            background: var(--accent);
            color: #000;
        }

        .btn-primary:hover {
            background: #00ddb0;
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0,245,196,0.3);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-ghost:hover {
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-2px);
        }

        .lookup-input-wrap {
            display: flex;
            gap: 10px;
            max-width: 480px;
            margin: 0 auto;
        }

        .lookup-input {
            flex: 1;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px 16px;
            font-family: var(--mono);
            font-size: 14px;
            color: var(--text);
            outline: none;
            transition: border-color 0.2s;
        }

        .lookup-input::placeholder { color: var(--muted); }
        .lookup-input:focus { border-color: var(--accent); }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(0,245,196,0.03), transparent);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .card:hover::before { opacity: 1; }
        .card:hover { border-color: rgba(0,245,196,0.2); transform: translateY(-2px); }

        .col-4 { grid-column: span 4; }
        .col-6 { grid-column: span 6; }
        .col-8 { grid-column: span 8; }
        .col-12 { grid-column: span 12; }
        .col-3 { grid-column: span 3; }

        @media (max-width: 700px) {
            .col-4, .col-6, .col-8, .col-3 { grid-column: span 12; }
        }
        @media (min-width: 701px) and (max-width: 850px) {
            .col-4, .col-3 { grid-column: span 6; }
        }

        .card-label {
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-label-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            flex-shrink: 0;
        }

        .card-value {
            font-size: 20px;
            font-weight: 700;
            color: white;
            line-height: 1.3;
        }

        .card-value.mono {
            font-family: var(--mono);
            font-size: 16px;
        }

        .card-sub {
            font-size: 12px;
            color: var(--muted);
            margin-top: 4px;
        }

        .card-location {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .country-flag {
            font-size: 32px;
            margin-bottom: 6px;
            display: block;
        }

        .coords-display {
            display: flex;
            gap: 20px;
        }

        .coord-item { flex: 1; }
        .coord-label {
            font-family: var(--mono);
            font-size: 10px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        .coord-val {
            font-family: var(--mono);
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
        }

        .map-card {
            grid-column: span 12;
            padding: 0;
            overflow: hidden;
            min-height: 280px;
            position: relative;
        }

        .map-card iframe {
            width: 100%;
            height: 280px;
            border: none;
            display: block;
        }

        .map-overlay {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(3,5,8,0.85);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 14px;
            font-family: var(--mono);
            font-size: 12px;
            color: var(--accent);
            z-index: 10;
        }

        .eu-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(0,102,255,0.15);
            border: 1px solid rgba(0,102,255,0.3);
            border-radius: 6px;
            padding: 4px 10px;
            font-size: 12px;
            font-family: var(--mono);
            color: #4d9eff;
            margin-top: 8px;
        }

        .network-card {
            background: var(--surface2);
            border: 1px solid rgba(0,245,196,0.1);
        }

        .asn-display {
            font-family: var(--mono);
            font-size: 13px;
            color: var(--accent);
            background: rgba(0,245,196,0.05);
            border: 1px solid rgba(0,245,196,0.1);
            border-radius: 6px;
            padding: 8px 12px;
            margin-top: 8px;
        }

        .security-items {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 8px;
        }

        .sec-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 13px;
        }

        .sec-item-label { color: var(--muted); }

        .badge {
            font-family: var(--mono);
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 4px;
            font-weight: 700;
        }

        .badge-safe { background: rgba(0,245,196,0.1); color: var(--accent); border: 1px solid rgba(0,245,196,0.2); }
        .badge-warn { background: rgba(255,61,113,0.1); color: var(--accent3); border: 1px solid rgba(255,61,113,0.2); }
        .badge-unknown { background: rgba(74,81,104,0.3); color: var(--muted); border: 1px solid var(--border); }

        .skeleton {
            background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            height: 24px;
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .loading-overlay {
            position: fixed;
            inset: 0;
            background: var(--bg);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 100;
            transition: opacity 0.5s, visibility 0.5s;
        }

        .loading-overlay.hidden {
            opacity: 0;
            visibility: hidden;
        }

        .loader-ring {
            width: 60px;
            height: 60px;
            border: 2px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        .loader-text {
            font-family: var(--mono);
            font-size: 13px;
            color: var(--muted);
            letter-spacing: 2px;
        }

        .fade-in {
            opacity: 0;
            transform: translateY(16px);
            animation: fadeUp 0.5s forwards;
        }

        @keyframes fadeUp {
            to { opacity: 1; transform: translateY(0); }
        }

        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }

        .section-title {
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--muted);
            margin: 30px 0 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }
        
        .section-curl {
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--muted);
            margin: 30px 0 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-curl::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }        
        
        .section-curl::before {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .calling-code {
            font-family: var(--mono);
            font-size: 22px;
            font-weight: 700;
            color: var(--accent);
        }

        .copy-btn {
            background: none;
            border: 1px solid var(--border);
            border-radius: 6px;
            color: var(--muted);
            cursor: pointer;
            padding: 4px 10px;
            font-size: 11px;
            font-family: var(--mono);
            transition: all 0.2s;
            margin-top: 8px;
        }

        .copy-btn:hover { border-color: var(--accent); color: var(--accent); }
        .copy-btn.copied { border-color: var(--accent); color: var(--accent); }

        .error-box {
            background: rgba(255,61,113,0.08);
            border: 1px solid rgba(255,61,113,0.2);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            color: var(--accent3);
            font-family: var(--mono);
            font-size: 14px;
            display: none;
        }

/* ===== FOOTER ===== */

footer {
  margin-top: 100px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: #e8f542;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  align-items: center;
}

.footer-links a:not(:last-child)::after {
  content: '|';
  margin: 0 0.6em;
  opacity: 0.3;
  color: inherit;
}

        .no-map {
            width: 100%;
            height: 280px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--surface2);
            color: var(--muted);
            font-family: var(--mono);
            font-size: 13px;
        }
        
.map-consent-btn {
    width: 100%;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface2);
    border: 1px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.map-consent-btn:hover {
    border-color: rgba(0,245,196,0.4);
    background: var(--surface3);
}
.map-consent-icon {
    font-size: 2em;
}
.map-consent-title {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent);
}
.map-consent-note {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    max-width: 260px;
    text-align: center;
    line-height: 1.5;
}

.hidden { display: none; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }

.section-title--toggle {
    cursor: pointer;
    justify-content: space-between;
}

.raw-hint {
    color: var(--accent);
    font-size: 10px;
}

.raw-json {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    white-space: pre-wrap;
    word-break: break-all;
}        
