/* DNS Checker – Public Styles */
.dns-checker-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 640px;
    margin: 0 auto;
    padding: 8px 0;
}

.dns-checker-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.dns-checker-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px;
    line-height: 1.25;
}

.dns-checker-description {
    color: #4a5568;
    font-size: 0.95rem;
    margin: 0 0 28px;
    line-height: 1.6;
}

.dns-checker-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dns-checker-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dns-checker-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dns-checker-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.dns-checker-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    color: #2d3748;
    background: #f7fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    min-width: 0;
}

.dns-checker-input:focus {
    border-color: #4c51bf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.12);
}

.dns-checker-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #4c51bf;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}

.dns-checker-button:hover {
    background: #434190;
}

.dns-checker-button:active {
    transform: scale(0.98);
}

.dns-checker-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
.dns-checker-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dns-spin 0.7s linear infinite;
}

.dns-checker-button.is-loading .dns-checker-spinner {
    display: inline-block;
}

.dns-checker-button.is-loading .dns-checker-btn-text {
    display: none;
}

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

/* Result box */
.dns-checker-result {
    animation: dns-fadeIn 0.3s ease;
}

@keyframes dns-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Alerts */
.dns-checker-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.dns-checker-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.dns-checker-alert-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.dns-checker-alert-text {
    font-weight: 500;
}

/* Success */
.dns-checker-alert--success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #22543d;
}

/* Replaced */
.dns-checker-alert--replaced {
    background: #ebf4ff;
    border: 1px solid #bee3f8;
    color: #2a4365;
}

/* Unknown */
.dns-checker-alert--unknown {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    color: #7b341e;
}

/* New DNS display */
.dns-checker-new-dns-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 10px 14px;
    flex-wrap: wrap;
}

.dns-checker-new-dns-value {
    font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    font-size: 0.9rem;
    color: #2b6cb0;
    font-weight: 700;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

/* Copy button */
.dns-checker-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
    white-space: nowrap;
}

.dns-checker-copy-btn:hover {
    background: #2c5282;
}

.dns-checker-copy-btn.copied {
    background: #38a169;
}

/* WhatsApp button */
.dns-checker-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #25d366;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 2px;
    transition: background 0.18s;
    width: fit-content;
}

.dns-checker-whatsapp-btn:hover {
    background: #128c7e;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .dns-checker-card {
        padding: 24px 18px;
    }

    .dns-checker-input-row {
        flex-direction: column;
    }

    .dns-checker-button {
        justify-content: center;
    }

    .dns-checker-new-dns-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .dns-checker-copy-btn {
        width: 100%;
        justify-content: center;
    }
}
