/* IP-FD.net — Clean Light Design */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-hover: #2563eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent: #2563eb;
    --accent-2: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --danger: #dc2626;
    --cyan: #0891b2;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --transition: all 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-container { padding-top: 32px; padding-bottom: 60px; }
.hidden { display: none !important; }
.mono { font-family: 'JetBrains Mono', monospace; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 1.15rem; }
.logo-icon { font-size: 1.3rem; color: var(--accent); -webkit-text-fill-color: var(--accent); background: none; -webkit-background-clip: unset; }
.logo-dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text-secondary);
    text-decoration: none; font-size: 0.87rem; font-weight: 500; transition: var(--transition);
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-secondary); }
.nav-link.active { color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-content {
    display: none; position: absolute; top: calc(100% + 0px); right: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 6px; box-shadow: var(--shadow-lg);
}
/* Invisible bridge to prevent gap */
.nav-dropdown::after {
    content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
    display: none;
}
.nav-dropdown:hover::after { display: block; }
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
    display: block; padding: 7px 12px; color: var(--text-secondary); text-decoration: none;
    border-radius: var(--radius-sm); font-size: 0.84rem; transition: var(--transition);
}
.nav-dropdown-content a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span { width: 20px; height: 2px; background: var(--text-muted); border-radius: 2px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== HERO ===== */
.hero {
    padding: 72px 24px 56px;
    display: flex; justify-content: center; text-align: center;
    background: linear-gradient(-45deg, #ffffff, #f8fafc, #eff6ff, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: radial-gradient(circle at center, rgba(37,99,235,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--text-primary); letter-spacing: -0.03em; }
.hero-title-line { display: block; }
.hero-title-accent {
    display: block; color: var(--accent);
    background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; margin-bottom: 32px; font-weight: 400; }
.hero-myip { margin-top: 14px; font-size: 0.85rem; color: var(--text-muted); }
.hero-suggestions { margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); }
.hero-suggestions a { color: var(--accent); text-decoration: none; margin: 0 4px; font-weight: 500; }
.hero-suggestions a:hover { text-decoration: underline; }
.myip-value { color: var(--accent); font-family: 'JetBrains Mono', monospace; cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.myip-value:hover { text-decoration: underline; }

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex; align-items: center; background: #fff;
    border: 1px solid var(--border); border-radius: 12px; padding: 6px 6px 6px 20px;
    transition: var(--transition); max-width: 540px; margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,0.1), 0 4px 20px rgba(0,0,0,0.04); }
.search-box-page { margin-bottom: 24px; box-shadow: none; border-radius: 8px; padding: 4px 4px 4px 16px; border: 2px solid var(--border); }
.search-icon { color: var(--text-muted); flex-shrink: 0; margin-right: 12px; display: flex; }
.search-box input {
    flex: 1; background: none; border: none; color: var(--text-primary); font-size: 1rem;
    font-family: 'JetBrains Mono', monospace; outline: none; min-width: 0;
}
.search-box input::placeholder { color: #9ca3af; font-family: 'Inter', sans-serif; font-size: 0.95rem; }
.search-btn {
    background: var(--accent); color: #fff; border: none; padding: 10px 24px;
    border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
    transition: var(--transition); white-space: nowrap; font-family: 'Inter', sans-serif;
}
.search-btn:hover { background: var(--accent-2); transform: translateY(-1px); }

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ===== TOOLS GRID ===== */
.tools-section { 
    padding: 64px 0 80px; 
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #fff 100%);
}
.section-title { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 40px; font-size: 0.95rem; }
.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.tool-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 24px 20px; text-decoration: none; color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.tool-card:hover {
    border-color: var(--accent); box-shadow: 0 12px 24px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}
.tool-card:hover .tool-arrow { opacity: 1; transform: translateX(0); }
.tool-icon { font-size: 1.6rem; margin-bottom: 12px; }
.tool-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.tool-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.tool-arrow {
    position: absolute; top: 22px; right: 20px; color: var(--accent);
    font-size: 1.1rem; opacity: 0; transform: translateX(-5px); transition: all 0.2s ease;
}

/* ===== FEATURES ===== */
.features-section { padding: 48px 0 32px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 24px; display: flex; align-items: flex-start; gap: 16px; text-align: left;
    transition: var(--transition); box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--accent-light); color: var(--accent); margin-bottom: 0;
}
.feature-content h3 { font-size: 0.95rem; margin-bottom: 4px; font-weight: 700; color: var(--text-primary); }
.feature-content p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* ===== PAGE TITLE ===== */
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.page-subtitle { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem; }

/* ===== RESULT CARDS ===== */
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.result-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px;
}
.result-card-wide { grid-column: 1 / -1; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 6px; }
.card-title { font-size: 0.95rem; font-weight: 600; }

