/* ═══════════════════════════════════════════════════════════
   STAYBNB AI FASHION PLATFORM — style.css
   Premium Futuristic Design System
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens — Dark (default) ── */
:root {
    --bg-deep: #05010f;
    --bg-card: #0d0520;
    --bg-glass: rgba(13, 5, 32, 0.7);
    --bg-glass-light: rgba(180, 123, 255, 0.06);
    --border-glass: rgba(180, 123, 255, 0.15);
    --border-glow: rgba(180, 123, 255, 0.4);

    --accent-purple: #b47bff;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff6b9d;
    --accent-gold: #ffd700;
    --accent-green: #00f5a0;

    --text-primary: #f0e8ff;
    --text-secondary: rgba(240, 232, 255, 0.6);
    --text-muted: rgba(240, 232, 255, 0.35);

    --grad-main: linear-gradient(135deg, #b47bff 0%, #00d4ff 100%);
    --grad-card: linear-gradient(145deg, rgba(180, 123, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
    --grad-hero: radial-gradient(ellipse at 60% 40%, rgba(180, 123, 255, 0.25) 0%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;

    --shadow-card: 0 8px 40px rgba(180, 123, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(180, 123, 255, 0.3), 0 0 80px rgba(0, 212, 255, 0.15);
    --shadow-hover: 0 20px 60px rgba(180, 123, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.6);

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-bg: rgba(5, 1, 15, 0.82);
    --modal-bg: #0d0520;
    --section-alt-bg: rgba(180, 123, 255, 0.04);
    --input-bg: rgba(255, 255, 255, 0.04);
    --canvas-custom: #6c757d;
}

/* ── Light Theme Override ── */
[data-theme="light"] {
    --bg-deep: #f0eefc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.82);
    --bg-glass-light: rgba(148, 88, 255, 0.07);
    --border-glass: rgba(148, 88, 255, 0.18);
    --border-glow: rgba(148, 88, 255, 0.45);

    --accent-purple: #7c3aed;
    --accent-cyan: #0284c7;
    --accent-pink: #db2777;
    --accent-gold: #d97706;
    --accent-green: #059669;

    --text-primary: #1a0050;
    --text-secondary: rgba(26, 0, 80, 0.65);
    --text-muted: rgba(26, 0, 80, 0.4);

    --grad-main: linear-gradient(135deg, #7c3aed 0%, #0284c7 100%);
    --grad-card: linear-gradient(145deg, rgba(124, 58, 237, 0.1) 0%, rgba(2, 132, 199, 0.05) 100%);
    --grad-hero: radial-gradient(ellipse at 60% 40%, rgba(124, 58, 237, 0.18) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 70%);

    --shadow-card: 0 4px 24px rgba(124, 58, 237, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.25), 0 0 60px rgba(2, 132, 199, 0.12);
    --shadow-hover: 0 12px 40px rgba(124, 58, 237, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);

    --nav-bg: rgba(240, 238, 252, 0.88);
    --modal-bg: #ffffff;
    --section-alt-bg: rgba(124, 58, 237, 0.04);
    --input-bg: rgba(0, 0, 0, 0.03);
    --canvas-custom: #555;
}

/* Light theme specific overrides */
[data-theme="light"] body {
    background-color: var(--bg-deep);
}

[data-theme="light"] #particleCanvas {
    opacity: 0.25;
}

[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.6) 0%, rgba(2, 132, 199, 0.2) 60%, transparent 100%);
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #e8e4f8;
}

[data-theme="light"] .nav {
    background: var(--nav-bg);
    border-bottom-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .modal {
    background: var(--modal-bg);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .auth-modal-left {
    background: linear-gradient(145deg, #ede9ff, #e6f4ff);
}

[data-theme="light"] .outfit-card {
    background: #fff;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .outfit-card:hover {
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .ai-analysis-box {
    background: rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .hero-bg-mesh {
    background:
        radial-gradient(ellipse at 65% 45%, rgba(124, 58, 237, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 60%, rgba(2, 132, 199, 0.1) 0%, transparent 45%);
}

[data-theme="light"] .mood-chip {
    background: rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .mood-chip.active {
    background: rgba(124, 58, 237, 0.14);
}

[data-theme="light"] .boutique-card {
    background: #fff;
}

[data-theme="light"] .eco-metric-card {
    background: #fff;
}

[data-theme="light"] .data-tag {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .orbit-tag {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .wardrobe-pieces {
    background: rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .wardrobe-canvas {
    background: rgba(124, 58, 237, 0.03);
    border-color: rgba(124, 58, 237, 0.2);
}

[data-theme="light"] .profile-modal {
    background: #fff;
}

[data-theme="light"] .form-group input {
    background: var(--input-bg);
    color: var(--text-primary);
}

[data-theme="light"] .analyzer-dropzone {
    background: rgba(124, 58, 237, 0.04);
    border-color: rgba(124, 58, 237, 0.2);
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1200;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--border-glow);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(180, 123, 255, 0.2);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 8px 32px rgba(180, 123, 255, 0.4);
    border-color: var(--accent-purple);
}

.theme-toggle .theme-icon {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: translateY(24px);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: translateY(-24px);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="light"] .theme-toggle {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 20px rgba(124, 58, 237, 0.2);
}

/* ── Reset + Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    min-height: 100vh;
}

/* ── Particle Canvas ── */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ── Custom Cursor ── */
.cursor-glow {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 123, 255, 0.8) 0%, rgba(0, 212, 255, 0.3) 60%, transparent 100%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: width 0.2s, height 0.2s;
    will-change: transform;
}

body:has(button:hover) .cursor-glow,
body:has(a:hover) .cursor-glow {
    width: 48px;
    height: 48px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 3px;
}

/* ═══════════════════════════════ NAV ══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(5, 1, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.nav.scrolled {
    padding: 12px 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 36px;
    height: 36px;
    animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--grad-main);
    color: white;
    align-self: flex-start;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--grad-main);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ai-pulse-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-green);
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.4);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 245, 160, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 160, 0);
    }
}

/* ═══════════════════════════════ BUTTONS ════════════════════════════════════ */
.btn-primary {
    padding: 12px 28px;
    border-radius: 100px;
    border: none;
    background: var(--grad-main);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--spring);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.glow-btn {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(180, 123, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(180, 123, 255, 0.7), 0 0 60px rgba(0, 212, 255, 0.3);
    }
}

.btn-ghost {
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    background: transparent;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--spring);
    backdrop-filter: blur(10px);
}

.btn-ghost.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-ghost:hover {
    background: var(--bg-glass-light);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-icon {
    animation: spin-slow 4s linear infinite;
    display: inline-block;
}

/* ═══════════════════════════════ GRADIENT TEXT ══════════════════════════════ */
.gradient-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════ HERO ══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 80px 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 65% 45%, rgba(180, 123, 255, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 60%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 107, 157, 0.08) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    background: rgba(180, 123, 255, 0.1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-purple);
    width: fit-content;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: pulse-ring 2s infinite;
}

.hero-title {
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-title .line-1 {
    display: block;
    color: var(--text-primary);
}

.hero-title .line-2 {
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat>div:first-child {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat>span {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 28px;
    display: inline;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-glass);
}

/* ── Hero Visual / Fashion Figure ── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.fashion-figure {
    position: relative;
    width: 360px;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: figure-float 6s ease-in-out infinite;
}

@keyframes figure-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-16px) rotate(0.5deg);
    }

    66% {
        transform: translateY(-8px) rotate(-0.3deg);
    }
}

.figure-glow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: ring-pulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 200px;
    height: 200px;
    border-color: rgba(180, 123, 255, 0.3);
    bottom: 40px;
    animation-delay: 0s;
}

.ring-2 {
    width: 300px;
    height: 300px;
    border-color: rgba(0, 212, 255, 0.15);
    bottom: -10px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 420px;
    height: 420px;
    border-color: rgba(180, 123, 255, 0.08);
    bottom: -70px;
    animation-delay: 1s;
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.figure-svg {
    width: 260px;
    height: 480px;
    filter: drop-shadow(0 0 30px rgba(180, 123, 255, 0.4));
}

.fabric-float {
    animation: fabric-anim 4s ease-in-out infinite;
    transform-origin: 185px 160px;
}

.fabric-float-2 {
    animation: fabric-anim-2 5s ease-in-out infinite;
    transform-origin: 35px 220px;
}

@keyframes fabric-anim {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(12deg) scale(1.1) translateX(6px);
    }
}

@keyframes fabric-anim-2 {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-10deg) scale(1.08) translateX(-5px);
    }
}

.scan-line {
    animation: scan-blink 3s ease-in-out infinite;
}

.scan-line:nth-child(1) {
    animation-delay: 0s;
}

.scan-line:nth-child(2) {
    animation-delay: 0.4s;
}

.scan-line:nth-child(3) {
    animation-delay: 0.8s;
}

.scan-line:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes scan-blink {

    0%,
    90%,
    100% {
        opacity: 0;
    }

    10%,
    80% {
        opacity: 0.6;
    }
}

/* Data Tags */
.data-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
    font-size: 12px;
    white-space: nowrap;
    box-shadow: var(--shadow-card);
    animation: tag-float 4s ease-in-out infinite;
}

.tag-mood {
    top: 60px;
    left: -30px;
    animation-delay: 0s;
}

.tag-tone {
    bottom: 100px;
    right: -40px;
    animation-delay: 1.5s;
}

.tag-style {
    top: 180px;
    right: -50px;
    animation-delay: 0.8s;
}

@keyframes tag-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.tag-icon {
    color: var(--accent-purple);
    font-size: 16px;
}

.tag-label {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.tag-value {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

/* ═══════════════════════════════ SECTIONS ════════════════════════════════════ */
.section {
    position: relative;
    padding: 120px 80px;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 300;
}

/* ═══════════════════════════════ MOOD ════════════════════════════════════════ */
.mood-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.mood-radar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

#moodRadar {
    filter: drop-shadow(0 0 20px rgba(180, 123, 255, 0.3));
}

.radar-center-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-purple);
}

.mood-tags-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orbit-tag {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    left: 50%;
    top: 50%;
    transform:
        rotate(var(--angle)) translateX(162px) rotate(calc(-1 * var(--angle)));
    background: var(--bg-glass);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    white-space: nowrap;
    translate: -50% -50%;
}

.mood-selector {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mood-selector-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mood-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mood-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--spring);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
}

.mood-chip:hover {
    background: rgba(180, 123, 255, 0.12);
    border-color: var(--accent-purple);
    transform: scale(1.03) translateY(-2px);
}

.mood-chip.active {
    background: rgba(180, 123, 255, 0.18);
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(180, 123, 255, 0.2);
}

.mood-chip-icon {
    font-size: 20px;
}

.ai-analysis-box {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--grad-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 14px;
}

.analysis-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: pulse-ring 1.5s infinite;
}

.analysis-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.analysis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.a-tag {
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-glow);
    font-size: 12px;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.06);
}

/* ═══════════════════════════════ SKIN TONE ══════════════════════════════════ */
.skin-tone-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(180, 123, 255, 0.08) 0%, transparent 60%);
}

.tone-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tone-selector-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tone-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tone-swatches {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.swatch {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--spring);
    border: 2px solid transparent;
    position: relative;
}

.swatch::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.swatch:hover {
    transform: scale(1.1);
}

.swatch.active {
    border-color: var(--accent-purple);
}

.swatch.active::after {
    border-color: rgba(180, 123, 255, 0.4);
}

.tone-palette-display {
    display: flex;
    gap: 10px;
}

.palette-item {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: background 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tone-recommendation {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-purple);
    background: var(--bg-glass-light);
}

.tone-preview-mannequin {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mannequin-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 123, 255, 0.3) 0%, transparent 70%);
    bottom: 10px;
    transition: background 0.8s ease;
    animation: mannequin-glow-pulse 4s ease-in-out infinite;
}

@keyframes mannequin-glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.mannequin-svg {
    width: 220px;
    height: 400px;
    filter: drop-shadow(0 0 24px rgba(180, 123, 255, 0.4));
    animation: figure-float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.tone-color-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.3;
    border-color: var(--accent-purple);
    animation: ring-pulse 3s ease-in-out infinite;
}

/* ═══════════════════════════════ OUTFIT CARDS ═══════════════════════════════ */
.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.outfit-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    cursor: pointer;
    transition: var(--spring);
    transform-style: preserve-3d;
    perspective: 800px;
    box-shadow: var(--shadow-card);
}

.outfit-card:hover {
    transform: translateY(-12px) rotate3d(1, 0, 0, 3deg);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-purple);
}

