*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #000000;
    --card: #0a0a0a;
    --card-hover: #1c1c1c;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.13);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-dim: rgba(255, 255, 255, 0.25);
    --green: #4ade80;
    --green-dim: rgba(74, 222, 128, 0.1);
    --red: #f87171;
    --red-dim: rgba(248, 113, 113, 0.1);
    --yellow: #fbbf24;
    --yellow-dim: rgba(251, 191, 36, 0.1);
    --topbar-h: 58px;
    --content-w: 900px;
}

*, *::before, *::after {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
}

html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes shimmer {
    0%   { transform: translateX(-120%) skewX(-15deg); }
    100% { transform: translateX(250%) skewX(-15deg); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); }
    50%       { box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.7); }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-h);
    padding: 0 32px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.4s ease both;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-tool {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 400;
    padding: 6px 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}

.nav-tool:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.nav-tool.active {
    color: var(--text);
    font-weight: 500;
    background: rgba(255,255,255,0.09);
}

.nav-api-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    padding: 6px 13px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    flex-shrink: 0;
}

.nav-api-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
}

.hero {
    text-align: center;
    padding: 72px 32px 56px;
    animation: fadeUp 0.5s 0.05s ease both;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

.panels-wrap {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 24px 80px;
}

.tool-panel { display: none; }

.tool-panel.active {
    display: block;
    animation: fadeUp 0.3s ease both;
}

.panel-top {
    background: var(--card);
    border-radius: 20px;
    padding: 28px 28px 24px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.panel-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.panel-top h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 5px;
    position: relative;
}

.panel-top > div:first-child p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
}

.input-row {
    display: flex;
    gap: 8px;
    position: relative;
}

.main-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 11px;
    color: var(--text);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    padding: 10px 15px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.main-input:focus {
    border-color: rgba(255,255,255,0.22);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.main-input::placeholder {
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.run-btn {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.1px;
    padding: 10px 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.18s, transform 0.14s, box-shadow 0.18s;
}

.run-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: translateX(-120%) skewX(-15deg);
}

.run-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}

.run-btn:hover::after {
    animation: shimmer 0.5s ease forwards;
}

.run-btn:active {
    transform: scale(0.97) translateY(0);
    box-shadow: none;
    opacity: 1;
}

.run-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.run-btn:disabled::after { display: none; }

.result-area { min-height: 40px; }

.loading {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-dim);
    padding: 20px 4px;
    font-size: 13px;
    animation: fadeIn 0.2s ease both;
}

.spinner {
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.result-card {
    background: var(--card);
    border-radius: 16px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: cardIn 0.28s ease both;
}

.result-card:nth-child(1) { animation-delay: 0.00s; }
.result-card:nth-child(2) { animation-delay: 0.06s; }
.result-card:nth-child(3) { animation-delay: 0.12s; }

.result-card:hover {
    background: var(--card-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.result-card-header {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.1px;
}

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    color: var(--text-muted);
}

.tag.green {
    background: var(--green-dim);
    color: var(--green);
}

.tag.red {
    background: var(--red-dim);
    color: var(--red);
}

.tag.yellow {
    background: var(--yellow-dim);
    color: var(--yellow);
}

.kv-table { padding: 6px 0; }

.kv-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 5px 20px;
    transition: background 0.12s;
}

.kv-row:hover { background: rgba(255,255,255,0.02); }

.kv-key {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.5;
}

.kv-val {
    color: rgba(255,255,255,0.82);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    word-break: break-all;
    line-height: 1.5;
}

.kv-val a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,255,255,0.2);
    transition: text-decoration-color 0.15s;
}

.kv-val a:hover { text-decoration-color: rgba(255,255,255,0.6); }

.kv-val.green { color: var(--green); }
.kv-val.red { color: var(--red); }
.kv-val.yellow { color: var(--yellow); }
.kv-null { color: var(--text-dim); }

.raw-block {
    padding: 16px 20px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 360px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
}

.dns-section { padding: 12px 20px; }

.dns-type {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    margin-top: 14px;
    margin-bottom: 6px;
}

.dns-type:first-child { margin-top: 2px; }

.dns-record {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    border-radius: 7px;
    margin-bottom: 3px;
    background: rgba(255,255,255,0.03);
    transition: background 0.14s, transform 0.14s;
}

.dns-record:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(3px);
}

.username-summary {
    padding: 13px 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.2s ease both;
}

.username-summary span { color: var(--text); font-weight: 600; }

.username-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 7px;
    padding: 14px 20px;
}

.username-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(255,255,255,0.03);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.16s, transform 0.16s;
    animation: cardIn 0.22s ease both;
}

