body {
    margin: 0;
    padding: 0;
    background-image: url('images/background_slate.gif');
    background-position: left top;
    background-repeat: repeat;
    background-attachment: scroll;
    background-color: #212121;
    color: #c1c1c1;
    font-family: "Roboto", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background-color: rgba(33, 33, 33, 0.78);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    display: flex;
    justify-content: center;
}

.header-inner {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
}

.site-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    margin-left: 150px;
}

.site-title a {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: 300;
}

.site-description {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: #c1c1c1;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

.main-navigation-container {
    width: 100%;
}

#content {
    flex: 1;
    padding: 40px;
}

.contact-page {
    max-width: 760px;
    margin: 0 auto;
    color: #e0e0e0;
}

.contact-page-header {
    margin-bottom: 24px;
    text-align: center;
}

.contact-page-header h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 400;
}

.contact-page-header p {
    margin: 0;
    color: #a0a0a0;
    line-height: 1.6;
}

.contact-card {
    padding: 28px;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.contact-form-group input,
.contact-form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #444444;
    border-radius: 6px;
    background: #121212;
    color: #ffffff;
    font: inherit;
}

.contact-form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #2e6b4f;
    outline: 2px solid rgba(46, 107, 79, 0.3);
}

.contact-turnstile {
    margin-bottom: 20px;
}

.contact-submit {
    padding: 11px 20px;
    border: 0;
    border-radius: 6px;
    background: #2e6b4f;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.contact-submit:hover {
    background: #23533d;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.contact-status {
    min-height: 1.5em;
    margin-top: 16px;
    line-height: 1.5;
}

.contact-status[data-state="success"] {
    color: #86efac;
}

.contact-status[data-state="error"] {
    color: #fca5a5;
}

.contact-status[data-state="warning"] {
    color: #facc15;
}

@media screen and (max-width: 600px) {
    .contact-card {
        padding: 20px;
    }

    .contact-page-header h1 {
        font-size: 1.7rem;
    }
}

.site-footer {
    background-color: rgba(25, 25, 25, 0.78);
    padding: 25px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #686868;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 15px;
}

#dailyVersesWrapper {
    grid-column: 1 / -1;
}

.footer-privacy {
    justify-self: start;
}

.footer-privacy a {
    color: #686868;         /* Dempet gråfarge som på bildet */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-privacy a:hover {
    color: #ffffff;         /* Lyser opp til hvit ved hover */
}

.footer-copyright {
    color: #686868;
    justify-self: end;
}

.footer-theme-switcher {
    justify-self: center;
    color: #686868;
}

.footer-theme-switcher select {
    max-width: 100%;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.footer-theme-switcher select:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.footer-theme-switcher select option {
    background: #191919;
    color: #c1c1c1;
}

.footer-theme-switcher .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-privacy,
    .footer-theme-switcher,
    .footer-copyright {
        justify-self: center;
    }
}
/* Standard: Skjul hamburgerknappen på PC/store skjermer */
.menu-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
}

.menu-toggle-icon path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
}