.outfit-card-visual {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.outfit-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-grad, linear-gradient(135deg, rgba(180, 123, 255, 0.15), rgba(0, 212, 255, 0.1)));
    transition: var(--transition);
}

.outfit-card:hover .outfit-card-visual::before {
    opacity: 1.4;
}

.outfit-card-svg {
    width: 160px;
    height: 240px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.outfit-card-body {
    padding: 20px 22px;
}

.outfit-card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.outfit-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.outfit-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.outfit-tag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.outfit-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.outfit-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.outfit-save-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.outfit-save-btn:hover {
    background: rgba(180, 123, 255, 0.2);
    border-color: var(--accent-purple);
    transform: scale(1.2);
}

.outfit-save-btn.saved {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.outfit-match-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-green);
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.outfit-eco-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* ═══════════════════════════════ WARDROBE ════════════════════════════════════ */
.wardrobe-lab {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.wardrobe-pieces {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.wardrobe-piece {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    cursor: grab;
    transition: var(--spring);
    user-select: none;
}

.wardrobe-piece:hover {
    background: rgba(180, 123, 255, 0.12);
    border-color: var(--accent-purple);
    transform: translateX(4px);
}

.wardrobe-piece:active {
    cursor: grabbing;
    transform: scale(0.97);
}

.piece-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg-glass);
    flex-shrink: 0;
}

.piece-name {
    font-size: 14px;
    font-weight: 600;
}

.piece-category {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.wardrobe-canvas-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.canvas-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wardrobe-canvas {
    min-height: 260px;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-glass);
    background: var(--bg-card);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px;
    align-content: flex-start;
    position: relative;
    transition: var(--transition);
}

.wardrobe-canvas.drag-over {
    border-color: var(--accent-purple);
    background: rgba(180, 123, 255, 0.05);
}

.canvas-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    pointer-events: none;
}

