:root {
    --bg-dark: #0a0a0c;
    --bg-card: #13131a;
    --bg-input: #1c1c24;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: #2d2d35;
    --radius: 12px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

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

/* Background Effect */
.background-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-highlight {
    color: var(--primary);
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-form {
    display: flex;
    gap: 10px;
}

.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

input[type="text"] {
    flex: 1;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.btn-search:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

/* Stats Preview */
.stats-preview {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.stat-card .icon {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(236, 72, 153, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-card .info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit';
}

.stat-card .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn-dashboard {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    transition: 0.3s;
}

.btn-dashboard:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

/* Results Page */
.results-header {
    margin: 2rem 0 3rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 4rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-type {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    flex: 1;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit';
}

.details {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-details {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: 0.2s;
}

.btn-details:hover {
    background: var(--bg-input);
    border-color: var(--text-muted);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Detail Page */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.main-info h1 {
    font-size: 2rem;
    margin: 1rem 0 2rem 0;
    line-height: 1.2;
}

.price-highlight {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 2rem;
    min-width: 200px;
}

.price-highlight .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Outfit';
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.value-sm {
    font-size: 1.2rem;
    font-weight: 600;
}

.detail-card h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-row.vertical {
    flex-direction: column;
    gap: 0.5rem;
}

.info-row .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-row .val {
    font-weight: 500;
    text-align: right;
}

.text-block {
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}