:root {
    --bg: #0a0a0f;
    --bg-light: #14141f;
    --card-bg: #1a1a2e;
    --card-hover: #1f1f33;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --shadow: rgba(0, 0, 0, 0.3);
    --glow: rgba(139, 92, 246, 0.3);
}

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

[v-cloak] { 
    display: none; 
}

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

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

.bg-particles {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10%, -10%) rotate(180deg); }
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--border-light);
}

.nav-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.nav-btn.icon-only {
    padding: 10px;
}

.nav-btn i {
    font-size: 1.1rem;
}

.nav-spacer {
    flex: 1;
}

/* App Container */
.app-container {
    max-width: 600px;
    margin: 80px auto 40px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.hero-section {
    margin-bottom: 40px;
}

.icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 4rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow);
}

.feature-card {
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--accent);
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Buttons */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-btn, .secondary-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

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

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

.primary-btn.large {
    padding: 20px 32px;
    font-size: 1.1rem;
}

.secondary-btn {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

/* Question Screen */
.question-screen {
    animation: slideInRight 0.4s ease-out;
}

.progress-section {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-percent {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.question-card {
    text-align: center;
}

.question-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounceIn 0.5s ease-out;
}

.question-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.question-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.options-grid {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.options-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.options-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.options-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.option-btn {
    background: var(--bg-light);
    border: 2px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: var(--accent);
    background: var(--card-bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow);
}

.option-btn:active {
    transform: translateY(-2px);
}

.option-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.option-btn:hover .option-icon {
    transform: scale(1.1);
}

.option-text {
    font-size: 1rem;
    font-weight: 600;
}

.option-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.option-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-btn:hover .option-ripple {
    opacity: 1;
}

/* Question Navigation */
.question-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.nav-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.nav-dot:hover {
    border-color: var(--accent);
    background: var(--card-bg);
}

.nav-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.1);
}

.nav-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.loading-card {
    text-align: center;
}

.loading-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring.delay-1 {
    border-top-color: var(--accent-light);
    animation-delay: 0.15s;
}

.spinner-ring.delay-2 {
    border-top-color: var(--accent-dark);
    animation-delay: 0.3s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

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

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

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

/* Results Screen */
.results-screen {
    animation: fadeInUp 0.6s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.results-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.results-subtitle strong {
    color: var(--accent);
}

/* Filters */
.results-filters {
    margin-bottom: 30px;
}

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    padding: 10px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Perfume List */
.perfume-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.perfume-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out backwards;
}

.perfume-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.perfume-rank {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.match-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.match-badge.perfect {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.match-badge.great {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-light);
}

.match-badge.good {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.favorite-btn {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.favorite-btn:hover {
    background: var(--card-hover);
    border-color: var(--error);
    color: var(--error);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.img-section {
    flex-shrink: 0;
}

.img-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    padding: 10px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.placeholder-img {
    font-size: 2.5rem;
    color: var(--text-dim);
    opacity: 0.3;
}

.perfume-info {
    flex: 1;
    text-align: left;
}

.brand-name {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.perfume-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.75rem;
    background: var(--bg-light);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.tag.primary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-light);
    border-color: rgba(139, 92, 246, 0.3);
}

.description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    gap: 10px;
}

.view-details-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    gap: 10px;
    color: var(--accent-light);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    margin-bottom: 10px;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Browse Screen */
.browse-screen {
    animation: fadeInUp 0.6s ease-out;
}

.browse-header {
    margin-bottom: 30px;
}

.browse-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.browse-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-select {
    flex: 1;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.perfume-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.perfume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.perfume-card-small {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.perfume-card-small:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.perfume-card-small .img-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.perfume-card-small .card-info {
    text-align: center;
}

.perfume-card-small h4 {
    font-size: 0.95rem;
    margin: 8px 0;
    line-height: 1.3;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content.small {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--card-hover);
    color: var(--text);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.detail-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent);
}

.modal-btn.active {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

/* Help Modal */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.help-item i {
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.help-item h4 {
    margin-bottom: 4px;
}

.help-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    min-width: 250px;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast i {
    font-size: 1.3rem;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--error);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Transition Classes */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-enter-active, .slide-leave-active {
    transition: all 0.3s ease;
}

.slide-enter-from {
    opacity: 0;
    transform: translateX(30px);
}

.slide-leave-to {
    opacity: 0;
    transform: translateX(-30px);
}

.modal-enter-active, .modal-leave-active {
    transition: opacity 0.3s ease;
}

.modal-enter-from, .modal-leave-to {
    opacity: 0;
}

.modal-enter-active .modal-content,
.modal-leave-active .modal-content {
    transition: transform 0.3s ease;
}

.modal-enter-from .modal-content {
    transform: scale(0.9);
}

.modal-leave-to .modal-content {
    transform: scale(0.9);
}

.toast-enter-active, .toast-leave-active {
    transition: all 0.3s ease;
}

.toast-enter-from {
    opacity: 0;
    transform: translateX(100px);
}

.toast-leave-to {
    opacity: 0;
    transform: translateX(100px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        margin-top: 70px;
        padding: 16px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .options-grid.grid-2,
    .options-grid.grid-3,
    .options-grid.grid-4 {
        grid-template-columns: 1fr;
    }

    .card-content {
        flex-direction: column;
        text-align: center;
    }

    .perfume-info {
        text-align: center;
    }

    .tags {
        justify-content: center;
    }

    .card-footer {
        justify-content: center;
    }

    .perfume-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-img {
        margin: 0 auto;
    }

    .results-actions {
        flex-direction: column;
    }

    .browse-filters {
        flex-direction: column;
    }

    .toast-container {
        left: 20px;
        right: 20px;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .perfume-rank {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .match-badge {
        position: static;
        margin-bottom: 12px;
    }

    .favorite-btn {
        top: 20px;
        right: 60px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
