:root {
    --lookup-bg: #f4f7fb;
    --lookup-surface: rgba(255, 255, 255, .92);
    --lookup-surface-solid: #ffffff;
    --lookup-surface-muted: #f7f9fc;
    --lookup-text: #111827;
    --lookup-muted: #667085;
    --lookup-border: rgba(15, 23, 42, .10);
    --lookup-border-strong: rgba(15, 23, 42, .16);
    --lookup-primary: #2563eb;
    --lookup-primary-hover: #1d4ed8;
    --lookup-primary-soft: rgba(37, 99, 235, .10);
    --lookup-success: #0f9f6e;
    --lookup-success-soft: rgba(15, 159, 110, .11);
    --lookup-warning: #c27803;
    --lookup-warning-soft: rgba(194, 120, 3, .12);
    --lookup-danger: #dc2626;
    --lookup-danger-soft: rgba(220, 38, 38, .10);
    --lookup-shadow: 0 18px 55px rgba(15, 23, 42, .08);
    --lookup-radius-xl: 24px;
    --lookup-radius-lg: 18px;
    --lookup-radius-md: 13px;
}

body.dark,
body[data-theme="dark"] {
    --lookup-bg: #080d17;
    --lookup-surface: rgba(17, 24, 39, .88);
    --lookup-surface-solid: #111827;
    --lookup-surface-muted: #151e2d;
    --lookup-text: #eef2f8;
    --lookup-muted: #9ba8bb;
    --lookup-border: rgba(255, 255, 255, .10);
    --lookup-border-strong: rgba(255, 255, 255, .18);
    --lookup-primary: #60a5fa;
    --lookup-primary-hover: #93c5fd;
    --lookup-primary-soft: rgba(96, 165, 250, .13);
    --lookup-success: #34d399;
    --lookup-success-soft: rgba(52, 211, 153, .12);
    --lookup-warning: #fbbf24;
    --lookup-warning-soft: rgba(251, 191, 36, .12);
    --lookup-danger: #f87171;
    --lookup-danger-soft: rgba(248, 113, 113, .12);
    --lookup-shadow: 0 22px 65px rgba(0, 0, 0, .28);
}

.lookup-main {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
}

.lookup-page {
    position: relative;
    padding: 176px 0 80px;
    color: var(--lookup-text);
    background:
        radial-gradient(circle at 10% 8%, rgba(37, 99, 235, .10), transparent 28%),
        radial-gradient(circle at 90% 2%, rgba(14, 165, 233, .08), transparent 24%),
        var(--lookup-bg);
    transition: background-color .25s ease, color .25s ease;
    overflow: hidden;
}

.lookup-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--lookup-border) 1px, transparent 1px), linear-gradient(90deg, var(--lookup-border) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .22), transparent 38%);
    opacity: .24;
}

.lookup-container {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
}

.lookup-hero {
    position: relative;
    padding: 38px 32px 30px;
    text-align: center;
    border: 1px solid var(--lookup-border);
    border-radius: 30px;
    background: var(--lookup-surface);
    box-shadow: var(--lookup-shadow);
    backdrop-filter: blur(16px);
}

.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 72px;
    height: 38px;
    padding: 4px;
    border: 1px solid var(--lookup-border);
    border-radius: 999px;
    color: var(--lookup-muted);
    background: var(--lookup-surface-muted);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.theme-toggle:hover { transform: translateY(-1px); border-color: var(--lookup-border-strong); }
.theme-toggle span { position: relative; z-index: 1; line-height: 28px; }
.theme-toggle::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lookup-surface-solid);
    box-shadow: 0 3px 12px rgba(15, 23, 42, .14);
    transition: transform .22s ease;
}
body.dark .theme-toggle::after,
body[data-theme="dark"] .theme-toggle::after { transform: translateX(-34px); }

.lookup-logo img {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin: 0 auto 13px;
}

.lookup-eyebrow {
    margin: 0 0 8px;
    color: var(--lookup-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.lookup-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.35;
    color: var(--lookup-text);
}

.lookup-lead {
    max-width: 720px;
    margin: 11px auto 28px;
    color: var(--lookup-muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.9;
}

.lookup-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    max-width: 830px;
    margin: 0 auto;
    direction: rtl;
}

.lookup-search__field {
    position: relative;
    min-width: 0;
}

.lookup-search__field input {
    width: 100%;
    height: 58px;
    padding: 0 52px 0 44px;
    box-sizing: border-box;
    border: 1px solid var(--lookup-border-strong);
    border-radius: 15px;
    outline: none;
    color: var(--lookup-text);
    background: var(--lookup-surface-solid);
    font: inherit;
    font-size: 15px;
    direction: ltr;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lookup-search__field input::placeholder { color: var(--lookup-muted); opacity: .78; direction: rtl; }
.lookup-search__field input:focus { border-color: var(--lookup-primary); box-shadow: 0 0 0 4px var(--lookup-primary-soft); }
.lookup-search__icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-52%);
    color: var(--lookup-muted);
    font-size: 25px;
    pointer-events: none;
}
.lookup-search__clear {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 50%;
    color: var(--lookup-muted);
    background: var(--lookup-surface-muted);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.lookup-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 58px;
    padding: 0 20px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: var(--lookup-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lookup-search__submit:hover { background: var(--lookup-primary-hover); transform: translateY(-1px); }
.lookup-search__submit:disabled { opacity: .65; cursor: wait; transform: none; }

.lookup-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    min-height: 42px;
    margin-top: 14px;
}

.captcha-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--lookup-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.captcha-check input { position: absolute; opacity: 0; pointer-events: none; }
.captcha-check__box {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--lookup-border-strong);
    border-radius: 6px;
    background: var(--lookup-surface-solid);
    transition: .2s ease;
}
.captcha-check.is-verified input:checked + .captcha-check__box {
    border-color: var(--lookup-success);
    background: var(--lookup-success);
}
.captcha-check.is-verified input:checked + .captcha-check__box::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.captcha-check.is-verifying .captcha-check__box {
    border-color: var(--lookup-primary);
    background: var(--lookup-primary-soft);
}
.captcha-check.is-verifying .captcha-check__box::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 2px solid rgba(37, 99, 235, .22);
    border-top-color: var(--lookup-primary);
    border-radius: 50%;
    animation: lookupCaptchaSpin .72s linear infinite;
}
.captcha-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 20px;
    color: var(--lookup-muted);
    font-size: 13px;
}
.captcha-status.is-success { color: var(--lookup-success); }
.captcha-status.is-error { color: var(--lookup-danger); }
.captcha-status__spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(37, 99, 235, .2);
    border-top-color: var(--lookup-primary);
    border-radius: 50%;
    animation: lookupCaptchaSpin .72s linear infinite;
}
@keyframes lookupCaptchaSpin { to { transform: rotate(360deg); } }

