:root {
    --primary: #8a2387;
    --secondary: #e94057;
    --tertiary: #f27121;
    --background: #0f172a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* Toss Mode Overrides (Default Hidden) */
    --toss-bg: #f9fafb;
    --toss-surface: #ffffff;
    --toss-text: #1e293b;
    --toss-text-mute: #64748b;
    --toss-accent: #3b82f6;
    --toss-border: #f1f5f9;
}

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

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background Animation */
.background { position: fixed; width: 100vw; height: 100vh; z-index: -1; overflow: hidden; transition: opacity 0.5s ease;}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: float 20s infinite ease-in-out alternate; }
.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--primary), var(--secondary)); top: -10%; left: -10%; }
.blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--secondary), var(--tertiary)); bottom: -10%; right: -10%; animation-delay: -10s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 100px) scale(1.2); } }

/* App Layout & Tabs */
.app-layout { padding: 3rem 1rem; width: 100%; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.tab-menu { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); border-radius: 16px; padding: 0.5rem; margin-bottom: 2rem; width: 100%; max-width: 600px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: all 0.5s ease;}
.tab-menu ul { list-style: none; display: flex; justify-content: space-between; }
.tab-menu li {
    padding: 0.8rem 0.5rem; border-radius: 12px; cursor: pointer; font-weight: 500; font-size: 1rem; color: var(--text-secondary); transition: all 0.3s ease; flex: 1; text-align: center; margin: 0 0.2rem;
}
.tab-menu li:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tab-menu li.active { color: #fff; background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%); box-shadow: 0 4px 15px rgba(233, 64, 87, 0.4); }

/* Containers */
.container { background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--surface-border); border-radius: 24px; padding: 3rem 2rem; width: 100%; max-width: 500px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease; }
.container:hover { transform: translateY(-3px); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === THEME: TOSS (LIGHT) === */
/* When .theme-toss is applied to BODY */
body.theme-toss { background-color: var(--toss-bg); color: var(--toss-text); }
body.theme-toss .background { opacity: 0; pointer-events: none; }
body.theme-toss .tab-menu { background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
body.theme-toss .tab-menu li { color: var(--toss-text-mute); }
body.theme-toss .tab-menu li.active { background: #1e293b; color: #fff; box-shadow: none; }

/* Shop Container (Specific to Toss Design) */
.shop-container { width: 100%; max-width: 600px; padding: 1rem; }
.shop-header { text-align: left; margin-bottom: 2rem; padding: 0 0.5rem; }
.shop-header h2 { font-size: 1.8rem; font-weight: 800; color: #1e293b; letter-spacing: -0.5px; margin-bottom: 0.3rem;}
.shop-header .shop-subtitle { font-size: 1rem; color: #64748b; }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.shop-card { background: #ffffff; border-radius: 20px; overflow: hidden; padding-bottom: 1rem; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: 1px solid rgba(0,0,0,0.03); }
.shop-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.04); }
.shop-img-box { width: 100%; aspect-ratio: 1/1; background-color: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;}
.shop-img-box img { width: 100%; height: 100%; object-fit: cover; }
.shop-tag { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); }

.shop-info { padding: 1rem 0.8rem 0; text-align: left; }
.shop-title { font-size: 0.95rem; font-weight: 500; color: #334155; margin-bottom: 0.5rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-price-row { display: flex; align-items: baseline; gap: 0.5rem; }
.shop-discount { font-size: 1.1rem; font-weight: 800; color: #f43f5e; }
.shop-price { font-size: 1.1rem; font-weight: 800; color: #0f172a; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem;}
.page-btn { background: #e2e8f0; color: #64748b; border: none; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.page-btn:hover { background: #cbd5e1; }
.page-btn.active { background: #0f172a; color: #fff; }

/* ... (Keep original CSS for slots, ootd, etc below this line) ... */
.title { font-size: 2.3rem; font-weight: 700; margin-bottom: 0.5rem; background: linear-gradient(to right, #ff758c 0%, #ff7eb3 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { color: var(--text-secondary); font-size: 1rem; font-weight: 300; margin-bottom: 2rem; }
.mt-4 { margin-top: 1.5rem; }
.btn { background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%); color: white; border: none; border-radius: 12px; padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; width: 100%; transition: all 0.3s ease; font-family: inherit; box-shadow: 0 4px 15px rgba(233, 64, 87, 0.4); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233, 64, 87, 0.6); }
.btn-secondary { background: rgba(255,255,255,0.1); box-shadow: none; width: auto; margin-right: 1rem; padding: 1rem 1.5rem; }

/* Slot Machine */
.slot-container { background: rgba(0,0,0,0.3); border-radius: 16px; padding: 2rem 1rem; margin-bottom: 2.5rem; box-shadow: inset 0 4px 6px rgba(0,0,0,0.3); overflow: hidden; height: 100px; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.05); }
.slot-text { font-size: 2rem; font-weight: 700; color: #fff; }
.slot-text.spinning { filter: blur(1px); opacity: 0.8; }
.slot-text.result { animation: popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275); color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,0.5); }

/* Quiz Specific */
.quiz-header { text-align: right; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; border-bottom: 1px solid var(--surface-border); padding-bottom: 0.5rem; }
.quiz-q { font-size: 1.3rem; line-height: 1.5; margin-bottom: 2rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.8rem; }
.option-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--surface-border); color: white; padding: 1.2rem; border-radius: 12px; font-size: 1rem; cursor: pointer; text-align: left; }
.option-btn.correct { background: #10b981; border-color: #10b981; }
.option-btn.wrong { background: #ef4444; border-color: #ef4444; }
.score-display, .final-score { font-size: 3rem; font-weight: 700; color: #ffd700; margin-bottom: 1rem; text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }

/* ==== OOTD Form CSS ==== */
.step-indicator { text-align: right; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; border-bottom: 1px solid var(--surface-border); padding-bottom: 0.5rem; }
.ootd-step { display: none; width: 100%; transition: all 0.3s; }
.ootd-step.active { display: block; animation: slideInX 0.4s ease; text-align: left; }
@keyframes slideInX { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.step-title { font-size: 1.3rem; margin-bottom: 1.5rem; font-weight: 500; text-align: center; word-break: keep-all; }
.option-grid { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }
.custom-radio input, .custom-checkbox input { display: none; }
.custom-radio span, .custom-checkbox span { display: block; width: 100%; padding: 1.2rem; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--surface-border); cursor: pointer; text-align: center; }
.custom-radio input:checked + span, .custom-checkbox input:checked + span { background: rgba(233, 64, 87, 0.2); border-color: var(--secondary); color: #fff; box-shadow: 0 0 15px rgba(233, 64, 87, 0.3); transform: scale(1.02); }
.step-controls { display: flex; justify-content: space-between; }
.step-controls .btn { flex: 1; }
.ootd-card { background: rgba(0,0,0,0.3); border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(255,255,255,0.05); text-align: left; margin-top: 1rem; }
.ootd-item { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.ootd-label { font-size: 0.9rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; display:block; }
.ootd-value { font-size: 1.2rem; font-weight: 500; color: #fff; line-height: 1.4; word-break: keep-all; }
