
        body {
            background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
            background-attachment: fixed;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            padding-top: 70px;
            color: #334155;
        }

        .container-fluid {
            max-width: 1920px;
        }

        .navbar-brand {
            font-weight: 800;
            letter-spacing: 0.5px;
            color: #0d6efd !important;
        }

        .nav-link {
            font-weight: 500;
            color: #555 !important;
        }

        .nav-link:hover {
            color: #000 !important;
        }

        .lang-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 600;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }

        .dot-gray {
            background-color: #adb5bd;
            box-shadow: 0 0 2px #adb5bd;
        }

        .dot-green {
            background-color: #198754;
            box-shadow: 0 0 4px #198754;
        }

        .dot-red {
            background-color: #dc3545;
            box-shadow: 0 0 4px #dc3545;
        }

        .dot-yellow {
            background-color: #ffc107;
            box-shadow: 0 0 4px #ffc107;
        }

        #net-stack-box {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 15px 20px;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.6);
            margin-bottom: 20px;
        }

        .net-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            text-align: center;
        }

        .net-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .net-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
            background: #ffffff;
        }

        .net-label {
            font-size: 0.8rem;
            color: #6c757d;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .net-status {
            font-size: 0.95rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        #latency-box {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            align-items: center;
        }

        .latency-item {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.8);
            padding: 8px 16px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
            font-size: 0.9rem;
            font-weight: 600;
            color: #475569;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .latency-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
        }

        .latency-name {
            margin-right: 8px;
        }

        .latency-value {
            font-family: monospace;
            font-weight: 700;
        }

        .lat-green {
            background-color: #d1e7dd;
            color: #0f5132;
            border-color: #badbcc;
        }

        .lat-yellow {
            background-color: #fff3cd;
            color: #664d03;
            border-color: #ffecb5;
        }

        .lat-red {
            background-color: #f8d7da;
            color: #842029;
            border-color: #f5c2c7;
        }

        .lat-gray {
            background-color: #e2e3e5;
            color: #41464b;
            border-color: #d3d6d8;
        }

        .info-box {
            background: rgba(255, 255, 255, 0.85) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 0;
            border-radius: 16px !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
            border: 1px solid rgba(255, 255, 255, 0.6) !important;
            margin-bottom: 24px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .info-box:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
        }

        .info-header {
            padding: 12px 20px;
            border-bottom: 1px solid #eee;
            font-weight: 700;
            color: #333;
            font-size: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .info-list {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .info-item {
            padding: 14px 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            animation: fadeIn 0.5s ease-out;
            transition: background 0.2s ease;
        }
        
        .info-item:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .info-item:last-child {
            border-bottom: none;
        }

        #net-stack-module {
            border-top: 4px solid #6610f2;
        }

        #net-stack-module .info-header {
            background: rgba(102, 16, 242, 0.05);
            color: #6610f2;
        }

        #speedtest-module {
            border-top: 4px solid #0dcaf0;
        }

        #speedtest-module .info-header {
            background: rgba(13, 202, 240, 0.05);
            color: #0dcaf0;
        }

        #unique-ip-box {
            border-top: 4px solid #0d6efd;
        }

        #unique-ip-box .info-header {
            background: rgba(13, 110, 253, 0.05);
            color: #0d6efd;
        }

        #dns-exit-box {
            border-top: 4px solid #198754;
        }

        #dns-exit-box .info-header {
            background: rgba(25, 135, 84, 0.05);
            color: #198754;
        }

        #cf-special-box {
            border-top: 4px solid #f57c00;
        }

        #cf-special-box .info-header {
            background: rgba(245, 124, 0, 0.05);
            color: #f57c00;
        }

        .cf-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            padding: 20px;
        }

        .cf-item {
            text-align: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #eee;
        }

        .cf-label {
            font-size: 0.75rem;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-bottom: 4px;
        }

        .cf-value {
            font-weight: 700;
            color: #2c3e50;
            font-size: 1rem;
            font-family: monospace;
        }

        .u-ip {
            font-family: monospace;
            font-size: 1.1rem;
            font-weight: 700;
            color: #333;
            min-width: 140px;
        }

        .u-loc {
            font-size: 0.9rem;
            color: #555;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .u-org {
            font-size: 0.85rem;
            color: #666;
            background: #eee;
            padding: 2px 6px;
            border-radius: 4px;
        }

        .u-src {
            font-size: 0.72rem;
            color: #adb5bd;
            margin-left: auto;
            font-style: italic;
        }

        .u-country-name {
            font-weight: 800;
            color: #2c3e50;
        }

        .loading {
            color: #adb5bd;
            font-style: italic;
            font-size: 0.75rem;
        }

        .card {
            border: 1px solid rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
            margin-bottom: 24px;
            height: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 16px;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.95);
        }

        .card-header {
            background-color: #fff;
            border-bottom: 1px solid #f0f0f0;
            padding: 0.6rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 8px 8px 0 0 !important;
        }

        .header-title {
            font-weight: 700;
            color: #2c3e50;
            font-size: 0.9rem;
        }

        .card-body {
            padding: 0.8rem;
        }

        .ip-text {
            font-size: 1.1rem;
            font-weight: bold;
            color: #0d6efd;
            margin-bottom: 4px;
            word-break: break-all;
            line-height: 1.2;
        }

        @media (max-width: 768px) {
            .net-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .net-item:last-child {
                grid-column: span 2;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

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

        /* --- IP Card Styles --- */
        .page-header {
            margin-bottom: 3rem;
            animation: fadeInDown 0.6s ease-out;
        }
        .page-title {
            font-weight: 800;
            background: linear-gradient(135deg, #0d6efd, #0dcaf0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
        }
        .ip-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.06);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(255,255,255,0.8);
            backdrop-filter: blur(10px);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
            height: 100%;
        }
        .ip-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.1);
        }
        .ip-card-v4 {
            border-top: 5px solid #0d6efd;
        }
        .ip-card-v6 {
            border-top: 5px solid #198754;
        }
        .ip-card-query {
            border-top: 5px solid #6f42c1;
        }
        .ip-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
            letter-spacing: -0.5px;
        }
        .ip-title-v4 { color: #0d6efd; }
        .ip-title-v6 { color: #198754; }
        
        .ip-address-large {
            font-size: 2.25rem;
            font-weight: 800;
            text-align: center;
            margin: 1.5rem 0;
            word-break: break-all;
            line-height: 1.2;
            animation: fadeIn 0.8s ease-in;
        }
        
        .ip-data-list {
            margin-top: 1.5rem;
            border-top: 1px solid #f0f0f0;
            padding-top: 1.5rem;
        }
        .ip-data-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px dashed #e9ecef;
            animation: fadeIn 0.5s ease forwards;
            opacity: 0;
        }
        .ip-data-row:last-child {
            border-bottom: none;
        }
        .ip-data-label {
            font-weight: 600;
            color: #6c757d;
            font-size: 0.95rem;
            text-transform: capitalize;
        }
        .ip-data-value {
            font-weight: 600;
            color: #212529;
            text-align: right;
            max-width: 65%;
            word-break: break-word;
        }
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 200px;
        }
        .not-found {
            text-align: center;
            color: #adb5bd;
            font-weight: 500;
            padding: 2rem 0;
        }
        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