.user-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--lookup-muted);
    font-size: 13px;
}
.copy-inline,
.copy-btn {
    border: 0;
    color: var(--lookup-primary);
    background: transparent;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.copy-inline span { margin-inline-start: 5px; opacity: .65; }
.user-ip-box__value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.user-ip-flag {
    flex: 0 0 auto;
    width: 24px;
    height: 18px;
}

.lookup-notice {
    max-width: 900px;
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--lookup-border);
    border-radius: var(--lookup-radius-md);
    color: var(--lookup-text);
    background: var(--lookup-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    line-height: 1.8;
}
.lookup-notice.is-error { border-color: rgba(220, 38, 38, .25); color: var(--lookup-danger); background: var(--lookup-danger-soft); }
.lookup-notice.is-success { border-color: rgba(15, 159, 110, .25); color: var(--lookup-success); background: var(--lookup-success-soft); }

.lookup-inline-warning {
    margin: 12px 0 14px;
    padding: 12px 15px;
    border: 1px solid rgba(194, 120, 3, .25);
    border-radius: 13px;
    color: var(--lookup-warning);
    background: var(--lookup-warning-soft);
    font-size: 13px;
    line-height: 1.8;
}

.lookup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 130px;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--lookup-border);
    border-radius: var(--lookup-radius-xl);
    color: var(--lookup-muted);
    background: var(--lookup-surface);
    box-shadow: var(--lookup-shadow);
}
.lookup-loading strong { display: block; margin-bottom: 4px; color: var(--lookup-text); }
.lookup-loading span { font-size: 13px; }
.lookup-loading__spinner,
.mini-spinner {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 4px solid var(--lookup-primary-soft);
    border-top-color: var(--lookup-primary);
    border-radius: 50%;
    animation: lookup-spin .75s linear infinite;
}
.mini-spinner { width: 22px; height: 22px; border-width: 3px; }
@keyframes lookup-spin { to { transform: rotate(360deg); } }

.lookup-result { margin-top: 22px; }
.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--lookup-border);
    border-radius: var(--lookup-radius-lg);
    background: var(--lookup-surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.result-head__title { min-width: 0; }
.result-head__title p { margin: 0 0 5px; color: var(--lookup-muted); font-size: 13px; }
.result-head__title h2 { margin: 0; color: var(--lookup-text); font-size: clamp(20px, 3vw, 27px); direction: ltr; overflow-wrap: anywhere; }
.result-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.meta-pill,
.status-pill,
.type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 4px 10px;
    border: 1px solid var(--lookup-border);
    border-radius: 999px;
    color: var(--lookup-muted);
    background: var(--lookup-surface-muted);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}
.status-pill.is-active { border-color: rgba(15, 159, 110, .20); color: var(--lookup-success); background: var(--lookup-success-soft); }
.status-pill.is-warning { border-color: rgba(194, 120, 3, .20); color: var(--lookup-warning); background: var(--lookup-warning-soft); }
.status-pill.is-error { border-color: rgba(220, 38, 38, .20); color: var(--lookup-danger); background: var(--lookup-danger-soft); }

.result-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}
.result-card {
    grid-column: span 4;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--lookup-border);
    border-radius: var(--lookup-radius-lg);
    color: var(--lookup-text);
    background: var(--lookup-surface);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.result-card.is-wide { grid-column: 1 / -1; }
.result-card.is-half { grid-column: span 6; }
.result-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}
.result-card__head h3 { margin: 0; font-size: 17px; }
.result-card__head p { margin: 3px 0 0; color: var(--lookup-muted); font-size: 12px; }
.card-state { display: inline-flex; align-items: center; gap: 7px; color: var(--lookup-muted); font-size: 12px; }

.data-list { width: 100%; margin: 0; }
.data-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    width: 100%;
    column-gap: 28px;
    direction: ltr;
    padding: 10px 0;
    border-bottom: 1px dashed var(--lookup-border);
}
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }
.data-row dt {
    grid-column: 2;
    min-width: 92px;
    color: var(--lookup-muted);
    direction: rtl;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}
.data-row dd {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--lookup-text);
    direction: rtl;
    font-family: inherit;
    font-size: 13.25px;
    font-weight: 700;
    line-height: 1.75;
    letter-spacing: -.01em;
    text-align: left;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "kern" 1, "liga" 1;
}
.data-row dd.ltr {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
}
.data-row dd.is-active-text,
.rdap-status-active { color: var(--lookup-success); }
.data-row dd.is-empty { color: var(--lookup-muted); font-weight: 500; }
.value-with-flag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    direction: rtl;
}
.country-flag { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--lookup-border); }
.ltr { direction: ltr; unicode-bidi: plaintext; }

