* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: #e5e7eb;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.page-wrap {
    min-height: 100vh;
    padding: 40px 20px;
    background:
        radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(14,165,233,0.14), transparent 30%),
        #0f172a;
}

.lookup-card {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.brand-block {
    text-align: center;
    margin-bottom: 28px;
}

.site-logo {
    display: block;
    max-width: 520px;
    width: 100%;
    height: auto;
    margin: 0 auto 18px auto;
}

.brand-block h1 {
    margin: 0 0 8px 0;
    font-size: 34px;
    color: #ffffff;
}

.brand-block p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

.lookup-form {
    margin-bottom: 24px;
}

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

.domain-input {
    flex: 1;
    min-width: 260px;
    height: 56px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 16px;
    padding: 0 18px;
    outline: none;
    transition: all 0.2s ease;
}

.domain-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.lookup-btn {
    height: 56px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.lookup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.lookup-btn:disabled,
.domain-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 15px;
}

.alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.results-wrap {
    margin-top: 24px;
}

.result-section {
    margin-top: 26px;
    padding: 24px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
}

.result-section h2 {
    margin: 0 0 18px 0;
    font-size: 22px;
    color: #ffffff;
}

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

.info-box {
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: 16px;
}

.label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7dd3fc;
    margin-bottom: 2px;
    font-weight: bold;
}

.value {
    display: block;
    font-size: 15px;
    color: #e5e7eb;
    word-break: break-word;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list li {
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    color: #e5e7eb;
    word-break: break-word;
}

.table-wrap {
    overflow-x: auto;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: #0b1220;
    border-radius: 12px;
    overflow: hidden;
}

.result-table th,
.result-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: top;
}

.result-table th {
    background: #111827;
    color: #7dd3fc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-table td {
    color: #e5e7eb;
    font-size: 14px;
    word-break: break-word;
}

.empty-note {
    color: #94a3b8;
    font-size: 15px;
}

.raw-whois {
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    padding: 18px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.7;
    max-height: 480px;
    overflow: auto;
    white-space: normal;
    word-break: break-word;
}

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-panel {
    min-width: 260px;
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex: 0 0 auto;
}

.spinner-lg {
    width: 42px;
    height: 42px;
    border-width: 4px;
}

.loading-text {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.92;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .lookup-card {
        padding: 22px;
    }

    .brand-block h1 {
        font-size: 28px;
    }

    .lookup-btn,
    .domain-input {
        width: 100%;
    }

    .loading-panel {
        min-width: auto;
        width: calc(100vw - 40px);
    }
}
