.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-profile {
    display: flex;
    align-items: center;
}

.icon-button {
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.icon-button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(147, 51, 234, 0.4);
}

.btn-primary:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.btn-secondary:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.hero {
    padding: 80px 20px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: 8px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 20px rgba(147, 51, 234, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.disclaimer {
    padding: 40px 20px;
    text-align: center;
}

.disclaimer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.progress-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transition: width 0.3s ease;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

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

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #22c55e;
}

.toast.error {
    border-color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}

.empty-state-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.scan-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.scan-loading .spinner {
    width: 60px;
    height: 60px;
    border-width: 4px;
    margin-bottom: 24px;
    animation: spin 1s linear infinite, pulse-glow 2s ease-in-out infinite;
}

.scan-loading p {
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease-out 0.3s backwards;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 70%;
        left: 15%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

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

.search-bar {
    position: relative;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.learn-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.learn-card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.learn-card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.learn-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 12px;
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.learn-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox.checked svg {
    opacity: 1;
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.goal-card:hover {
    border-color: var(--accent);
}

.goal-checkbox {
    flex-shrink: 0;
}

.goal-content {
    flex: 1;
}

.goal-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.goal-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.goal-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.goal-actions {
    display: flex;
    gap: 8px;
}

.goal-action-btn {
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
}

.goal-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.goal-action-btn.delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.camera-modal {
    max-width: 600px;
}

.camera-preview {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-actions {
    display: flex;
    justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-title {
        animation: fadeInUp 0.8s ease-out;
    }

    .hero-subtitle {
        animation: fadeInUp 0.8s ease-out 0.2s backwards;
    }

    .hero-actions {
        animation: fadeInUp 0.8s ease-out 0.4s backwards;
    }

    .feature-card {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .feature-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .feature-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .feature-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .learn-card {
        animation: fadeIn 0.4s ease-out;
    }

    .goal-card {
        animation: fadeIn 0.4s ease-out;
    }

    .modal-content {
        animation: scaleIn 0.3s ease-out;
    }

    .toast {
        animation: slideIn 0.3s ease-out;
    }

    .toast.show {
        animation: slideIn 0.3s ease-out;
    }

    .intro-card {
        animation: fadeInUp 0.6s ease-out;
    }

    .intro-step {
        animation: slideInRight 0.5s ease-out backwards;
    }

    .intro-step:nth-child(1) {
        animation-delay: 0.1s;
    }

    .intro-step:nth-child(2) {
        animation-delay: 0.2s;
    }

    .intro-step:nth-child(3) {
        animation-delay: 0.3s;
    }

    .intro-tips {
        animation: fadeIn 0.5s ease-out 0.4s backwards;
    }

    .intro-actions {
        animation: fadeIn 0.5s ease-out 0.5s backwards;
    }

    .scan-controls {
        animation: fadeIn 0.5s ease-out;
    }

    .result-card {
        animation: fadeInUp 0.4s ease-out backwards;
    }

    .result-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .result-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .result-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .result-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .landmark-controls {
        animation: fadeIn 0.4s ease-out;
    }

    .filter-tab {
        animation: fadeIn 0.3s ease-out;
    }

    .nav-link {
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-link.active::after {
        width: 100%;
    }

    .btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .checkbox {
        transition: all 0.2s ease;
    }

    .checkbox:hover {
        transform: scale(1.1);
    }

    .search-input {
        transition: all 0.3s ease;
    }

    .search-input:focus {
        box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    }

    .form-input,
    .form-textarea,
    .form-select {
        transition: all 0.3s ease;
    }

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    }

    .progress-bar-fill {
        transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.scan-loading .spinner {
    animation: spin 1s linear infinite;
}

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

.progress-bar-fill {
    transition: width 0.6s ease-out;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.feature-card:hover {
    box-shadow: var(--shadow), 0 0 30px rgba(147, 51, 234, 0.3);
}

.learn-card:hover {
    box-shadow: var(--shadow), 0 0 20px rgba(147, 51, 234, 0.2);
}

.goal-card:hover {
    box-shadow: var(--shadow), 0 0 15px rgba(147, 51, 234, 0.15);
}

.result-card {
    transition: all 0.3s ease;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.learn-section {
    padding: 40px 20px;
}

.learn-results {
    min-height: 200px;
}

.modal-body h4 {
    font-size: 1.1rem;
    margin: 24px 0 8px 0;
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.goals-section {
    padding: 40px 20px;
}

.goals-container {
    min-height: 200px;
}

.create-goal-btn {
    margin-bottom: 24px;
}

.goal-title.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.scan-section {
    padding: 40px 20px;
}

.scan-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.scan-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.image-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-preview {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

#landmark-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.landmark-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.landmark-controls h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.landmark-controls .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.scan-results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.scan-results h2 {
    margin-bottom: 24px;
    color: var(--text-primary);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.result-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.result-note {
    font-size: 0.8rem;
    color: var(--accent-light);
    font-style: italic;
    margin-top: 12px;
}

.scan-disclaimer {
    margin-top: 32px;
}

.scan-intro {
    max-width: 600px;
    margin: 0 auto 32px;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.intro-icon {
    width: 80px;
    height: 80px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-light);
}

.intro-card h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.intro-card > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.intro-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.intro-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

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

.intro-tips {
    background: rgba(147, 51, 234, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.intro-tips h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent-light);
}

.intro-tips ul {
    list-style: none;
    padding: 0;
}

.intro-tips li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.intro-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.intro-actions {
    display: flex;
    justify-content: center;
}

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

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

.icon-button:hover {
    background: var(--bg-card);
    transform: rotate(90deg);
}

.icon-button {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(147, 51, 234, 0.2);
}

.feature-icon {
    transition: all 0.3s ease;
}

.learn-card:hover {
    transform: translateX(8px);
}

.goal-card:hover {
    transform: translateY(-2px);
}

.checkbox:hover {
    background: rgba(147, 51, 234, 0.1);
}

.filter-tab:hover {
    transform: translateY(-2px);
}

.result-card:hover {
    transform: translateY(-4px);
}

.nav-link:hover {
    color: var(--accent-light);
}

.intro-step:hover .step-number {
    transform: scale(1.1);
    background: var(--accent-light);
}

.step-number {
    transition: all 0.3s ease;
}

.intro-card:hover .intro-icon {
    transform: scale(1.05);
    background: rgba(147, 51, 234, 0.2);
}

.intro-icon {
    transition: all 0.3s ease;
}

/* ============================================
   PSL Rating Styles
   ============================================ */

.psl-overall {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.psl-score-display {
    display: flex;
    align-items: center;
    gap: 32px;
}

.psl-score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.psl-score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.psl-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.psl-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
}

.psl-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.psl-score-number span:first-child {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.psl-score-max {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.psl-score-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.psl-tier {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.psl-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.results-section-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.psl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.psl-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.3s ease;
}

.psl-feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.psl-feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.psl-feature-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.psl-feature-score {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    min-width: 36px;
    text-align: right;
}

.psl-score-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.psl-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
    width: 0%;
}

.psl-feature-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psl-feature-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.psl-feature-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.psl-proportions {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.psl-proportion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.psl-proportion-item:last-child {
    border-bottom: none;
}

.psl-proportion-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.psl-proportion-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Score color utilities */
.score-low { color: #ef4444; }
.score-mid { color: #eab308; }
.score-high { color: #22c55e; }
.score-elite { color: #06b6d4; }

.bar-low { background: linear-gradient(90deg, #ef4444, #f97316); }
.bar-mid { background: linear-gradient(90deg, #f97316, #eab308); }
.bar-high { background: linear-gradient(90deg, #22c55e, #10b981); }
.bar-elite { background: linear-gradient(90deg, #06b6d4, #3b82f6); }

@media (max-width: 600px) {
    .psl-score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .psl-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Wizard Navigation & Layout
   ============================================ */

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.wizard-step {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wizard-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-hover);
    font-size: 0.8rem;
}

.wizard-step.active {
    opacity: 1;
    color: var(--text-primary);
}

.wizard-step.current span {
    background: var(--accent);
    color: white;
}

.wizard-panel {
    animation: fadeIn 0.4s ease-out;
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.step-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================
   Capture Area
   ============================================ */

.capture-area {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
    padding: 32px;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.capture-preview, .capture-camera {
    width: 100%;
    height: 100%;
    position: relative;
}

.capture-preview img, .capture-camera video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.capture-status {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.capture-status.success {
    background: rgba(34, 197, 94, 0.8);
}

.camera-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-oval-guide {
    width: 40%;
    height: 60%;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.face-side-guide {
    width: 30%;
    height: 60%;
    border-left: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.capture-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.upload-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Analyzing Animation
   ============================================ */

.analyzing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 32px;
    text-align: center;
}

.analyzing-ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 32px;
}

.analyzing-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    animation: pulse 2s infinite ease-in-out;
}

.analyzing-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.analyzing-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}

.analyzing-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.analyzing-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.analyzing-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    height: 24px;
}

.analyzing-progress {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 48px;
}

.analyzing-progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.analyzing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 600px;
}

.analyzing-chip {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    animation: chipIn 0.3s forwards;
}

.analyzing-chip.done {
    color: var(--accent-light);
    border-color: var(--accent);
    background: rgba(147, 51, 234, 0.1);
}

@keyframes chipIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: rotate(-90deg) scale(1); }
    50% { transform: rotate(-90deg) scale(1.05); }
    100% { transform: rotate(-90deg) scale(1); }
}

/* ============================================
   Results & Recommendations
   ============================================ */

.result-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.result-photo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    border: 1px solid var(--border);
}

.result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-photo span {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.rec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--border);
}

.rec-strength { border-left-color: #22c55e; }
.rec-neutral { border-left-color: #3b82f6; }
.rec-improve { border-left-color: #eab308; }
.rec-tip { border-left-color: var(--accent); }

.rec-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.rec-icon {
    font-size: 1.2rem;
    margin-right: 12px;
}

.rec-feature {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
}

.rec-priority {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.rec-priority-high { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.rec-priority-medium { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.rec-priority-low { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.rec-priority-always { background: rgba(147, 51, 234, 0.1); color: var(--accent-light); }

.rec-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .wizard-progress { display: none !important; }
    .step-nav { flex-direction: column; gap: 16px; }
    .step-nav button { width: 100%; }
}