.canvas-dropped-piece {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(180, 123, 255, 0.1);
    border: 1px solid var(--border-glass);
    animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    position: relative;
}

.canvas-dropped-piece .piece-icon {
    width: 40px;
    height: 40px;
}

.canvas-dropped-piece .remove-piece {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4466;
    border: none;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@keyframes pop-in {
    from {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.outfit-score-panel {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-label {
    font-size: 12px;
    color: var(--text-muted);
    width: 90px;
    flex-shrink: 0;
}

.score-bar-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.score-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--grad-main);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    width: 28px;
    text-align: right;
}

.mix-overall-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.mix-score-ring {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mix-score-ring svg {
    position: absolute;
    inset: 0;
}

#scoreCircle {
    transition: stroke-dashoffset 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mix-score-num {
    font-size: 22px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mix-score-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ═══════════════════════════════ SUSTAINABILITY ══════════════════════════════ */
.eco-dashboard {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.eco-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.eco-metric-card {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: var(--spring);
}

.eco-metric-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 245, 160, 0.1);
}

.eco-metric-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.eco-metric-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.eco-metric-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-green);
}

.eco-metric-unit {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.eco-metric-bar-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 12px;
    overflow: hidden;
}

.eco-metric-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eco-ring-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.eco-ring-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ecoRingCanvas {
    position: absolute;
    inset: 0;
}

.eco-ring-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.eco-score-big {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.eco-score-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.eco-pledge {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: rgba(0, 245, 160, 0.06);
    border: 1px solid rgba(0, 245, 160, 0.2);
    max-width: 360px;
}

.pledge-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pledge-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.pledge-text strong {
    color: var(--accent-green);
}

/* ═══════════════════════════════ BOUTIQUES ══════════════════════════════════ */
.boutique-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.boutique-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.boutique-scroll::-webkit-scrollbar {
    height: 6px;
}

.boutique-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 10px;
}

.boutique-carousel {
    display: flex;
    gap: 24px;
    min-width: max-content;
}

.boutique-card {
    min-width: 320px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--spring);
    cursor: pointer;
}

