* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.top-bar {
    background: #0b1120;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

/* Brand: logo only */

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 80px;        /* adjust size if needed */
    width: auto;
    display: block;
}

/* Navigation links as pill buttons */

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links a {
    padding: 6px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(148,163,184,0.25);
    background: rgba(255,255,255,0.03);
    transition: all 0.18s ease;
}

/* Hover effect */
.nav-links a:hover {
    text-decoration: none; /* override global underline */
    color: #ffffff;
    border-color: rgba(56,189,248,0.5);
    background: rgba(56,189,248,0.12);
    box-shadow: 0 0 12px rgba(56,189,248,0.25);
}

/* Active page highlight */
.nav-links a.active {
    color: white;
    border-color: rgba(56,189,248,1);
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow:
        0 0 12px rgba(56,189,248,0.5),
        inset 0 0 6px rgba(255,255,255,0.2);
}

/* HERO / INTRO */

.hero {
    padding: 32px 0 12px;
    text-align: left;
}

.hero h1 {
    font-size: 1.8rem;
    color: #f9fafb;
    margin-bottom: 8px;
}

.hero p {
    color: #9ca3af;
    max-width: 560px;
}

/* HOME – TOOL CARDS */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 10px 0 32px;
}

.tool-card {
    background: radial-gradient(circle at top left, #0f172a, #020617 65%);
    border-radius: 14px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);
}

.tool-card h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.tool-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* Home card button */

.tool-link-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
}

.tool-link-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.6);
}

/* SINGLE TOOL PAGES */

.page-wrap {
    max-width: 820px;
    margin: 40px auto 50px;
    background: radial-gradient(circle at top left, #0f172a, #020617 65%);
    border-radius: 18px;
    padding: 26px 24px 28px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.9);
}

.page-wrap h1 {
    font-size: 1.9rem;
    margin-bottom: 4px;
    color: #f9fafb;
}

.page-intro {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* UNIVERSAL FORM STYLE */

.single-tool-form {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.single-tool-form label {
    flex: 1 1 260px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.single-tool-form label input[type="text"] {
    margin-top: 4px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.single-tool-form label input[type="text"]::placeholder {
    color: #6b7280;
}

.single-tool-form label input[type="text"]:focus {
    border-color: #38bdf8;
    background: #020617;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.7),
        0 0 0 6px rgba(56, 189, 248, 0.18);
}

/* BUTTONS */

button {
    cursor: pointer;
}

.single-tool-form button,
.tool-card button {
    padding: 11px 24px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.55);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.1s ease;
    white-space: nowrap;
}

.single-tool-form button:hover,
.tool-card button:hover {
    filter: brightness(1.05);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.7);
}

.single-tool-form button:active,
.tool-card button:active {
    transform: translateY(1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.9);
}

/* Loading state (used by ui.js) */

.single-tool-form button.btn-loading {
    opacity: 0.9;
}

/* RESULT CARDS */

.result {
    margin-top: 16px;
    padding: 14px 16px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, #020617, #020617 70%);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

/* Online = green glow */
.result-online {
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.35),
        0 18px 35px rgba(15, 23, 42, 0.9);
}

/* Offline = red glow */
.result-offline {
    border-color: rgba(248, 113, 113, 0.9);
    box-shadow:
        0 0 22px rgba(239, 68, 68, 0.4),
        0 18px 35px rgba(15, 23, 42, 0.9);
}

/* Neutral (errors, etc.) */
.result-neutral {
    border-color: rgba(148, 163, 184, 0.6);
}

.result p {
    margin-bottom: 4px;
}

.result .error {
    color: #fecaca;
}

.result .muted {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Status dot */

.status-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    margin-right: 6px;
    transform: translateY(1px);
}

.dot-online {
    background: #22c55e;
}

.dot-offline {
    background: #ef4444;
}

/* WHOIS BLOCK */

.whois-block {
    margin-top: 6px;
    padding: 8px;
    background: #020617;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    white-space: pre-wrap;  /* wrap long lines */
    overflow: visible;      /* no internal scrollbar */
}

/* DNS TABLE */

.table-wrap {
    margin-top: 6px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

thead {
    background: rgba(15, 23, 42, 0.9);
}

th,
td {
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

th {
    text-align: left;
    color: #cbd5e1;
}

/* STATUS SAMPLE BOX (Top websites example) */

.status-sample-box {
    margin-top: 18px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.6);
    background: radial-gradient(circle at top left, #020617, #020617 75%);
    padding: 12px 14px 10px;
}

.status-sample-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.status-sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 16px;
}

.status-sample-item {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.status-note {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-left: 18px;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 6px;
}

.dot-up {
    background: #22c55e;
}

.dot-down {
    background: #f97373;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    padding: 14px 0 18px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.site-footer a {
    color: #38bdf8;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 640px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .hero {
        padding-top: 20px;
    }

    .page-wrap {
        margin: 24px auto 36px;
        padding: 18px 14px 22px;
    }

    .single-tool-form {
        align-items: stretch;
    }

    .single-tool-form button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .donate-btn {
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 16px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.4);
    transition: 0.2s ease;
}

.donate-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.6);
}

}
