@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-primary: #0a0f1c;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --accent-blue: #60a5fa;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-primary); 
    color: var(--text-secondary); 
    font-size: 13px; 
    transition: all 0.3s ease;
}

body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body.light-mode {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

body.light-mode .compact-card { 
    background: var(--bg-secondary); 
    border-color: var(--border-color); 
}

body.light-mode .compact-header { 
    border-color: var(--border-color); 
    color: var(--text-primary); 
}

body.light-mode .bg-slate-900 { background-color: #ffffff; }
body.light-mode .bg-slate-800 { background-color: #f1f5f9; }
body.light-mode .bg-slate-950 { background-color: #f8fafc; }
body.light-mode .text-slate-200 { color: #1e293b; }
body.light-mode .text-slate-300 { color: #334155; }
body.light-mode .text-slate-100 { color: #0f172a; }
body.light-mode .border-slate-800 { border-color: #e2e8f0; }
body.light-mode .border-slate-700 { border-color: #cbd5e1; }

body.light-mode .ad-placeholder { 
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); 
    border-color: #cbd5e1;
    color: #64748b;
}

/* Compact Mode - Less Bulky */
body.compact-mode { font-size: 12px; }
body.compact-mode .compact-card { border-radius: 4px; }
body.compact-mode .compact-header { padding: 8px 10px; font-size: 11px; }
body.compact-mode .compact-body { padding: 8px 10px; }
body.compact-mode .data-table th, 
body.compact-mode .data-table td { padding: 5px 8px; }
body.compact-mode .grid { gap: 0.75rem; }
body.compact-mode h1 { font-size: 16px; }
body.compact-mode h2 { font-size: 14px; }
body.compact-mode .max-w-7xl { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
body.compact-mode .badge { padding: 1px 6px; font-size: 9px; }
body.compact-mode .ns-item { padding: 3px 0; }

.mono { font-family: 'JetBrains Mono', monospace; }

.data-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.data-table th, .data-table td { 
    padding: 3px 5px;
    text-align: left; 
}

.data-table th { 
    color: var(--text-muted); 
    font-weight: 500; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    width: 40%;
}

body.light-mode .data-table th { 
    color: #64748b; 
}

body.light-mode .data-table td { 
    color: #334155; 
}

.data-table td { 
    color: #cbd5e1; 
}

.data-table tr:hover td { 
    background: rgba(255,255,255,0.02); 
}

body.light-mode .data-table tr:hover td { 
    background: #f8fafc; 
}

.compact-card { 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    transition: all 0.2s; 
}

.compact-header { 
    padding: 12px 14px; 
    border-bottom: 1px solid var(--border-color); 
    font-weight: 600; 
    color: var(--text-primary); 
    font-size: 13px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.compact-body { 
    padding: 6px 14px; 
}

.badge { 
    display: inline-flex; 
    align-items: center; 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 500; 
    border: 1px solid; 
}

.badge-outline-green { border-color: #10b981; color: #10b981; background: transparent; }
.badge-outline-red { border-color: #ef4444; color: #ef4444; background: transparent; }
.badge-outline-yellow { border-color: #f59e0b; color: #f59e0b; background: transparent; }
.badge-outline-blue { border-color: #3b82f6; color: #3b82f6; background: transparent; }
.badge-outline-gray { border-color: #64748b; color: #64748b; background: transparent; }
.badge-available { background: #064e3b; color: #34d399; border-color: #10b981; }

body.light-mode .badge-outline-green { color: #059669; border-color: #059669; }
body.light-mode .badge-outline-red { color: #dc2626; border-color: #dc2626; }
body.light-mode .badge-outline-yellow { color: #d97706; border-color: #d97706; }
body.light-mode .badge-outline-blue { color: #2563eb; border-color: #2563eb; }

.tab-btn { 
    padding: 8px 14px; 
    font-size: 12px; 
    color: #64748b; 
    border-bottom: 2px solid transparent; 
    cursor: pointer; 
    transition: all 0.15s; 
    white-space: nowrap; 
}

.tab-btn:hover { color: #94a3b8; }
.tab-btn.active { color: #60a5fa; border-bottom-color: #60a5fa; }

body.light-mode .tab-btn.active { 
    color: #2563eb; 
    border-bottom-color: #2563eb; 
}

.tab-content { display: none; }
.tab-content.active { display: block; }

input:focus { outline: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

body.light-mode ::-webkit-scrollbar-track { background: #f1f5f9; }
body.light-mode ::-webkit-scrollbar-thumb { background: #cbd5e1; }

.toggle-btn { 
    font-size: 11px; 
    color: #60a5fa; 
    cursor: pointer; 
    background: none;
    border: none;
}

.toggle-btn:hover { text-decoration: underline; }

.whois-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}

.whois-item { 
    display: flex; 
    flex-direction: column; 
}

.whois-label { 
    font-size: 10px; 
    color: #64748b; 
    text-transform: uppercase; 
    margin-bottom: 2px; 
}

.whois-value { 
    font-size: 12px; 
    color: #e2e8f0; 
}

body.light-mode .whois-value { 
    color: #1e293b; 
}

.ip-pill { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 4px 12px; 
    background: #1e293b; 
    border-radius: 4px; 
    font-size: 12px; 
    border: 1px solid #334155; 
}

body.light-mode .ip-pill { 
    background: #e2e8f0; 
    border-color: #cbd5e1; 
    color: #334155; 
}

.ns-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 5px 0; 
}

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

body.light-mode .ns-item { 
    border-color: #e2e8f0; 
}

.copy-btn { 
    cursor: pointer; 
    opacity: 0.6; 
    transition: opacity 0.2s; 
}

.copy-btn:hover { 
    opacity: 1; 
}

.ad-placeholder { 
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    border: 2px dashed #334155; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 120px; 
    color: #475569; 
    font-size: 11px; 
}

.mx-details { 
    font-size: 10px; 
    color: #64748b; 
}

.available-banner { 
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%); 
    border: 1px solid #10b981; 
    border-radius: 6px; 
    padding: 16px; 
    text-align: center; 
}

.register-links { 
    display: flex; 
    gap: 8px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-top: 12px; 
}

.register-link { 
    padding: 6px 12px; 
    background: #0f172a; 
    border: 1px solid #10b981; 
    color: #34d399; 
    text-decoration: none; 
    border-radius: 4px; 
    font-size: 11px; 
    transition: all 0.2s; 
}

.register-link:hover { 
    background: #10b981; 
    color: #0f172a; 
}

.popular-links { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
}

.popular-link { 
    display: block; 
    padding: 8px; 
    background: #1e293b; 
    border: 1px solid #334155; 
    border-radius: 4px; 
    text-align: center; 
    color: #94a3b8; 
    text-decoration: none; 
    font-size: 11px; 
    transition: all 0.2s; 
}

.popular-link:hover { 
    background: #334155; 
    color: #e2e8f0; 
    border-color: #475569; 
}

body.light-mode .popular-link { 
    background: #f1f5f9; 
    border-color: #e2e8f0; 
    color: #475569; 
}

body.light-mode .popular-link:hover { 
    background: #e2e8f0; 
    color: #1e293b; 
}

.expandable-content { 
    display: none; 
    margin-top: 8px; 
    padding: 12px; 
    background: var(--bg-primary); 
    border-radius: 6px; 
    border: 1px solid var(--border-color); 
    max-height: 500px;
    overflow-y: auto;
}

body.light-mode .expandable-content { 
    background: #f8fafc; 
    border-color: #e2e8f0; 
}

.expandable-content.show { 
    display: block; 
}

.txt-record-full { 
    white-space: pre-wrap; 
    word-break: break-all; 
    font-size: 10px; 
    line-height: 1.4; 
    color: #cbd5e1; 
}

body.light-mode .txt-record-full { 
    color: #334155; 
}

.mx-ip-inline { 
    color: #60a5fa; 
    font-size: 10px; 
    margin-left: 8px; 
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 28, 0.95);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.light-mode #loading-overlay {
    background: rgba(248, 250, 252, 0.95);
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #334155;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #60a5fa;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 14px;
}

.mode-toggle, .compact-toggle {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    transition: all 0.2s;
}

.mode-toggle:hover, .compact-toggle:hover {
    background: #334155;
    color: #e2e8f0;
}

body.light-mode .mode-toggle, body.light-mode .compact-toggle {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

/* Mobile menu */
.mobile-menu { display: none; }

/* Ad Container Styles */
.ad-container {
    background: var(--bg-primary);
    /* border-bottom: 1px solid var(--border-color); 
	min-height: 90px; 
    padding: 1rem;*/
    text-align: center;
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-container ins {
    display: inline-block;
    max-width: 100%;
}

/* Light mode support */
body.light-mode .ad-container {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu { display: flex; }
    .whois-grid { grid-template-columns: 1fr; }
    .grid-cols-2 { grid-template-columns: 1fr; }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .ad-container { 
        min-height: 100px; 
        padding: 0.5rem;
    }
    
    .ad-container ins {
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: flex !important; }
}

/* Text colors for status */
.text-emerald-400 { color: #34d399; }
.text-blue-400 { color: #60a5fa; }
.text-red-400 { color: #f87171; }


/* RDAP Report Styles - Compact Line Height */
.rdap-report {
    font-size: 12px;
    line-height: 1.4;

    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
padding: 6px 14px;
}

.rdap-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
   /*  border-bottom: 1px solid var(--border-color);*/
	
}

.rdap-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rdap-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1e293b;
}

body.light-mode .rdap-section-title {
    color: #2563eb;
    border-color: #e2e8f0;
}

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

.rdap-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.rdap-label {
    color: #64748b;
    font-weight: 500;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.light-mode .rdap-label {
    color: #64748b;
}

.rdap-value {
    color: #e2e8f0;
    word-break: break-word;
}

body.light-mode .rdap-value {
    color: #1e293b;
}

.rdap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rdap-link {
    display: inline-block;
    padding: 4px 10px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.2s;
}

.rdap-link:hover {
    background: #334155;
    color: #93c5fd;
}

body.light-mode .rdap-link {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #2563eb;
}

body.light-mode .rdap-link:hover {
    background: #cbd5e1;
}

.rdap-notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rdap-notice {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
    border-left: 3px solid #f59e0b;
}

body.light-mode .rdap-notice {
    color: #475569;
    background: #f1f5f9;
    border-left-color: #d97706;
}

.rdap-conformance {
    color: #64748b;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}

/* Reduced line height for compact data display */
.data-table {
    line-height: 1;
}

.data-table td {
    line-height: 1.5;
    padding: 6px 10px;
}

/* Ensure compact mode is less bulky */
body.compact-mode .rdap-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
}

body.compact-mode .rdap-section-title {
    font-size: 12px;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

body.compact-mode .rdap-item {
    line-height: 1.4;
}

body.compact-mode .rdap-label {
    min-width: 100px;
}