/* ===== The Blooming Lily - Style System ===== */

:root {
    --blush: #C9A89A;
    --blush-light: #F5E6DC;
    --blush-dark: #8C6D62;
    --rose: #B08D7E;
    --cream: #FAF7F2;
    --sage: #8A9A82;
    --sage-light: #E8EDE5;
    --gold: #B89A7E;
    --gold-light: #EDE4D8;
    --text: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-md: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --charcoal: #333333;
    --peach: #F5E6DC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', -apple-system, sans-serif;
    font-weight: 300;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; }

/* ===== Screens ===== */
.screen {
    display: none;
    min-height: 100dvh;
    width: 100%;
    position: relative;
}
.screen.active { display: flex; }
.screen-inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 28px 48px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* ===== Progress Bar ===== */
.progress-bar {
    width: 100%;
    height: 2px;
    background: #E8E0D8;
    border-radius: 0;
    margin-bottom: 24px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--charcoal);
    border-radius: 0;
    transition: width 0.5s ease;
}

/* ===== Landing ===== */
.landing-bg {
    width: 100%;
    min-height: 100dvh;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.landing-content {
    text-align: center;
    padding: 60px 32px;
    max-width: 480px;
    z-index: 2;
}
.lily-icon {
    font-size: 32px;
    margin-bottom: 24px;
    opacity: 0.7;
}
.landing-content h1 {
    font-size: 2.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.scripture {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 4px;
}
.scripture-ref {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 48px;
    letter-spacing: 1px;
}
.landing-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 48px;
    font-weight: 300;
}
.privacy-note {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Floating petals - disabled */
.floating-petals {
    display: none;
}

/* ===== Decorative Line ===== */
.landing-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--charcoal);
    margin: 0 auto 32px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border: none;
    border-radius: 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}
.btn-primary {
    background: var(--charcoal);
    color: var(--white);
    box-shadow: none;
}
.btn-primary:hover { background: #555; }
.btn-primary:active { background: #222; }
.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #CCC;
}
.btn-secondary:hover { background: var(--peach); border-color: #AAA; }
.btn-lg { padding: 18px 44px; font-size: 0.85rem; }
.btn-sm { padding: 12px 28px; font-size: 0.75rem; }
.btn-arrow { font-size: 1rem; font-weight: 300; }

.back-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 0;
    font-family: 'Lato', sans-serif;
    align-self: flex-start;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== Onboarding Content ===== */
.onboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
}
.step-icon { font-size: 28px; margin-bottom: 20px; opacity: 0.5; }
.onboard-content h2 {
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    margin-bottom: 8px;
}
.subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.7;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ===== Text Input ===== */
.text-input {
    width: 100%;
    max-width: 320px;
    padding: 16px 20px;
    border: 1px solid #D4CBC2;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    text-align: center;
    color: var(--text);
    background: var(--white);
    margin-bottom: 24px;
    transition: border-color 0.3s;
}
.text-input:focus {
    outline: none;
    border-color: var(--charcoal);
}
.text-input::placeholder { color: #B8ADA5; }

/* ===== Choice Cards ===== */
.choice-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 380px;
    margin-bottom: 24px;
}
.choice-card {
    background: var(--white);
    border: 1px solid #E0D8D0;
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-family: 'Lato', sans-serif;
}
.choice-card:hover { border-color: var(--charcoal); box-shadow: 0 2px 12px var(--shadow); }
.choice-icon { font-size: 24px; margin-bottom: 12px; opacity: 0.6; }
.choice-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 400; font-style: italic; }
.choice-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; font-weight: 300; }
.badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--charcoal);
    color: white;
    font-size: 0.65rem;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== Photo Upload ===== */