.ip-list { display: flex; flex-direction: column; gap: 8px; }
.ip-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--lookup-border);
    border-radius: 11px;
    background: var(--lookup-surface-muted);
}
.ip-chip__value { min-width: 0; direction: ltr; overflow-wrap: anywhere; font-size: 13px; font-weight: 760; }
.ip-chip__meta { display: inline-flex; align-items: center; gap: 7px; color: var(--lookup-muted); font-size: 11px; }

.record-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.record-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.record-filter {
    min-height: 31px;
    padding: 4px 11px;
    border: 1px solid var(--lookup-border);
    border-radius: 999px;
    color: var(--lookup-muted);
    background: var(--lookup-surface-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.record-filter.is-active { border-color: var(--lookup-primary); color: var(--lookup-primary); background: var(--lookup-primary-soft); }
.record-count { color: var(--lookup-muted); font-size: 12px; }

.table-wrapper { width: 100%; overflow-x: auto; border: 1px solid var(--lookup-border); border-radius: 14px; }
.dns-table { width: 100%; min-width: 790px; border-collapse: collapse; table-layout: auto; direction: rtl; }
.dns-table th,
.dns-table td { padding: 12px 13px; border-bottom: 1px solid var(--lookup-border); text-align: right; vertical-align: top; font-size: 12.5px; overflow-wrap: anywhere; }
.dns-table th { position: sticky; top: 0; z-index: 1; color: var(--lookup-muted); background: var(--lookup-surface-muted); font-weight: 800; white-space: nowrap; }
.dns-table tr:last-child td { border-bottom: 0; }
.dns-table tbody tr:hover td { background: var(--lookup-primary-soft); }
.dns-table td:nth-child(1) { width: 76px; }
.dns-table td:nth-child(3),
.dns-table td:nth-child(4) { width: 78px; }
.record-content { direction: ltr; unicode-bidi: plaintext; font-family: inherit; font-size: 12.75px; font-weight: 650; line-height: 1.85; letter-spacing: -.005em; font-variant-numeric: tabular-nums; font-feature-settings: "kern" 1, "liga" 1; }
.type-pill { min-width: 48px; direction: ltr; color: var(--lookup-primary); background: var(--lookup-primary-soft); }

.empty-state {
    display: grid;
    place-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px dashed var(--lookup-border-strong);
    border-radius: 13px;
    color: var(--lookup-muted);
    text-align: center;
    line-height: 1.8;
}
.extra-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 110px; color: var(--lookup-muted); font-size: 13px; }

.lookup-error-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(220, 38, 38, .25);
    border-radius: var(--lookup-radius-xl);
    color: var(--lookup-text);
    background: var(--lookup-surface);
    box-shadow: var(--lookup-shadow);
    text-align: center;
}
.lookup-error-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; color: var(--lookup-danger); background: var(--lookup-danger-soft); font-size: 25px; }
.lookup-error-card h3 { margin: 0 0 8px; }
.lookup-error-card p { margin: 0; color: var(--lookup-muted); line-height: 1.8; }

.lookup-info { margin-top: 78px; }
.section-heading { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.section-heading > p { margin: 0 0 7px; color: var(--lookup-primary); font-size: 13px; font-weight: 800; }
.section-heading h2 { margin: 0 0 10px; color: var(--lookup-text); font-size: clamp(24px, 3.2vw, 34px); }
.section-heading span { color: var(--lookup-muted); line-height: 1.9; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.info-card { padding: 22px; border: 1px solid var(--lookup-border); border-radius: var(--lookup-radius-lg); color: var(--lookup-text); background: var(--lookup-surface); box-shadow: 0 12px 34px rgba(15, 23, 42, .05); transition: transform .2s ease, border-color .2s ease; }
.info-card:hover { transform: translateY(-3px); border-color: var(--lookup-border-strong); }
.info-card__type { display: inline-flex; margin-bottom: 15px; padding: 4px 9px; border-radius: 8px; color: var(--lookup-primary); background: var(--lookup-primary-soft); font-size: 11px; font-weight: 900; direction: ltr; }
.info-card h3 { margin: 0 0 9px; font-size: 16px; }
.info-card p { margin: 0; color: var(--lookup-muted); font-size: 13px; line-height: 1.9; }
.lookup-feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--lookup-border); border-radius: var(--lookup-radius-lg); background: var(--lookup-border); }
.lookup-feature-strip div { padding: 18px; text-align: center; background: var(--lookup-surface); }
.lookup-feature-strip strong { display: block; margin-bottom: 5px; color: var(--lookup-text); font-size: 14px; }
.lookup-feature-strip span { color: var(--lookup-muted); font-size: 12px; }

.limit-overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 18px; background: rgba(3, 7, 18, .58); backdrop-filter: blur(5px); }
.limit-modal { width: min(420px, 100%); padding: 28px; border: 1px solid var(--lookup-border); border-radius: 23px; color: var(--lookup-text); background: var(--lookup-surface-solid); box-shadow: 0 25px 75px rgba(0, 0, 0, .32); text-align: center; }
.limit-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; color: var(--lookup-warning); background: var(--lookup-warning-soft); font-size: 26px; }
.limit-modal h3 { margin: 0 0 10px; }
.limit-modal p { margin: 5px 0; color: var(--lookup-muted); line-height: 1.8; }
.limit-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.limit-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border: 0; border-radius: 11px; color: #fff; background: var(--lookup-primary); text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; }
.limit-btn.is-secondary { color: var(--lookup-text); background: var(--lookup-surface-muted); border: 1px solid var(--lookup-border); }

