/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --primary-light: rgba(139, 92, 246, 0.1);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --bg-elevated: #16161f;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(139, 92, 246, 0.3);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ===== Header ===== */
.header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    letter-spacing: -0.5px;
    transition: all var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text);
    background: var(--primary-light);
}

.nav-link:hover::before {
    width: 60%;
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active::before {
    width: 60%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== Sections ===== */
.section {
    display: none;
    flex: 1;
}

.section.active {
    display: block;
    animation: sectionFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 56px 0 32px;
    text-align: center;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    overflow: hidden;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    animation: heroPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    animation: heroPulse 8s ease-in-out infinite 4s;
    pointer-events: none;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeUp 0.8s ease 0.3s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero .btn {
    animation: fadeUp 0.8s ease 0.5s both;
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: rgba(139, 92, 246, 0.4);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #fff, #e2e8f0);
    color: var(--primary-hover);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.hero .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.step {
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    transition: all var(--transition);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

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

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

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

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.card-rating {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.card-direction {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 14px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.card-metro {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex: 1;
    line-height: 1.6;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-price {
    font-weight: 700;
    color: var(--text);
}

.card-score {
    font-weight: 700;
    color: var(--accent);
}

.card-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.card-pros h4,
.card-cons h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-pros h4 {
    color: #22c55e;
}

.card-cons h4 {
    color: #f87171;
}

.card-pros li,
.card-cons li {
    list-style: none;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-pros li::before {
    content: '+ ';
    color: #22c55e;
    font-weight: 700;
}

.card-cons li::before {
    content: '- ';
    color: #f87171;
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.card-actions .btn {
    flex: 1;
}

/* Card stagger animation */
.card {
    animation: cardAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Search Layout ===== */
.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

.filters {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
    transition: all var(--transition);
}

.filters:hover {
    border-color: var(--border-hover);
}

.filters h3 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-elevated);
    transition: all var(--transition);
    font-family: inherit;
}

.form-group textarea {
    min-height: 108px;
    resize: vertical;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), var(--shadow-glow);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text);
}

.filters .btn {
    margin-top: 8px;
}

.filters .btn + .btn {
    margin-top: 8px;
}

/* ===== Compare ===== */
.compare-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 48px;
}

.compare-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    transition: background var(--transition);
}

.compare-table th {
    background: rgba(139, 92, 246, 0.08);
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.compare-table th:first-child {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table .best-value {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-weight: 700;
}

#clear-compare {
    margin-bottom: 48px;
}

.hidden {
    display: none !important;
}

/* ===== AI Block ===== */
.ai-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 48px;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
}

.ai-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.ai-block .section-title {
    margin-top: 0;
}

.ai-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.ai-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.ai-field-metro,
.ai-field-direction,
.ai-field-budget,
.ai-field-score {
    grid-column: span 3;
}

.ai-field-interests {
    grid-column: 1 / -1;
}

.ai-form .btn {
    display: block;
    margin: 0 auto;
}

.ai-result {
    margin-top: 28px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.06)),
        var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid rgba(139, 92, 246, 0.15);
    line-height: 1.8;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); max-height: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 1000px; }
}

.ai-result h3 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.ai-result ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ai-result li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.ai-result strong {
    color: var(--text);
}

.ai-result-header {
    margin-bottom: 22px;
}

.ai-result-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.18);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ai-summary {
    color: var(--text-secondary);
    max-width: 820px;
}

.ai-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.ai-recommendation-card {
    background: rgba(18, 18, 26, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all var(--transition);
}

.ai-recommendation-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.ai-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ai-card-top h4 {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.35;
}

.ai-match-score {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 999px;
    padding: 4px 10px;
    height: fit-content;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 700;
}

.ai-match-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.ai-badge {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 9px;
    font-size: 0.76rem;
}

.ai-fit-list {
    padding-left: 0;
    margin: 0;
}

.ai-fit-list li {
    list-style: none;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

.ai-fit-list li::before {
    content: '+ ';
    color: #22c55e;
    font-weight: 700;
}

.ai-empty {
    padding: 22px;
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.07);
    border: 1px solid rgba(248, 113, 113, 0.18);
    color: var(--text-secondary);
}

.ai-empty strong {
    color: var(--text);
}

.ai-next-step {
    margin-top: 18px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.ai-recommendation-card .btn {
    width: 100%;
}

/* Loading animation for AI */
.ai-loading {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 24px;
}

.ai-loading span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.ai-loading span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===== No Results ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results p {
    font-size: 1.1rem;
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    z-index: 200;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1), toastOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) 2.5s forwards;
    pointer-events: none;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.9); }
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Selection ===== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .search-layout {
        grid-template-columns: 1fr;
    }

    .filters {
        position: static;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .ai-form-grid {
        grid-template-columns: 1fr;
    }

    .ai-field-metro,
    .ai-field-direction,
    .ai-field-interests,
    .ai-field-budget,
    .ai-field-score {
        grid-column: 1 / -1;
    }

    .ai-card-top {
        flex-direction: column;
    }

    .ai-match-score {
        width: fit-content;
    }

    .card-pros-cons {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        display: flex;
        animation: menuSlide 0.3s ease;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .ai-block {
        padding: 28px 18px;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 14px;
    }
}
