/* =============================================
   HIPSPOT MAIN STYLES
   무신사/크림 스타일 미니멀리즘
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.text-display-lg {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-display-md {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-display-sm {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-headline-lg {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-headline-md {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-headline-sm {
    font-size: 18px;
    font-weight: 600;
}

.text-title-lg {
    font-size: 16px;
    font-weight: 600;
}

.text-title-md {
    font-size: 14px;
    font-weight: 600;
}

.text-title-sm {
    font-size: 13px;
    font-weight: 600;
}

.text-body-lg {
    font-size: 16px;
    font-weight: 400;
}

.text-body-md {
    font-size: 14px;
    font-weight: 400;
}

.text-body-sm {
    font-size: 12px;
    font-weight: 400;
}

.text-label-lg {
    font-size: 14px;
    font-weight: 500;
}

.text-label-md {
    font-size: 12px;
    font-weight: 500;
}

.text-label-sm {
    font-size: 11px;
    font-weight: 500;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

.text-error {
    color: var(--color-error);
}

.text-success {
    color: var(--color-success);
}

/* =============================================
   SPLASH SCREEN
   ============================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    height: 40px;
    margin-bottom: 24px;
}

[data-theme="dark"] .splash-logo {
    filter: invert(1);
}

.splash-loader {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

/* =============================================
   LAYOUT
   ============================================= */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--divider-color);
}

.sidebar-logo {
    height: 28px;
}

[data-theme="dark"] .sidebar-logo {
    filter: invert(1);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    padding: 0 20px;
    color: var(--nav-inactive-text);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

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

.nav-item.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
    border-left-color: var(--text-primary);
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--nav-active-bg);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--nav-active-bg);
    color: var(--color-error);
}

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

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.page {
    display: none;
    padding: var(--spacing-md);
}

.page.active {
    display: block;
}

/* =============================================
   AUTH SCREENS
   ============================================= */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

/* Google AdSense 광고 영역 */
.auth-ad-container {
    width: 100%;
    max-width: 400px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.auth-logo {
    height: 40px;
    display: block;
    margin: 0 auto 8px;
}

[data-theme="dark"] .auth-logo {
    filter: invert(1);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

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

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-error {
    padding: 12px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-error);
    font-size: 12px;
}

.form-error svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

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

.btn-secondary:hover:not(:disabled) {
    background: var(--nav-active-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-md);
}

/* =============================================
   AUTH DIVIDER
   ============================================= */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider-color);
}

.auth-divider span {
    font-size: 11px;
    color: var(--text-tertiary);
}

.auth-link {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-link:hover {
    color: var(--text-primary);
}

/* =============================================
   FEED (Masonry Grid)
   ============================================= */
.feed-grid {
    column-count: 4;
    column-gap: 16px;
    padding: 8px;
}

@media (max-width: 1400px) {
    .feed-grid {
        column-count: 3;
    }
}

@media (max-width: 1024px) {
    .feed-grid {
        column-count: 2;
    }
}

.post-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    width: 100%;
    display: block;
}

.post-card-content {
    padding: 12px;
}

.post-card-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.post-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grey-200);
    object-fit: cover;
}

.post-card-username {
    font-size: 12px;
    font-weight: 600;
}

.post-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.post-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 4px;
    transition: color var(--transition-fast);
}

.post-action-btn:hover {
    color: var(--text-primary);
}

.post-action-btn.liked {
    color: var(--color-error);
}

.post-action-btn.saved {
    color: var(--color-warning);
}

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

/* Hip Score Badge */
.hip-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* =============================================
   LOADING STATES
   ============================================= */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* =============================================
   MAGAZINE
   ============================================= */
.magazine-filters {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider-color);
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-chip:hover {
    background: var(--nav-active-bg);
}

.filter-chip.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.magazine-list {
    padding: 12px 0;
}

