:root {
    /* Color Palette */
    --color-bg-sidebar: #0F172A;
    --color-bg-main: #F1F5F9;
    --color-card-bg: #FFFFFF;
    
    --color-primary: #3B82F6;
    --color-primary-hover: #2563EB;
    
    --color-text-main: #1E293B;
    --color-text-sub: #64748B;
    --color-text-inverse: #F8FAFC;
    
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;
    
    --color-accent-required: #FFF7ED; /* 필수값 배경 */
    --color-accent-required-border: #FDBA74; /* 필수값 테두리 */
    --color-accent-required-text: #9A3412;
    
    --color-success: #10B981;
    --color-warning: #F59E0B;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
    --font-ui: 'Manrope', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--color-bg-sidebar);
    color: var(--color-text-inverse);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 50;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
    transform: translateX(2px);
}

.logo:hover .logo-icon {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.logo-icon {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-primary);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-inverse);
}

.sidebar-subtitle {
    color: var(--color-text-sub);
    font-size: 0.875rem;
    padding-left: 2px;
}

/* Mall Selector */
.mall-selector-container {
    margin-top: var(--spacing-lg);
}

.mall-selector-wrapper {
    display: flex;
    gap: var(--spacing-sm);
}

.mall-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-inverse);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.mall-select:hover, .mall-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mall-select option {
    background: var(--color-bg-sidebar);
    color: var(--color-text-inverse);
}

.add-mall-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.add-mall-btn:hover {
    background: var(--color-primary-hover);
}

.sidebar-nav {
    flex: 1;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.nav-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-sub);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-text-sub);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-inverse);
}

.nav-btn.active {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-footer {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.total-progress {
    margin-bottom: var(--spacing-lg);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-sub);
}

.total-percent {
    color: var(--color-text-inverse);
    font-weight: 600;
    font-family: var(--font-ui);
}

.progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-success);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.action-btn {
    flex: 1;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-ui);
}

.action-btn.primary {
    background: var(--color-text-inverse);
    color: var(--color-bg-sidebar);
    border: none;
}

.action-btn.primary:hover {
    background: #E2E8F0;
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-sub);
}

.action-btn.secondary:hover {
    border-color: var(--color-text-sub);
    color: var(--color-text-inverse);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: var(--spacing-xl) 40px;
    max-width: calc(100% - 280px);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Splash Screen */
.splash-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    height: 100%;
    min-height: calc(100vh - 80px);
}

.splash-content {
    max-width: 600px;
    animation: fadeUp 0.6s ease-out;
}

.splash-image,
.splash-svg {
    width: 320px;
    height: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.15));
}

.splash-svg {
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.splash-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.splash-content p {
    font-size: 1.125rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

.splash-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Content Wrapper (Hidden by default) */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.4s ease-out;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.header-left h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.03em;
}

.header-left p {
    color: var(--color-text-sub);
    font-size: 1rem;
}

.filter-group {
    display: flex;
    gap: var(--spacing-md);
}

.filter-option {
    cursor: pointer;
}

.filter-option input {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-sub);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-option input:checked + .filter-chip {
    background: var(--color-text-main);
    color: white;
    border-color: var(--color-text-main);
    box-shadow: var(--shadow-md);
}

/* Checklist Grid */
.checklist-section {
    display: none;
    animation: fadeUp 0.4s ease-out;
}

.checklist-section.active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* Card Style */
.checklist-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.checklist-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.checklist-item.checked {
    opacity: 0.6;
    background: #F8FAFC;
    border-color: var(--color-border);
    box-shadow: none;
}

/* Required Item Styling */
.checklist-item.required-item {
    background: var(--color-accent-required);
    border: 1px solid var(--color-accent-required-border);
}

.checklist-item.required-item:hover {
    border-color: var(--color-accent-required-text);
    box-shadow: 0 10px 15px -3px rgba(253, 186, 116, 0.2);
}

.checklist-item.required-item .item-title {
    color: var(--color-accent-required-text);
}

.checklist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.item-content {
    flex: 1;
}

.item-badges {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-ui);
    text-transform: uppercase;
}