.photo-upload-area {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3/4;
    border: 1px dashed #C4B8AE;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 24px;
    position: relative;
}
.upload-placeholder { text-align: center; color: var(--text-light); }
.upload-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }
.upload-placeholder .small-text { font-size: 0.75rem; opacity: 0.6; }
.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.pose-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.analyzing-state {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 16px;
}
.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #E0D8D0;
    border-top-color: var(--charcoal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Quiz ===== */
.quiz-section {
    width: 100%;
    max-width: 380px;
    margin-bottom: 28px;
}
.quiz-label {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.quiz-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 300;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quiz-opt {
    padding: 14px 18px;
    border: 1px solid #E0D8D0;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.quiz-opt:hover { border-color: var(--charcoal); background: var(--peach); }
.quiz-opt.selected {
    border-color: var(--charcoal);
    background: var(--peach);
    font-weight: 400;
}

/* ===== Results ===== */
.results-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 16px var(--shadow);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.confetti-burst {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.results-card h2 { font-size: 1.5rem; font-style: italic; font-weight: 400; margin-bottom: 4px; }
.result-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #E8E0D8;
}
.result-section h3 {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 400;
}
.body-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--peach);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
}
.body-type-badge.small { font-size: 1rem; padding: 8px 20px; }
.style-tips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
}
.style-tip {
    font-size: 0.7rem;
    color: var(--text);
    background: var(--peach);
    padding: 5px 14px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}
.type-desc, .palette-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 12px;
    font-weight: 300;
}

/* Color swatches */
.palette-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 14px;
}
.palette-name.small { font-size: 0.95rem; margin-bottom: 8px; }
.color-swatches {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.color-swatches.small { gap: 6px; }
.swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.swatch:hover { transform: scale(1.1); }
.color-swatches.small .swatch { width: 28px; height: 28px; }

/* ===== Recommendations ===== */
.recs-screen {
    padding-bottom: 16px;
}
.recs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 8px;
}
.recs-title {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    flex: 1;
    text-align: center;
}
.recs-progress {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 300;
}
.profile-btn {
    background: var(--white);
    border: 1px solid #E0D8D0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-btn:hover { border-color: var(--charcoal); }

/* Outfit card */
.outfit-card-stack {
    flex: 1;
    position: relative;
    margin-bottom: 20px;
    min-height: 400px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.outfit-card {
    position: absolute;
    inset: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: grab;
}
.outfit-card:active { cursor: grabbing; }
.outfit-card.swiping-left {
    transform: translateX(-120%) rotate(-15deg);
    opacity: 0;
}
.outfit-card.swiping-right {
    transform: translateX(120%) rotate(15deg);
    opacity: 0;
}
.outfit-card.swiping-up {
    transform: translateY(-120%);
    opacity: 0;
}

/* Swipe indicator overlay */
.swipe-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.swipe-indicator.show { opacity: 1; }
.swipe-indicator.love { background: rgba(139, 195, 130, 0.9); color: white; }
.swipe-indicator.pass { background: rgba(200, 120, 120, 0.9); color: white; }
.swipe-indicator.save { background: rgba(218, 165, 32, 0.9); color: white; }

.outfit-img {
    flex: 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF7F2;
    position: relative;
    overflow: hidden;
}
.outfit-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    padding: 8px;
}
.outfit-img-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.8;
}
.outfit-info {
    padding: 16px 20px 20px;
}
.outfit-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.outfit-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2px;
}
.outfit-brand {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}
.outfit-price {
    font-weight: 400;
    color: var(--text);
    font-size: 1.05rem;
    white-space: nowrap;
}
.outfit-why {
    font-size: 0.8rem;
    color: var(--sage);
    background: var(--sage-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 10px;
}
.outfit-why::before { content: '— '; }
.outfit-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.outfit-tag {
    font-size: 0.65rem;
    color: var(--text-light);
    background: var(--peach);
    padding: 3px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 300;
}
.empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}
.empty-card .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-card h3 { margin-bottom: 8px; font-style: italic; font-weight: 400; }
.empty-card p { color: var(--text-light); font-weight: 300; font-size: 0.9rem; }

