/* ═══════════════════════════════════════════════════════════════
   AuraDrape — Luxury Dark Mode Design System
   UI/UX Pro Max: Classic Elegant (Playfair Display + Inter)
   Palette: Premium dark (#0B0A0F) + Gold accent (#CA8A04)
   Style: OLED Dark + Glassmorphism + Dimensional Layering
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
    /* Background hierarchy */
    --bg-void: #050507;
    --bg-primary: #0B0A0F;
    --bg-secondary: #111015;
    --bg-card: #15141b;
    --bg-card-hover: #1c1b24;
    --bg-elevated: #1f1e28;

    /* Glass */
    --glass-bg: rgba(21, 20, 27, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shine: rgba(255, 255, 255, 0.02);

    /* Text hierarchy */
    --text-primary: #F5F4F0;
    --text-secondary: #9B99A5;
    --text-tertiary: #5C5A66;
    --text-inverted: #0B0A0F;

    /* Accent — Gold (Luxury) */
    --gold: #CA8A04;
    --gold-light: #EAB308;
    --gold-soft: rgba(202, 138, 4, 0.12);
    --gold-glow: rgba(202, 138, 4, 0.2);
    --gold-gradient: linear-gradient(135deg, #CA8A04, #EAB308, #FDE68A);

    /* Semantic */
    --accent: #8B7CF7;
    --accent-soft: rgba(139, 124, 247, 0.1);
    --success: #34D399;
    --success-soft: rgba(52, 211, 153, 0.1);
    --warning: #FBBF24;
    --danger: #F87171;

    /* Borders */
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(202, 138, 4, 0.25);
    --border-active: rgba(202, 138, 4, 0.5);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 0 40px rgba(202, 138, 4, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-shine);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Ambient Atmosphere ───────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(202, 138, 4, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 90%, rgba(139, 124, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Noise Texture Overlay ────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.app {
    position: relative;
    z-index: 1;
}

/* ─── Typography ───────────────────────────────────────────── */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ─── Header ───────────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(11, 10, 15, 0.8);
    backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%);
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    color: var(--text-inverted);
    position: relative;
    z-index: 1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text em {
    font-style: normal;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--r-lg);
    padding: 3px;
    border: 1px solid var(--border);
}

.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.nav a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity var(--duration-fast) var(--ease);
}

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

.nav a:hover svg {
    opacity: 1;
}

.nav a.active {
    color: var(--text-inverted);
    background: var(--gold-gradient);
    font-weight: 600;
    box-shadow: var(--shadow-gold), 0 2px 8px rgba(202, 138, 4, 0.3);
}

.nav a.active svg {
    opacity: 1;
}

/* ─── Page Container ───────────────────────────────────────── */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 28px 80px;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.page-title .gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
}

/* ─── Section ──────────────────────────────────────────────── */
.section {
    margin-bottom: 48px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.section-label .line {
    width: 20px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease);
}

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

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ─── Inspiration Grid ─────────────────────────────────────── */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.inspiration-card {
    cursor: pointer;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--duration-normal) var(--ease);
    background: var(--bg-card);
}

.inspiration-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease);
}

.inspiration-card:hover {
    border-color: var(--gold);
    transform: scale(1.02);
    box-shadow: var(--shadow-gold), var(--shadow-md);
}

.inspiration-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow-gold);
}

.inspiration-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease);
}

.inspiration-card:hover img {
    transform: scale(1.05);
}

.inspiration-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    z-index: 1;
}

.inspiration-card .overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.inspiration-card .overlay p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.inspiration-card .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inspiration-card .badge svg {
    width: 12px;
    height: 12px;
}

/* ─── Upload Zone ──────────────────────────────────────────── */
.upload-zone {
    border: 1.5px dashed rgba(202, 138, 4, 0.25);
    border-radius: var(--r-xl);
    padding: 56px 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    background: rgba(202, 138, 4, 0.02);
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--gold);
    background: rgba(202, 138, 4, 0.05);
    box-shadow: var(--shadow-gold);
}

.upload-zone .upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.upload-zone .upload-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.upload-zone h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.upload-zone p {
    color: var(--text-tertiary);
    font-size: 13px;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ─── Results Panel ────────────────────────────────────────── */
.results-panel {
    display: none;
    animation: resultsReveal 0.6s var(--ease);
}

.results-panel.visible {
    display: block;
}

@keyframes resultsReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.look-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.look-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.look-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.look-header h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.look-header .subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

.total-value-block {
    text-align: right;
}

.total-value {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1;
}

.total-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ─── Match Items ──────────────────────────────────────────── */
.match-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 18px;
    transition: all var(--duration-normal) var(--ease);
    cursor: pointer;
}