.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 980px) {
    .result-card { grid-column: span 6; }
    .result-card.is-wide { grid-column: 1 / -1; }
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lookup-feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .lookup-page { padding: 126px 0 56px; }
    .lookup-container { width: min(100% - 20px, 1180px); }
    .lookup-hero { padding: 72px 14px 24px; border-radius: 22px; }
    .theme-toggle { top: 17px; left: 14px; }
    .lookup-logo img { width: 70px; height: 70px; }
    .lookup-lead { margin-bottom: 22px; }
    .lookup-search { grid-template-columns: 1fr; }
    .lookup-search__field input { height: 55px; padding-inline: 45px; font-size: 14px; }
    .lookup-search__submit { width: 100%; height: 53px; }
    .lookup-controls { align-items: flex-start; flex-direction: column; padding: 0 6px; }
    .user-ip-box { flex-wrap: wrap; justify-content: center; }
    .user-ip-box__value { justify-content: center; }
    .lookup-loading { align-items: flex-start; min-height: 110px; padding: 20px 16px; text-align: right; }
    .result-head { align-items: flex-start; flex-direction: column; padding: 16px; }
    .result-meta { justify-content: flex-start; }
    .result-card,
    .result-card.is-half,
    .result-card.is-wide { grid-column: 1 / -1; padding: 16px; }
    .data-row { grid-template-columns: 1fr; align-items: stretch; gap: 4px; direction: rtl; }
    .data-row dt,
    .data-row dd { grid-column: 1; width: 100%; min-width: 0; max-width: 100%; text-align: right; white-space: normal; }
    .data-row dt { grid-row: 1; }
    .data-row dd { grid-row: 2; }
    .data-row dd.ltr { text-align: right; }
    .ip-chip { align-items: flex-start; flex-direction: column; }
    .table-wrapper { border: 0; overflow: visible; }
    .dns-table { min-width: 0; border-collapse: separate; border-spacing: 0 9px; }
    .dns-table thead { display: none; }
    .dns-table,
    .dns-table tbody,
    .dns-table tr,
    .dns-table td { display: block; width: 100% !important; box-sizing: border-box; }
    .dns-table tr { overflow: hidden; border: 1px solid var(--lookup-border); border-radius: 13px; background: var(--lookup-surface-muted); }
    .dns-table td { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--lookup-border); background: transparent !important; text-align: right; }
    .dns-table td::before { content: attr(data-label); color: var(--lookup-muted); font-size: 11px; font-weight: 700; }
    .dns-table td:last-child { border-bottom: 0; }
    .record-content { font-size: 11px; }
    .lookup-info { margin-top: 58px; }
    .info-grid,
    .lookup-feature-strip { grid-template-columns: 1fr; }
    .section-heading { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* مقادیر ستون جزئیات DNS در لبه چپ ستون قرار می‌گیرند. */
@media (min-width: 701px) {
    .dns-table th:nth-child(5),
    .dns-table td:nth-child(5) { text-align: left; }
    .dns-table td:nth-child(5) .record-content { display: block; width: 100%; text-align: left; }
}

/* Stable Latin rendering for technical responses. These values must not be
   translated by browser translation because DNS/SSL/WHOIS strings are exact. */
.technical-value,
.dns-english,
.dns-english button,
.dns-english table {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}
.data-row dd.technical-value {
    font-weight: 600;
}
.dns-english .record-toolbar,
.dns-english .record-filters {
    direction: ltr;
}
.dns-english .dns-table {
    direction: ltr;
}
.dns-english .dns-table th,
.dns-english .dns-table td {
    text-align: left;
    direction: ltr;
    unicode-bidi: plaintext;
}
.dns-english .dns-table td:nth-child(5),
.dns-english .dns-table td:nth-child(5) .record-content {
    text-align: left;
}
.dns-english .type-pill {
    display: inline-flex;
    justify-content: center;
}

@media (max-width: 680px) {
    .dns-english .dns-table td {
        grid-template-columns: 92px minmax(0, 1fr);
        text-align: left;
        direction: ltr;
    }
    .dns-english .dns-table td::before {
        text-align: left;
        direction: ltr;
    }
    .dns-english .record-content {
        text-align: left;
    }
}

/* ========================================================================
   UI-only patch v6.1
   - Restore the DNS report to the page's RTL layout without changing data.
   - Keep Latin DNS values readable, but align them from the right edge.
   - Stabilize the search/result surface during mobile viewport resizing.
   - Improve domain-result responsiveness without touching lookup logic.
   ======================================================================== */

/* Prevent wide technical strings from creating a second painted surface or
   horizontal page overflow when the viewport changes size. */
.lookup-page {
    overflow-x: clip;
    overflow-y: visible;
}

.lookup-hero,
.lookup-result,
.result-grid,
.result-card,
.result-card__head,
.data-list,
.data-row,
.ip-list,
.ip-chip,
.table-wrapper,
.dns-english {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* DNS card heading: title remains on the right and the state badge on the left. */
.result-card.is-wide > .result-card__head {
    direction: rtl;
    text-align: right;
}

.result-card.is-wide > .result-card__head > div {
    min-width: 0;
    text-align: right;
}

/* The DNS UI is English in content, but its visual layout follows RTL. */
.dns-english {
    direction: rtl !important;
    text-align: right !important;
    font-family: inherit !important;
}

.dns-english,
.dns-english button,
.dns-english table,
.dns-english .technical-value,
.dns-english .record-content {
    font-family: inherit !important;
    letter-spacing: 0 !important;
}

.dns-english .record-toolbar,
.dns-english .record-filters {
    direction: rtl !important;
}

.dns-english .record-filters {
    justify-content: flex-start;
}

.dns-english .record-count {
    margin-inline-start: auto;
    text-align: left;
    direction: ltr;
    unicode-bidi: plaintext;
}

.dns-english .dns-table {
    direction: rtl !important;
}

.dns-english .dns-table th,
.dns-english .dns-table td {
    direction: rtl !important;
    text-align: right !important;
    font-family: inherit !important;
}

/* Preserve the exact order of hostnames/TXT/SOA/SRV strings while making
   their first visible character sit on the right side of the value cell. */
.dns-english .dns-table td.technical-value,
.dns-english .dns-table td:nth-child(5),
.dns-english .dns-table td:nth-child(5) .record-content,
.dns-english .record-content {
    direction: ltr !important;
    unicode-bidi: plaintext;
    text-align: right !important;
    font-family: inherit !important;
    font-size: 12.75px;
    font-weight: 650;
    line-height: 1.85;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dns-english .type-pill {
    direction: ltr;
    font-family: inherit !important;
}

/* The hidden loading/notice layers must never retain a paintable box after a
   viewport resize or after returning from DevTools responsive mode. */
.lookup-loading.hidden,
.lookup-notice.hidden,
.limit-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 680px) {
    /* Removing blur/mask painting on mobile prevents the intermittent white
       rectangle seen after viewport resize, orientation change or DevTools. */
    .lookup-page::before {
        display: none;
    }

    .lookup-hero {
        isolation: isolate;
        overflow: hidden;
        background: var(--lookup-surface-solid);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        contain: layout paint;
    }

    .lookup-search,
    .lookup-search__field,
    .lookup-search__field input,
    .lookup-search__submit,
    .lookup-controls,
    .user-ip-box,
    .lookup-result,
    .result-head,
    .result-grid,
    .result-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .lookup-controls {
        align-items: center;
        padding-inline: 0;
    }

    .result-head {
        direction: rtl;
        text-align: right;
        overflow: hidden;
    }

    .result-head__title,
    .result-head__title h2 {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .result-meta {
        width: 100%;
        max-width: 100%;
        direction: rtl;
        justify-content: flex-start;
    }

    .result-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .result-card,
    .result-card.is-half,
    .result-card.is-wide {
        overflow: hidden;
    }

    .result-card__head,
    .result-card.is-wide > .result-card__head {
        align-items: flex-start;
        flex-wrap: wrap;
        direction: rtl;
        text-align: right;
    }

    .result-card__head > div,
    .result-card__head h3,
    .result-card__head p {
        max-width: 100%;
        min-width: 0;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .card-state {
        max-width: 100%;
        margin-inline-start: auto;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .data-row dd,
    .data-row dd.ltr,
    .data-row dd.technical-value,
    .value-with-flag,
    .ip-chip__value,
    .ip-chip__meta {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .value-with-flag {
        flex-wrap: wrap;
    }

    .ip-chip {
        align-items: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        overflow: hidden;
    }

    .ip-chip__value {
        flex: 1 1 100%;
        width: 100%;
        text-align: right;
    }

    .ip-chip__meta {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        direction: rtl;
    }

    .dns-english .record-toolbar {
        align-items: stretch;
        flex-direction: column;
        direction: rtl !important;
    }

    .dns-english .record-filters {
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        direction: rtl !important;
    }

    .dns-english .record-filter {
        flex: 0 0 auto;
    }

    .dns-english .record-count {
        width: 100%;
        margin: 0;
        text-align: right;
    }

    .dns-english .dns-table,
    .dns-english .dns-table tbody,
    .dns-english .dns-table tr,
    .dns-english .dns-table td {
        max-width: 100%;
        min-width: 0;
    }

    .dns-english .dns-table td {
        grid-template-columns: minmax(76px, 30%) minmax(0, 1fr);
        direction: rtl !important;
        text-align: right !important;
        column-gap: 10px;
    }

    .dns-english .dns-table td::before {
        direction: rtl !important;
        text-align: right !important;
    }

    .dns-english .dns-table td.technical-value,
    .dns-english .dns-table td:nth-child(5),
    .dns-english .dns-table td:nth-child(5) .record-content,
    .dns-english .record-content {
        display: block;
        width: 100%;
        max-width: 100%;
        direction: ltr !important;
        text-align: right !important;
        font-size: 12px;
        line-height: 1.8;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dns-english .empty-state {
        direction: rtl;
        text-align: center;
    }
}

/* ========================================================================
   UI-only patch v6.2
   - Center the entire domain report on mobile.
   - Keep DNS columns right-origin on desktop while distributing them across
     the full table width.
   - No API, resolver, lookup, SSL, WHOIS, RDAP or GeoIP logic is changed.
   ======================================================================== */

/* Desktop DNS table: begin from the right, but use the full available width. */
@media (min-width: 681px) {
    .dns-english .table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .dns-english .dns-table {
        width: 100%;
        min-width: 920px;
        table-layout: fixed;
        direction: rtl !important;
    }

    .dns-english .dns-table th,
    .dns-english .dns-table td {
        padding: 14px 18px;
        text-align: right !important;
        vertical-align: middle;
    }

    .dns-english .dns-table th:nth-child(1),
    .dns-english .dns-table td:nth-child(1) {
        width: 9%;
    }

    .dns-english .dns-table th:nth-child(2),
    .dns-english .dns-table td:nth-child(2) {
        width: 21%;
    }

    .dns-english .dns-table th:nth-child(3),
    .dns-english .dns-table td:nth-child(3) {
        width: 10%;
    }

    .dns-english .dns-table th:nth-child(4),
    .dns-english .dns-table td:nth-child(4) {
        width: 10%;
    }

    .dns-english .dns-table th:nth-child(5),
    .dns-english .dns-table td:nth-child(5) {
        width: 50%;
    }

    .dns-english .dns-table td:nth-child(5),
    .dns-english .dns-table td:nth-child(5) .record-content,
    .dns-english .record-content {
        display: block;
        width: 100%;
        text-align: right !important;
    }
}

/* Mobile report: every output block is centered inside its card. */
@media (max-width: 680px) {
    .lookup-result,
    .result-head,
    .result-head__title,
    .result-head__title p,
    .result-head__title h2,
    .result-meta,
    .result-grid,
    .result-card,
    .result-card__head,
    .result-card__head > div,
    .result-card__head h3,
    .result-card__head p,
    .card-state,
    .data-list,
    .data-row,
    .data-row dt,
    .data-row dd,
    .data-row dd.ltr,
    .data-row dd.technical-value,
    .ip-list,
    .ip-chip,
    .ip-chip__value,
    .ip-chip__meta,
    .value-with-flag,
    .record-toolbar,
    .record-filters,
    .record-count,
    .dns-english,
    .dns-english .empty-state,
    .extra-loading {
        text-align: center !important;
    }

    .result-head {
        align-items: center !important;
        justify-content: center !important;
    }

    .result-head__title,
    .result-head__title h2 {
        margin-inline: auto;
    }

    .result-meta {
        justify-content: center !important;
    }

    .result-card__head,
    .result-card.is-wide > .result-card__head {
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column;
    }

    .result-card__head > div,
    .result-card__head h3,
    .result-card__head p {
        width: 100%;
        text-align: center !important;
    }

    .card-state {
        justify-content: center;
        margin: 0 auto;
    }

    .data-row {
        justify-items: center;
    }

    .data-row dt,
    .data-row dd,
    .data-row dd.ltr,
    .data-row dd.technical-value {
        text-align: center !important;
    }

    .value-with-flag {
        justify-content: center !important;
        margin-inline: auto;
    }

    .ip-chip {
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column;
    }

    .ip-chip__value,
    .ip-chip__meta {
        justify-content: center !important;
        text-align: center !important;
    }

    .dns-english .record-toolbar {
        align-items: center !important;
    }

    .dns-english .record-filters {
        justify-content: center !important;
    }

    .dns-english .record-count {
        text-align: center !important;
    }

    .dns-english .dns-table td {
        grid-template-columns: 1fr !important;
        justify-items: center;
        row-gap: 5px;
        text-align: center !important;
    }

    .dns-english .dns-table td::before {
        width: 100%;
        text-align: center !important;
    }

    .dns-english .dns-table td.technical-value,
    .dns-english .dns-table td:nth-child(5),
    .dns-english .dns-table td:nth-child(5) .record-content,
    .dns-english .record-content {
        text-align: center !important;
        margin-inline: auto;
    }

    .dns-english .type-pill {
        margin-inline: auto;
    }
}

/* ========================================================================
   Bilingual + SEO content patch
   - Direction-aware English layout without changing lookup behavior.
   - Visible, crawlable guide and FAQ content for both language versions.
   ======================================================================== */

.lookup-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 14px;
    color: var(--lookup-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.lookup-breadcrumb a {
    color: var(--lookup-primary);
    text-decoration: none;
    font-weight: 750;
}

.lookup-breadcrumb a:hover { text-decoration: underline; }

.lookup-seo-content,
.lookup-faq {
    margin-top: 72px;
}

.lookup-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lookup-guide-card,
.lookup-use-card,
.lookup-faq-item {
    min-width: 0;
    border: 1px solid var(--lookup-border);
    border-radius: var(--lookup-radius-lg);
    color: var(--lookup-text);
    background: var(--lookup-surface);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
}

.lookup-guide-card {
    padding: 24px;
}

.lookup-guide-card h3,
.lookup-use-card h3 {
    margin: 0 0 10px;
    color: var(--lookup-text);
    font-size: 17px;
    line-height: 1.7;
}

.lookup-guide-card p {
    margin: 0;
    color: var(--lookup-muted);
    font-size: 13.5px;
    line-height: 2;
}

.lookup-use-card {
    margin-top: 14px;
    padding: 24px;
}

.lookup-use-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding-inline-start: 22px;
    color: var(--lookup-muted);
    font-size: 13.5px;
    line-height: 1.9;
}

.lookup-faq-list {
    display: grid;
    gap: 10px;
    max-width: 920px;
    margin: 0 auto;
}

.lookup-faq-item {
    overflow: hidden;
}

.lookup-faq-item summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    color: var(--lookup-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
    list-style: none;
}

.lookup-faq-item summary::-webkit-details-marker { display: none; }

.lookup-faq-item summary::after {
    content: "+";
    position: absolute;
    inset-inline-start: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: var(--lookup-primary);
    background: var(--lookup-primary-soft);
    font-size: 18px;
    font-weight: 500;
}

.lookup-faq-item[open] summary::after { content: "−"; }

.lookup-faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--lookup-muted);
    font-size: 13.5px;
    line-height: 2;
}

/* Natural LTR presentation for the English public URL. */
.lookup-page[data-language="en"] {
    direction: ltr;
    text-align: left;
}

.lookup-page[data-language="en"] .lookup-breadcrumb,
.lookup-page[data-language="en"] .lookup-hero,
.lookup-page[data-language="en"] .section-heading,
.lookup-page[data-language="en"] .info-card,
.lookup-page[data-language="en"] .lookup-guide-card,
.lookup-page[data-language="en"] .lookup-use-card,
.lookup-page[data-language="en"] .lookup-faq-item {
    direction: ltr;
}

.lookup-page[data-language="en"] .lookup-search {
    direction: ltr;
}

.lookup-page[data-language="en"] .lookup-search__icon {
    right: auto;
    left: 20px;
}

.lookup-page[data-language="en"] .lookup-search__clear {
    left: auto;
    right: 12px;
}

.lookup-page[data-language="en"] .lookup-search__field input {
    padding: 0 44px 0 52px;
    direction: ltr;
    text-align: center;
}

.lookup-page[data-language="en"] .captcha-check,
.lookup-page[data-language="en"] .user-ip-box,
.lookup-page[data-language="en"] .result-head,
.lookup-page[data-language="en"] .result-card__head,
.lookup-page[data-language="en"] .record-toolbar,
.lookup-page[data-language="en"] .record-filters {
    direction: ltr;
}

.lookup-page[data-language="en"] .result-head__title,
.lookup-page[data-language="en"] .result-card__head > div,
.lookup-page[data-language="en"] .result-card__head h3,
.lookup-page[data-language="en"] .result-card__head p {
    text-align: left;
}

.lookup-page[data-language="en"] .result-meta {
    justify-content: flex-end;
}

.lookup-page[data-language="en"] .data-row {
    grid-template-columns: max-content minmax(0, 1fr);
    direction: ltr;
}

.lookup-page[data-language="en"] .data-row dt {
    grid-column: 1;
    direction: ltr;
    text-align: left;
}

.lookup-page[data-language="en"] .data-row dd {
    grid-column: 2;
    direction: ltr;
    text-align: right;
}

.lookup-page[data-language="en"] .data-row dd.ltr {
    text-align: right;
}

.lookup-page[data-language="en"] .value-with-flag {
    direction: ltr;
    justify-content: flex-end;
}

.lookup-page[data-language="en"] .dns-english,
.lookup-page[data-language="en"] .dns-english .record-toolbar,
.lookup-page[data-language="en"] .dns-english .record-filters,
.lookup-page[data-language="en"] .dns-english .dns-table,
.lookup-page[data-language="en"] .dns-english .dns-table th,
.lookup-page[data-language="en"] .dns-english .dns-table td {
    direction: ltr !important;
    text-align: left !important;
}

.lookup-page[data-language="en"] .dns-english .record-count {
    margin-inline-start: auto;
    text-align: right !important;
}

.lookup-page[data-language="en"] .dns-english .dns-table td:nth-child(5),
.lookup-page[data-language="en"] .dns-english .dns-table td:nth-child(5) .record-content,
.lookup-page[data-language="en"] .dns-english .record-content {
    text-align: left !important;
}

.lookup-page[data-language="en"] .lookup-faq-item summary {
    padding: 18px 20px 18px 52px;
}

@media (max-width: 680px) {
    .lookup-breadcrumb {
        justify-content: center;
        margin-bottom: 12px;
        text-align: center;
    }

    .lookup-seo-content,
    .lookup-faq {
        margin-top: 54px;
    }

    .lookup-guide-grid,
    .lookup-use-card ul {
        grid-template-columns: 1fr;
    }

    .lookup-guide-card,
    .lookup-use-card {
        padding: 19px 17px;
        text-align: center;
    }

    .lookup-use-card ul {
        padding-inline-start: 20px;
        text-align: start;
    }

    .lookup-faq-item summary,
    .lookup-faq-item p {
        text-align: start;
    }

    .lookup-page[data-language="en"] .result-head__title,
    .lookup-page[data-language="en"] .result-head__title p,
    .lookup-page[data-language="en"] .result-head__title h2,
    .lookup-page[data-language="en"] .result-card__head > div,
    .lookup-page[data-language="en"] .result-card__head h3,
    .lookup-page[data-language="en"] .result-card__head p,
    .lookup-page[data-language="en"] .data-row dt,
    .lookup-page[data-language="en"] .data-row dd,
    .lookup-page[data-language="en"] .data-row dd.ltr,
    .lookup-page[data-language="en"] .dns-english .record-count {
        text-align: center !important;
    }

    .lookup-page[data-language="en"] .data-row {
        grid-template-columns: 1fr;
    }

    .lookup-page[data-language="en"] .data-row dt,
    .lookup-page[data-language="en"] .data-row dd {
        grid-column: 1;
    }

    .lookup-page[data-language="en"] .value-with-flag {
        justify-content: center;
    }

    .lookup-page[data-language="en"] .dns-english .record-filters {
        justify-content: center !important;
    }

    .lookup-page[data-language="en"] .dns-english .dns-table td,
    .lookup-page[data-language="en"] .dns-english .dns-table td::before,
    .lookup-page[data-language="en"] .dns-english .dns-table td:nth-child(5),
    .lookup-page[data-language="en"] .dns-english .dns-table td:nth-child(5) .record-content,
    .lookup-page[data-language="en"] .dns-english .record-content {
        text-align: center !important;
    }
}



/* =========================================================
   Current visitor IP card
   Same visual style as the Network Check sample
   ========================================================= */

.lookup-visitor-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    width: fit-content;
    max-width: 100%;
    min-height: 50px;

    margin: 18px auto 0;
    padding: 8px 12px;

    box-sizing: border-box;

    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;

    color: var(--lookup-text);

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.075),
            rgba(14, 165, 233, 0.035)
        ),
        var(--lookup-surface-solid);

    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);

    text-align: center;
}

/* مربع آبی دارای آیکون مکان */
.lookup-visitor-ip__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    color: #2563eb;
    background: rgba(37, 99, 235, 0.12);

    font-size: 14px;
    line-height: 1;
}

