/* =========================================
   CSS VARIABLES — LIGHT & DARK THEMES
   ========================================= */
:root {
    /* Light theme (default) */
    --bg: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: #f0f4ff;
    --bg-code: #f4f6f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-link: #2563eb;
    --text-link-hover: #1d4ed8;

    --border: #e2e8f0;
    --border-focus: #3b82f6;

    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-dot: #3b82f6;

    --nav-bg: rgba(255, 255, 255, 0.92);
    --nav-border: rgba(226, 232, 240, 0.8);
    --nav-shadow: 0 1px 20px rgba(0,0,0,0.06);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --banner-bg: #eff6ff;
    --banner-border: #bfdbfe;
    --banner-text: #1d4ed8;

    --status-bg: #f0fdf4;
    --status-border: #bbf7d0;
    --status-text: #166534;

    --footer-bg: #f1f5f9;
    --footer-border: #e2e8f0;
    --footer-text: #64748b;

    --sub-tab-active: #2563eb;
    --sub-tab-active-bg: #eff6ff;

    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --bg: #0d1117;
    --bg-surface: #161b22;
    --bg-card: #1c2333;
    --bg-input: #1c2333;
    --bg-hover: #21283a;
    --bg-code: #161b22;

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-link: #58a6ff;
    --text-link-hover: #79b8ff;

    --border: #30363d;
    --border-focus: #58a6ff;

    --accent: #2563eb;
    --accent-hover: #3b82f6;
    --accent-light: #0d2145;
    --accent-dot: #58a6ff;

    --nav-bg: rgba(22, 27, 34, 0.95);
    --nav-border: rgba(48, 54, 61, 0.8);
    --nav-shadow: 0 1px 20px rgba(0,0,0,0.3);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);

    --banner-bg: #0d2145;
    --banner-border: #1d4ed8;
    --banner-text: #93c5fd;

    --status-bg: #0a2a1a;
    --status-border: #166534;
    --status-text: #86efac;

    --footer-bg: #0d1117;
    --footer-border: #21262d;
    --footer-text: #6e7681;

    --sub-tab-active: #58a6ff;
    --sub-tab-active-bg: #0d2145;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--transition), border-color var(--transition);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.nav-logo {
    text-decoration: none !important;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-who, .hero-who { color: var(--text-primary); }
.logo-dot, .hero-dot { color: var(--accent-dot); }
.logo-is, .hero-is { color: var(--accent-dot); }

/* Nav Tabs */
.nav-tabs {
    display: flex;
    list-style: none;
    gap: 4px;
    flex: 1;
}

.nav-tab {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    text-decoration: none;
}

.nav-tab.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-light);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .theme-icon.moon { opacity: 0; transform: translateY(20px); }
[data-theme="light"] .theme-icon.sun  { opacity: 1; transform: translateY(0); }
[data-theme="dark"]  .theme-icon.sun  { opacity: 0; transform: translateY(-20px); }
[data-theme="dark"]  .theme-icon.moon { opacity: 1; transform: translateY(0); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 8px;
    transition: all var(--transition);
}

.hamburger:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--nav-bg);
    padding: 8px 16px 12px;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-tab {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none !important;
    transition: all var(--transition);
}

.mobile-tab:hover,
.mobile-tab.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* =========================================
   MAIN
   ========================================= */