.username-item:nth-child(1)  { animation-delay: 0.00s; }
.username-item:nth-child(2)  { animation-delay: 0.02s; }
.username-item:nth-child(3)  { animation-delay: 0.04s; }
.username-item:nth-child(4)  { animation-delay: 0.06s; }
.username-item:nth-child(5)  { animation-delay: 0.08s; }
.username-item:nth-child(6)  { animation-delay: 0.10s; }
.username-item:nth-child(7)  { animation-delay: 0.12s; }
.username-item:nth-child(8)  { animation-delay: 0.14s; }
.username-item:nth-child(9)  { animation-delay: 0.16s; }
.username-item:nth-child(10) { animation-delay: 0.18s; }
.username-item:nth-child(11) { animation-delay: 0.20s; }
.username-item:nth-child(12) { animation-delay: 0.22s; }
.username-item:nth-child(13) { animation-delay: 0.24s; }
.username-item:nth-child(14) { animation-delay: 0.26s; }
.username-item:nth-child(15) { animation-delay: 0.28s; }
.username-item:nth-child(16) { animation-delay: 0.30s; }
.username-item:nth-child(17) { animation-delay: 0.32s; }
.username-item:nth-child(18) { animation-delay: 0.34s; }
.username-item:nth-child(19) { animation-delay: 0.36s; }
.username-item:nth-child(20) { animation-delay: 0.38s; }
.username-item:nth-child(21) { animation-delay: 0.40s; }
.username-item:nth-child(22) { animation-delay: 0.42s; }
.username-item:nth-child(23) { animation-delay: 0.44s; }
.username-item:nth-child(24) { animation-delay: 0.46s; }
.username-item:nth-child(25) { animation-delay: 0.48s; }
.username-item:nth-child(26)  { animation-delay: 0.50s; }
.username-item:nth-child(27)  { animation-delay: 0.52s; }
.username-item:nth-child(28)  { animation-delay: 0.54s; }
.username-item:nth-child(29)  { animation-delay: 0.56s; }
.username-item:nth-child(30)  { animation-delay: 0.58s; }
.username-item:nth-child(31)  { animation-delay: 0.60s; }
.username-item:nth-child(32)  { animation-delay: 0.62s; }
.username-item:nth-child(33)  { animation-delay: 0.64s; }
.username-item:nth-child(34)  { animation-delay: 0.66s; }
.username-item:nth-child(35)  { animation-delay: 0.68s; }
.username-item:nth-child(36)  { animation-delay: 0.70s; }
.username-item:nth-child(37)  { animation-delay: 0.72s; }
.username-item:nth-child(38)  { animation-delay: 0.74s; }
.username-item:nth-child(39)  { animation-delay: 0.76s; }
.username-item:nth-child(40)  { animation-delay: 0.78s; }
.username-item:nth-child(41)  { animation-delay: 0.80s; }
.username-item:nth-child(42)  { animation-delay: 0.82s; }
.username-item:nth-child(43)  { animation-delay: 0.84s; }
.username-item:nth-child(44)  { animation-delay: 0.86s; }
.username-item:nth-child(45)  { animation-delay: 0.88s; }
.username-item:nth-child(46)  { animation-delay: 0.90s; }
.username-item:nth-child(47)  { animation-delay: 0.92s; }
.username-item:nth-child(48)  { animation-delay: 0.94s; }
.username-item:nth-child(49)  { animation-delay: 0.96s; }
.username-item:nth-child(50)  { animation-delay: 0.98s; }
.username-item:nth-child(51)  { animation-delay: 1.00s; }
.username-item:nth-child(52)  { animation-delay: 1.02s; }
.username-item:nth-child(53)  { animation-delay: 1.04s; }
.username-item:nth-child(54)  { animation-delay: 1.06s; }
.username-item:nth-child(55)  { animation-delay: 1.08s; }
.username-item:nth-child(56)  { animation-delay: 1.10s; }
.username-item:nth-child(57)  { animation-delay: 1.12s; }
.username-item:nth-child(58)  { animation-delay: 1.14s; }
.username-item:nth-child(59)  { animation-delay: 1.16s; }
.username-item:nth-child(60)  { animation-delay: 1.18s; }
.username-item:nth-child(61)  { animation-delay: 1.20s; }
.username-item:nth-child(62)  { animation-delay: 1.22s; }
.username-item:nth-child(63)  { animation-delay: 1.24s; }
.username-item:nth-child(64)  { animation-delay: 1.26s; }
.username-item:nth-child(65)  { animation-delay: 1.28s; }
.username-item:nth-child(66)  { animation-delay: 1.30s; }
.username-item:nth-child(67)  { animation-delay: 1.32s; }
.username-item:nth-child(68)  { animation-delay: 1.34s; }
.username-item:nth-child(69)  { animation-delay: 1.36s; }
.username-item:nth-child(70)  { animation-delay: 1.38s; }
.username-item:nth-child(71)  { animation-delay: 1.40s; }
.username-item:nth-child(72)  { animation-delay: 1.42s; }
.username-item:nth-child(73)  { animation-delay: 1.44s; }
.username-item:nth-child(74)  { animation-delay: 1.46s; }
.username-item:nth-child(75)  { animation-delay: 1.48s; }
.username-item:nth-child(76)  { animation-delay: 1.50s; }
.username-item:nth-child(77)  { animation-delay: 1.52s; }
.username-item:nth-child(78)  { animation-delay: 1.54s; }
.username-item:nth-child(79)  { animation-delay: 1.56s; }
.username-item:nth-child(80)  { animation-delay: 1.58s; }
.username-item:nth-child(81)  { animation-delay: 1.60s; }
.username-item:nth-child(82)  { animation-delay: 1.62s; }
.username-item:nth-child(83)  { animation-delay: 1.64s; }
.username-item:nth-child(84)  { animation-delay: 1.66s; }
.username-item:nth-child(85)  { animation-delay: 1.68s; }
.username-item:nth-child(86)  { animation-delay: 1.70s; }
.username-item:nth-child(87)  { animation-delay: 1.72s; }
.username-item:nth-child(88)  { animation-delay: 1.74s; }
.username-item:nth-child(89)  { animation-delay: 1.76s; }
.username-item:nth-child(90)  { animation-delay: 1.78s; }
.username-item:nth-child(91)  { animation-delay: 1.80s; }
.username-item:nth-child(92)  { animation-delay: 1.82s; }
.username-item:nth-child(93)  { animation-delay: 1.84s; }
.username-item:nth-child(94)  { animation-delay: 1.86s; }
.username-item:nth-child(95)  { animation-delay: 1.88s; }
.username-item:nth-child(96)  { animation-delay: 1.90s; }
.username-item:nth-child(97)  { animation-delay: 1.92s; }
.username-item:nth-child(98)  { animation-delay: 1.94s; }
.username-item:nth-child(99)  { animation-delay: 1.96s; }
.username-item:nth-child(100) { animation-delay: 1.98s; }
.username-item:nth-child(101) { animation-delay: 2.00s; }
.username-item:nth-child(102) { animation-delay: 2.02s; }
.username-item:nth-child(103) { animation-delay: 2.04s; }
.username-item:nth-child(104) { animation-delay: 2.06s; }
.username-item:nth-child(105) { animation-delay: 2.08s; }
.username-item:nth-child(106) { animation-delay: 2.10s; }
.username-item:nth-child(107) { animation-delay: 2.12s; }
.username-item:nth-child(108) { animation-delay: 2.14s; }
.username-item:nth-child(109) { animation-delay: 2.16s; }
.username-item:nth-child(110) { animation-delay: 2.18s; }
.username-item:nth-child(111) { animation-delay: 2.20s; }
.username-item:nth-child(112) { animation-delay: 2.22s; }
.username-item:nth-child(113) { animation-delay: 2.24s; }
.username-item:nth-child(114) { animation-delay: 2.26s; }
.username-item:nth-child(115) { animation-delay: 2.28s; }
.username-item:nth-child(116) { animation-delay: 2.30s; }
.username-item:nth-child(117) { animation-delay: 2.32s; }
.username-item:nth-child(118) { animation-delay: 2.34s; }
.username-item:nth-child(119) { animation-delay: 2.36s; }
.username-item:nth-child(120) { animation-delay: 2.38s; }

