 body { font-family: 'Segoe UI', Arial, sans-serif; background: #f7f9fb; color: #222; margin: 0; }
        .container { max-width: 900px; margin: 32px auto; background: #fff; border-radius: 14px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); padding: 24px 18px; }
        h1 { font-size: 2rem; color: #2d6cdf; margin-bottom: 8px; text-align: center; }
        .ip-main { font-size: 1rem; font-weight: 600; color: #2d6cdf; margin-bottom: 8px; }
        .desc { color: #555; margin-bottom: 18px; }
        form { display: flex; gap: 8px; margin-bottom: 18px; justify-content: center; }
        input[type=text] { flex: 1; padding: 10px; border: 1px solid #e3e8ee; border-radius: 12px; font-size: 1rem; max-width: 320px; }
        button, select { background: #2d6cdf; color: #fff; border: none; border-radius: 12px; padding: 0 18px; font-size: 1rem; cursor: pointer; transition: background 0.2s; margin-left: 4px; }
        button:hover, select:hover { background: #184e9c; }
        select { padding: 0 10px; color: #fff; }
        
        /* Language Selector Styles */
        .lang-selector { position: relative; display: inline-block; }
        .lang-button { 
            background: #2d6cdf; color: #fff; border: none; border-radius: 8px; 
            padding: 8px 12px; font-size: 0.9rem; cursor: pointer; 
            display: flex; align-items: center; gap: 6px; 
            transition: all 0.2s; min-width: 140px; 
        }
        .lang-button:hover { background: #184e9c; }
        .lang-dropdown {
            position: absolute; top: 100%; right: 0; 
            background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
            min-width: 200px; max-height: 400px; overflow-y: auto;
            z-index: 1000; display: none;
        }
        .lang-dropdown.show { display: block; }
        .lang-option {
            padding: 8px 12px; cursor: pointer; 
            display: flex; align-items: center; gap: 8px;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.15s;
        }
        .lang-option:hover { background: #f7f9fb; }
        .lang-option:last-child { border-bottom: none; }
        .lang-flag { 
            font-size: 1.2em; 
            line-height: 1;
            font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
            display: inline-block;
            min-width: 20px;
            text-align: center;
        }
        .lang-flag-fallback {
            display: inline-block;
            background: #2d6cdf;
            color: #fff;
            font-size: 0.7rem;
            font-weight: bold;
            padding: 2px 4px;
            border-radius: 3px;
            min-width: 20px;
            text-align: center;
            line-height: 1;
        }
        .lang-name { font-size: 0.85rem; font-weight: 500; color: #333; }
        
        .error { background: #ffeaea; color: #b30000; border: 1px solid #ffb3b3; border-radius: 12px; padding: 10px; margin-bottom: 12px; text-align: center; }
        .flex { display: flex; gap: 18px; }
        .w-3-5 { flex: 3; }
        .w-2-5 { flex: 2; }
        table { width: 100%; border-collapse: collapse; margin-top: 8px; }
        td { padding: 8px 6px; border-bottom: 1px solid #e3e8ee; font-size: 1rem; }
        td.label { color: #666; width: 40%; }
        td.value { font-weight: 500; }
        tr:last-child td { border-bottom: none; }
        .bg-e9 { background-color: #f7f9fb; }
        .map { width: 100%; height: 220px; background: #e3e8ee; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #555; font-size: 1rem; margin-top: 10px; }
        @media (max-width: 700px) {
            .container { padding: 12px 4px; }
            h1 { font-size: 1.3rem; }
            .ip-main { font-size: 1.1rem; }
            td { font-size: 0.95rem; }
            .flex { flex-direction: column; gap: 0; }
            div[style*="display:flex;gap:20px"] { flex-direction: column !important; gap: 10px !important; }
            .ip-main, .desc { text-align: center !important; }
            div[style*="display:grid"] { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 8px !important; }
            .lang-button { min-width: 120px; font-size: 0.8rem; padding: 6px 10px; }
            .lang-dropdown { min-width: 180px; max-height: 300px; }
            .lang-name { font-size: 0.8rem; }
        }
		.max-h-9 {width: 190px;}
		#ip6, #ip4 {color: red;}