/* Custom Design System & CSS Reset */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
.top-nav {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.parked-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.parked-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-emerald);
}

.domain-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.domain-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 70px 0 50px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
}

.hero-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    transition: var(--transition-normal);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.3);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-right: 14px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.search-box input::placeholder {
    color: var(--text-dark);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.search-btn:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

/* Trending Tags */
.trending-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.trending-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-pill:hover, .tag-pill.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--border-highlight);
    color: #ffffff;
}

/* Main Layout */
.main-layout {
    padding-bottom: 80px;
}

/* Category Filter Tabs */
.category-tabs-container {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.tabs-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.tab-btn {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    background: rgba(31, 41, 55, 0.8);
    color: #ffffff;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.badge-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.tab-btn.active .badge-count {
    background: var(--primary);
    color: #fff;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-main);
}

.sponsored-notice {
    font-size: 0.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Ad Card */
.ad-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition-fast);
}

.ad-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.ad-card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.category-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 0.8rem;
}

.rating {
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    gap: 4px;

}

.rating-num {
    color: var(--text-main);
    font-weight: 600;
    margin-left: 4px;
}

.badge-sponsored {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.ad-card .btn-cta {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    color: #ffffff;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.ad-card .btn-cta:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* No Results Box */
.no-results {
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 50px 20px;
    text-align: center;
}

.no-results i {
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 16px;
}

.no-results h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Sidebar Styling */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.domain-sale-card {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.card-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.15);
    filter: blur(30px);
}

.sale-icon {
    width: 42px;
    height: 42px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.sidebar-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price-estimate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.price-estimate .label {
    color: var(--text-muted);
}

.price-estimate .val {
    color: var(--accent-emerald);
    font-weight: 700;
}

/* Quick Links List */
.quick-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-links-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.quick-links-list li a:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--border-highlight);
    color: #ffffff;
    transform: translateX(4px);
}

.quick-links-list li a i {
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Trust Widget */
.trust-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
}

.trust-item strong {
    display: block;
    font-size: 0.88rem;
}

.trust-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: var(--transition-normal);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-box {
    background: #111827;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Form Controls */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-emerald);
    color: #000000;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: var(--transition-fast);
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
}

/* Footer */
.footer {
    background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info .disclaimer {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .search-box {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 12px;
    }
    .search-icon {
        display: none;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        border-radius: var(--radius-sm);
    }
}