.match-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.match-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.match-item .item-image {
    width: 68px;
    height: 68px;
    border-radius: var(--r-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.match-item .item-info {
    flex: 1;
    min-width: 0;
}

.match-item .item-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.match-item .item-info .brand {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
}

.match-item .category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold-soft);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.match-item .item-price {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Match Score Ring */
.match-score {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.score-ring {
    width: 48px;
    height: 48px;
    position: relative;
}

.score-ring svg {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.score-ring .ring-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 3;
}

.score-ring .ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s var(--ease);
}

.score-ring .score-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.score-label {
    font-size: 9px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Style Threads ───────────────────────────────────────── */
.thread-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag-btn {
    padding: 10px 20px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.tag-btn svg {
    width: 15px;
    height: 15px;
}

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

.tag-btn.active {
    background: var(--gold-gradient);
    color: var(--text-inverted);
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

/* Budget Slider */
.budget-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.budget-bar label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.budget-bar label svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

.budget-bar input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    outline: none;
}

.budget-bar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-gradient);
    cursor: pointer;
    box-shadow: 0 0 8px var(--gold-glow);
    border: 2px solid var(--bg-primary);
}

.budget-bar .budget-value {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    min-width: 80px;
    text-align: right;
}

/* Looks Grid */
.looks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
}

.look-thread-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    transition: all var(--duration-normal) var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.look-thread-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
}

.look-thread-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold), var(--shadow-md);
}

.look-thread-card .thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.look-thread-card .thread-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
}

.look-thread-card .thread-tag-label {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
}

.look-thread-card .thread-tag-label svg {
    width: 12px;
    height: 12px;
    color: var(--gold);
}

.look-thread-card .thread-total {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.look-thread-card .thread-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.look-thread-card .thread-items::-webkit-scrollbar {
    display: none;
}

.look-thread-card .thread-item {
    flex-shrink: 0;
    width: 78px;
    text-align: center;
}

.look-thread-card .thread-item img {
    width: 70px;
    height: 70px;
    border-radius: var(--r-sm);
    object-fit: cover;
    border: 1px solid var(--border);
    margin-bottom: 4px;
    transition: all var(--duration-normal) var(--ease);
}

.look-thread-card:hover .thread-item img {
    border-color: var(--border-hover);
}

.look-thread-card .thread-item .item-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.look-thread-card .add-all-btn {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    border: 1px solid var(--border-hover);
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.look-thread-card .add-all-btn svg {
    width: 16px;
    height: 16px;
}

.look-thread-card .add-all-btn:hover {
    background: var(--gold-gradient);
    color: var(--text-inverted);
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

/* ─── Dashboard ──────────────────────────────────────────── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease);
}

.metric-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.metric-card .metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.metric-card .metric-icon.gold {
    background: var(--gold-soft);
}

.metric-card .metric-icon.green {
    background: var(--success-soft);
}

.metric-card .metric-icon.purple {
    background: var(--accent-soft);
}

.metric-card .metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-card .metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.metric-card .metric-value {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-card .metric-value.gold {
    color: var(--gold);
}

.metric-card .metric-value.green {
    color: var(--success);
}

.metric-card .metric-value.purple {
    color: var(--accent);
}

.metric-card .metric-delta {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-card .metric-delta svg {
    width: 14px;
    height: 14px;
}

.metric-card .metric-delta.up {
    color: var(--success);
}

/* Chart Container */
.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.chart-container .chart-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container .chart-title svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

/* Bar Chart */
.chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 220px;
    padding: 0 12px;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar .bar-value {
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.chart-bar .bar {
    width: 100%;
    max-width: 56px;
    border-radius: 8px 8px 4px 4px;
    transition: height 1s var(--ease);
    position: relative;
    overflow: hidden;
}

.chart-bar .bar.primary {
    background: var(--gold-gradient);
    box-shadow: 0 -4px 16px rgba(202, 138, 4, 0.15);
}

.chart-bar .bar.primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.chart-bar .bar.secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.chart-bar .bar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.chart-bar .bar-sub {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Top looks table */
.top-looks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.top-looks-table th {
    text-align: left;
    padding: 6px 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
}

.top-looks-table td {
    padding: 14px 16px;
    font-size: 14px;
    background: var(--bg-secondary);
    transition: background var(--duration-fast) var(--ease);
}

.top-looks-table tr:hover td {
    background: var(--bg-card-hover);
}

.top-looks-table tr td:first-child {
    border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.top-looks-table tr td:last-child {
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.top-looks-table .rank {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--gold);
}

.top-looks-table .look-name {
    font-weight: 600;
}

.top-looks-table .look-tag {
    color: var(--text-secondary);
    font-size: 12px;
}

.conv-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.conv-bar .fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
    transition: width 1.2s var(--ease);
}

/* ─── Revenue Calculator ─────────────────────────────────── */
.revenue-calc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.revenue-calc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-gradient);
}

.revenue-calc h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.revenue-calc h3 svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-inputs label {
    font-size: 11px;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.calc-inputs input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease);
}

.calc-inputs input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.calc-result {
    margin-top: 24px;
    padding: 24px;
    background: var(--gold-soft);
    border: 1px solid rgba(202, 138, 4, 0.15);
    border-radius: var(--r-lg);
    text-align: center;
}

.calc-result .result-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.calc-result .result-value {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.calc-result .result-monthly {
    font-size: 18px;
    color: var(--success);
    font-weight: 600;
    margin-top: 6px;
}

.calc-result .result-roi {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* ─── Primary Button ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--r-sm);
    background: var(--gold-gradient);
    color: var(--text-inverted);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--duration-normal) var(--ease);
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-gold);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold), 0 4px 16px rgba(202, 138, 4, 0.3);
}

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