/* ===== INFO GRID ===== */
.info-grid { display: flex; flex-direction: column; }
.info-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid #f3f4f6; gap: 16px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 0.84rem; font-weight: 500; white-space: nowrap; min-width: 110px; }
.info-value { color: var(--text-primary); font-size: 0.87rem; text-align: right; word-break: break-word; }
.info-value a { color: var(--accent); text-decoration: none; }
.info-value a:hover { text-decoration: underline; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px;
    font-size: 0.72rem; font-weight: 600; background: var(--accent-light); color: var(--accent);
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-warning { background: #fffbeb; color: var(--warning); }

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table thead th {
    text-align: left; padding: 8px 12px; color: var(--text-muted); font-weight: 600;
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border); background: var(--bg-secondary);
}
.data-table tbody td { padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.data-table tbody tr:hover { background: var(--bg-secondary); }
.data-table tbody td a { color: var(--accent); text-decoration: none; }
.data-table tbody td a:hover { text-decoration: underline; }

/* ===== FORMS ===== */
.tool-form { margin-bottom: 24px; }
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.form-input {
    flex: 1; min-width: 200px; padding: 10px 14px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.95rem; font-family: 'JetBrains Mono', monospace;
    outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }
.form-input::placeholder { color: #9ca3af; }
.form-select {
    padding: 10px 14px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.87rem;
    outline: none; cursor: pointer; min-width: 100px; font-family: 'Inter', sans-serif;
}
.form-input-sm { width: 80px; padding: 8px 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.87rem; outline: none; text-align: center; }
.btn-primary {
    background: var(--accent); color: #fff; border: none; padding: 10px 22px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.87rem; cursor: pointer;
    transition: var(--transition); white-space: nowrap; font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--accent-2); }
.checkbox-row { gap: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 0.87rem; cursor: pointer; }
.checkbox-label input { accent-color: var(--accent); }

/* ===== CODE BLOCK ===== */
.code-block {
    background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem; line-height: 1.6; word-break: break-all; color: var(--text-primary);
}

/* ===== ALERTS ===== */
.warning-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 14px; }
.warning-box p { color: var(--warning); font-size: 0.87rem; }
.error-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 14px; color: var(--danger); font-size: 0.9rem; }
.info-box { background: var(--accent-light); border: 1px solid #bfdbfe; border-radius: var(--radius-sm); padding: 14px; color: var(--text-secondary); font-size: 0.9rem; }

/* ===== LOADING ===== */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.spinner {
    width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== STATUS ===== */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-success { background: var(--success); }
.status-danger { background: var(--danger); }

/* ===== MY IP ===== */
.myip-display { text-align: center; padding: 28px 0; }
.myip-big { font-size: 2rem; font-weight: 700; color: var(--accent); }

/* ===== PASSWORD ===== */
.pw-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pw-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; background: var(--bg-secondary); border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.pw-item code { flex: 1; font-size: 0.9rem; word-break: break-all; color: var(--text-primary); }
.btn-copy {
    background: var(--accent-light); color: var(--accent); border: none; padding: 5px 12px;
    border-radius: 4px; cursor: pointer; font-size: 0.78rem; font-weight: 600; white-space: nowrap;
    transition: var(--transition); font-family: 'Inter', sans-serif;
}
.btn-copy:hover { background: #dbeafe; }

/* ===== IP LOOKUP LAYOUT ===== */
.ip-page-layout {
    display: grid; grid-template-columns: 180px 1fr; gap: 0;
}
.ip-sidebar {
    border-right: 1px solid var(--border); padding-right: 0;
    position: sticky; top: 72px; align-self: start;
}
.ip-sidebar-nav { display: flex; flex-direction: column; gap: 0; }
.ip-sidebar-nav a {
    display: block; padding: 10px 16px; color: var(--text-secondary); text-decoration: none;
    font-size: 0.87rem; font-weight: 500; border-left: 3px solid transparent;
    transition: var(--transition);
}
.ip-sidebar-nav a:hover { color: var(--text-primary); background: var(--bg-secondary); }
.ip-sidebar-nav a.active {
    color: var(--accent); border-left-color: var(--accent); background: var(--accent-light);
    font-weight: 600;
}
.ip-main { padding-left: 28px; min-width: 0; }

/* ===== IP HEADER ===== */
.ip-header { margin-bottom: 20px; }
.ip-header-address {
    font-size: 1.8rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary); margin-bottom: 4px;
}
.ip-header-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 0.84rem; color: var(--text-muted);
}

/* ===== MAP ===== */
.geo-map {
    width: 100%; height: 180px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
}
.geo-map-link {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
    font-size: 0.8rem; color: var(--accent); text-decoration: none;
}
.geo-map-link:hover { text-decoration: underline; }

/* ===== WHOIS ===== */
.whois-block {
    background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    line-height: 1.7; color: var(--text-primary); overflow-x: auto; white-space: pre-wrap;
    word-break: break-word; margin: 0;
}

/* ===== QUERY META ===== */
.query-meta {
    display: flex; gap: 14px; align-items: center; justify-content: flex-end;
    margin-bottom: 12px; flex-wrap: wrap;
}
.query-meta-item {
    font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px;
}
.query-meta-item svg { width: 13px; height: 13px; }

/* ===== GEOLOCATION CORRECTION ===== */
.geo-correction {
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 16px;
}
.geo-correction-text { font-size: 0.84rem; color: var(--text-secondary); }
.geo-correction a {
    color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.84rem;
    white-space: nowrap;
}
.geo-correction a:hover { text-decoration: underline; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem;
    font-family: 'Inter', sans-serif; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { background: var(--success-light); border: 1px solid #a7f3d0; border-radius: var(--radius-sm); padding: 14px; color: var(--success); font-size: 0.9rem; }

/* ===== API DOCS ===== */
.api-endpoint {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; margin-bottom: 12px;
}
.api-method {
    display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.72rem;
    font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-right: 8px;
}
.api-method-get { background: #ecfdf5; color: #059669; }
.api-method-post { background: #eff6ff; color: #2563eb; }
.api-path { font-family: 'JetBrains Mono', monospace; font-size: 0.87rem; color: var(--text-primary); }
.api-desc { color: var(--text-secondary); font-size: 0.84rem; margin-top: 6px; }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 60px 0; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--accent); }
.error-message { color: var(--text-secondary); font-size: 1rem; margin: 12px 0 24px; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: #fff; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; }

/* ===== NETWORK TEST ===== */
.nettest-section {
    padding: 48px 0 16px;
}
.nettest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.nettest-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.nettest-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.nettest-card-preferred {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(37,99,235,0.10);
}
.nettest-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.nettest-proto-badge {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}
.nettest-proto-v4 {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}
.nettest-proto-v6 {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
}
.nettest-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.nettest-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.nettest-dot-loading {
    background: #f59e0b;
    animation: nettestPulse 1s ease-in-out infinite;
}
.nettest-dot-ok {
    background: var(--success);
    box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}
.nettest-dot-fail {
    background: var(--danger);
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.3);
}
@keyframes nettestPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.nettest-rows {
    display: flex;
    flex-direction: column;
}
.nettest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
}
.nettest-row:last-child { border-bottom: none; }
.nettest-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}
.nettest-value {
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}
.nettest-skeleton {
    display: inline-block;
    width: 110px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: nettestShimmer 1.5s ease-in-out infinite;
}
@keyframes nettestShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.nettest-check { color: var(--success); font-weight: 700; }
.nettest-cross { color: var(--danger); font-weight: 700; }

/* DNS test bar */
.nettest-dns {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.nettest-dns-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}
.nettest-dns-header svg { color: var(--accent); flex-shrink: 0; }
.nettest-dns-rows { display: flex; flex-direction: column; }
.nettest-dns-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
}
.nettest-dns-row:last-child { border-bottom: none; }
.nettest-dns-label {
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
}
.nettest-dns-value {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== RIR MARQUEE ===== */
.rir-marquee {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee-content {
    display: inline-flex;
    gap: 80px;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
    padding-left: 80px;
}
.marquee-content span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* ===== DASHBOARD BTN ===== */
.dashboard-btn {
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
    font-weight: 700 !important;
}
.dashboard-btn:hover {
    background: var(--accent-2) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.3);
}

/* ===== TABS ===== */
.tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.tab-btn:hover {
    color: var(--accent);
}
.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 40px 16px 32px; }
    .hero-title { font-size: 1.7rem; }
    .nav-links {
        display: none; position: absolute; top: 56px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 12px; gap: 2px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-dropdown-content { position: static; box-shadow: none; border: none; padding-left: 16px; }
    .nav-dropdown::after { display: none; }
    .mobile-menu-btn { display: flex; }
    .result-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .form-input { min-width: 100%; }
    .search-box { max-width: 100%; }
    .page-title { font-size: 1.3rem; }
    .info-row { flex-direction: column; gap: 2px; }
    .info-value { text-align: left; }
    .ip-page-layout { grid-template-columns: 1fr; }
    .ip-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 12px; margin-bottom: 16px; position: static; }
    .ip-sidebar-nav { flex-direction: row; overflow-x: auto; gap: 0; }
    .ip-sidebar-nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; padding: 8px 12px; font-size: 0.82rem; }
    .ip-sidebar-nav a.active { border-left-color: transparent; border-bottom-color: var(--accent); }
    .ip-main { padding-left: 0; }
    .ip-header-address { font-size: 1.3rem; }
    .geo-correction { flex-direction: column; text-align: center; }
    .nettest-grid { grid-template-columns: 1fr; }
    .nettest-value { max-width: 55%; font-size: 0.78rem; }
    .nettest-dns-row { flex-direction: column; gap: 4px; align-items: flex-start; }
}