/* عنوان و آدرس IP */
.lookup-visitor-ip__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 0;
}

.lookup-visitor-ip__label {
    color: var(--lookup-muted);

    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;

    white-space: nowrap;
}

/* IP همچنان با کلیک کپی می‌شود */
.lookup-visitor-ip__address {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    border: 0;
    outline: none;

    color: var(--lookup-text);
    background: transparent;

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;

    font-variant-numeric: tabular-nums;
    white-space: nowrap;

    cursor: pointer;
}

.lookup-visitor-ip__address:hover {
    color: var(--lookup-primary);
}

/* پرچم و کد کشور */
.lookup-visitor-ip__country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    flex: 0 0 auto;
}

.lookup-visitor-ip__country-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 29px;
    height: 22px;
    padding: 0 7px;

    box-sizing: border-box;

    border: 1px solid rgba(79, 70, 229, 0.14);
    border-radius: 7px;

    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);

    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.03em;
}

.lookup-visitor-ip__flag {
    display: block;
    flex: 0 0 auto;

    width: 29px;
    height: 21px;

    object-fit: cover;
    border-radius: 4px;

    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.11),
        0 2px 6px rgba(15, 23, 42, 0.08);
}

/* چیدمان فارسی دقیقاً مانند تصویر */
.lookup-page[data-language="fa"] .lookup-visitor-ip {
    direction: rtl;
}