.badge.priority-high {
    background: #FECACA;
    color: #991B1B;
}

.badge.priority-mid {
    background: #FEF3C7;
    color: #92400E;
}

.badge.priority-low {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.badge.category {
    background: #F1F5F9;
    color: #475569;
}

.item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    word-break: keep-all;
}

.item-description {
    font-size: 0.9375rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.item-warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--color-warning);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: auto;
    font-size: 0.8125rem;
    color: #B45309;
    line-height: 1.5;
}

.item-link-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 4px 8px;
    background-color: #f1f5f9;
    color: var(--color-primary);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    gap: 4px;
}

.item-link-btn:hover {
    background-color: #e2e8f0;
    color: var(--color-primary-hover);
}

.checkbox-container {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border-hover);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    background: white;
    transition: var(--transition);
}

.checklist-item.required-item .custom-checkbox {
    border-color: var(--color-accent-required-border);
}

.custom-checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checklist-item.required-item .custom-checkbox:checked {
    background: var(--color-accent-required-text);
    border-color: var(--color-accent-required-text);
}

.custom-checkbox:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 800;
}

.custom-checkbox:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-sub);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-text-main);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: #F8FAFC;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-xs);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Section Checkbox Group */
.section-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F8FAFC;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.section-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--color-text-main);
    cursor: pointer;
    user-select: none;
}

.section-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Export Options Grid */
.export-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.export-option-btn {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.export-option-btn:hover {
    border-color: var(--color-primary);
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.export-option-btn .ext {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-main);
}

.export-option-btn .desc {
    font-size: 0.75rem;
    color: var(--color-text-sub);
}

/* ==================== 게이미피케이션 스타일 ==================== */

/* 게이미피케이션 섹션 */
.gamification-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.player-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.player-level {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.player-title {
    font-size: 0.875rem;
    color: var(--color-text-inverse);
    font-weight: 500;
}

.xp-bar-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.xp-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #60A5FA);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.xp-text {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-text-sub);
    min-width: 50px;
    text-align: right;
}

/* 배지 섹션 */
.badge-section {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.badge-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-sub);
}

.badge-count-total {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    font-family: var(--font-ui);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.badge-icon {
    font-size: 1.125rem;
    cursor: default;
    transition: transform 0.2s;
    position: relative;
}

.badge-icon:hover {
    transform: scale(1.2);
}

.badge-icon.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.badge-icon.earned {
    animation: badgeEarned 0.3s ease-out;
}

.badge-icon .badge-count {
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 1px 3px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-weight: 700;
}

.badge-separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
}

@keyframes badgeEarned {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 몰 삭제 버튼 */
.remove-mall-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: #EF4444;
    cursor: pointer;
    transition: var(--transition);
}

.remove-mall-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #EF4444;
}

/* 토스트 알림 */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-xp {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.toast-combo {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.toast-levelup {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1E293B;
    font-size: 1rem;
    animation: levelUpPulse 0.5s ease-out;
}

.toast-achievement {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}

.toast-milestone {
    background: linear-gradient(135deg, var(--color-primary), #2563EB);
    color: white;
}

.toast-badge-common {
    background: linear-gradient(135deg, #64748B, #475569);
    color: white;
}

.toast-badge-rare {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
}

.toast-badge-epic {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: white;
    animation: epicGlow 0.5s ease-out;
}

.toast-badge-legendary {
    background: linear-gradient(135deg, #FFD700, #FF8C00, #FFD700);
    background-size: 200% 200%;
    animation: legendaryShine 1s ease infinite;
    color: #1E293B;
    font-size: 1rem;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes levelUpPulse {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(0) scale(1.05); }
}

@keyframes epicGlow {
    0% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
    50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
    100% { box-shadow: var(--shadow-lg); }
}

@keyframes legendaryShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 콤보 디스플레이 */
.combo-display {
    position: fixed;
    top: 100px;
    right: 40px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #F59E0B;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.combo-display.active {
    opacity: 1;
    transform: scale(1);
    animation: comboPulse 0.3s ease-out;
}

.combo-display.epic {
    color: #A855F7;
    font-size: 1.75rem;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.combo-display.legendary {
    color: #FFD700;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    animation: comboPulse 0.3s ease-out, legendaryGlow 1s ease infinite;
}

@keyframes comboPulse {
    0% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes legendaryGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.7); }
    50% { text-shadow: 0 0 30px rgba(255, 215, 0, 1); }
}

/* 체크 애니메이션 */
.checklist-item.check-animation {
    animation: checkPulse 0.6s ease-out;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    20% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
    40% { transform: scale(0.98); }
    100% { transform: scale(1); box-shadow: none; }
}

.checklist-item.checked .custom-checkbox {
    animation: checkboxBounce 0.4s ease-out;
}

@keyframes checkboxBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 레벨업 오버레이 */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.1);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: levelUpFlash 1.5s ease-out forwards;
    pointer-events: none;
}

.level-up-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: levelUpTextAnim 1.5s ease-out forwards;
}

@keyframes levelUpFlash {
    0% { background: rgba(255, 215, 0, 0.3); }
    100% { background: rgba(255, 215, 0, 0); }
}

@keyframes levelUpTextAnim {
    0% { opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1.2); }
    40% { transform: scale(1); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-50px); }
}

