:root {
    --primary-color: #4f46e5;
    --secondary-color: #6b7280;
    --text-color: #111827;
    --bg-color: #ffffff;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

[data-theme="dark"] {
    --primary-color: #6366f1;
    --secondary-color: #9ca3af;
    --text-color: #f3f4f6;
    --bg-color: #1f2937;
    --card-bg: #374151;
    --border-color: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.5;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--card-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.hero {
    text-align: center;
    padding: 40px 0 30px;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
    flex-direction: column;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--card-bg);
    color: var(--text-color);
    margin-bottom: 10px;
    -webkit-appearance: none;
}

.search-box button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tld-selection {
    text-align: left;
    margin-bottom: 25px;
}

.tld-selection h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.tld-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tld-btn {
    padding: 8px 15px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tld-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tld-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.custom-tld {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-tld input {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.custom-tld button {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.results-section {
    margin: 30px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-header h3 {
    font-size: 20px;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions button {
    padding: 8px 15px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.actions button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.results-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.domain-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: var(--bg-color);
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.domain-name {
    font-size: 16px;
    font-weight: 600;
    word-break: break-all;
}

.domain-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.domain-status.available {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.domain-status.taken {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.domain-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.domain-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 44px;
    min-width: 44px;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
}

.copy-btn:hover {
    background-color: #4338ca;
}

.save-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color) !important;
}

.save-btn:hover {
    background-color: var(--border-color);
}

.save-btn.saved {
    background-color: var(--warning-color);
    color: white;
    border: 1px solid var(--warning-color) !important;
}

.buy-btn {
    position: relative;
}

.buy-dropdown {
    position: fixed;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    max-height: 60vh;
    overflow-y: auto;
}

.buy-dropdown.show {
    display: block;
}

.buy-dropdown h4 {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--secondary-color);
}

.registrar-option {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.registrar-option:last-child {
    border-bottom: none;
}

.registrar-option a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.registrar-option a:hover {
    text-decoration: underline;
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.saved-domains-section {
    margin: 30px 0;
}

.saved-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.about-section, .pricing-section {
    margin: 40px 0;
}

.about-section h2, .pricing-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.pricing-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pricing-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.registrar-prices {
    list-style: none;
}

.registrar-prices li {
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.registrar-prices li:last-child {
    border-bottom: none;
}

footer {
    background-color: var(--card-bg);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: var(--secondary-color);
    font-size: 14px;
}

@media (min-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .search-box {
        flex-direction: row;
    }
    
    .search-box input {
        margin-bottom: 0;
        border-radius: 8px 0 0 8px;
    }
    
    .search-box button {
        width: auto;
        border-radius: 0 8px 8px 0;
    }
    
    .domain-card {
        flex-direction: row;
        align-items: center;
    }
    
    .pricing-table {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .buy-dropdown {
        position: absolute;
        left: auto;
        right: 0;
        bottom: auto;
        min-width: 250px;
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}