:root {
    --page-bg: radial-gradient(circle at 20% 20%, #121d3a 0, #091229 30%, #371c49 60%);
    --card-glass: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-muted: #bcc1c9;
    --accent: #7ee0ff;
    --accent-2: #7effb5;
    --warning: #ffb347;
    --error: #ff7b7b;
}

* {
    box-sizing: border-box;
}

body.ip-looker-body {
    font-family: 'Poppins', sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    margin: 0;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-2);
}

.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.tool-header {
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(120deg, rgba(126, 224, 255, 0.08), rgba(10, 16, 33, 0.9));
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.brand {
    color: var(--text-primary);
}

.brand-icon {
    height: 44px;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #122443, #0f1c32);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--accent);
    font-size: 18px;
}

.brand-title {
    color: #fff;
    font-size: 1rem;
}

.header-links a {
    margin-left: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.header-links .cta-link {
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: #0a1021;
    background: var(--accent);
    font-weight: 600;
}

.ip-wrapper {
    padding-bottom: 60px;
}

.hero-area {
    padding: 64px 0 20px;
    position: relative;
}

.hero-area::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(126, 224, 255, 0.08), transparent 30%),
                radial-gradient(circle at 20% 0%, rgba(126, 255, 181, 0.08), transparent 22%);
    z-index: 0;
}

.hero-area .container {
    position: relative;
    z-index: 1;
}

.hero-area h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero-area .lead {
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    color: var(--text-muted);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-list i {
    color: var(--accent);
}

.tech-note {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px dashed var(--card-border);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-weight: 600;
}

.glass-panel {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.live-card {
    padding: 22px;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-pill {
    background: rgba(126, 255, 181, 0.1);
    color: var(--accent-2);
    border: 1px solid rgba(126, 255, 181, 0.25);
    border-radius: 50px;
    padding: 6px 12px;
    font-weight: 600;
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}

.ip-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 16px 0 6px;
}

.location-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-weight: 700;
}

.coords-line {
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.secondary-btn, .primary-btn, .ghost-btn {
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.secondary-btn:hover, .primary-btn:hover, .ghost-btn:hover {
    transform: translateY(-1px);
}

.primary-btn {
    background: linear-gradient(120deg, var(--accent), #7ec7ff);
    color: #0b142b;
    border: none;
}

.ghost-btn {
    border: 1px dashed var(--card-border);
    color: var(--text-muted);
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.ping {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(126, 255, 181, 0.8);
    animation: ping 1.8s infinite;
    display: inline-block;
}

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(126, 255, 181, 0.7); }
    80% { box-shadow: 0 0 0 12px rgba(126, 255, 181, 0); }
    100% { box-shadow: 0 0 0 0 rgba(126, 255, 181, 0); }
}

.lookup-section {
    padding: 24px 0 12px;
}

.lookup-card {
    padding: 22px;
    margin-bottom: 18px;
}

.lookup-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.helper-text {
    color: var(--text-muted);
}

.small-text {
    font-size: 0.9rem;
}

.provider-chip {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
}

.lookup-form {
    margin-top: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding-left: 10px;
}

.input-group i {
    color: var(--text-muted);
}

.form-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lookup-hints {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.lookup-hints span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alert.error {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 123, 123, 0.1);
    border: 1px solid rgba(255, 123, 123, 0.35);
    border-radius: 12px;
    color: #ffc6c6;
    display: none;
}

.alert.error.visible {
    display: block;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.insight-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.insight-card h3 {
    margin-bottom: 6px;
}

.insight-card .muted {
    color: var(--text-muted);
    margin: 2px 0;
}

.map-card .map-container {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    margin-bottom: 8px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.extra-section {
    padding: 26px 0 12px;
}

.how-section {
    padding: 26px 0 12px;
}

.how-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.how-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.ordered-list {
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.5;
}

.ordered-list li {
    margin-bottom: 8px;
}

.compare-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 8px;
}

.compact-list {
    padding-left: 16px;
    color: var(--text-muted);
}

.compact-list li {
    margin-bottom: 6px;
}

.extra-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.extra-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.bullet-list {
    padding-left: 16px;
    color: var(--text-muted);
}

.tools-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 12px;
}

.tool-card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
}

.tool-card i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 4px;
}

.tool-card p {
    color: var(--text-muted);
    margin: 4px 0 0;
}

.ip-footer {
    padding: 22px 0 36px;
    border-top: 1px solid var(--card-border);
    margin-top: 30px;
    background: linear-gradient(120deg, rgba(126, 224, 255, 0.05), rgba(10, 16, 33, 0.9));
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.footer-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.info-section,
.education-section,
.faq-section {
    padding: 26px 0 12px;
}

.data-section {
    padding: 26px 0 12px;
}

.data-table-card {
    padding: 20px;
    border-radius: 18px;
}

.data-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.data-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.data-label {
    font-weight: 700;
    color: var(--text-primary);
}

.data-value {
    color: var(--text-muted);
}

.info-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.info-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

.checklist {
    display: grid;
    gap: 10px;
    color: var(--text-muted);
}

.checklist span i {
    color: var(--accent-2);
    margin-right: 6px;
}

.qa-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.qa-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.qa-card .compact {
    margin-top: 10px;
}

.qa-card .compact li {
    margin-bottom: 6px;
}

.faq-section h2 {
    margin-bottom: 14px;
}

.faq-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.faq-card {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.faq-card h3 {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .hero-area {
        padding-top: 40px;
    }
    .ip-value {
        font-size: 1.8rem;
    }
    .header-links {
        display: none;
    }
    .lookup-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .meta-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .footer-grid {
        flex-direction: column;
    }
    .data-row {
        grid-template-columns: 1fr;
    }
}