.language-flag .flag-field { fill: #ba0c2f; }
.flag-no .flag-cross-light,
.flag-da .flag-cross { fill: #ffffff; }
.flag-no .flag-cross-dark { fill: #00205b; }
.flag-en .flag-field { fill: #012169; }
.flag-en .flag-diagonal-light { fill: none; stroke: #ffffff; stroke-width: 4; }
.flag-en .flag-diagonal-dark { fill: none; stroke: #c8102e; stroke-width: 1.5; }
.flag-en .flag-cross-light { fill: #ffffff; }
.flag-en .flag-cross-dark { fill: #c8102e; }
.flag-sv .flag-field { fill: #006aa7; }
.flag-sv .flag-cross { fill: #fecc00; }
.flag-de .flag-band-dark { fill: #000000; }
.flag-de .flag-band-red { fill: #d00; }
.flag-de .flag-band-gold { fill: #ffce00; }
.flag-fr .flag-band-blue { fill: #002395; }
.flag-fr .flag-band-light { fill: #ffffff; }
.flag-fr .flag-band-red { fill: #ed2939; }
.flag-es .flag-field { fill: #aa151b; }
.flag-es .flag-band-gold { fill: #f1bf00; }

.language-dropdown svg {
    display: inline-block;
    width: 1.2em;
    height: 0.8em;
    vertical-align: -0.05em;
    margin-right: 0.3em;
}

/* Responsivt oppsett for mobil */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 20px;
    }

    /* Plasser tittel til venstre og hamburgerknapp til høyre på samme linje */
    .site-header-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
        margin-bottom: 10px;
        margin-left: 0;
    }

    .site-title {
        flex: 1;
        min-width: 0;
    }

    .site-title a {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .site-description {
        flex-basis: 100%;
        margin-top: 24px;
        border-left: none;
        padding-left: 0;
        font-size: 0.95rem;
    }

    .site-header .site-header-wrapper > .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-left: 20px;
        visibility: visible;
        opacity: 1;
        position: relative;
        z-index: 1;
    }

    .site-navigation {
        display: none !important;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0 !important;
    }

    .site-navigation.active {
        display: flex !important;
    }

    .menu-list {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .menu-list li a {
        font-size: 0.9rem;
    }

    .language-dropdown {
        width: 100%;
        margin-top: 10px;
    }

    .lang-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background-color: transparent !important;
        padding-left: 0;
        margin-top: 5px !important;
    }
}
/* Beholder lenkefunksjonaliteten, men fjerner blå farge og understreking */
#dailyVersesWrapper {
    color: #b8b8b8;
}

#dailyVersesWrapper a {
    color: #b8b8b8 !important;
    text-decoration: none !important;
}

/* Lyser opp til hvitt når man holder musen over, slik som de andre lenkene på nettsiden */
#dailyVersesWrapper a:hover {
    color: #ffffff !important;
}
/* Legger til luft mellom selve verset og referansen under */
#dailyVersesWrapper p {
    margin-bottom: 8px !important;
}

#dailyVersesWrapper a {
    color: #b8b8b8 !important;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 4px;
}

#dailyVersesWrapper a:hover {
    color: #ffffff !important;
}

/* tools/blacklist.php */
.rbl-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}

.rbl-widget * {
    box-sizing: border-box;
}

.rbl-description {
    color: #a0a0a0 !important;
    margin: 0 0 16px !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
}

.rbl-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rbl-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #333333;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rbl-card-body {
    padding: 24px;
    overflow-x: auto;
}

.rbl-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rbl-input {
    flex: 1;
    min-width: 260px;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}

.rbl-input:focus {
    border-color: #4f6c8c !important;
}

.rbl-input::placeholder {
    color: #a0a0a0 !important;
    opacity: 1;
}

.rbl-btn {
    background: #2e6b4f;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.rbl-btn:hover {
    background: #23533d;
}

.rbl-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.rbl-table th {
    color: #a0a0a0 !important;
    font-weight: 600;
    padding-bottom: 12px;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.rbl-table td {
    padding: 14px 0;
    border-bottom: 1px solid #262626;
    color: #e0e0e0 !important;
    text-align: left;
}

.rbl-table tr:last-child td {
    border-bottom: none;
}

.rbl-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.rbl-badge-clean {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac !important;
}

.rbl-badge-listed {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
}

.rbl-badge-blocked {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fef08a !important;
}

.rbl-badge-unknown {
    background: rgba(156, 163, 175, 0.15);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #d1d5db !important;
}

.rbl-summary {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.rbl-summary-clean {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.rbl-summary-listed {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5 !important;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.rbl-ip-tag {
    background: #121212;
    color: #4f6c8c !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: Consolas, Monaco, monospace;
    border: 1px solid #333333;
    font-weight: 700;
    display: inline-block;
    margin: 2px 0;
    text-decoration: none !important;
}

.rbl-ip-tag:hover {
    color: #4f6c8c !important;
    text-decoration: underline !important;
}

.rbl-error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5 !important;
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

#rbl-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #e0e0e0;
}

.rbl-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(224,224,224,0.1), rgba(224,224,224,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: rbl-spin 0.8s linear infinite;
}

@keyframes rbl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .rbl-input-group { flex-direction: column; }
    .rbl-btn { width: 100%; }
}

/* tools/certificate.php */
.net-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}
.net-widget * { box-sizing: border-box; text-decoration: none !important; }

/* Kort og paneler */
.net-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
}
.net-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.net-card-body { padding: 24px; overflow-x: auto; }
.net-description {
    color: #a0a0a0 !important;
    margin: 0 0 20px !important;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* IP-pille i hjørnet (IPv4 / IPv6) */
.net-ip-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.net-ip-pill-ipv4 {
    background: rgba(46, 107, 79, 0.15);
    border: 1px solid #2e6b4f;
    color: #86efac !important;
}
.net-ip-pill-ipv6 {
    background: rgba(126, 87, 194, 0.15);
    border: 1px solid #7e57c2;
    color: #d1c4e9 !important;
}

/* Skjema og Inndatafelt */
.net-input-group { display: flex; gap: 12px; flex-wrap: wrap; }
.net-input {
    flex: 1;
    min-width: 260px;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}
.net-input:focus { border-color: #2e6b4f !important; }
.net-input::placeholder { color: #a0a0a0 !important; opacity: 1; }

/* Knapper */
.net-btn {
    background: #2e6b4f;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.net-btn:hover { background: #23533d; }
.net-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Tabell */
.net-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.net-table td { padding: 12px 0; border-bottom: 1px solid #262626; color: #e0e0e0 !important; word-break: break-all; }
.net-table tr:last-child td { border-bottom: none; }
.net-table td:first-child { width: 200px; color: #a0a0a0 !important; font-weight: 500; font-size: 0.95rem; border-bottom: 1px solid #333333; }

/* Badges for status */
.net-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}
.net-badge-valid {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac !important;
}
.net-badge-warning {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fef08a !important;
}
.net-badge-invalid {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
}

.net-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

.net-san-tag {
    display: inline-block;
    background: #121212;
    border: 1px solid #333333;
    color: #2e6b4f;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 2px 4px 2px 0;
    font-family: monospace;
}

/* Overlay / Ventemodus */
#net_loading_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.net-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333333;
    border-top: 4px solid #2e6b4f;
    border-radius: 50%;
    animation: netSpin 0.8s linear infinite;
    margin-bottom: 20px;
}
.net-loading-msg {
    color: #e0e0e0;
    font-size: 1.15rem;
    font-weight: 500;
}
@keyframes netSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .net-input-group { flex-direction: column; }
    .net-btn { width: 100%; }
    .net-table td:first-child { width: 130px; font-size: 0.9rem; }
}

/* tools/cgnat-altibox.php */
.cgnat-widget {
            --bg: transparent;
            --panel: #1a1a1a;
            --panel-alt: #262626;
            --border: #333333;
            --text: #e0e0e0;
            --muted: #a0a0a0;
            --accent: #2e6b4f;
            --accent-soft: rgba(46, 107, 79, 0.15);
            --success: #22c55e;
            --success-soft: rgba(34, 197, 94, 0.15);
            --warning: #f59e0b;
            --warning-soft: rgba(245, 158, 11, 0.15);
            --danger: #ef4444;
            --danger-soft: rgba(239, 68, 68, 0.12);
        }

        .cgnat-widget * {
            box-sizing: border-box;
        }

        .cgnat-widget {
            margin: 0;
            background: var(--bg);
            color: var(--text);
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .cgnat-widget.ip-widget {
            max-width: 1100px;
            margin: 30px auto;
            padding: 0 20px 40px;
        }

        .cgnat-widget .ip-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .cgnat-widget .ip-header h1,
        .cgnat-widget .ip-header h2,
        .cgnat-widget h1,
        .cgnat-widget h2,
        .cgnat-widget h3 {
            color: var(--text) !important;
            margin: 0 0 10px 0 !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
        }

        .cgnat-widget .ip-header h1 {
            font-size: clamp(2rem, 4vw, 2.8rem) !important;
        }

        .cgnat-widget .ip-header p {
            margin: 0 !important;
            color: var(--muted) !important;
            font-size: 1.05rem !important;
            line-height: 1.5 !important;
        }

        .cgnat-widget .ip-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .cgnat-widget .ip-card {
            background: var(--panel);
            color: var(--text) !important;
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        }

        .cgnat-widget .ip-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: var(--panel-alt);
            border-bottom: 1px solid var(--border);
        }

        .cgnat-widget .ip-card-title {
            color: var(--text) !important;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .cgnat-widget .ip-card-body {
            padding: 18px 20px 20px;
        }

        .cgnat-widget .compare-panel {
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 14px 18px;
            height: 110px;
            display: flex;
            align-items: center;
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
        }

        .cgnat-widget .compare-panel-inner {
            width: 100%;
            display: grid;
            grid-template-columns: 110px 1fr;
            row-gap: 8px;
            column-gap: 16px;
            align-items: center;
        }

        .cgnat-widget .result-row {
            display: contents;
        }

        .cgnat-widget .result-label {
            color: #404042;
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1;
            white-space: nowrap;
        }

        .cgnat-widget .result-value {
            color: #404042;
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .cgnat-widget .result-row:nth-child(2) .result-value {
            text-transform: uppercase;
        }

        .cgnat-widget .ip-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid transparent;
        }

        .cgnat-widget .ip-badge-ok {
            background: var(--success-soft);
            border-color: rgba(34, 197, 94, 0.3);
            color: #86efac !important;
        }

        .cgnat-widget .ip-badge-warn {
            background: var(--warning-soft);
            border-color: rgba(245, 158, 11, 0.3);
            color: #fbbf24 !important;
        }

        .cgnat-widget .ip-badge-fail {
            background: var(--danger-soft);
            border-color: rgba(239, 68, 68, 0.3);
            color: #fca5a5 !important;
        }

        .cgnat-widget .info-box {
            margin-top: 24px;
            background: #1a1a1a;
            border: 1px solid var(--border);
            border-left: 4px solid var(--accent);
            border-radius: 6px;
            padding: 18px 20px;
            color: var(--text);
        }

        .cgnat-widget .info-box h3 {
            margin: 0 0 8px 0 !important;
            font-size: 1.15rem;
        }

        .cgnat-widget .info-box p {
            margin: 0;
            color: var(--text);
            line-height: 1.6;
        }

        .cgnat-widget .error {
            color: #dc2626 !important;
            font-weight: bold;
            font-size: 1.1rem !important;
        }

        .cgnat-widget iframe {
            width: 100%;
            height: 110px;
            border: 1px solid var(--border);
            background: #fff;
            border-radius: 6px;
            overflow: hidden;
            display: block;
        }

        @media (max-width: 768px) {
            .cgnat-widget .ip-grid {
                grid-template-columns: 1fr;
            }

            .cgnat-widget.ip-widget {
                padding-left: 16px;
                padding-right: 16px;
            }

        }

/* tools/domain copy.php */
.domain-widget * { box-sizing: border-box; }
.domain-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: "Grandview", Roboto, Verdana, sans-serif;
    color: #e0e0e0 !important;
}
.domain-widget input:focus { border-color: #2e6b4f !important; }
.domain-widget .domain-form-label {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}
.domain-widget .advanced-options {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 14px;
    text-align: left;
}
.domain-widget .advanced-options summary {
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 6px 10px;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 5px;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}
.domain-widget .advanced-options summary:hover {
    background: #303030;
    border-color: #2e6b4f;
}
.domain-widget .advanced-options summary:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
.domain-widget .domain-form-hint {
    width: 100%;
    max-width: 500px;
    margin: -8px auto 14px;
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.domain-widget .custom-btn, .domain-widget .whois-btn {
    display: inline-block;
    background: #2e6b4f;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
}
.domain-widget .custom-btn:hover, .domain-widget .whois-btn:hover { background: #23533d; }
.domain-widget .dmarcian-mini-btn {
    display: inline-block;
    background: #2e6b4f;
    color: #ffffff !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    text-decoration: none !important;
}
.domain-widget .guide-btn {
    display: inline-block;
    background: #262626;
    color: #60a5fa !important;
    border: 1px solid #333333;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.domain-widget code {
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    font-family: monospace;
    font-size: 13px;
    font-weight: 500;
}
.domain-widget .ip-link { color: inherit; text-decoration: none; }
.domain-widget .ip-link:hover { text-decoration: underline; }
.domain-widget .auth-summary {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #e0e0e0;
}
.domain-widget .auth-summary-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.domain-widget .auth-summary-toolbar h3 { margin: 0; }
.domain-widget .auth-summary-domain { margin: 0 0 16px; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.domain-widget .auth-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-widget .auth-summary-copy {
    border: 1px solid #454545;
    border-radius: 4px;
    padding: 7px 10px;
    background: #262626;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
}
.domain-widget .auth-summary-copy:hover { border-color: #888; }
.domain-widget .auth-summary h3 { margin: 0 0 16px; font-size: 20px; color: #e0e0e0; }
.domain-widget .auth-summary-toolbar h3 { margin: 0; }
.domain-widget .auth-summary-grid { display: grid; grid-template-columns: minmax(150px, 0.8fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.domain-widget .auth-score, .domain-widget .auth-status-card {
    min-width: 0;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 16px;
    background: #121212;
}
.domain-widget .auth-score { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.domain-widget .auth-score-ring {
    width: 112px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    --auth-score-track-color: #333333;
    background: conic-gradient(var(--score-color) var(--score-angle), var(--auth-score-track-color) 0);
    margin: 2px 0 10px;
}
.domain-widget .auth-score-ring::before { content: ""; grid-area: 1 / 1; width: 86px; aspect-ratio: 1; border-radius: 50%; background: #121212; }
.domain-widget .auth-score-value { grid-area: 1 / 1; z-index: 1; font-size: 28px; line-height: 1; font-weight: 700; color: #e0e0e0; }
.domain-widget .auth-score-label { color: #a0a0a0; font-size: 13px; }
.domain-widget .auth-status-card { border-top: 3px solid #555555; }
.domain-widget .auth-status-card.is-good { border-top-color: #34d399; }
.domain-widget .auth-status-card.is-attention { border-top-color: #facc15; }
.domain-widget .auth-status-card.is-missing { border-top-color: #f87171; }
.domain-widget .auth-status-card.is-error { border-top-color: #f87171; }
.domain-widget .auth-status-card.is-na { border-top-color: #777777; }
.domain-widget .auth-status-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.domain-widget .auth-status-head strong { font-size: 18px; }
.domain-widget .auth-status-label { font-size: 12px; color: #a0a0a0; text-align: right; }
.domain-widget .auth-status-card p { margin: 0; color: #b0b0b0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.domain-widget .auth-status-details { list-style: none; margin: 0; padding: 0; }
.domain-widget .auth-status-details li { padding: 2px 0; color: #d0d0d0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.domain-widget .auth-status-card .auth-status-description { margin-top: 6px; color: #a0a0a0; }
.domain-widget .auth-score-explanation { margin-top: 16px; padding-top: 14px; border-top: 1px solid #333333; }
.domain-widget .auth-score-explanation h4 { margin: 0 0 8px; color: #e0e0e0; font-size: 15px; }
.domain-widget .auth-score-explanation ul { margin: 0; padding-left: 20px; color: #b0b0b0; font-size: 13px; line-height: 1.7; }
.domain-widget .auth-score-explanation p { margin: 0 0 8px; color: #b0b0b0; font-size: 13px; line-height: 1.6; }
@media (max-width: 700px) {
    .domain-widget .auth-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .domain-widget .auth-score { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
    .domain-widget .auth-summary { padding: 14px; }
    .domain-widget .auth-summary-toolbar { align-items: flex-start; flex-direction: column; }
    .domain-widget .auth-summary-grid { grid-template-columns: 1fr; }
    .domain-widget .auth-score { grid-column: auto; }
}
.code-block-wrapper { position: relative; margin: 0 0 6px 0; }
.code-block-wrapper pre {
    background: #1a1a1a !important;
    padding: 10px 45px 10px 10px !important;
    border-radius: 4px;
    border: 1px solid #333;
    color: #34d399 !important;
    overflow-x: auto;
    margin: 0 !important;
    font-family: monospace;
    white-space: pre-wrap;
}
.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #333333;
    color: #ffffff;
    border: 1px solid #444;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
}
#net-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}
.net-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.1), rgba(255,255,255,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: net-spin 0.8s linear infinite;
}
@keyframes net-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* tools/domain.php */
.domain-widget * { box-sizing: border-box; }
.domain-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
}
.domain-widget .domain-card {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.domain-widget .domain-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #333333;
}
.domain-widget .domain-card-body { padding: 24px; }
.domain-widget .domain-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}
.domain-widget .domain-input-group { display: flex; gap: 12px; }
.domain-widget .domain-input {
    flex: 1;
    min-width: 0;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
}
.domain-widget .domain-input::placeholder,
.domain-widget .domain-advanced-input::placeholder { color: #a0a0a0 !important; opacity: 1; }
.domain-widget .domain-form-label.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.domain-widget input:focus { border-color: #2e6b4f !important; }
.domain-widget .domain-form-label {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
}
.domain-widget .advanced-options {
    margin: 14px 0 0;
    text-align: left;
}
.domain-widget .advanced-options summary {
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 6px 10px;
    background: #222222;
    border: 1px solid #444444;
    border-radius: 5px;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}
.domain-widget .advanced-options summary:hover {
    background: #303030;
    border-color: #2e6b4f;
}
.domain-widget .advanced-options summary:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}
.domain-widget .domain-form-hint {
    width: 100%;
    margin: 0 0 14px;
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.domain-widget .domain-advanced-input {
    display: block;
    width: 100%;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    margin: 0 0 6px;
}
.domain-widget .custom-btn, .domain-widget .whois-btn {
    display: inline-block;
    background: #2e6b4f;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
}
.domain-widget .custom-btn { flex: 0 0 auto; }
.domain-widget .custom-btn:hover, .domain-widget .whois-btn:hover { background: #23533d; }
.domain-widget .dmarcian-mini-btn {
    display: inline-block;
    background: #2e6b4f;
    color: #ffffff !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    text-decoration: none !important;
}
.domain-widget .guide-btn {
    display: inline-block;
    background: #262626;
    color: #60a5fa !important;
    border: 1px solid #333333;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.domain-widget code {
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    font-family: monospace;
    font-size: 13px;
    font-weight: 500;
}
.domain-widget .ip-link { color: inherit; text-decoration: none; }
.domain-widget .ip-link:hover { text-decoration: underline; }
.domain-widget .auth-summary {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #e0e0e0;
}
.domain-widget .auth-summary-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.domain-widget .auth-summary-toolbar h3 { margin: 0; }
.domain-widget .auth-summary-domain { margin: 0 0 16px; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.domain-widget .auth-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-widget .auth-summary-copy {
    border: 1px solid #454545;
    border-radius: 4px;
    padding: 7px 10px;
    background: #262626;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
}
.domain-widget .auth-summary-copy:hover { border-color: #888; }
.domain-widget .auth-summary h3 { margin: 0 0 16px; font-size: 20px; color: #e0e0e0; }
.domain-widget .auth-summary-toolbar h3 { margin: 0; }
.domain-widget .auth-summary-grid { display: grid; grid-template-columns: minmax(150px, 0.8fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.domain-widget .auth-score, .domain-widget .auth-status-card {
    min-width: 0;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 16px;
    background: #121212;
}
.domain-widget .auth-score { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.domain-widget .auth-score-ring {
    width: 112px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    --auth-score-track-color: #333333;
    background: conic-gradient(var(--score-color) var(--score-angle), var(--auth-score-track-color) 0);
    margin: 2px 0 10px;
}
.domain-widget .auth-score-ring::before { content: ""; grid-area: 1 / 1; width: 86px; aspect-ratio: 1; border-radius: 50%; background: #121212; }
.domain-widget .auth-score-value { grid-area: 1 / 1; z-index: 1; font-size: 28px; line-height: 1; font-weight: 700; color: #e0e0e0; }
.domain-widget .auth-score-label { color: #a0a0a0; font-size: 13px; }
.domain-widget .auth-status-card { border-top: 3px solid #555555; }
.domain-widget .auth-status-card.is-good { border-top-color: #34d399; }
.domain-widget .auth-status-card.is-attention { border-top-color: #facc15; }
.domain-widget .auth-status-card.is-missing { border-top-color: #f87171; }
.domain-widget .auth-status-card.is-error { border-top-color: #f87171; }
.domain-widget .auth-status-card.is-na { border-top-color: #777777; }
.domain-widget .auth-status-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.domain-widget .auth-status-head strong { font-size: 18px; }
.domain-widget .auth-status-label { font-size: 12px; color: #a0a0a0; text-align: right; }
.domain-widget .auth-status-card p { margin: 0; color: #b0b0b0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.domain-widget .auth-status-details { list-style: none; margin: 0; padding: 0; }
.domain-widget .auth-status-details li { padding: 2px 0; color: #d0d0d0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.domain-widget .auth-status-card .auth-status-description { margin-top: 6px; color: #a0a0a0; }
.domain-widget .auth-score-explanation { margin-top: 16px; padding-top: 14px; border-top: 1px solid #333333; }
.domain-widget .auth-score-explanation h4 { margin: 0 0 8px; color: #e0e0e0; font-size: 15px; }
.domain-widget .auth-score-explanation ul { margin: 0; padding-left: 20px; color: #b0b0b0; font-size: 13px; line-height: 1.7; }
.domain-widget .auth-score-explanation p { margin: 0 0 8px; color: #b0b0b0; font-size: 13px; line-height: 1.6; }
@media (max-width: 700px) {
    .domain-widget .auth-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .domain-widget .auth-score { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
    .domain-widget .auth-summary { padding: 14px; }
    .domain-widget .auth-summary-toolbar { align-items: flex-start; flex-direction: column; }
    .domain-widget .auth-summary-grid { grid-template-columns: 1fr; }
    .domain-widget .auth-score { grid-column: auto; }
}
@media (max-width: 768px) {
    .domain-widget .domain-input-group { flex-direction: column; }
    .domain-widget .custom-btn { width: 100%; }
    .domain-widget .domain-card-body { padding: 20px; }
}
.code-block-wrapper { position: relative; margin: 0 0 6px 0; }
.code-block-wrapper pre {
    background: #1a1a1a !important;
    padding: 10px 45px 10px 10px !important;
    border-radius: 4px;
    border: 1px solid #333;
    color: #34d399 !important;
    overflow-x: auto;
    margin: 0 !important;
    font-family: monospace;
    white-space: pre-wrap;
}
.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #333333;
    color: #ffffff;
    border: 1px solid #444;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
}
#net-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}
.net-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.1), rgba(255,255,255,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: net-spin 0.8s linear infinite;
}
@keyframes net-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* tools/email.php */
.combined-tool-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}
.combined-tool-widget * { box-sizing: border-box; text-decoration: none !important; }

/* Navigasjons-tabs for valg */
.ct-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
.ct-tab-btn {
    background: #1a1a1a;
    color: #a0a0a0 !important;
    border: 1px solid #333333;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}
.ct-tab-btn.active, .ct-tab-btn:hover {
    background: #2e6b4f;
    color: #ffffff !important;
    border-color: #2e6b4f;
}

.ct-section { display: none; }
.ct-section.active { display: block; }

/* Felles komponent-stiler */
.tool-description {
    color: #a0a0a0 !important;
    margin: 0 0 16px !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
}

.ha-card, .subnet-card, .dmarc-stat-box {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.ha-card-header, .subnet-card-header {
    padding: 16px 20px;
    background: #262626;
    border-bottom: 1px solid #333333;
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    font-weight: 600;
}
.ha-card-body, .subnet-card-body { padding: 20px; overflow-x: auto; }

.ha-textarea, .subnet-input {
    width: 100%;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95rem;
    outline: none;
}
.ha-textarea { height: 220px; resize: vertical; }
.subnet-input::file-selector-button {
    background: #262626;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 12px;
}

.ha-btn, .subnet-btn {
    background: #2e6b4f;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 15px;
    width: 100%;
    transition: background 0.2s;
}
.ha-btn:hover, .subnet-btn:hover { background: #23533d; }

.ha-table, .subnet-table { width: 100%; border-collapse: collapse; }
.ha-table th { color: #a0a0a0 !important; font-weight: 600; padding-bottom: 12px; text-align: left; border-bottom: 1px solid #333333; white-space: nowrap; }
.subnet-table th { color: #a0a0a0 !important; font-weight: 600; padding-bottom: 12px; text-align: left; border-bottom: 1px solid #333333; }

.ha-table td, .subnet-table td { padding: 12px 0; border-bottom: 1px solid #262626; color: #e0e0e0 !important; word-break: break-all; }
.ha-table td:first-child { width: 220px; color: #a0a0a0 !important; font-weight: 500; }

.subnet-table td:not(:last-child) { white-space: nowrap; }

.ha-table.hop-table th:first-child,
.ha-table.hop-table td:first-child {
    width: 40px !important;
    text-align: center;
    padding-right: 5px;
}

.ip-link, .country-link {
    color: #e0e0e0 !important;
    text-decoration: none !important;
}
.ip-link:hover, .country-link:hover {
    text-decoration: underline !important;
}

.ha-highlight { color: #4f6c8c !important; font-weight: 700; }
.ha-badge, .subnet-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; display: inline-block; }
.ha-badge-pass, .dmarc-pass { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac !important; }
.ha-badge-fail, .dmarc-fail { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); color: #fca5a5 !important; }
.ha-badge-neutral { background: rgba(234, 179, 8, 0.15); border: 1px solid rgba(234, 179, 8, 0.3); color: #fef08a !important; }

.ha-hop-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ha-hop-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; background: #2e6b4f; color: #ffffff !important;
    border-radius: 50%; font-size: 0.8rem; font-weight: 700;
}
.ha-hop-delay {
    font-size: 0.7rem;
    color: #86efac !important;
    white-space: nowrap;
}

.subnet-error { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); color: #fca5a5 !important; padding: 12px 16px; border-radius: 6px; margin-bottom: 15px; }

.dmarc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.dmarc-stat-box { padding: 16px; }
.dmarc-stat-title { font-size: 0.85rem; color: #a0a0a0 !important; margin-bottom: 8px; }
.dmarc-stat-value { font-size: 1.5rem; font-weight: 700; color: #e0e0e0 !important; }

/* tools/email.php */
.spf-widget {
            max-width: 1100px;
            margin: 30px auto !important;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            color: #e0e0e0 !important;
            display: block;
        }
        .spf-widget * { box-sizing: border-box; text-decoration: none !important; }
        .spf-card { background: #1a1a1a; color: #e0e0e0 !important; border: 1px solid #333333; border-radius: 8px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
        .spf-card-header { padding: 16px 20px; background: #262626; color: #e0e0e0 !important; border-bottom: 1px solid #333333; font-size: 1.1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
        .spf-card-body { padding: 24px; overflow-x: auto; }
        .spf-description { color: #a0a0a0 !important; margin: 1em 0 16px !important; font-size: 1.05rem; line-height: 1.5; }
        .spf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
        .spf-two-column { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
        .spf-field { margin-bottom: 14px; }
        .spf-field label { display: block; font-weight: 600; margin-bottom: 6px; color: #e0e0e0 !important; }
        .spf-input, .spf-select, .spf-textarea {
            width: 100%; background: #121212 !important; border: 1px solid #333333 !important; color: #e0e0e0 !important;
            padding: 12px 16px; border-radius: 6px; font-size: 1rem; outline: none; transition: border-color 0.2s;
        }
        .spf-textarea { min-height: 90px; resize: vertical; }
        .spf-input:focus, .spf-select:focus, .spf-textarea:focus { border-color: #2e6b4f !important; }
        .spf-input::placeholder, .spf-textarea::placeholder { color: #a0a0a0 !important; opacity: 1; }
        .spf-help { display: block; margin-top: 5px; font-size: 0.85rem; color: #a0a0a0 !important; }
        .spf-info { color: #a0a0a0 !important; line-height: 1.55 !important; }
        .spf-info code, .spf-rule code { background: #121212; border: 1px solid #333333; border-radius: 4px; padding: 2px 5px; color: #e0e0e0; }
        .spf-rule { background: #1f1f1f; border: 1px solid #333333; border-radius: 8px; padding: 16px; }
        .spf-rule h4 { margin: 0 0 8px 0; color: #e0e0e0 !important; }
        .spf-rule p { color: #a0a0a0 !important; margin: 0; }
        .spf-checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; color: #e0e0e0 !important; }
        .spf-checkbox input { margin-top: 4px; width: auto; }
        .spf-btn { background: #2e6b4f; color: #ffffff !important; border: 0; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 1rem; transition: background 0.2s; }
        .spf-btn:hover { background: #23533d; }
        .spf-btn-secondary { background: #4f6c8c; }
        .spf-btn-secondary:hover { background: #405873; }
        .spf-btn-muted { background: #333333; }
        .spf-btn-muted:hover { background: #444444; }
        .spf-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
        .spf-output { background: #121212; color: #e0e0e0 !important; border: 1px solid #333333; padding: 14px 16px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; min-height: 48px; }
        .spf-macro-list { background: #121212; border: 1px solid #333333; border-radius: 6px; padding: 10px; margin-top: 10px; }
        .spf-macro-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid #262626; padding: 9px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e0e0e0; overflow-wrap: anywhere; }
        .spf-macro-item:last-child { border-bottom: none; }
        .spf-remove-btn { background: #333333; color: #ffffff !important; border: 0; padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
        .spf-remove-btn:hover { background: #444444; }
        .spf-component-list { background: #121212; border: 1px solid #333333; border-radius: 6px; padding: 10px; margin-top: 10px; min-height: 46px; }
        .spf-component-item { display: inline-flex; align-items: center; gap: 8px; margin: 4px; padding: 7px 10px; background: #1f1f1f; border: 1px solid #333333; border-radius: 999px; color: #e0e0e0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
        .spf-component-remove { background: transparent; color: #fca5a5 !important; border: 0; cursor: pointer; font-weight: 700; padding: 0 2px; }
        .spf-highlight { color: #4f6c8c !important; font-weight: 700; }
        .spf-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.45); color: #fbbf24 !important; padding: 12px 16px; border-radius: 6px; margin-top: 15px; }
        .spf-error { background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.4); color: #fca5a5 !important; padding: 12px 16px; border-radius: 6px; margin-top: 15px; }
        .spf-ok { background: rgba(46,107,79,0.2); border: 1px solid rgba(46,107,79,0.7); color: #bbf7d0 !important; padding: 12px 16px; border-radius: 6px; margin-top: 15px; }
        @media (max-width: 768px) { .spf-buttons { flex-direction: column; } .spf-btn { width: 100%; } }

/* tools/ip.php */
.ip-widget {
    max-width: 1100px;
    margin: 30px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0;
}

.ip-widget * {
    box-sizing: border-box;
}

.ip-header {
    text-align: center;
    margin-bottom: 25px;
}

.ip-header h2,
.ip-widget .ip-header h2,
.ip-widget h2 {
    color: #e0e0e0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.ip-header p,
.ip-widget .ip-header p {
    color: #a0a0a0 !important;
    margin: 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.ip-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #262626;
    border-bottom: 1px solid #333333;
}

.ip-card-title {
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    font-weight: 600;
}

.ip-card-body {
    padding: 20px;
}

.ip-address-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 15px;
}

.ip-main {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
    word-break: break-all;
    color: #ffffff !important;
}

.ip-address-row .ip-copy {
    flex-shrink: 0;
    margin: 0;
}

.ip-main a {
    color: #ffffff !important;
    text-decoration: none;
}

.ip-main a:hover {
    text-decoration: underline;
}

.ip-table {
    width: 100%;
    border-collapse: collapse;
}

.ip-table td {
    padding: 14px 0;
    border-bottom: 1px solid #262626;
    color: #e0e0e0 !important;
}

.ip-table tr:last-child td {
    border-bottom: none;
}

.ip-table td:first-child {
    width: 140px;
    color: #a0a0a0 !important;
    font-weight: 500;
}

.ip-table a.ip-link {
    color: #ffffff !important;
    text-decoration: none;
}

.ip-table a.ip-link:hover {
    text-decoration: underline;
}

.ip-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
}

.ip-badge-ok {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac !important;
}

.ip-badge-fail {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
}

.ip-copy {
    background: #2e6b4f;
    color: #ffffff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.ip-copy:hover {
    background: #23533d;
}

.ip-cgnat-button {
    margin: 15px 0 15px 8px;
    cursor: pointer;
}

.ip-cgnat-modal[hidden] {
    display: none;
}

.ip-cgnat-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.ip-cgnat-dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #121212;
    border: 1px solid #333333;
    border-radius: 8px;
}

.ip-cgnat-close {
    position: sticky;
    top: 12px;
    float: right;
    z-index: 1;
    margin: 12px;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #777777 !important;
    border-radius: 50% !important;
    background: #262626 !important;
    color: #ffffff !important;
    font-family: Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.ip-cgnat-close:hover,
.ip-cgnat-close:focus {
    background: #444444 !important;
    border-color: #ffffff !important;
}

@media (max-width: 768px) {
    .ip-grid {
        grid-template-columns: 1fr;
    }
    .ip-main {
        font-size: 1.15rem;
    }
}

/* tools/mac-lookup.php */
.mac-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}

.mac-widget * {
    box-sizing: border-box;
    text-decoration: none !important;
}

.mac-description {
    color: #a0a0a0 !important;
    margin: 0 0 16px !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
}

/* Kort og rammer basert på bildet */
.mac-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mac-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #333333;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mac-card-body {
    padding: 24px;
    overflow-x: auto;
}

/* Input felt (beholdt mørk #121212 fra bildet) */
.mac-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mac-input {
    flex: 1;
    min-width: 260px;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}

.mac-input:focus {
    border-color: #2e6b4f !important;
}

.mac-input::placeholder {
    color: #a0a0a0 !important;
    opacity: 1;
}

/* Knapp (oppdatert til grønn) */
.mac-btn {
    background: #2e6b4f;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.mac-btn:hover {
    background: #23533d;
}

/* Tabell for resultater */
.mac-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.mac-table td {
    padding: 14px 0;
    border-bottom: 1px solid #262626;
    color: #e0e0e0 !important;
    word-break: break-all;
}

.mac-table tr:last-child td {
    border-bottom: none;
}

.mac-table td:first-child {
    width: 220px;
    min-width: 220px;
    color: #a0a0a0 !important;
    font-weight: 500;
    white-space: nowrap;
    word-break: normal;
}

/* Tekstfremheving */
.mac-highlight {
    color: #4f6c8c !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Feilmelding */
.mac-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5 !important;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

/* Spinner og overlay */
#mac-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #e0e0e0;
}

.mac-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(224,224,224,0.1), rgba(224,224,224,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: mac-spin 0.8s linear infinite;
}

@keyframes mac-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .mac-input-group { flex-direction: column; }
    .mac-btn { width: 100%; }
    .mac-table td:first-child {
        width: 180px;
        min-width: 180px;
        font-size: 0.95rem;
    }
}

/* tools/network-test.php */
.net-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}

.net-widget * {
    box-sizing: border-box;
    text-decoration: none !important;
}

/* Header */
.net-header {
    text-align: center;
    margin-bottom: 25px;
}

.net-header p {
    color: #a0a0a0 !important;
    margin: 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
}

/* Kort */
.net-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.net-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #333333;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.net-card-body {
    padding: 24px;
    overflow-x: auto;
}

.net-form-group { display: flex; flex-direction: column; gap: 15px; }
.net-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Input felt */
.net-input {
    flex: 1;
    min-width: 260px;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}

.net-input:focus {
    border-color: #2e6b4f !important;
}

.net-input::placeholder {
    color: #a0a0a0 !important;
    opacity: 1;
}

.net-radio-group { display: flex; gap: 20px; margin-bottom: 5px; font-size: 0.95rem; flex-wrap: wrap; }
.net-radio-group label { cursor: pointer; display: flex; align-items: center; gap: 6px; color: #e0e0e0 !important; font-weight: 500; }

.net-sub-options {
    background: #121212;
    border: 1px solid #333333;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #e0e0e0 !important;
}

.net-sub-options label {
    cursor: pointer;
    color: #e0e0e0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Knapp */
.net-btn {
    background: #2e6b4f;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.net-btn:hover {
    background: #23533d;
}

/* Tabell */
.net-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.net-table th {
    color: #a0a0a0 !important;
    font-weight: 600;
    padding-bottom: 12px;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.net-table td {
    padding: 14px 0;
    border-bottom: 1px solid #262626;
    color: #e0e0e0 !important;
    text-align: left;
    word-break: break-all;
}

.net-table tr:last-child td {
    border-bottom: none;
}

.net-table td:first-child {
    width: 40%;
    padding-right: 20px;
}

/* Status-merker / pille-elementer */
.net-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.net-badge-clean {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac !important;
}

.net-badge-listed {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
}

.net-badge-v4 {
    background: rgba(46, 107, 79, 0.15);
    border: 1px solid rgba(46, 107, 79, 0.3);
    color: #86efac !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.net-badge-v6 {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #ddd6fe !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* IP-tag og lenker med beholdt farge og understrekning ved hover */
.net-ip-tag {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    font-weight: 600;
    text-decoration: none !important;
}
.net-ip-tag:hover {
    color: inherit !important;
    text-decoration: underline !important;
}

/* Klikkbar IP i terminalen som beholder terminalfargen og kun får understrek ved hover */
.net-terminal-ip {
    color: #86efac !important;
    text-decoration: none !important;
}
.net-terminal-ip:hover {
    color: #86efac !important;
    text-decoration: underline !important;
}

/* Oppsummeringsboks */
.net-summary {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.net-summary-clean {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac !important;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.net-summary-listed {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5 !important;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.net-error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5 !important;
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

/* Lenker i tabell */
.net-table a {
    color: inherit !important;
    font-weight: normal !important;
    text-decoration: none !important;
}
.net-table a:hover {
    color: inherit !important;
    text-decoration: underline !important;
}

/* Terminal og Kode-blokker */
.net-terminal-output {
    background: #0d0d0d;
    border: 1px solid #262626;
    border-radius: 6px;
    padding: 16px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    color: #86efac !important;
    font-size: 0.92rem;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
    margin-top: 10px;
}

.net-cmd-block {
    background: #121212 !important;
    border: 1px solid #262626;
    border-radius: 6px;
    margin-top: 15px;
    overflow: hidden;
}
.net-cmd-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #262626 !important;
    padding: 8px 12px;
    border-bottom: 1px solid #333333;
}
.net-cmd-os-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #a0a0a0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.net-teams-copy-btn {
    background: #2e6b4f !important;
    border: 0;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.net-teams-copy-btn:hover {
    background: #23533d !important;
}
.net-teams-copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor !important;
}
.net-cmd-content {
    padding: 12px 16px;
    margin: 0;
    overflow-x: auto;
    background: #121212 !important;
}
.net-cmd-content code {
    font-family: Consolas, Monaco, "Courier New", monospace;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 0.92rem;
    white-space: pre;
}

/* Spinner og overlay */
#net-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #e0e0e0;
}

.net-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(224,224,224,0.1), rgba(224,224,224,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: net-spin 0.8s linear infinite;
}

@keyframes net-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .net-input-group { flex-direction: column; }
    .net-btn { width: 100%; }
}

/* tools/port-scan.php */
.port-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}
.port-widget * { box-sizing: border-box; }

/* Kort og paneler */
.port-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.port-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #333333;
}
.port-card-body {
    padding: 24px;
    overflow-x: auto;
}

.port-description {
    color: #a0a0a0 !important;
    margin: 0 0 20px !important;
    font-size: 1.05rem;
    line-height: 1.5;
}

.port-form-group { display: flex; flex-direction: column; gap: 15px; }
.port-input-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inndatafelt (Mørk #121212) */
.port-input {
    flex: 2;
    min-width: 200px;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}
.port-input:focus { border-color: #2e6b4f !important; }
.port-input-small { flex: 1; min-width: 130px; }
.port-input::placeholder { color: #a0a0a0 !important; opacity: 1; }

.port-radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.port-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #121212 !important;
    border: 1px solid #333333;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #e0e0e0 !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.port-radio-option:hover {
    border-color: #2e6b4f;
    background: #17261e !important;
}
.port-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2e6b4f;
    cursor: pointer;
    margin: 0;
}

/* Knapper */
.port-btn {
    background: #2e6b4f;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.port-btn:hover { background: #23533d; }

/* Tabeller */
.port-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.port-table td, .port-table th { padding: 12px 0; border-bottom: 1px solid #262626; color: #e0e0e0 !important; text-align: left; }
.port-table th { color: #a0a0a0 !important; font-weight: 600; padding-bottom: 12px; font-size: 0.9rem; border-bottom: 1px solid #333333; }
.port-table tr:last-child td { border-bottom: none; }
.port-table td:first-child { width: 100px; color: #ffffff !important; font-weight: 600; }

/* Highlighted IP tag */
.port-ip-tag {
    background: #121212;
    color: #2e6b4f !important;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: Consolas, Monaco, monospace;
    border: 1px solid #333333;
    font-weight: 600;
    display: inline-block;
    margin: 2px 0;
    text-decoration: none !important;
}
.port-ip-tag:hover {
    color: #2e6b4f !important;
    text-decoration: underline !important;
}

/* IPv4 & IPv6 Badges */
.net-badge-v4 {
    background: rgba(46, 107, 79, 0.15);
    border: 1px solid rgba(46, 107, 79, 0.3);
    color: #8ce0b4 !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.net-badge-v6 {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #ddd6fe !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Badges for status */
.port-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}
.port-badge-open {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac !important;
}
.port-badge-closed {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
}
.port-badge-na {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333333;
    color: #a0a0a0 !important;
}
.port-protocol-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}
.port-protocol-status > span:first-child {
    min-width: 32px;
    color: #a0a0a0;
    font-size: 0.8rem;
}

.port-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

/* Loading Overlay */
#port-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #e0e0e0;
}
.port-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(224,224,224,0.1), rgba(224,224,224,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: port-spin 0.8s linear infinite;
}
@keyframes port-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .port-input-row { flex-direction: column; }
    .port-btn { width: 100%; }
    .port-radio-group { flex-direction: column; gap: 8px; }
    .port-radio-option { width: 100%; }
}

/* tools/subnet.php */
.subnet-widget {
    max-width: 1100px;
    margin: 30px auto !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #e0e0e0 !important;
    display: block;
}
.subnet-widget * { box-sizing: border-box; }

.subnet-card {
    background: #1a1a1a;
    color: #e0e0e0 !important;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.subnet-card-header {
    padding: 16px 20px;
    background: #262626;
    color: #e0e0e0 !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #333333;
}
.subnet-card-body { padding: 24px; overflow-x: auto; }

.subnet-input {
    width: 100%;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    transition: border-color 0.2s;
}
.subnet-input:focus { border-color: #4f6c8c !important; }
.subnet-input::placeholder { color: #a0a0a0 !important; opacity: 1; }

.subnet-select {
    width: 100%;
    background: #121212 !important;
    border: 1px solid #333333 !important;
    color: #e0e0e0 !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.05rem;
    outline: none;
    max-height: 250px;
}
.subnet-select option {
    padding: 8px 12px;
    background: #121212;
    color: #e0e0e0;
}

.subnet-btn {
    background: #4f6c8c;
    color: #ffffff !important;
    border: 0;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    width: 100%;
}
.subnet-btn:hover { background: #3f5873; }
.subnet-btn-green { background: #2e6b4f; }
.subnet-btn-green:hover { background: #23533d; }

.subnet-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.subnet-table td, .subnet-table th { padding: 12px 14px; border-bottom: 1px solid #262626; color: #e0e0e0 !important; text-align: left; }
.subnet-table th { color: #a0a0a0 !important; font-weight: 600; border-bottom: 1px solid #333333; }
.subnet-table tr:last-child td { border-bottom: none; }

.subnet-table th:first-child,
.subnet-table td:first-child {
    width: 50px;
    text-align: center;
    color: #a0a0a0 !important;
    font-weight: 500;
}

.subnet-highlight { color: #60a5fa !important; font-weight: 600; }
.subnet-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; display: inline-block; }
.subnet-badge-v4 { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd !important; }
.subnet-badge-v6 { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); color: #c084fc !important; }

.subnet-ip-link {
    color: inherit !important;
    text-decoration: none !important;
}
.subnet-ip-link:hover {
    text-decoration: underline !important;
}

.subnet-error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5 !important;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
}

.subnet-warning-box {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fef08a !important;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}
.subnet-warning-box details {
    margin-top: 8px;
    cursor: pointer;
}
.subnet-warning-box summary {
    font-weight: 600;
    color: #ffffff;
    outline: none;
}
.subnet-warning-box .details-content {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #fef08a;
    line-height: 1.4;
    border-top: 1px solid rgba(234, 179, 8, 0.2);
    padding-top: 8px;
}

.subnet-info-box {
    background: #262626;
    border-left: 4px solid #4f6c8c;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #a0a0a0;
}
.subnet-info-box h4 { margin: 0 0 8px 0; color: #e0e0e0; font-size: 1.05rem; }
.subnet-info-box strong { color: #e0e0e0; }
.subnet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

#subnet-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #e0e0e0;
}
.subnet-macos-spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(224,224,224,0.1), rgba(224,224,224,1));
    -webkit-mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    mask: radial-gradient(farthest-side, transparent 65%, black 66%);
    animation: subnet-spin 0.8s linear infinite;
}
@keyframes subnet-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 950px) {
    .subnet-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    #masthead .site-header-wrapper > .menu-toggle {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-list li a {
        font-size: 0.9rem;
    }

    #masthead .site-header-wrapper > .menu-toggle span {
        display: block !important;
        width: 28px;
        height: 3px;
        margin: 5px 0;
        background-color: #ffffff !important;
    }
}

.menu-toggle-icon {
    display: block;
    overflow: visible;
}

.site-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.menu-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu-list li a,
.current-lang,
.lang-menu a {
    font-family: "Playfair Display", serif;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.menu-list li a {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.menu-list li.is-current a {
    border-bottom-color: #ffffff;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 999;
    min-width: 180px;
    margin-top: 5px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a1a1a;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    list-style: none;
}

.lang-menu.is-open {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.daily-verses {
    width: 100%;
    margin-bottom: 20px;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    line-height: 1.6;
}

.privacy-title {
    margin-bottom: 10px;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 350;
}

.privacy-updated {
    margin-bottom: 30px;
    color: #888888;
    font-size: 0.9rem;
}

.privacy-section-title {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
}

.privacy-contact-link {
    color: #ffffff;
    text-decoration: underline;
}

.privacy-external-link {
    color: #c1c1c1;
    text-decoration: underline;
}

.privacy-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.rbl-muted-normal {
    color: #a0a0a0;
    font-weight: normal;
}

.rbl-small-ip {
    font-size: 0.85rem;
}

.rbl-result-name {
    color: #e0e0e0;
}

.rbl-muted,
.certificate-muted {
    color: #a0a0a0;
}

.certificate-error {
    margin-top: 0;
}

.certificate-value {
    color: #e0e0e0;
}

.net-muted {
    color: #a0a0a0 !important;
}

.net-hops-note {
    display: block;
    margin-bottom: 6px;
    color: #a0a0a0;
}

.net-run-yourself {
    margin-top: 20px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
}

.port-input[hidden],
.subnet-mode-fields[hidden] {
    display: none !important;
}

.port-result-meta {
    margin-top: 6px;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: normal;
}

.subnet-help-text {
    margin-top: 0;
    margin-bottom: 14px;
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.subnet-form-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subnet-mode-fields:not([hidden]) {
    display: block;
}

.subnet-section-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #333333;
}

.subnet-search {
    margin-bottom: 12px;
}

.subnet-search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.subnet-suggestion-label {
    color: #a0a0a0;
    font-size: 0.95rem;
}

.subnet-suggestion-count {
    color: #60a5fa;
}

.subnet-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.subnet-info-list {
    margin: 8px 0 0;
    padding-left: 20px;
}

.subnet-info-summary {
    margin: 8px 0 0;
}

.email-muted-small {
    color: #a0a0a0 !important;
    font-size: 0.9rem;
}

.email-form-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-status-good {
    color: #34d399 !important;
}

.email-status-bad {
    color: #f87171 !important;
}

.email-status-failure {
    color: #fca5a5 !important;
}

.email-status-bold {
    font-weight: bold;
}

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

.email-report-table {
    margin-bottom: 25px;
}

.email-report-label {
    width: 25%;
    color: #a0a0a0 !important;
}

.email-muted-cell {
    color: #a0a0a0 !important;
}

.email-section-header {
    padding: 12px 16px;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.email-failure-header {
    padding: 12px 16px;
    margin-top: 25px;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.spf-info-spaced {
    margin-bottom: 16px;
}

.spf-info-top,
.spf-grid-top {
    margin-top: 16px;
}

.spf-buttons-compact {
    margin-top: 10px;
}

.domain-text-danger {
    color: #ef4444;
}

.domain-text-info {
    color: #60a5fa;
}

.domain-text-warning {
    color: #facc15;
}

.domain-text-success {
    color: #22c55e;
}

.domain-text-muted {
    color: #a0a0a0;
}

.domain-text-semibold {
    font-weight: 600;
}

.domain-text-bold {
    font-weight: 700;
}

.domain-text-small {
    font-size: 13px;
}

.domain-widget .domain-check-card {
    margin: 15px 0;
    padding: 14px;
    border: 1px solid;
    border-radius: 6px;
}

.domain-widget .domain-check-card.is-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.10);
}

.domain-widget .domain-check-card.is-warning {
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(250, 204, 21, 0.10);
}

.domain-widget .domain-check-status {
    margin: 0;
    font-weight: 600;
    line-height: 1.6;
}

.domain-widget .domain-check-status.is-ok {
    color: #86efac;
}

.domain-widget .domain-check-status.is-warning {
    color: #fde68a;
}

.domain-widget .domain-check-list {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.7;
}

.domain-widget .domain-guide-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333333;
}

.domain-widget .domain-guide-title,
.domain-widget .domain-guide-subtitle,
.domain-widget .domain-guide-box-title {
    margin-top: 0;
    color: #60a5fa;
}

.domain-widget .domain-guide-title {
    font-size: 16px;
}

.domain-widget .domain-guide-description {
    margin-bottom: 10px;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.domain-widget .domain-guide-box {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #333333;
    border-radius: 6px;
    background: #121212;
    font-size: 14px;
    line-height: 1.6;
}

.domain-widget .domain-guide-box.is-open {
    display: block;
}

.domain-widget .domain-guide-box-title {
    font-size: 15px;
}

.domain-widget .domain-guide-step,
.domain-widget .domain-guide-paragraph {
    margin-bottom: 12px;
    color: #d0d0d0;
}

.domain-widget .domain-guide-paragraph-spaced {
    margin: 15px 0 12px;
}

.domain-widget .domain-guide-list {
    margin: 0 0 15px 20px;
    padding: 0;
    color: #a0a0a0;
    font-size: 13px;
    line-height: 1.6;
}

.domain-widget .domain-guide-list-item {
    margin-bottom: 6px;
}

.domain-widget .domain-guide-subtitle {
    margin: 16px 0 8px;
    font-size: 14px;
}

.domain-widget .domain-guide-list-item-spaced {
    margin-top: 8px;
    margin-bottom: 8px;
}

.domain-widget .domain-guide-list-item-plain {
    list-style: none;
}

.domain-widget .domain-guide-list-item-top {
    margin-top: 8px;
}

.domain-widget .domain-provider-card,
.domain-widget .domain-result-card {
    margin: 30px 0 20px;
    padding: 20px;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.domain-widget .domain-provider-title {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
    color: #e0e0e0;
    font-size: 22px;
    font-weight: 600;
}

.domain-widget .domain-provider-title-danger {
    color: #fca5a5;
}

.domain-widget .domain-provider-description {
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.domain-widget .domain-provider-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    line-height: 1.8;
}

.domain-widget .domain-provider-list-item {
    padding: 6px 0;
}

.domain-widget .domain-no-mail-warning {
    margin: 20px 0;
    padding: 12px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
}

.domain-widget .domain-result-card {
    margin-top: 30px;
    margin-bottom: 20px;
}

.domain-widget .domain-result-name {
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 28px;
    font-weight: 700;
    word-break: break-word;
}

.domain-widget .domain-table-scroll {
    overflow-x: auto;
}

.domain-widget .domain-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.domain-widget .domain-records-heading-row {
    border-bottom: 1px solid #333333;
    background: #262626;
}

.domain-widget .domain-records-heading-cell {
    padding: 12px;
    color: #a0a0a0;
    font-weight: 500;
    text-align: left;
}

.domain-widget .domain-records-row {
    border-bottom: 1px solid #262626;
    color: #e0e0e0;
}

.domain-widget .domain-records-cell-nowrap,
.domain-widget .domain-records-cell-data {
    padding: 10px 12px;
    vertical-align: top;
}

.domain-widget .domain-records-cell-nowrap {
    white-space: nowrap;
}

.domain-widget .domain-records-cell-data {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.domain-widget .domain-records-section-row {
    border-top: 2px solid #333333;
    background: #262626;
}

.domain-widget .domain-records-section-title {
    padding: 12px;
    color: #60a5fa;
    font-size: 16px;
    text-align: left;
}

.domain-widget .domain-form-page {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px;
    color: #e0e0e0;
    font-family: system-ui, -apple-system, sans-serif;
}

.domain-widget .domain-form-card {
    box-sizing: border-box;
    width: 100%;
    padding: 24px;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.domain-widget .domain-form-error {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 6px;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    text-align: center;
}

.domain-widget .domain-form-center {
    text-align: center;
}

.domain-widget .domain-form-input {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #333333 !important;
    border-radius: 6px;
    background: #121212 !important;
    color: #e0e0e0 !important;
    text-align: center;
    outline: none;
}

.domain-widget .domain-form-input-primary {
    margin-bottom: 12px;
    padding: 12px 16px;
    font-size: 18px;
}

.domain-widget .domain-form-input-host {
    margin-bottom: 6px;
    padding: 10px 16px;
    font-size: 15px;
}

.domain-widget .domain-form-input-selector {
    margin-bottom: 15px;
    padding: 10px 16px;
    font-size: 15px;
}

.domain-widget details.advanced-options {
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
}

.domain-widget details.advanced-options > summary {
    width: fit-content;
    margin: 0 0 12px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.domain-widget details.advanced-options > summary:hover {
    border-color: transparent;
    background: transparent;
    color: #ffffff;
}

.domain-widget .auth-score-ring.score-0 { --score-angle: 0deg; }
.domain-widget .auth-score-ring.score-1 { --score-angle: 36deg; }
.domain-widget .auth-score-ring.score-2 { --score-angle: 72deg; }
.domain-widget .auth-score-ring.score-3 { --score-angle: 108deg; }
.domain-widget .auth-score-ring.score-4 { --score-angle: 144deg; }
.domain-widget .auth-score-ring.score-5 { --score-angle: 180deg; }
.domain-widget .auth-score-ring.score-6 { --score-angle: 216deg; }
.domain-widget .auth-score-ring.score-7 { --score-angle: 252deg; }
.domain-widget .auth-score-ring.score-8 { --score-angle: 288deg; }
.domain-widget .auth-score-ring.score-9 { --score-angle: 324deg; }
.domain-widget .auth-score-ring.score-10 { --score-angle: 360deg; }
.domain-widget .auth-score-ring.is-good { --score-color: #34d399; }
.domain-widget .auth-score-ring.is-warning { --score-color: #facc15; }
.domain-widget .auth-score-ring.is-bad { --score-color: #f87171; }

#rbl-loading-overlay.is-visible,
#net-loading-overlay.is-visible,
#net_loading_overlay.is-visible,
#mac-loading-overlay.is-visible,
#port-loading-overlay.is-visible,
#subnet-loading-overlay.is-visible {
    display: flex;
}

.copy-btn.is-copied {
    background: #2e6b4f;
}

.net-teams-copy-btn.is-copied {
    background: #23533d !important;
}

.ip-modal-open {
    overflow: hidden;
}

.copy-light .auth-summary {
    background: #ffffff !important;
    color: #202124 !important;
    border-color: #d4d7dc !important;
}

.copy-light .auth-summary h3,
.copy-light .auth-summary-domain,
.copy-light .auth-score-value,
.copy-light .auth-score-explanation h4 {
    color: #202124 !important;
}

.copy-light .auth-score,
.copy-light .auth-status-card {
    background: #f7f8fa !important;
    border-color: #d4d7dc !important;
}

.copy-light .auth-score-ring::before {
    background: #f7f8fa !important;
}

.copy-light .auth-score-ring {
    --auth-score-track-color: #d4d7dc;
}

.copy-light .auth-status-card p,
.copy-light .auth-score-explanation ul,
.copy-light .auth-score-explanation p,
.copy-light .auth-status-details li {
    color: #424750 !important;
}

.copy-light .auth-score-label,
.copy-light .auth-status-label {
    color: #667085 !important;
}

.copy-light .auth-score-explanation {
    border-top-color: #d4d7dc !important;
}

.auth-summary-export-wrapper {
    position: fixed;
    top: 0;
    left: -100000px;
    z-index: -1;
    width: 1100px;
    max-width: calc(100vw - 80px);
}
