:root {
    color-scheme: light;
    --bg-0: #f5f7fb;
    --bg-1: #ebeff7;
    --card: rgba(255, 255, 255, 0.9);
    --line: rgba(20, 28, 60, 0.12);
    --ink: #131a2b;
    --muted: #5a6478;
    --accent: #3e3aab;
    --accent-soft: rgba(39, 60, 190, 0.08);
    --audit-green: #3ca100;
    --audit-amber: #ff7800;
    --audit-red: #ec1100;
    --shadow: 0 24px 80px rgba(19, 26, 43, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(39, 60, 190, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(39, 60, 190, 0.08), transparent 28%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

a:hover img {
    opacity: 0.85;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    gap: 16px;
}

.brand {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: min(80px, 32vw);
    height: auto;
}

.card {
    width: min(920px, 100%);
    padding: clamp(20px, 3vw, 32px);
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    margin-top: 6.66rem;
}

.lede {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.8rem;
}

h1.lede {
    color: var(--ink);
    line-height: 1.15;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -0.04em;
}

.lede a {
    font-weight: 600;
}

.hero {
    margin-top: 22px;
    padding: 1rem 2rem;
    border-radius: 5px;
    border: none;
    background: #f1f1ff;
}

.hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ip {
    min-width: 0;
    margin: 0;
    font-weight: 900;
    color: var(--accent);
    word-break: break-word;
    font-size: 3.33rem;
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: -0.05rem;
}

.copy-ip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    border: none;
    border-radius: 8px;
    background: white;
    color: var(--accent);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-ip--mini {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.18rem;
    position: relative;
    top: 0.22rem;
}

.copy-ip--mini .copy-ip-icon {
    width: 0.85rem;
    height: 0.85rem;
}

.copy-ip-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.copy-ip-fallback {
    position: fixed;
    top: 0;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.copy-ip:hover {
    background: #3e3aab26;
}

.copy-ip:active {
    transform: scale(0.96);
}

.copy-ip:focus-visible {
    outline: 2px solid rgba(39, 60, 190, 0.35);
    outline-offset: 2px;
}

.copy-ip.is-copied {
    color: #3e3aab;
    border-color: rgba(62, 58, 171, 0.3);
    background: rgba(62, 58, 171, 0.08);
}

.small {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.seo-block {
    margin-top: 18px;
    padding: 18px 18px 16px;
    border-radius: 8px;
    border: 1px solid rgba(62, 58, 171, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(229, 222, 253, 0.55));
}

.seo-block h2 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #3d4378;
}

.seo-block > p {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--muted);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.seo-item {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid rgba(20, 28, 60, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.seo-item strong {
    display: block;
    margin: 0 0 0.35rem;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.seo-item span {
    display: block;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--muted);
}

.seo-faq {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(20, 28, 60, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.seo-faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--ink);
}

.seo-faq summary::-webkit-details-marker {
    display: none;
}

.seo-faq p {
    margin: 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--muted);
}

.item {
    padding: 0.66rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(20, 28, 60, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.item--wide {
    grid-column: 1 / -1;
}

.item span {
    display: block;
    color: #01035e4a;
    text-transform: uppercase;
    letter-spacing: -0.05rem;
    font-size: 0.6rem;
    font-weight: 700;
}

.item strong {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    line-height: 1.45;
    word-break: break-word;
    font-weight: 600;
}

.item strong[data-copy-role] {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.18rem;
    white-space: nowrap;
}

.item strong[data-copy-role] [data-copy-value] {
    min-width: 0;
    color: inherit;
    text-transform: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: inherit;
}

.item.item--ipv6 [data-copy-value="ipv6"][data-copy-status="unavailable"] {
    min-width: 0;
    color: var(--ink);
    text-transform: inherit;
    font-size: inherit;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: inherit;
}

.item strong[data-copy-role] .copy-ip--mini {
    margin-left: 0;
    top: 0;
    flex: 0 0 auto;
}

.item.item--system strong {
    color: #3e3aab;
    font-weight: bold;
}

.item--country .country-value {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-word;
    font-weight: 600;
}

.country-flag {
    flex: 0 0 auto;
}

.country-flag.fi {
    border-radius: 2.33px;
    width: 1.33rem;
    height: 1rem;
    position: relative;
    border: 1px solid #e8e8e8;
    top: 0.066rem;
}

span.country-text {
    display: inline;
    font-weight: 600;
    color: inherit;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: inherit;
}

.item strong[data-role="vpn-risk"] {
    color: #3e3aab;
}

.item strong[data-role="vpn-safe"] {
    color: #3e3aab;
    font-weight: bold;
}

.item strong[data-role="lan-ip"] {
    color: var(--accent);
    font-weight: bold;
}

.item.item--asn .asn-value {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.18rem;
}

.item.item--asn .asn-link {
    color: var(--accent);
    border-bottom: 1.5px dotted rgb(62 58 171 / 66%);
    text-decoration: none !important;
    font-weight: bold;
}

span.asn-org {
    color: inherit;
    text-transform: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    position: relative;
    top: -0.05rem;
    left: 0.25rem;
}

.item.item--asn .asn-link:hover {
    opacity: 0.66;
}

.item.item--asn .asn-org {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item.item--asn .asn-external-link {
    margin-left: auto;
    text-decoration: none !important;
    position: relative;
    top: -0.66rem;
}

.item.item--asn .asn-external-icon {
    font-size: 0.72rem;
    line-height: 1;
}

.item.item--abuseipdb strong[data-role="abuseipdb-hit"] {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    color: var(--audit-red);
    font-weight: bold;
}

.item.item--abuseipdb strong[data-role="abuseipdb-clean"] {
    color: var(--accent);
    font-weight: bold;
}

.abuseipdb-icon {
    font-size: 0.78rem;
    line-height: 1;
}

.item.item--abuseipdb strong[data-role="abuseipdb-hit"] span {
    color: var(--audit-red) !important;
    border-bottom: 1.5px solid;
}

.item.item--abuseipdb strong span {
    color: var(--ink);
    text-transform: inherit;
    font-size: inherit;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: inherit;
}

.item--vpn-proxy strong {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.06rem;
}

.item--vpn-proxy .vpn-label {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0;
    position: relative;
    top: -0.66rem;
    font-weight: 900;
    font-family: 'Archivo Black', sans-serif;
}

.item--vpn-proxy .vpn-score {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-left: auto;
}

.vpn-separator {
    display: none;
}

.item.item--vpn-proxy span:first-child {
    margin-bottom: 1.33rem;
}

.item--vpn-proxy .vpn-label {
  margin-right: 0;
  font-family: 'Archivo Black', sans-serif;
  font-weight: normal;
}

.item--vpn-proxy .vpn-separator {
    margin: 0 0.05rem;
}

.vpn-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.8rem;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
    margin-left: 0;
    margin-right: 0.75rem;
    align-self: center;
    position: relative;
    top: -0.66rem;
}

.vpn-score--green {
    color: var(--audit-green);
}

.vpn-score--orange {
    color: var(--audit-amber);
}

.vpn-score--red {
    color: var(--audit-red);
}

.item--vpn-proxy[data-risk-level="green"] {
    border-color: rgba(60, 161, 0, 0.12);
    background: #ecfded;
}

.item--vpn-proxy[data-risk-level="green"] > span,
.item--vpn-proxy[data-risk-level="green"] strong,
.item--vpn-proxy[data-risk-level="green"] .vpn-label,
.item--vpn-proxy[data-risk-level="green"] .vpn-separator,
.item--vpn-proxy[data-risk-level="green"] .vpn-score {
    color: var(--audit-green);
}

.item--vpn-proxy[data-risk-level="green"] .vpn-icon {
    color: var(--audit-green);
    background: rgba(60, 161, 0, 0.12);
}

.item--vpn-proxy[data-risk-level="orange"] {
    border-color: rgba(255, 120, 0, 0.12);
    background: #fff4eb;
}

.item--vpn-proxy[data-risk-level="orange"] > span,
.item--vpn-proxy[data-risk-level="orange"] strong,
.item--vpn-proxy[data-risk-level="orange"] .vpn-label,
.item--vpn-proxy[data-risk-level="orange"] .vpn-separator,
.item--vpn-proxy[data-risk-level="orange"] .vpn-score {
    color: var(--audit-amber);
}

.item--vpn-proxy[data-risk-level="orange"] .vpn-icon {
    color: var(--audit-amber);
    background: rgba(255, 120, 0, 0.12);
}

.item--vpn-proxy[data-risk-level="red"] {
    border-color: rgba(236, 17, 0, 0.12);
    background: rgba(236, 17, 0, 0.04);
}

.item--vpn-proxy[data-risk-level="red"] > span,
.item--vpn-proxy[data-risk-level="red"] strong,
.item--vpn-proxy[data-risk-level="red"] .vpn-label,
.item--vpn-proxy[data-risk-level="red"] .vpn-separator,
.item--vpn-proxy[data-risk-level="red"] .vpn-score {
    color: var(--audit-red);
}

.item--vpn-proxy[data-risk-level="red"] .vpn-icon {
    color: var(--audit-red);
    background: rgba(255, 18, 0, 0.12);
}

.vpn-score {
    font-weight: 900 !important;
    font-size: 1.66rem !important;
    position: static;
    top: 0;
    left: 0;
    margin: 0 2rem 0 0;
    opacity: 0.33;
    position: relative;
    top: -1rem;
    letter-spacing: -0.15rem !important;
    font-family: 'Archivo Black', sans-serif;
}

.item.item--ipv6 strong {
    color: #3e3aab;
    font-weight: bold;
}

.browser-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.browser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.browser-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 28, 60, 0.08);
}

.browser-key {
    color: #01035e4a;
    text-transform: uppercase;
    letter-spacing: -0.05rem;
    font-size: 0.6rem;
    font-weight: 900;
}

.browser-value {
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-word;
    font-weight: 600;
}

.footer {
    font-weight: 600;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    color: #d1d1d1;
    font-size: 0.55rem;
    margin-left: 0.15rem;
}

.footer-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 0;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    line-height: 0;
}

.footer-time i {
    font-size: 0.9em;
    color: inherit;
}

.page-footer {
    width: min(920px, 100%);
    margin: 0;
    text-align: center;
    font-size: 0.55rem;
    font-weight: 600;
    justify-self: flex-end;
    color: #b3b3b3;
    white-space: nowrap;
}

.page-footer-mobile {
    display: none;
}

.page-footer a {
    font-weight: 600;
    color: inherit;
    border-bottom: 1px solid;
    text-decoration: none !important;
}

.page-footer a:hover {
    opacity: 0.66;
}

.page-footer-desktop a:last-child {
    color: var(--accent);
}

.limits-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-footer p {
    margin: 2rem auto 0 !important;
    text-align: center;
    font-size: 0.66em !important;
    opacity: 0.33;
}

.limits-modal__hero img {
    display: block;
    width: min(150px, 50vw);
    height: auto;
}

.limits-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 40, 0.56);
}

.limits-modal__panel {
    display: flex;
    position: relative;
    z-index: 2;
    width: min(700px, 92vw);
    min-height: 80vh;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid rgba(20, 28, 60, 0.14);
    background: white;
    padding: 3.66rem 3.33rem;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.2);
    color: #1a2240;
    flex-direction: column;
    justify-content: space-between;
}

.limits-modal__panel strong {
    color: #3e3aab;
    display: inline;
}

.limits-modal__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.1rem 0 2.33rem;
}