.main {
    flex: 1;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 60px 20px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.hero-logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
    line-height: 1;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* =========================================
   SEARCH BOX
   ========================================= */
.search-box {
    display: flex;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), var(--shadow-md);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: var(--bg-input);
    color: var(--text-primary);
    border: none;
    outline: none;
    transition: background var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background var(--transition), transform 0.1s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.search-btn:active {
    transform: scale(0.97);
}

.search-btn.small {
    padding: 10px 18px;
    font-size: 0.85rem;
}

.search-input.small {
    padding: 10px 14px;
    font-size: 0.9rem;
}

.hero-ip {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ip-link {
    color: var(--text-link);
    font-weight: 500;
}

/* =========================================
   HERO INFO SECTION
   ========================================= */
.hero-info {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hero-info-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hero-cta {
    font-size: 0.9rem;
    color: var(--text-link);
    font-style: italic;
}

/* =========================================
   RESULTS SECTION
   ========================================= */
.results-section {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.results-search-bar {
    margin-bottom: 28px;
}

.results-search-box {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.results-search-box:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* =========================================
   LOADING & ERROR
   ========================================= */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 16px;
}

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

.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.error-state h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   WHOIS RESULT HEADER
   ========================================= */
.result-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.result-domain-info {
    margin-bottom: 14px;
}

.result-domain {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.result-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.result-ip {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.result-ip strong {
    color: var(--text-link);
    font-weight: 500;
}

/* Sub Tabs */
.result-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sub-tab {
    padding: 6px 13px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.sub-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--sub-tab-active-bg);
}

.sub-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.sub-tab.btn-hide-contact {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    font-weight: 600;
}

.sub-tab.btn-hide-contact:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.refresh-btn {
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.refresh-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--sub-tab-active-bg);
}

/* Status Banner */
.status-banner {
    background: var(--banner-bg);
    border: 1px solid var(--banner-border);
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--banner-text);
}

/* =========================================
   RESULT BLOCKS
   ========================================= */
.result-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
}

.block-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.block-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.block-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.item-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    word-break: break-all;
}

.item-value a {
    color: var(--text-link);
}

/* =========================================
   NAMESERVERS TABLE
   ========================================= */
.ns-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.ns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ns-table th {
    background: var(--bg-code);
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.ns-table td {
    padding: 10px 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.ns-table tr:last-child td {
    border-bottom: none;
}

.ns-table td a {
    color: var(--text-link);
}

.ns-table tr:hover td {
    background: var(--bg-hover);
}

/* =========================================
   DOMAIN STATUS LIST
   ========================================= */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    background: var(--status-bg);
    border: 1px solid var(--status-border);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--status-text);
    word-break: break-all;
    line-height: 1.4;
}

/* =========================================
   SIMILAR DOMAINS
   ========================================= */
.similar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.similar-item {
    color: var(--text-link);
    font-size: 0.875rem;
    transition: color var(--transition);
}

.similar-item:hover {
    color: var(--text-link-hover);
}

/* =========================================
   RAW WHOIS
   ========================================= */
.raw-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.raw-details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.raw-details summary {
    padding: 12px 16px;
    background: var(--bg-code);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.raw-details summary:hover {
    background: var(--bg-hover);
}

.raw-details summary::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.raw-details[open] summary::after {
    transform: rotate(180deg);
}

.raw-pre {
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    color: var(--text-primary);
    background: var(--bg-code);
    white-space: pre-wrap;
    word-break: break-all;
    border-top: 1px solid var(--border);
    max-height: 360px;
    overflow-y: auto;
    line-height: 1.5;
}

/* =========================================
   ABOUT BLOCK
   ========================================= */
.about-block p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 20px;
    text-align: center;
    transition: background var(--transition), border-color var(--transition);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--footer-text);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.whois-result {
    animation: fadeInUp 0.3s ease;
}

/* =========================================
   EMPTY PLACEHOLDER STATES
   ========================================= */
.placeholder-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* =========================================
   SUB-PANELS (inside result view)
   ========================================= */
.sub-panel {
    display: none;
}

.sub-panel.active {
    display: block;
    animation: fadeInUp 0.2s ease;
}

/* full-width block-item (e.g. Status, RDAP Link) */
.block-item.full-width {
    grid-column: 1 / -1;
}

/* =========================================
   DNS FULL TABLE (Hostname / Type / TTL / Priority / Content)
   ========================================= */
.dns-full-table th:nth-child(1),
.dns-full-table td:nth-child(1) { min-width: 140px; color: var(--text-link); }
.dns-full-table th:nth-child(2),
.dns-full-table td:nth-child(2) { min-width: 70px; font-weight: 700; color: var(--accent); }
.dns-full-table th:nth-child(3),
.dns-full-table td:nth-child(3) { min-width: 60px; color: var(--text-muted); }
.dns-full-table th:nth-child(4),
.dns-full-table td:nth-child(4) { min-width: 60px; color: var(--text-secondary); text-align: center; }
.dns-full-table th:nth-child(5),
.dns-full-table td:nth-child(5) { word-break: break-all; }

/* =========================================
   UPTIME STATUS GRID
   ========================================= */
.uptime-status-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.uptime-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 20px;
}