/* Swipe buttons */
.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 12px 0;
}
.swipe-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid #E0D8D0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}
.swipe-btn span { font-size: 24px; }
.swipe-btn small { font-size: 0.55rem; color: var(--text-light); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }
.swipe-btn:active { transform: scale(0.92); }
.swipe-btn.dislike { background: var(--white); }
.swipe-btn.dislike:hover { background: #F5EDED; border-color: #C4B8AE; }
.swipe-btn.save { background: var(--white); }
.swipe-btn.save:hover { background: var(--gold-light); border-color: #C4B8AE; }
.swipe-btn.like { background: var(--white); }
.swipe-btn.like:hover { background: var(--sage-light); border-color: #C4B8AE; }

/* Feedback popup */
.feedback-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(51, 51, 51, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 100dvh;
}
.feedback-inner {
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 28px 24px 36px;
    width: 100%;
    max-width: 520px;
    text-align: center;
}
.feedback-inner h3 { margin-bottom: 20px; font-size: 1.1rem; font-style: italic; font-weight: 400; }
.feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.feedback-tag {
    padding: 8px 18px;
    border: 1px solid #E0D8D0;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    cursor: pointer;
    background: var(--white);
    color: var(--text);
    transition: all 0.2s;
}
.feedback-tag:hover,
.feedback-tag.selected {
    background: var(--peach);
    border-color: var(--charcoal);
}

/* ===== Profile ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}
.profile-header h2 { font-size: 1.3rem; font-style: italic; font-weight: 400; }
.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    box-shadow: 0 2px 16px var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 28px;
}
.profile-avatar {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.6;
}
.profile-card h3 {
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 24px;
}
.profile-section {
    padding: 20px 0;
    border-top: 1px solid #E8E0D8;
}
.profile-section h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 400;
}
.small-text { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; font-weight: 300; }
.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
}
.stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Saved outfits */
.saved-outfits {
    width: 100%;
    max-width: 400px;
}
.saved-outfits h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 16px;
}
.saved-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.saved-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 1px 6px var(--shadow);
}
.saved-item-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--peach);
    opacity: 0.8;
}
.saved-item-info {
    padding: 10px 12px;
}
.saved-item-name { font-size: 0.78rem; font-weight: 400; }
.saved-item-price { font-size: 0.75rem; color: var(--text-light); }
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 300;
    padding: 28px;
}

/* ===== Auth ===== */
.auth-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.auth-form .text-input {
    margin-bottom: 12px;
}
.auth-error {
    color: #C4632D;
    font-size: 0.82rem;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 300;
}
.auth-toggle {
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 300;
}
.auth-toggle a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-divider {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 16px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E0D8D0;
}
.auth-divider span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== Social Auth Buttons ===== */
.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: 0.3px;
}
.btn-google {
    background: var(--white);
    color: var(--text);
    border: 1px solid #D4CBC2;
}
.btn-google:hover { background: #F8F4F0; border-color: #B8ADA5; }
.btn-apple {
    background: var(--charcoal);
    color: var(--white);
}
.btn-apple:hover { background: #555; }
.btn-social svg { flex-shrink: 0; }

/* ===== Body Shape Grid ===== */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin-bottom: 32px;
}
.shape-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}
.shape-card {
    background: var(--white);
    border: 1px solid #E0D8D0;
    border-radius: var(--radius);
    padding: 20px 12px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Lato', sans-serif;
}
.shape-card:hover { border-color: var(--charcoal); }
.shape-card.selected {
    border-color: var(--charcoal);
    background: var(--peach);
    box-shadow: 0 2px 12px var(--shadow);
}
.shape-svg {
    width: 56px;
    height: 80px;
    color: var(--blush-dark);
    margin-bottom: 10px;
    transition: color 0.25s;
}
.shape-card.selected .shape-svg { color: var(--charcoal); }
.shape-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 4px;
    display: block;
}
.shape-desc {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.4;
    display: block;
}

/* ===== Budget Selection ===== */
.budget-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 380px;
    margin-bottom: 32px;
}
.budget-card {
    background: var(--white);
    border: 1px solid #E0D8D0;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Lato', sans-serif;
    text-align: left;
}
.budget-card:hover { border-color: var(--charcoal); }
.budget-card.selected {
    border-color: var(--charcoal);
    background: var(--peach);
}
.budget-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    min-width: 40px;
    text-align: center;
}
.budget-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    flex: 1;
}
.budget-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ===== Valentine's Banner ===== */
.valentine-banner {
    background: linear-gradient(135deg, #F5E6DC, #F8E8E8);
    border: 1px solid #E8D0D0;
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 400px;
}
.valentine-banner .valentine-emoji { font-size: 20px; margin-bottom: 6px; }
.valentine-banner .valentine-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
}
.valentine-banner .valentine-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 300;
}

/* ===== Style DNA Card ===== */
.style-dna-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 2px 16px var(--shadow);
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}
.style-dna-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4px;
}
.dna-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0E8E0;
}
.dna-insight:last-child { border-bottom: none; }
.dna-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.dna-text {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
    font-weight: 300;
}
.dna-text strong { font-weight: 400; }