.limits-modal__hero img {
    display: block;
    width: min(150px, 50vw);
    height: auto;
}

.limits-modal__content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.limits-modal__notice strong {
    font-family: 'Archivo Black', sans-serif;
}

.limits-modal__hero-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
}

.limits-modal__panel h2 {
    margin: 0 0 0.7rem;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
    color: #3d4378;
    text-decoration: underline;
    font-family: 'Archivo Black', sans-serif;
}

.limits-modal__panel p,
.limits-modal__panel li {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    line-height: 1.55;
}

.limits-modal__panel a {
    color: var(--accent);
    border-bottom: 2px solid rgba(62, 58, 171, 0.35);
    text-decoration: none !important;
    font-weight: 700;
    padding-bottom: 0.1rem;
}

.limits-modal__panel a:hover {
    opacity: 0.66;
}

.limits-modal__notice-title {
    margin: 0 0 0.45rem;
    display: flex;
    align-items: flex-end;
    gap: 0.66rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.limits-modal__notice-title strong {
    display: inline;
    margin: 0;
    color: var(--accent);
}

.limits-modal__notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 0.78rem;
    color: var(--accent);
    line-height: 1;
    background: rgba(62, 58, 171, 0.12);
    opacity: 0.98;
}

.limits-modal__panel ul {
    margin: 0;
    padding: 0 0 0 1.15rem;
}

