* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 16px;

    background:
        radial-gradient(circle at top right, rgba(75, 85, 255, 0.12), transparent 35%),
        radial-gradient(circle at bottom left, rgba(0, 200, 255, 0.08), transparent 40%),
        #05070d;

    color: #fff;
}

.card {
    width: 90%;
    max-width: 560px;
    padding: 48px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(20px);

    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    text-align: center;

    animation: fadeIn 0.8s ease;
}

.status {
    display: inline-block;

    padding: 8px 14px;
    margin-bottom: 24px;

    border-radius: 10px;

    font-size: 13px;

    color: #9ddcff;

    background: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.18);
}

h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ip-container {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 20px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);

    word-break: break-all;
}

.ip {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.loading {
    color: rgba(255, 255, 255, 0.45);
}

.error {
    color: #ff9d9d;
    font-size: 15px;
    line-height: 1.5;
}

.ip-info-grid {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
}

.ip-info-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ip-info-item:last-child {
    border-bottom: none;
}

.ip-info-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.ip-info-value {
    font-size: 14px;
    color: #fff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    word-break: break-word;
}

.loading-state,
.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.error-state {
    color: #ff9d9d;
}

.ip-lookup {
    margin-bottom: 12px;
}

#ip-lookup-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

#ip-lookup-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#ip-lookup-input:focus {
    outline: none;
    border-color: rgba(0, 170, 255, 0.4);
}

.ip-lookup-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f7bff, #00c8ff);
    color: #05070d;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    margin-bottom: 12px;
}

.ip-lookup-btn:hover {
    opacity: 0.9;
}

.ip-lookup-btn:active {
    transform: scale(0.98);
}

.error-msg {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff9d9d;
    font-size: 14px;
    text-align: center;
}

.error-msg.hidden {
    display: none;
}

.dns-card {
    max-width: 560px;
}

.dns-lookup {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

#dns-domain-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

#dns-domain-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#dns-domain-input:focus {
    outline: none;
    border-color: rgba(0, 170, 255, 0.4);
}

#dns-type-select {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
}

#dns-type-select:focus {
    outline: none;
    border-color: rgba(0, 170, 255, 0.4);
}

.dns-lookup-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2f7bff, #00c8ff);
    color: #05070d;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    margin-bottom: 12px;
}

.dns-lookup-btn:hover {
    opacity: 0.9;
}

.dns-lookup-btn:active {
    transform: scale(0.98);
}

.dns-result {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
}

.dns-result.hidden {
    display: none;
}

.dns-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dns-result-domain {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.dns-result-type {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.dns-result-type[data-type="A"] {
    background: rgba(0, 200, 255, 0.15);
    color: #00c8ff;
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.dns-result-type[data-type="AAAA"] {
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.dns-result-type[data-type="MX"] {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dns-result-type[data-type="TXT"] {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.dns-result-type[data-type="NS"] {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dns-result-type[data-type="CNAME"] {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.dns-result-type[data-type="SOA"] {
    background: rgba(168, 85, 247, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.dns-result-type[data-type="PTR"] {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dns-result-type[data-type="SRV"] {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.dns-result-type[data-type="CAA"] {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.dns-result-type[data-type="HTTPS"] {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.dns-result-type[data-type="DNSKEY"] {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.dns-result-type[data-type="DS"] {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.dns-result-type[data-type="RRSIG"] {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dns-result-type[data-type="NSEC"] {
    background: rgba(244, 114, 182, 0.15);
    color: #f9a8d4;
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.dns-result-type[data-type="TLSA"] {
    background: rgba(20, 184, 166, 0.15);
    color: #5eead4;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.dns-result-type[data-type="SSHFP"] {
    background: rgba(234, 88, 12, 0.15);
    color: #fb923c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.dns-result-type[data-type="NAPTR"] {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.dns-result-records {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    line-height: 1.8;
}

.dns-result-record {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 6px;
    word-break: break-all;
}

.dns-result-record:last-child {
    margin-bottom: 0;
}

.dns-chain {
    margin-bottom: 16px;
}

.dns-chain-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid rgba(0, 200, 255, 0.3);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 14px;
    color: #fff;
    word-break: break-all;
}

.dns-chain-item:last-child {
    margin-bottom: 0;
}

.dns-ip-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.dns-ip-address {
    font-size: 18px;
    font-weight: 600;
    color: #00c8ff;
    margin-bottom: 12px;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.dns-ip-info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dns-ip-info-item:last-child {
    border-bottom: none;
}

.dns-ip-info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.dns-ip-info-value {
    font-size: 13px;
    color: #fff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    word-break: break-word;
}

.dns-loading {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-style: italic;
}

.dns-ip-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-style: italic;
    margin-top: 8px;
}

.dns-no-ip {
    padding: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 8px;
}

.dns-ip-collapsible {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.dns-ip-collapsible.expanded {
    border-color: rgba(0, 200, 255, 0.3);
}

.dns-ip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.dns-ip-header:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dns-ip-address-small {
    font-size: 16px;
    font-weight: 600;
    color: #00c8ff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.dns-ip-toggle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dns-ip-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dns-ip-error {
    text-align: center;
    color: rgba(255, 77, 77, 0.8);
    font-size: 14px;
    padding: 12px;
}

.dns-type-section {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.dns-type-section:last-child {
    margin-bottom: 0;
}

.dns-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dns-type-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.dns-type-records {
    padding: 12px 16px;
}

.footer {
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.share-card {
    text-align: left;
}

.share-card .subtitle {
    margin-bottom: 24px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;

    padding: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tab-panel.hidden {
    display: none;
}

#text-input {
    width: 100%;
    resize: vertical;

    padding: 16px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}

#text-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#text-input:focus,
.file-drop:focus-within {
    outline: none;
    border-color: rgba(0, 170, 255, 0.4);
}

.file-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    min-height: 120px;
    padding: 24px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.16);

    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;

    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.file-drop.drag-over,
.file-drop:hover {
    border-color: rgba(0, 170, 255, 0.4);
    color: rgba(255, 255, 255, 0.75);
}

.share-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.lifetime-label {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

#life-time {
    padding: 8px 10px;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #fff;
    font-size: 14px;
}

.share-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 10px;

    background: #0aa;
    background: linear-gradient(135deg, #2f7bff, #00c8ff);

    color: #05070d;
    font-weight: 600;
    font-size: 15px;

    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn:active {
    transform: scale(0.98);
}

.share-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;

    padding: 14px 16px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.result.hidden {
    display: none;
}

.result-link {
    flex: 1;
    min-width: 0;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 14px;

    overflow-wrap: anywhere;
}

.copy-btn {
    flex-shrink: 0;

    padding: 8px 14px;
    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;

    cursor: pointer;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.upload-progress {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-progress.hidden {
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-percent {
    font-weight: 600;
    color: #00c8ff;
}

.progress-size {
    color: rgba(255, 255, 255, 0.6);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #2f7bff, #00c8ff);
    transition: width 0.2s ease;
}

.error-msg {
    margin-top: 16px;
    color: #ff9d9d;
    font-size: 14px;
}

.error-msg.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .card {
        padding: 36px 24px;
    }

    h1 {
        font-size: 34px;
    }

    .subtitle {
        font-size: 15px;
    }

    .ip {
        font-size: 15px;
    }

    .share-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        width: 100%;
    }

    .dns-lookup {
        flex-direction: column;
    }

    #dns-type-select {
        width: 100%;
    }

    .ip-info-item {
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

    .ip-info-label {
        font-size: 13px;
    }

    .ip-info-value {
        font-size: 13px;
    }
}
