@media (max-width: 768px) {
    .search-group { padding: 8px !important; }
    .display-4 { font-size: 2.5rem !important; }
    #resultSection { padding-top: 60px !important; }
    .nav-tabs .nav-link { font-size: 0.85rem; padding: 10px; }
    .mini-features { display: none !important; } /* Mobile pe extra icons chupayen */
}

@media (min-width: 768px) {
    .w-md-auto { width: auto !important; }
}

@media print {
    .no-print, .navbar, footer, #searchSection { display: none !important; }
    #resultSection { display: block !important; padding-top: 0 !important; }
    body { background: white !important; font-family: sans-serif; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    .badge { border: 1px solid #000 !important; color: #000 !important; background: none !important; }
    .nav-tabs { display: none; }
    .tab-content > .tab-pane { display: block !important; opacity: 1 !important; margin-bottom: 20px; }
    .collapse { display: block !important; }
}

:root { 
    --primary: #2563eb; 
    --primary-dark: #1e40af;
    --accent: #3b82f6; 
    --dark-bg: #0f172a; 
    --bg-body: #f8fafc; 
    --text-main: #1e293b; 
    --text-muted: #64748b; 
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
    overflow-x: hidden; /* Horizontal scroll off */
}

/* Navbar Transparent & Floating */
.navbar-white {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.brand { 
    font-weight: 800; 
    font-size: 1.8rem; 
    color: var(--text-main); 
    text-decoration: none; 
    letter-spacing: -0.5px; 
    display: inline-flex; 
    align-items: center; 
}

/* Full Screen Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    height: 100vh; /* Full Viewport Height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.search-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding: 10px;
    width: 100%;
}

/* Search Form Styling */
#searchForm {
    background: #ffffff;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
}

#searchForm:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

#searchForm:focus-within {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.search-icon-box {
    width: 65px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

#searchForm:focus-within .search-icon-box {
    color: var(--primary);
}

#domainInput {
    height: 100%;
    font-size: 1.25rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-main);
    padding: 0 10px;
    width: 100%;
}

#domainInput:focus {
    box-shadow: none;
    outline: none;
}

#domainInput::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.btn-search {
    padding: 0 35px;
    height: 50px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Mini Features (Badges under search) */
.mini-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.mini-feature-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.7);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    transition: all 0.2s ease;
}
.mini-feature-item:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.mini-feature-item i { margin-right: 8px; color: var(--accent); }

/* Landing Footer Fixed Bottom */
.footer-landing {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 5;
}

/* Animations & Alerts */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
    100% { transform: translateX(0); }
}

.shake-animation {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ef4444 !important;
}

.alert { border-radius: 12px; font-size: 0.95rem; }
.alert a:hover { color: #000; }

.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05) !important; border-color: var(--primary) !important; }
.icon-square { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

/* Dashboard Styles (Hidden initially) */
.border-start-md { border-left: 1px solid #e2e8f0; }
@media(max-width: 768px) { .border-start-md { border-left: none; border-top: 1px solid #e2e8f0; padding-top: 20px; } }

#loader { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(255,255,255,0.98); 
    z-index: 9999; 
    display: none; 
    align-items: center; justify-content: center; flex-direction: column; 
}
.spinner { 
    width: 50px; height: 50px; 
    border: 4px solid #e2e8f0; 
    border-top-color: var(--primary); 
    border-radius: 50%; 
    animation: spin 0.8s linear infinite; 
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Advanced Dashboard Styles */
.nav-tabs { border-bottom: 2px solid #e2e8f0; }
.nav-link { border: none; color: var(--text-muted); font-weight: 600; padding: 15px 25px; transition: all 0.2s; border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); background: none; border-bottom-color: var(--primary); }
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #e2e8f0; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.info-value { color: var(--text-main); font-weight: 600; text-align: right; }

.timeline-container { position: relative; height: 6px; background: #e2e8f0; border-radius: 10px; margin: 30px 0 10px; }
.timeline-bar { height: 100%; background: var(--primary); border-radius: 10px; position: relative; }
.timeline-point { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background: white; border: 3px solid var(--primary); border-radius: 50%; z-index: 2; }
.timeline-label { position: absolute; top: -25px; transform: translateX(-50%); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.dns-table th { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); background: #f8fafc; }
.dns-table td { font-size: 0.9rem; font-family: 'Fira Code', monospace; vertical-align: middle; }

.terminal-header { background: #1e293b; border-bottom: 1px solid #334155; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.window-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-body { background: #0f172a; color: #e2e8f0; font-family: 'Fira Code', 'Courier New', monospace; font-size: 0.85rem; line-height: 1.5; max-height: 500px; overflow-y: auto; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.terminal-body::-webkit-scrollbar { width: 8px; }
.terminal-body::-webkit-scrollbar-track { background: #0f172a; }
.terminal-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
.terminal-body::-webkit-scrollbar-thumb:hover { background: #475569; }
.raw-text { white-space: pre-wrap; word-wrap: break-word; color: #a5b4fc; }