/* چیدمان طبیعی انگلیسی */
.lookup-page[data-language="en"] .lookup-visitor-ip {
    direction: ltr;
}

/* در فارسی و انگلیسی همیشه وسط بماند */
.lookup-page[data-language="fa"] .lookup-visitor-ip,
.lookup-page[data-language="en"] .lookup-visitor-ip {
    margin-inline: auto !important;
}

/* Dark mode */
body.dark .lookup-visitor-ip,
body[data-theme="dark"] .lookup-visitor-ip {
    border-color: rgba(96, 165, 250, 0.20);

    background:
        linear-gradient(
            135deg,
            rgba(96, 165, 250, 0.11),
            rgba(14, 165, 233, 0.045)
        ),
        rgba(17, 24, 39, 0.88);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.19),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark .lookup-visitor-ip__icon,
body[data-theme="dark"] .lookup-visitor-ip__icon {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.13);
}

body.dark .lookup-visitor-ip__label,
body[data-theme="dark"] .lookup-visitor-ip__label {
    color: #9ca9bc;
}

body.dark .lookup-visitor-ip__address,
body[data-theme="dark"] .lookup-visitor-ip__address {
    color: #f1f5f9;
}

body.dark .lookup-visitor-ip__country-code,
body[data-theme="dark"] .lookup-visitor-ip__country-code {
    border-color: rgba(129, 140, 248, 0.20);
    color: #a5b4fc;
    background: rgba(129, 140, 248, 0.11);
}