/* --- Dark Mode Styles --- */
body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    background-attachment: fixed !important;
    color: #cbd5e1 !important;
}

body.dark-mode .navbar {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode .navbar-brand {
    color: #38bdf8 !important;
}

body.dark-mode .nav-link {
    color: #94a3b8 !important;
}

body.dark-mode .nav-link:hover, body.dark-mode .nav-link.active {
    color: #f8fafc !important;
}

body.dark-mode .lang-btn {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .lang-btn:hover {
    background-color: #475569 !important;
}

body.dark-mode .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .dropdown-item {
    color: #cbd5e1 !important;
}

body.dark-mode .dropdown-item:hover {
    background-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-mode #net-stack-box {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .net-item {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .net-item:hover {
    background: #1e293b !important;
}

body.dark-mode .net-label {
    color: #94a3b8 !important;
}

body.dark-mode .net-status {
    color: #f8fafc !important;
}

body.dark-mode .latency-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .latency-item:hover {
    background: rgba(47, 61, 85, 0.9) !important;
}

body.dark-mode .lat-green {
    background-color: rgba(25, 135, 84, 0.2) !important;
    color: #75b798 !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

body.dark-mode .lat-yellow {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffda6a !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
}

body.dark-mode .lat-red {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #ea868f !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

body.dark-mode .lat-gray {
    background-color: rgba(108, 117, 125, 0.2) !important;
    color: #adb5bd !important;
    border-color: rgba(108, 117, 125, 0.3) !important;
}

body.dark-mode .info-box {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .info-header {
    border-bottom: 1px solid #334155 !important;
    color: #f8fafc !important;
}

body.dark-mode .info-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .info-item:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-mode .cf-item {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
}

body.dark-mode .cf-label {
    color: #94a3b8 !important;
}

body.dark-mode .cf-value {
    color: #f8fafc !important;
}

body.dark-mode .u-ip {
    color: #38bdf8 !important;
}

body.dark-mode #dns-exit-list .u-ip {
    color: #34d399 !important;
}

body.dark-mode .u-loc {
    color: #cbd5e1 !important;
}

body.dark-mode .u-org {
    color: #cbd5e1 !important;
    background: #334155 !important;
}

body.dark-mode .u-country-name {
    color: #f8fafc !important;
}

body.dark-mode .card {
    background: rgba(30, 41, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .card:hover {
    background: rgba(30, 41, 59, 0.95) !important;
}

body.dark-mode .card-header {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode .header-title {
    color: #f8fafc !important;
}

body.dark-mode .ip-text {
    color: #38bdf8 !important;
}

body.dark-mode .ip-card {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .ip-card-v4 {
    border-top: 5px solid #38bdf8 !important;
}

body.dark-mode .ip-card-v6 {
    border-top: 5px solid #34d399 !important;
}

body.dark-mode .ip-card-query {
    border-top: 5px solid #a78bfa !important;
}

body.dark-mode .ip-title-v4 { color: #38bdf8 !important; }
body.dark-mode .ip-title-v6 { color: #34d399 !important; }

body.dark-mode .ip-data-list {
    border-top: 1px solid #334155 !important;
}

body.dark-mode .ip-data-row {
    border-bottom: 1px dashed #334155 !important;
}

body.dark-mode .ip-data-label {
    color: #94a3b8 !important;
}

body.dark-mode .ip-data-value {
    color: #e2e8f0 !important;
}

body.dark-mode hr {
    border-color: #334155 !important;
}

body.dark-mode .text-muted {
    color: #94a3b8 !important;
}

body.dark-mode #speedtest-results {
    border-bottom: 1px solid #334155 !important;
}

body.dark-mode #speedtest-controls {
    border-top: 1px solid #334155 !important;
}

body.dark-mode #speedtest-results .border-right {
    border-right: 1px solid #334155 !important;
}

body.dark-mode input[name="query_ip"] {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.dark-mode .u-src {
    color: #475569;
}