/* --- Core Settings & Custom Colors --- */
:root {
    --bg-main: #0b0f19;
    --bg-card: #151c2c;
    --text-main: #ffffff;
    --text-muted: #8fa0dd;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #10b981;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Utility Components --- */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Header & Navbar --- */
header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* --- Hero & Domain Search Section --- */
.hero {
    padding: 160px 20px 100px 20px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 50%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

/* Search Container UI */
.search-container {
    max-width: 750px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.search-icon {
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 20px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 10px 5px;
}

.search-box select {
    background: var(--bg-main);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    margin-right: 10px;
    outline: none;
    cursor: pointer;
}

/* Search Result & Dynamic Suggestion Row Rows */
.search-result {
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease-in-out;
}

.suggestion-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(21, 28, 44, 0.6);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.suggestion-row:hover {
    background: rgba(21, 28, 44, 0.9);
}

.whois-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.whois-info-row span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Hosting Packages Section --- */
.hosting-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.3);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.price-container {
    margin-bottom: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.billing-cycle {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 4px;
}

.renewal-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    font-style: italic;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 6px;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.features li i {
    color: var(--accent);
    font-size: 14px;
}

.features li.disabled {
    color: #475569;
    text-decoration: line-through;
    opacity: 0.6;
}

.features li.disabled i {
    color: #ef4444;
}

/* --- Contact Section Architecture --- */
.contact-section {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 40px 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card h3 i {
    color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-response {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.form-response.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Contact Sidebar Channels & QR Elements */
.identity-sidebar {
    display: flex;
    flex-direction: column;
}

.channel-link-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.channel-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-email { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.text-tg { background: rgba(0, 136, 204, 0.1); color: #0088cc; }

.channel-details {
    display: flex;
    flex-direction: column;
}

.channel-details span {
    font-size: 12px;
    color: var(--text-muted);
}

.channel-details a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.channel-details a:hover {
    text-decoration: underline;
}

.qr-code-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}

.qr-code-wrapper h4 {
    font-size: 14px;
    margin-bottom: 15px;
}

.qr-container {
    background: #fff;
    padding: 12px;
    display: inline-block;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-caption {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Footer Infrastructure --- */
footer {
    background-color: #070a12;
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 30px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-block h3 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-block h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-block p {
    color: var(--text-muted);
    font-size: 14px;
    padding-right: 20px;
}

.footer-block ul {
    list-style: none;
}

.footer-block ul li {
    margin-bottom: 12px;
}

.footer-block ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 15px;
}

.footer-block ul li a:hover {
    color: #fff;
}

.contact-details ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-details ul li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #526484;
    font-size: 14px;
}

/* --- Whois Popup Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: all 0.25s ease-in-out;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(1);
    transition: transform 0.25s ease-in-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    color: #fff;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

/* Core Hidden Rules to prevent collision */
.hidden, .hidden-modal {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- Keyframe Animations & Responsive Breakpoints --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        padding: 10px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .search-box input, 
    .search-box select, 
    .search-box button {
        width: 100%;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        padding: 14px;
        border-radius: 8px;
        margin: 0;
    }
    
    .search-icon {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}