.uptime-row:last-child {
    border-bottom: none;
}

.uptime-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 160px;
    flex-shrink: 0;
}

.uptime-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
}

.uptime-value.status-active {
    color: var(--status-text);
    font-weight: 600;
}

/* Promo block */
.uptime-promo-block {
    background: var(--accent-light);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-lg);
}

[data-theme="dark"] .uptime-promo-block {
    background: rgba(37,99,235,0.08);
    border-color: rgba(59,130,246,0.25);
}

/* =========================================
   TAB PANELS
   ========================================= */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.25s ease;
}

/* =========================================
   SINGLE INFO CARD (full width)
   ========================================= */
.info-cards.single {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
}

/* =========================================
   DNS RECORD LIST
   ========================================= */
.dns-record-list {
    margin-top: 10px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dns-record-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dns-record-list li strong {
    color: var(--text-primary);
}

/* DNS result record type blocks */
.dns-type-block {
    margin-bottom: 16px;
}

.dns-type-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 9px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.dns-record-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.dns-record-row:last-child {
    border-bottom: none;
}

.dns-record-name {
    color: var(--text-link);
    font-weight: 500;
    min-width: 140px;
    word-break: break-all;
}

.dns-record-ttl {
    color: var(--text-muted);
    font-size: 0.78rem;
    min-width: 60px;
}

.dns-record-data {
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
}

/* =========================================
   UPTIME CTA BUTTON
   ========================================= */
.uptime-cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
    margin-bottom: 6px;
}

.uptime-cta-btn:hover {
    background: var(--accent-hover);
}

.uptime-cta-btn:active {
    transform: scale(0.97);
}

.uptime-free-note {
    font-size: 0.8rem;
    color: var(--text-link);
    margin-top: 6px;
}

/* Uptime status badge */
.uptime-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.uptime-status-badge.up {
    background: var(--status-bg);
    color: var(--status-text);
    border: 1px solid var(--status-border);
}

.uptime-status-badge.down {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

[data-theme="dark"] .uptime-status-badge.down {
    background: #2d0a0a;
    color: #f87171;
    border-color: #7f1d1d;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    /* Navbar */
    .nav-tabs { display: none; }
    .hamburger { display: flex; }

    /* Hero */
    .hero { padding: 40px 16px 60px; }
    .hero-logo { font-size: 2.2rem; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.9rem; }

    /* Info cards */
    .info-cards { grid-template-columns: 1fr; }

    /* Results */
    .results-section { padding: 20px 12px 48px; }
    .result-header { padding: 16px; }
    .result-domain { font-size: 1.3rem; }
    .result-sub-tabs { gap: 4px; }
    .sub-tab { font-size: 0.78rem; padding: 5px 10px; }

    .block-grid { grid-template-columns: 1fr; gap: 12px; }
    .block-grid.cols-3 { grid-template-columns: 1fr; }
    .result-block { padding: 16px; }
}

@media (max-width: 480px) {
    .hero-logo { font-size: 1.8rem; }
    .hero-title { font-size: 1.35rem; }
    .search-btn { padding: 12px 14px; font-size: 0.82rem; }
    .search-input { padding: 12px 10px; font-size: 0.85rem; }
}
