/* --- Variables --- */
:root {
    --primary-color: #2563eb; /* Modern Blue */
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc; /* Very light slate */
    --text-main: #334155; /* Balanced dark gray */
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
}

/* --- Reset & Basics --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; }

/* --- Buttons --- */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}
.btn-primary:hover { background-color: var(--primary-hover); color: var(--white); }
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }

/* --- Header & Nav --- */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}
.logo span { color: var(--primary-color); }
.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}
.main-nav a { color: var(--text-main); font-weight: 600; }
.main-nav a:hover { color: var(--primary-color); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Content Areas --- */
.content { flex: 1; padding-bottom: 60px; }

/* Hero Section */
.hero, .page-header {
    background-color: var(--white);
    padding: 80px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.hero h1, .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.domain-search-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.domain-search-form input {
    padding: 12px 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.feature-card h3 { margin-bottom: 15px; }

/* Pricing Grid */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}
.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.price { font-size: 2.5rem; font-weight: 700; margin: 20px 0; }
.price span { font-size: 1rem; color: var(--text-light); }
.pricing-card ul { margin-bottom: 30px; color: var(--text-light); }
.pricing-card ul li { margin-bottom: 10px; }

/* Tables */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.pricing-table th, .pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.pricing-table th { background-color: #f1f5f9; }

/* --- Footer --- */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h3, .footer-col h4 { margin-bottom: 15px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-light); }
.footer-col a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; width: 100%; text-align: center; }
    .pricing-card.popular { transform: scale(1); }
    .domain-search-form { flex-direction: column; }
}


/* --- Real-Time Search Results --- */
.search-results-container {
    margin-top: 30px;
    display: none; /* Hidden until a search is made */
    animation: fadeIn 0.3s ease-in-out;
}

.result-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.result-box h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Success State */
.result-box.available {
    border-left: 5px solid #10b981; /* Emerald Green */
}
.result-box.available h3 strong {
    color: #10b981;
}

/* Taken State */
.result-box.taken {
    border-left: 5px solid #ef4444; /* Red */
}

/* Error State */
.result-box.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.loading-spinner {
    color: var(--text-light);
    font-weight: 600;
}

.mt-15 {
    margin-top: 15px;
}

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