.edns-wrap {
    --edns-bg: #0f0f12;
    --edns-card: #17171c;
    --edns-card-2: #1d1d24;
    --edns-border: rgba(255, 255, 255, 0.08);
    --edns-text: #f4f4f5;
    --edns-muted: #b4b4be;
    --edns-red: #d10f2f;
    --edns-red-2: #ff375f;
    --edns-shadow: 0 20px 40px rgba(0,0,0,.35);
    color: var(--edns-text);
    margin: 0 auto;
    max-width: 1180px;
}

.edns-wrap * {
    box-sizing: border-box;
}

.edns-hero,
.edns-panel {
    background:
        radial-gradient(circle at top right, rgba(209, 15, 47, 0.18), transparent 28%),
        linear-gradient(180deg, var(--edns-card), var(--edns-bg));
    border: 1px solid var(--edns-border);
    border-radius: 24px;
    box-shadow: var(--edns-shadow);
    padding: 32px;
    margin: 0 0 28px;
}

.edns-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 55, 95, 0.35);
    background: rgba(255, 55, 95, 0.08);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 18px;
}

.edns-hero h1,
.edns-panel h2 {
    color: var(--edns-text);
    margin: 0 0 12px;
    line-height: 1.1;
}

.edns-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.edns-subtitle,
.edns-note,
.edns-panel p,
.edns-tips {
    color: var(--edns-muted);
}

.edns-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(180px, .6fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 24px;
}

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

.edns-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--edns-text);
}

.edns-field input,
.edns-field select {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.25);
    color: var(--edns-text);
    padding: 0 16px;
    font-size: 16px;
    width: 100%;
}

.edns-field input:focus,
.edns-field select:focus {
    outline: none;
    border-color: rgba(255, 55, 95, 0.8);
    box-shadow: 0 0 0 4px rgba(255, 55, 95, 0.14);
}

.edns-button,
.edns-copy-btn {
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    padding: 0 22px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--edns-red), var(--edns-red-2));
    box-shadow: 0 10px 24px rgba(209, 15, 47, .35);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.edns-button:hover,
.edns-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(209, 15, 47, .42);
}

.edns-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.edns-status {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--edns-text);
}

.edns-status.is-error {
    background: rgba(209, 15, 47, .12);
    border-color: rgba(209, 15, 47, .3);
}

.edns-status.is-success {
    background: rgba(255,255,255,.05);
}

.edns-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
}

.edns-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,.12);
}

.edns-table th,
.edns-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    vertical-align: top;
    color: var(--edns-text);
}

.edns-table th {
    background: rgba(255,255,255,.04);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.edns-table code,
.edns-tips code {
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 3px 7px;
    border-radius: 8px;
    word-break: break-word;
}

.edns-meta-item {
    display: block;
    margin-bottom: 6px;
    color: var(--edns-muted);
}

.edns-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.edns-cards article {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
}

.edns-cards strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.edns-empty {
    padding: 18px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 16px;
    color: var(--edns-muted);
}

@media (max-width: 900px) {
    .edns-grid,
    .edns-cards {
        grid-template-columns: 1fr;
    }

    .edns-panel-head {
        flex-direction: column;
        align-items: stretch;
    }
}