/* 에픽/전설 플래시 효과 */
.epic-flash {
    animation: epicFlashAnim 0.5s ease-out;
}

@keyframes epicFlashAnim {
    0% { box-shadow: inset 0 0 100px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: none; }
}

.legendary-flash {
    animation: legendaryFlashAnim 1s ease-out;
}

@keyframes legendaryFlashAnim {
    0% { box-shadow: inset 0 0 150px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: inset 0 0 100px rgba(255, 215, 0, 0.2); }
    100% { box-shadow: none; }
}

/* 컨페티 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 완료 축하 오버레이 */
.completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.completion-content {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    animation: completionPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: trophyBounce 1s ease infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.completion-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.completion-content p {
    color: var(--color-text-sub);
    margin-bottom: 24px;
}

.close-celebration {
    padding: 12px 32px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-celebration:hover {
    background: var(--color-primary-hover);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes completionPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 마우스 이펙트 스타일 ==================== */

/* 클릭 파티클 */
.click-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3000;
    animation: particleBurst 0.6s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

/* 리플 이펙트 */
.ripple-effect {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    pointer-events: none;
    z-index: 3000;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* 플로팅 텍스트 */
.floating-text {
    position: fixed;
    pointer-events: none;
    z-index: 3000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    transform: translate(-50%, -50%);
    animation: floatUp 1s ease-out forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.floating-xp {
    color: #10B981;
}

.floating-combo {
    color: #F59E0B;
    font-size: 1.5rem;
}

.floating-legendary {
    color: #FFD700;
    font-size: 1.75rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -100%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.8);
    }
}

/* 체크박스 호버 글로우 */
.custom-checkbox:hover {
    transform: scale(1.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* 카드 호버 시 빛나는 테두리 */
.checklist-item:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-primary), #60A5FA, var(--color-primary));
    border-radius: calc(var(--radius-md) + 2px);
    z-index: -1;
    opacity: 0;
    animation: borderGlow 0.3s ease-out forwards;
}

@keyframes borderGlow {
    to {
        opacity: 0.3;
    }
}

/* 체크된 아이템 마우스 오버 시 다른 효과 */
.checklist-item.checked:hover::before {
    background: linear-gradient(45deg, #10B981, #34D399, #10B981);
}

/* Responsive */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: var(--spacing-md);
        justify-content: space-between;
    }
    
    .sidebar-nav, .sidebar-footer, .sidebar-subtitle {
        display: none;
    }
    
    .mall-selector-container {
        display: none; /* 모바일에서는 일단 숨김 처리하거나 별도 UI 고려 필요 */
    }
    
    .gamification-section, .badge-section {
        display: none; /* 모바일에서는 숨김 */
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: var(--spacing-md);
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: var(--spacing-md);
        max-width: calc(100% - 32px);
    }
    
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    
    .combo-display {
        top: 80px;
        right: 16px;
        font-size: 1.25rem;
    }
}