.username-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.username-item.found { background: var(--green-dim); }
.username-item.found:hover { background: rgba(74, 222, 128, 0.16); }
.username-item.found a { color: var(--green); text-decoration: none; }
.username-item:not(.found) span:first-child { color: var(--text-muted); }

.u-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.u-status.found     { color: var(--green);     background: rgba(74,222,128,0.12); }
.u-status.not-found { color: var(--text-dim);  background: rgba(255,255,255,0.05); }
.u-status.error     { color: var(--yellow);    background: var(--yellow-dim); }

.error-box {
    background: var(--red-dim);
    border: 1px solid rgba(248,113,113,0.15);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--red);
    font-size: 13px;
    animation: fadeIn 0.2s ease both;
}

.headers-table { padding: 4px 0; }

.header-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    padding: 5px 20px;
    transition: background 0.12s;
}

.header-row:hover { background: rgba(255,255,255,0.02); }

.header-name {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-dim);
    word-break: break-all;
}

.header-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    word-break: break-all;
}

.security-header.present .header-name { color: var(--green); }
.security-header.missing .header-name { color: var(--red); }
.security-header.missing .header-val  { color: var(--text-dim); font-style: italic; }

.toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #1c1c1c;
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.discord-avatar-wrap {
    padding: 16px 16px 0;
}

.discord-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    display: block;
}

@media (max-width: 720px) {
    .hero-title { font-size: 30px; letter-spacing: -0.8px; }
    .topbar-tools { display: none; }
    .panels-wrap { padding: 0 12px 60px; }
    .panel-top { padding: 20px 18px 18px; }
    .kv-row { grid-template-columns: 1fr; gap: 2px; }
    .header-row { grid-template-columns: 1fr; }
}