.magazine-card {
    margin: 8px 16px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.magazine-card-inner {
    position: relative;
    aspect-ratio: 3 / 1;
}

.magazine-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.15) 25%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.7) 100%);
}

.magazine-card-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
}

.magazine-card-tags {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.magazine-card-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 3px;
}

.magazine-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   RECOMMEND
   ============================================= */
.recommend-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.recommend-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.recommend-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.recommend-icon svg {
    width: 28px;
    height: 28px;
}

.recommend-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.recommend-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.recommend-section {
    margin-bottom: 24px;
}

.recommend-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.profile-info-card {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

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

.profile-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.profile-info-label svg {
    width: 18px;
    height: 18px;
}

.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-chip {
    padding: 6px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-secondary);
}

.info-chip.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--color-warning);
}

.chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-option {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip-option:hover {
    border-color: var(--text-primary);
}

.chip-option.selected {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

/* =============================================
   UPLOAD
   ============================================= */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-dropzone:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.upload-dropzone.dragover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.upload-dropzone-icon {
    width: 48px;
    height: 48px;
    color: var(--text-tertiary);
    margin: 0 auto 16px;
}

.upload-dropzone-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-dropzone-hint {
    font-size: 12px;
    color: var(--text-tertiary);
}

.upload-preview {
    position: relative;
    margin-bottom: 24px;
}

.upload-preview-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.upload-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    color: white;
}

.upload-preview-remove svg {
    width: 18px;
    height: 18px;
}

.tag-input-container {
    margin-bottom: 16px;
}

.tag-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.tag-item-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: pointer;
}

.tag-item-remove:hover {
    color: var(--color-error);
}

/* =============================================
   PROFILE
   ============================================= */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-secondary);
    object-fit: cover;
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.profile-stats {
    display: flex;
    gap: 24px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: 24px;
}

.profile-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* =============================================
   MODALS
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-primary);
    z-index: 10;
}

.post-detail-modal {
    width: 900px;
    display: flex;
}

.post-detail-image {
    width: 60%;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-detail-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.post-detail-content {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.post-detail-header {
    padding: 16px;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-detail-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail-username {
    font-size: 14px;
    font-weight: 600;
}

.post-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.post-detail-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-detail-tags {
    margin-bottom: 16px;
}

.clothing-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.post-detail-comments {
    border-top: 1px solid var(--divider-color);
    padding-top: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-username {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 13px;
    line-height: 1.4;
}

.comment-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.post-detail-footer {
    padding: 16px;
    border-top: 1px solid var(--divider-color);
}

.post-detail-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
}

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

/* =============================================
   TOAST
   ============================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-error);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

/* =============================================
   ONBOARDING
   ============================================= */
.onboarding-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.onboarding-card {
    width: 100%;
    max-width: 480px;
}

.onboarding-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.onboarding-progress-step {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.onboarding-progress-step.active {
    background: var(--text-primary);
}

.onboarding-progress-step.completed {
    background: var(--color-success);
}

.onboarding-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.onboarding-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
}

.onboarding-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.body-corrections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.body-correction-option {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.body-correction-option:hover {
    border-color: var(--text-primary);
}

.body-correction-option.selected {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

/* =============================================
   RECOMMEND RESULT
   ============================================= */
.recommend-result-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.recommend-result-header {
    text-align: center;
    margin-bottom: 32px;
}

.recommend-result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
}

.recommend-result-icon svg {
    width: 32px;
    height: 32px;
}

.recommend-result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.recommend-result-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
}

.recommend-outfit-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.recommend-outfit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.recommend-outfit-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 20px;
}

.recommend-outfit-item-name {
    font-size: 14px;
    font-weight: 500;
}

.recommend-outfit-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.recommend-tips {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-success);
}

.recommend-tips-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.recommend-tips-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .post-detail-modal {
        width: 100%;
        flex-direction: column;
    }

    .post-detail-image,
    .post-detail-content {
        width: 100%;
    }

    .feed-grid {
        column-count: 2;
    }
}