/* موبایل */
@media (max-width: 600px) {
    .lookup-visitor-ip {
        width: fit-content;
        max-width: calc(100% - 8px);
        min-height: 48px;

        margin-top: 16px;
        padding: 8px 10px;

        gap: 8px;
        flex-wrap: nowrap;
    }

    .lookup-visitor-ip__icon {
        width: 32px;
        height: 32px;

        border-radius: 9px;
        font-size: 13px;
    }

    .lookup-visitor-ip__content {
        gap: 6px;
    }

    .lookup-visitor-ip__label {
        font-size: 10.5px;
    }

    .lookup-visitor-ip__address {
        font-size: 12px;
    }

    .lookup-visitor-ip__flag {
        width: 27px;
        height: 20px;
    }

    .lookup-visitor-ip__country-code {
        min-width: 27px;
        height: 21px;

        padding-inline: 6px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .lookup-visitor-ip {
        gap: 6px;
        padding-inline: 8px;
    }

    .lookup-visitor-ip__content {
        flex-direction: column;
        gap: 1px;
    }

    .lookup-visitor-ip__label,
    .lookup-visitor-ip__address {
        text-align: center;
    }
}

/* Contextual link from IP/domain lookup to the live TeamSpeak directory */
.lookup-teamspeak-support {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(239, 246, 255, .92), rgba(255, 255, 255, .96));
}
.lookup-teamspeak-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.lookup-teamspeak-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #2563eb;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.lookup-teamspeak-link--secondary {
    background: transparent;
    color: #2563eb;
}
.lookup-teamspeak-link:hover { transform: translateY(-1px); }
@media (max-width: 640px) {
    .lookup-teamspeak-support { padding: 22px 16px; }
    .lookup-teamspeak-actions { flex-direction: column; }
    .lookup-teamspeak-link { width: 100%; box-sizing: border-box; }
}