.limits-modal__notice {
    margin-top: 1rem;
    padding: 2rem 2rem 3rem;
    border-radius: 8px;
    border: 1px solid rgba(62, 58, 171, 0.14);
    background: rgba(62, 58, 171, 0.05);
}

.limits-modal__notice strong {
    display: inline;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: -0.1em;
    color: var(--accent);
    text-transform: uppercase;
    font-family: 'Archivo Black', sans-serif;
}

.limits-modal__notice p {
    margin: 0 0 0.45rem;
}

.limits-modal__notice p:last-child {
    margin-bottom: 0;
}

.limits-modal__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 1.4rem;
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.limits-modal__close:hover {
    opacity: 0.7;
}

.limits-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.is-limits-open {
    overflow: hidden;
}

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

a:hover {
    text-decoration: underline;
}

code {
    padding: 0.18rem 0.42rem;
    border-radius: 6px;
    background: rgba(39, 60, 190, 0.08);
    color: var(--ink);
}

.limits-modal__notice-title strong {
    text-decoration: underline;
}

@media (max-width: 720px) {
    main {
        padding: 16px;
    }

    .card {
        margin-top: 72px;
    }

    .ip {
        font-size: 1.33rem;
    }

    .lede code {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .browser-grid {
        grid-template-columns: 1fr;
    }

    .seo-grid {
        grid-template-columns: 1fr;
    }

    h1.lede {
        font-size: 1.15rem;
    }


    .page-footer {
        font-size: 0.5rem;
        white-space: nowrap;
    }

    .page-footer-desktop {
        display: none;
    }

    .page-footer-mobile {
        display: inline;
    }

    .limits-modal {
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px;
    }

    .limits-modal__panel {
        display: block;
        width: 100%;
        height: auto;
        max-height: calc(100dvh - 24px);
        padding: 1.4rem 1rem 1.15rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 12px;
    }

    .limits-modal__content {
        display: block;
        flex: none;
        min-height: 0;
    }

    .limits-modal__notice {
        margin-top: 1rem;
        padding: 0.9rem 0.95rem 1rem;
    }
}