/* ─── Loading Overlay ──────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
    gap: 24px;
}

.loading-overlay.visible {
    display: flex;
}

.spinner-ring {
    width: 52px;
    height: 52px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-text svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
    animation: pulse-dot 1.5s infinite;
}

/* ─── Empty State ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
}

.empty-state svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .store-badge {
        display: none;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .page {
        padding: 24px 16px 60px;
    }

    .page-title {
        font-size: 28px;
    }

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

    .inspiration-card img {
        height: 200px;
    }

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

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

    .match-item {
        flex-wrap: wrap;
    }

    .look-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .total-value-block {
        text-align: left;
    }

    .calc-inputs {
        grid-template-columns: 1fr;
    }

    .calc-result .result-value {
        font-size: 36px;
    }
}

/* ─── Utilities ────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ─── Snap & Style: Mood Pills ─────────────────────────────── */
.mood-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.mood-pill {
    padding: 10px 18px;
    border-radius: var(--r-full);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    font-family: 'Inter', sans-serif;
}

.mood-pill:hover {
    border-color: var(--mood-color, var(--gold));
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.mood-pill.active {
    background: var(--mood-color, var(--gold));
    border-color: var(--mood-color, var(--gold));
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 20px color-mix(in srgb, var(--mood-color, var(--gold)) 30%, transparent);
}

.mood-pill.zodiac-btn.active {
    background: #9333EA;
    border-color: #9333EA;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.35);
}

/* ─── Snap & Style: Zodiac Grid ────────────────────────────── */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.zodiac-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
    font-size: 22px;
    font-family: 'Inter', sans-serif;
}

.zodiac-sign span {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.zodiac-sign:hover {
    border-color: rgba(147, 51, 234, 0.4);
    background: rgba(147, 51, 234, 0.06);
    transform: translateY(-2px);
}

.zodiac-sign.active {
    border-color: #9333EA;
    background: rgba(147, 51, 234, 0.12);
    box-shadow: 0 0 16px rgba(147, 51, 234, 0.25);
}

/* ─── Snap & Style: OOTD Carousel ──────────────────────────── */
.ootd-carousel-wrapper {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.ootd-carousel {
    position: relative;
    min-height: 500px;
}

.ootd-slide {
    display: none;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.ootd-slide.active {
    display: block;
    animation: slideIn 0.4s var(--ease);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ootd-slide-bg {
    position: absolute;
    inset: 0;
    background-image: var(--scene);
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) saturate(1.2);
    transition: transform var(--duration-slow) var(--ease);
}

.ootd-slide:hover .ootd-slide-bg {
    transform: scale(1.03);
}

.ootd-slide-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 500px;
}

.ootd-combo-num {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
}

.ootd-outfit-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.ootd-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: -4px;
}

.ootd-mood-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(202, 138, 4, 0.15);
    border: 1px solid rgba(202, 138, 4, 0.3);
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold-light);
    align-self: flex-start;
}

.ootd-items-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.ootd-item-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    padding: 10px 14px;
    transition: all var(--duration-normal) var(--ease);
}

.ootd-item-chip:hover {
    border-color: var(--gold-soft);
    background: rgba(11, 10, 15, 0.85);
}

.ootd-item-chip img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ootd-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.ootd-item-price {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2px;
}

.ootd-total {
    font-size: 14px;
    color: var(--gold-light);
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

/* ─── Carousel Navigation ───────────────────────────────────── */
.ootd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease);
}

.ootd-nav:hover {
    background: rgba(202, 138, 4, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

.ootd-nav-prev {
    left: 16px;
}

.ootd-nav-next {
    right: 16px;
}

/* ─── Carousel Dots ─────────────────────────────────────────── */
.ootd-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.ootd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease);
}

.ootd-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ─── Toast Keyframe ────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}