/* Profile nav */
.profile-nav-buttons {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== History Screen ===== */
.history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 400px;
}
.history-tab {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #E0D8D0;
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}
.history-tab:hover { border-color: var(--charcoal); }
.history-tab.active {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}
.history-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    width: 100%;
    max-width: 400px;
}
.history-cat-btn {
    padding: 6px 14px;
    border: 1px solid #E0D8D0;
    border-radius: 20px;
    background: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.history-cat-btn:hover { border-color: var(--charcoal); }
.history-cat-btn.active {
    background: var(--peach);
    border-color: var(--charcoal);
    color: var(--text);
}
.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 400px;
}
.history-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 8px var(--shadow);
    transition: transform 0.2s;
}
.history-item:hover { transform: translateY(-2px); }
.history-item-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    overflow: hidden;
}
.history-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.history-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}
.history-item-info {
    padding: 10px 12px;
}
.history-item-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 2px;
}
.history-item-brand {
    font-size: 0.65rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.history-item-price {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 400;
}
.history-item-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.history-item-tags .outfit-tag {
    font-size: 0.58rem;
    padding: 2px 6px;
}

/* ===== Screen Transitions ===== */
.screen { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Profile Section Headers ===== */
.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.profile-section-header h4 { margin-bottom: 0; }

.change-btn {
    background: none;
    border: 1.5px solid var(--blush);
    color: var(--blush);
    font-size: 0.75rem;
    font-family: var(--font-body);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.change-btn:hover {
    background: var(--blush);
    color: white;
}

.budget-display {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 0;
    font-weight: 500;
}

/* ===== Override Modal ===== */
.override-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}
.override-inner {
    background: white;
    border-radius: 24px;
    padding: 28px 24px;
    max-width: 380px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.override-inner h3 {
    font-family: var(--font-display);
    margin-bottom: 20px;
    color: var(--text);
}
.override-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.override-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #eee;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    text-align: left;
}
.override-opt:hover { border-color: var(--blush); background: var(--blush-light); }
.override-opt.current { border-color: var(--blush); background: var(--blush-light); }
.override-opt.current::after {
    content: '✓';
    margin-left: auto;
    color: var(--blush);
    font-weight: 700;
}
.override-icon { font-size: 1.4rem; min-width: 32px; text-align: center; }
.override-name { font-weight: 600; font-size: 0.92rem; }
.override-swatches { display: flex; gap: 4px; }
.mini-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
}

/* ===== Adventure / Outside the Box ===== */
.adventure-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    animation: adventureShimmer 3s ease-in-out infinite;
}
@keyframes adventureShimmer {
    0%, 100% { box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35); }
    50% { box-shadow: 0 4px 20px rgba(118, 75, 162, 0.5); }
}
.outfit-card.adventure-card {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #667eea22, #764ba222);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.outfit-card.adventure-card .outfit-why {
    color: #5b4a8a;
}

/* ===== Landing Footer ===== */
.landing-footer {
    margin-top: 40px;
    padding: 0;
    text-align: center;
    opacity: 0.35;
}
.landing-footer .scripture {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.72rem;
    color: inherit;
    margin: 0;
}
.landing-footer .scripture-ref {
    font-size: 0.62rem;
    margin: 3px 0 0;
    color: inherit;
}

/* ===== Shop Now Button ===== */
.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--blush-dark), var(--rose));
    color: white;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(140, 109, 98, 0.25);
}
.shop-now-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(140, 109, 98, 0.35);
}
.shop-now-btn:active { transform: scale(0.97); }
.shop-arrow { font-size: 1rem; }

/* ===== Share Button ===== */
.share-btn-mini {
    background: none;
    border: 2px solid var(--blush);
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.share-btn-mini:hover { background: var(--blush-light); transform: scale(1.05); }

/* ===== History Item Shop/Share/Notify Actions ===== */
.history-item-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.history-item-actions a,
.history-item-actions button {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--blush);
    background: white;
    color: var(--blush-dark);
    text-decoration: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    transition: background 0.2s;
}
.history-item-actions a:hover,
.history-item-actions button:hover { background: var(--blush-light); }
.history-item-actions .shop-link {
    background: var(--blush-dark);
    color: white;
    border-color: var(--blush-dark);
}
.history-item-actions .shop-link:hover { background: var(--rose); }

/* ===== Responsive ===== */
@media (min-width: 600px) {
    .landing-content h1 { font-size: 3.2rem; }
    .outfit-card-stack { min-height: 500px; }
}