.boutique-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.boutique-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.boutique-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.boutique-body {
    padding: 20px;
}

.boutique-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.boutique-name {
    font-size: 16px;
    font-weight: 700;
}

.boutique-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
}

.boutique-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.boutique-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.boutique-card {
    scroll-snap-align: start;
}
.boutique-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.boutique-tag {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.boutique-match {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent-purple);
    font-weight: 600;
}

.boutique-match-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.boutique-match-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--grad-main);
    transition: width 1s ease;
}

.carousel-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    transition: var(--spring);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-credit {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 10px;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.footer-credit:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.carousel-nav:hover {
    background: rgba(180, 123, 255, 0.15);
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-glass);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--accent-purple);
    width: 24px;
    border-radius: 4px;
}

/* ═══════════════════════════════ FOOTER ════════════════════════════════════ */
.footer {
    padding: 48px 80px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-purple);
}

/* ═══════════════════════════════ TOAST ══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    background: rgba(13, 5, 32, 0.95);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    font-size: 14px;
    color: var(--text-primary);
    z-index: 9998;
    box-shadow: var(--shadow-glow);
    animation: toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), toast-out 0.3s 2.5s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes toast-in {
    from {
        transform: translateY(30px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ═══════════════════════════════ RESPONSIVE ═════════════════════════════════ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-visual {
        display: none;
    }

    .mood-board,
    .tone-showcase,
    .eco-dashboard {
        grid-template-columns: 1fr;
    }

    .wardrobe-lab {
        grid-template-columns: 1fr;
    }

    .nav {
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 80px 24px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px 24px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section {
        padding: 60px 16px;
    }

    .outfit-grid {
        grid-template-columns: 1fr;
    }

    .boutique-card {
        min-width: 280px;
    }
}