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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Fira Code', monospace;
    background: #0a0c10;
    color: #e8edf2;
    line-height: 1.5;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(18, 52, 77, 0.4) 0%, rgba(10, 12, 16, 0.95) 100%);
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* RESPONSIVE HEADER */
/* ============================================ */
.header {
    background: linear-gradient(135deg, rgba(17, 19, 22, 0.9), rgba(30, 27, 75, 0.7));
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-icon {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.logo-icon span {
    font-size: 1.8rem;
}

.brand h1 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sanskrit {
    font-size: 0.65rem;
    color: #60a5fa;
    font-family: monospace;
}

.tagline-section {
    text-align: center;
}

.tagline {
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
}

.tagline-sub {
    font-size: 0.6rem;
    color: #60a5fa;
    margin-top: 0.2rem;
}

.right-section {
    text-align: right;
}

.security-badge {
    background: rgba(96, 165, 250, 0.15);
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    display: inline-block;
    font-size: 0.65rem;
    color: #60a5fa;
}

.domain-url {
    font-family: monospace;
    font-size: 0.65rem;
    color: #4a5568;
    margin-top: 0.3rem;
}

/* ============================================ */
/* RESPONSIVE SEARCH SECTION */
/* ============================================ */
.search-card {
    background: rgba(17, 19, 22, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.15);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    background: #0a0c10;
    border-radius: 14px;
    padding: 0.3rem;
    border: 1px solid #1f2429;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.9rem 1.2rem;
    color: #e8edf2;
    font-size: 0.95rem;
    font-family: 'Fira Code', monospace;
    outline: none;
}

.search-box input::placeholder {
    color: #4a5568;
}

.search-box button {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.suggestions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.suggestion {
    background: rgba(17, 19, 22, 0.6);
    border: 1px solid #1f2429;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.suggestion:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: #60a5fa;
    color: #60a5fa;
}

/* ============================================ */
/* RESPONSIVE DASHBOARD GRID */
/* ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-card-compact {
    background: rgba(17, 19, 22, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.status-card-compact:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.status-header {
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-header span:first-child {
    font-size: 1rem;
}

.status-header span:last-child {
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #60a5fa;
}

.status-content {
    padding: 1rem;
}

.big-status {
    text-align: center;
    padding: 0.5rem;
}

.status-big-icon {
    font-size: 2rem;
}

.status-big-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* ============================================ */
/* RESPONSIVE INFO ROWS */
/* ============================================ */
.info-row-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
}

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

.info-label-compact {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.info-value-compact {
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    color: #e2e8f0;
    word-break: break-all;
    text-align: right;
}

.info-value-compact a {
    color: #60a5fa;
    text-decoration: none;
}

/* ============================================ */
/* RESPONSIVE PROGRESS BAR */
/* ============================================ */
.futuristic-progress {
    margin-top: 0.8rem;
    position: relative;
}

.progress-bar-container {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    filter: blur(4px);
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.fill-critical { background: linear-gradient(90deg, #ef4444, #f97316); box-shadow: 0 0 8px #ef4444; }
.fill-warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 8px #f59e0b; }
.fill-good { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 8px #10b981; }
.fill-excellent { background: linear-gradient(90deg, #3b82f6, #8b5cf6); box-shadow: 0 0 8px #3b82f6; }

.progress-percent {
    text-align: right;
    font-size: 0.6rem;
    color: #60a5fa;
    margin-top: 0.3rem;
    font-family: monospace;
}

/* ============================================ */
/* RESPONSIVE NAME SERVERS BADGES */
/* ============================================ */
.nameserver-badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.nameserver-badge {
    background: linear-gradient(135deg, rgba(17, 19, 22, 0.9), rgba(30, 27, 75, 0.6));
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.nameserver-badge:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.ns-badge-icon {
    font-size: 1rem;
}

.ns-badge-host {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #60a5fa;
}

/* ============================================ */
/* RESPONSIVE STATUS CHIPS */
/* ============================================ */
.status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.status-chip-protection {
    background: linear-gradient(135deg, rgba(17, 19, 22, 0.9), rgba(30, 27, 75, 0.6));
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: help;
}

.status-chip-protection:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.status-chip-icon {
    font-size: 0.8rem;
}

.status-chip-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #60a5fa;
}

/* ============================================ */
/* RESPONSIVE AVAILABLE CARD */
/* ============================================ */
.available-card {
    background: linear-gradient(135deg, rgba(17, 19, 22, 0.9), rgba(30, 27, 75, 0.8));
    border: 2px solid #10b981;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.available-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.available-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.available-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.available-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.register-button {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.available-price-info {
    margin-top: 1rem;
}

/* ============================================ */
/* RESPONSIVE RAW DATA SECTION */
/* ============================================ */
.raw-section {
    margin-top: 1.5rem;
    background: rgba(17, 19, 22, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
}

.raw-header {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #64748b;
}

.raw-header:hover {
    background: rgba(96, 165, 250, 0.05);
}

.raw-content {
    display: none;
    padding: 1rem;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    background: #0a0c10;
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    color: #94a3b8;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

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

/* ============================================ */
/* RESPONSIVE ERROR CARD */
/* ============================================ */
.error-card {
    background: rgba(17, 19, 22, 0.8);
    border: 1px solid #ef4444;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: #f87171;
}

/* ============================================ */
/* RESPONSIVE FOOTER */
/* ============================================ */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    font-size: 0.6rem;
    color: #4a5568;
}

/* ============================================ */
/* LOADING SPINNER */
/* ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    display: none;
}

.loading.show {
    display: block;
}

.terminal-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 2px solid #1f2429;
    border-top: 2px solid #60a5fa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.results {
    display: none;
    animation: fadeIn 0.3s ease;
}

.results.show {
    display: block;
}

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

/* ============================================ */
/* RESPONSIVE MEDIA QUERIES */
/* ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .right-section {
        text-align: center;
    }
}

/* Mobile Large (425px - 768px) */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .brand h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    .search-box {
        flex-direction: column;
        padding: 0;
    }
    
    .search-box input {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .search-box button {
        padding: 0.6rem;
        font-size: 0.8rem;
        white-space: normal;
    }
    
    .suggestions {
        justify-content: center;
    }
    
    .suggestion {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .status-header {
        padding: 0.6rem 0.8rem;
    }
    
    .status-content {
        padding: 0.8rem;
    }
    
    .status-big-icon {
        font-size: 1.5rem;
    }
    
    .status-big-text {
        font-size: 0.9rem;
    }
    
    .info-row-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-value-compact {
        text-align: left;
        word-break: break-all;
    }
    
    /* Registration Details - 3 columns to 1 column on mobile */
    .status-card-compact .status-content > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }
    
    .nameserver-badge-grid {
        justify-content: center;
    }
    
    .nameserver-badge {
        padding: 0.4rem 0.8rem;
    }
    
    .ns-badge-host {
        font-size: 0.65rem;
    }
    
    .status-chips {
        justify-content: center;
    }
    
    .status-chip-protection {
        padding: 0.3rem 0.8rem;
    }
    
    .status-chip-label {
        font-size: 0.65rem;
    }
    
    .available-card {
        padding: 1.5rem;
    }
    
    .available-icon {
        font-size: 3rem;
    }
    
    .available-title {
        font-size: 1.2rem;
    }
    
    .available-subtitle {
        font-size: 0.8rem;
    }
    
    .register-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .raw-header {
        padding: 0.6rem 1rem;
        font-size: 0.65rem;
    }
    
    .raw-content {
        padding: 0.8rem;
        font-size: 0.55rem;
    }
    
    .footer {
        font-size: 0.5rem;
    }
}

/* Mobile Small (320px - 425px) */
@media (max-width: 425px) {
    .container {
        padding: 0.8rem;
    }
    
    .header {
        padding: 0.8rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon span {
        font-size: 1.4rem;
    }
    
    .brand h1 {
        font-size: 1.1rem;
    }
    
    .sanskrit {
        font-size: 0.55rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .tagline-sub {
        font-size: 0.55rem;
    }
    
    .search-title {
        font-size: 0.6rem;
    }
    
    .search-box input {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .search-box button {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .suggestion {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .status-header span:last-child {
        font-size: 0.55rem;
    }
    
    .status-big-text {
        font-size: 0.8rem;
    }
    
    .info-label-compact {
        font-size: 0.55rem;
    }
    
    .info-value-compact {
        font-size: 0.65rem;
    }
    
    .ns-badge-host {
        font-size: 0.6rem;
    }
    
    .status-chip-label {
        font-size: 0.6rem;
    }
    
    .available-title {
        font-size: 1rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .search-box {
        flex-direction: row;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
        padding: 2rem;
    }
    
    .dashboard-grid {
        gap: 1.5rem;
    }
    
    .status-header {
        padding: 1rem 1.5rem;
    }
    
    .status-header span:last-child {
        font-size: 0.75rem;
    }
    
    .status-content {
        padding: 1.5rem;
    }
}