/* =========================================
   IP Lookup - TeamSpeak Support Dark Mode
========================================= */

body.dark.ip-lookup-page .lookup-teamspeak-support,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-support{
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #111827
        );

    border-color:#273449;
    box-shadow:0 16px 38px rgba(0,0,0,.28);
}

body.dark.ip-lookup-page .lookup-teamspeak-support .section-heading > p,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-support .section-heading > p{
    color:#60a5fa;
}

body.dark.ip-lookup-page .lookup-teamspeak-support .section-heading h2,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-support .section-heading h2{
    color:#f8fafc;
}

body.dark.ip-lookup-page .lookup-teamspeak-support .section-heading span,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-support .section-heading span{
    color:#cbd5e1;
}

body.dark.ip-lookup-page .lookup-teamspeak-link,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-link{
    background:#2563eb;
    border-color:#3b82f6;
    color:#fff !important;
}

body.dark.ip-lookup-page .lookup-teamspeak-link--secondary,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-link--secondary{
    background:#172033;
    border-color:#334155;
    color:#93c5fd !important;
}

body.dark.ip-lookup-page .lookup-teamspeak-link--secondary:hover,
body.ip-lookup-page[data-theme="dark"] .lookup-teamspeak-link--secondary:hover{
    background:#1e293b;
    color:#bfdbfe !important;
}