:root {
  --bg-primary: #0a0a0f; --bg-secondary: #14141f; --bg-card: #1a1a2e; --bg-card-hover: #22223a; --bg-input: #1e1e30; --bg-hover: #252540;
  --text-primary: #ffffff; --text-secondary: #9ca3af; --text-muted: #6b7280;
  --accent-pink: #e91e63; --accent-orange: #ff6b35; --accent-yellow: #ffc107; --accent-purple: #8b5cf6; --accent-cyan: #06b6d4; --accent-green: #10b981;
  --border-color: #2d2d44; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8f9fa; --bg-secondary: #ffffff; --bg-card: #ffffff; --bg-card-hover: #f1f3f5; --bg-input: #f8f9fa; --bg-hover: #e9ecef;
  --text-primary: #1a1a1a; --text-secondary: #495057; --text-muted: #868e96;
  --border-color: #dee2e6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; -webkit-font-smoothing: antialiased; }
.screen { display: none; } .screen.active { display: block; }
.onboarding { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px; background: linear-gradient(180deg, var(--bg-primary) 0%, #12121f 100%); animation: fadeIn 0.5s ease-out; }
.logo { font-size: 4rem; font-weight: 300; letter-spacing: 0.2em; color: var(--text-primary); margin-bottom: 24px; }
.title { font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; text-align: center; }
.title-bucks { background: linear-gradient(135deg, #ff6b35, #ff8f5a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.title-hunt { background: linear-gradient(135deg, #ffc107, #ffda44); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { font-size: 1.125rem; color: var(--text-secondary); text-align: center; margin-bottom: 48px; max-width: 400px; line-height: 1.6; }
.form-card { background: var(--bg-card); border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 440px; border: 1px solid var(--border-color); animation: slideUp 0.6s ease-out 0.2s both; }
.label { display: block; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.input { width: 100%; padding: 16px 24px; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-primary); font-size: 1rem; outline: none; transition: all 0.2s ease; }
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--accent-pink); box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15); }
.avatar-section { margin-top: 32px; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.avatar-btn { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; }
.avatar-btn:hover { background: var(--bg-card-hover); transform: scale(1.05); }
.avatar-btn.selected { border-color: var(--accent-pink); box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.3); background: rgba(233, 30, 99, 0.15); }
.submit-btn { width: 100%; padding: 16px 32px; margin-top: 32px; background: linear-gradient(135deg, var(--bg-input), var(--bg-card)); border: 1px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-secondary); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover:not(:disabled) { background: linear-gradient(135deg, var(--bg-card-hover), #2a2a45); color: var(--text-primary); transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.submit-btn.ready { background: linear-gradient(135deg, #1a1a2e, #252540); border-color: rgba(233, 30, 99, 0.3); color: var(--text-primary); animation: glow 2s ease-in-out infinite; }
.dashboard { min-height: 100vh; background: var(--bg-primary); padding-bottom: 100px; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary)); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 16px; }
.header-logo { font-size: 1.5rem; font-weight: 300; letter-spacing: 0.15em; }
.header-title-main { font-size: 1.25rem; font-weight: 800; }
.header-bucks { color: #ff6b35; } .header-hunt { color: #ffc107; }
.header-subtitle { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); cursor: pointer; transition: all 0.2s ease; }
.theme-toggle:hover { background: var(--bg-card-hover); border-color: var(--accent-pink); transform: scale(1.05); }
.theme-icon { font-size: 1.25rem; }
.user-profile { display: flex; align-items: center; gap: 10px; background: var(--bg-card); padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border-color); }
.user-avatar { font-size: 1.25rem; }
.user-name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); cursor: pointer; transition: all 0.2s ease; }
.logout-btn:hover { background: linear-gradient(135deg, #ef4444, #f87171); border-color: #ef4444; transform: scale(1.05); }
.logout-icon { font-size: 1.25rem; }
.main { padding: 24px; max-width: 600px; margin: 0 auto; }
.page-title { font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 16px; }
.challenges-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.challenges-count { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; margin-top: 4px; margin-bottom: 8px; }
.challenges-percent { font-size: 1.5rem; font-weight: 700; color: var(--accent-purple); background: rgba(139, 92, 246, 0.15); padding: 6px 16px; border-radius: var(--radius-full); border: 1px solid rgba(139, 92, 246, 0.3); flex-shrink: 0; align-self: center; }
.progress-bar { width: 100%; height: 4px; background: var(--bg-card); border-radius: var(--radius-full); margin-bottom: 24px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple)); border-radius: var(--radius-full); transition: width 0.5s ease; }
.challenge-search-container { position: relative; margin-bottom: 16px; }
.challenge-search-input { width: 100%; padding: 10px 50px 10px 45px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-primary); font-size: 0.875rem; outline: none; transition: all 0.2s ease; font-weight: 500; }
.challenge-search-input:focus { border-color: var(--accent-cyan); background: var(--bg-card-hover); }
.challenge-search-input::placeholder { color: var(--text-muted); font-weight: 500; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; pointer-events: none; color: var(--text-muted); }
.clear-search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: all 0.2s ease; border-radius: var(--radius-full); }
.clear-search-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.category-filter { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 8px; }
.category-btn { display: flex; align-items: center; gap: 4px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.category-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.category-btn.active { background: linear-gradient(135deg, var(--accent-pink), #f06292); border-color: var(--accent-pink); color: white; }
.scroll-indicator { display: flex; align-items: center; gap: 4px; margin-bottom: 24px; color: var(--text-muted); }
.scroll-track { flex: 1; height: 6px; background: var(--bg-card); border-radius: var(--radius-full); position: relative; }
.scroll-thumb { position: absolute; left: 0; top: 0; height: 100%; width: 60%; background: linear-gradient(90deg, var(--text-muted), var(--bg-card)); border-radius: var(--radius-full); }
.ai-chaos-card { background: linear-gradient(135deg, var(--bg-card), #1f1f35); border: 2px solid var(--accent-cyan); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; position: relative; }
.ai-chaos-header { display: flex; align-items: flex-start; gap: 16px; }
.ai-chaos-icon { font-size: 2.5rem; }
.ai-chaos-title { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; margin-bottom: 4px; background: linear-gradient(135deg, #06b6d4, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ai-chaos-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; }
.ai-chaos-timer { display: flex; align-items: center; gap: 8px; }
.timer-label { font-size: 0.875rem; color: var(--text-muted); }
.timer-value { font-size: 1.125rem; font-weight: 700; font-family: monospace; }
.timer-hours { color: #ef4444; } .timer-minutes { color: #f97316; } .timer-seconds { color: #22c55e; }
.challenges-list { display: flex; flex-direction: column; gap: 16px; }
.challenge-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: flex-start; gap: 16px; cursor: pointer; transition: all 0.3s ease; animation: slideUp 0.4s ease-out both; }
.challenge-card:hover { background: var(--bg-card-hover); border-color: var(--accent-purple); transform: translateX(4px); }
.challenge-card.completed { opacity: 0.6; border-color: var(--accent-green); }
.challenge-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; background: var(--bg-input); border-radius: var(--radius-md); flex-shrink: 0; }
.challenge-content { flex: 1; min-width: 0; overflow: hidden; }
.challenge-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; word-wrap: break-word; overflow-wrap: break-word; }
.challenge-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
.challenge-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.challenge-badge { padding: 4px 8px; background: linear-gradient(135deg, #8b5cf6, #a78bfa); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; color: white; text-transform: uppercase; }
.challenge-points { padding: 8px 16px; background: rgba(139, 92, 246, 0.15); border: 1px solid var(--accent-purple); border-radius: var(--radius-md); font-weight: 700; color: var(--accent-purple); }
.back-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text-secondary); font-size: 1rem; cursor: pointer; padding: 8px 0; margin-bottom: 24px; }
.back-btn:hover { color: var(--text-primary); }
.detail-header { text-align: center; margin-bottom: 32px; }
.detail-icon { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: var(--radius-xl); margin: 0 auto 20px; }
.detail-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.detail-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.6; max-width: 400px; margin: 0 auto 16px; }
.detail-points { display: inline-flex; padding: 12px 24px; background: rgba(139, 92, 246, 0.15); border: 2px solid var(--accent-purple); border-radius: var(--radius-full); font-size: 1.25rem; font-weight: 700; color: var(--accent-purple); }
.upload-section { margin-top: 32px; }
.upload-title { font-size: 1.125rem; font-weight: 600; text-align: center; margin-bottom: 20px; }
.upload-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.upload-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px; background: var(--bg-card); border: 2px dashed var(--border-color); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.3s ease; }
.upload-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); transform: translateY(-4px); }
.upload-btn-icon { font-size: 3rem; }
.upload-btn-text { font-size: 1rem; font-weight: 600; }
.upload-btn-hint { font-size: 0.75rem; color: var(--text-muted); }
.hidden-input { display: none; }
.preview-section { margin-top: 24px; display: none; }
.preview-section.active { display: block; animation: fadeIn 0.3s ease-out; }
.preview-container { position: relative; max-width: 400px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--accent-green); }
.preview-image { width: 100%; display: block; }
.preview-overlay { position: absolute; top: 12px; right: 12px; }
.preview-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); border: none; border-radius: 50%; color: white; font-size: 1.25rem; cursor: pointer; }
.preview-btn:hover { background: var(--accent-pink); }
.submit-photo-btn { width: 100%; max-width: 400px; margin: 20px auto 0; display: block; padding: 16px 32px; background: linear-gradient(135deg, var(--accent-green), #34d399); border: none; border-radius: var(--radius-lg); color: white; font-size: 1.125rem; font-weight: 700; cursor: pointer; }
.submit-photo-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
.success-message { text-align: center; padding: 48px 24px; animation: fadeIn 0.5s ease-out; }
.success-icon { font-size: 5rem; margin-bottom: 20px; animation: bounce 0.6s ease-out; }
.success-title { font-size: 1.75rem; font-weight: 700; color: var(--accent-green); margin-bottom: 8px; }
.success-points { font-size: 2.5rem; font-weight: 800; color: var(--accent-purple); margin-bottom: 16px; }
.success-text { font-size: 1rem; color: var(--text-secondary); margin-bottom: 32px; }
.success-btn { padding: 16px 48px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-primary); font-weight: 600; cursor: pointer; }
.feed-filters { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-select { flex: 1; min-width: 200px; padding: 10px 16px; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-primary); font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.filter-select:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); }
.filter-select:focus { outline: none; border-color: var(--accent-purple); }
.filter-clear-btn { padding: 10px 20px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-lg); color: #ef4444; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.filter-clear-btn:hover { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; }
.feed-list { display: flex; flex-direction: column; gap: 24px; }
.feed-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; animation: slideUp 0.4s ease-out both; }
.feed-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.feed-user { display: flex; align-items: center; gap: 12px; }
.feed-avatar { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--bg-input); border-radius: 50%; }
.feed-username { font-weight: 600; }
.feed-time { font-size: 0.75rem; color: var(--text-muted); }
.feed-challenge-badge { padding: 6px 12px; background: rgba(139, 92, 246, 0.15); border: 1px solid var(--accent-purple); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; color: var(--accent-purple); }
.feed-image-container { position: relative; width: 100%; }
.feed-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-input); display: block; }
.fullscreen-btn { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-md); color: white; font-size: 1.25rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; opacity: 0.7; }
.feed-image-container:hover .fullscreen-btn { opacity: 1; }
.fullscreen-btn:hover { background: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.1); }
.feed-caption { padding: 16px; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; }
.feed-caption strong { color: var(--text-primary); }
.feed-reactions { display: flex; gap: 8px; padding: 0 16px 12px; flex-wrap: wrap; align-items: center; }
.reaction-btn { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; }
.reaction-btn:hover { background: var(--bg-card-hover); transform: translateY(-1px); border-color: var(--accent-purple); box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2); }
.reaction-btn.reacted { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(233, 30, 99, 0.2)); border-color: var(--accent-purple); font-weight: 600; }
.reaction-emoji { font-size: 1.125rem; line-height: 1; }
.reaction-count { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }
.reaction-add-btn { display: flex; align-items: center; justify-content: center; padding: 6px 10px; background: var(--bg-input); border: 1px dashed var(--border-color); border-radius: var(--radius-md); color: var(--text-muted); font-size: 1.125rem; cursor: pointer; transition: all 0.2s ease; font-weight: 600; min-width: 36px; }
.reaction-add-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-purple); border-style: solid; color: var(--text-primary); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2); }
.reaction-add-icon { font-size: 1.25rem; line-height: 1; font-weight: 400; }
.reaction-picker { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; }
.reaction-picker-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: transparent; }
.reaction-picker-content { position: absolute; display: flex; gap: 8px; padding: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); z-index: 10001; }
.reaction-picker-item { padding: 8px 12px; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; border-radius: var(--radius-md); transition: all 0.2s ease; }
.reaction-picker-item:hover { background: var(--bg-input); transform: scale(1.2); }
.feed-actions { display: flex; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--border-color); }
.feed-action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: none; border: none; color: var(--text-secondary); font-size: 0.875rem; cursor: pointer; border-radius: var(--radius-md); }
.feed-action-btn:hover { background: var(--bg-input); color: var(--text-primary); }
.feed-action-btn.liked { color: var(--accent-pink); }
.feed-action-icon { font-size: 1.25rem; }
.feed-comments { padding: 0 16px 16px; }
.feed-comment { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 4px; }
.feed-comment strong { color: var(--text-primary); margin-right: 6px; }
.comments-header { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.comment { display: flex; gap: 8px; align-items: flex-start; position: relative; }
.comment-avatar { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; background: var(--bg-input); border-radius: 50%; flex-shrink: 0; }
.comment-content { flex: 1; background: var(--bg-input); padding: 8px 12px; border-radius: var(--radius-md); }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-header strong { font-size: 0.875rem; }
.comment-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 8px; }
.comment-actions { display: flex; gap: 8px; align-items: center; }
.like-comment-btn { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: none; border: none; color: var(--text-muted); font-size: 0.875rem; cursor: pointer; border-radius: var(--radius-md); transition: all 0.2s; }
.like-comment-btn:hover { background: rgba(233, 30, 99, 0.1); color: var(--accent-pink); }
.like-comment-btn.liked { color: var(--accent-pink); }
.comment-input-container { display: flex; gap: 8px; }
.comment-input { flex: 1; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-primary); font-size: 0.875rem; }
.comment-input:focus { outline: none; border-color: var(--accent-purple); }
.comment-submit-btn { padding: 10px 16px; background: var(--accent-purple); border: none; border-radius: var(--radius-full); color: #fff; font-size: 1.125rem; cursor: pointer; transition: all 0.2s; }
.comment-submit-btn:hover { background: #7c3aed; transform: scale(1.05); }
.comment-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.delete-post-btn, .delete-comment-btn { padding: 6px 10px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-md); color: #ef4444; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.delete-post-btn:hover, .delete-comment-btn:hover { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; }
.delete-comment-btn { padding: 4px 8px; font-size: 0.875rem; position: absolute; right: 0; top: 0; }
.leaderboard-sort-toggle { display: flex; gap: 8px; }
.sort-toggle-btn { padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.sort-toggle-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.sort-toggle-btn.active { background: linear-gradient(135deg, var(--accent-purple), #9333ea); border-color: var(--accent-purple); color: white; }
.leaderboard-list { display: flex; flex-direction: column; gap: 12px; }
.leaderboard-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); animation: slideUp 0.4s ease-out both; }
.leaderboard-card.top-1 { border-color: #ffd700; background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--bg-card)); }
.leaderboard-card.top-2 { border-color: #c0c0c0; background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), var(--bg-card)); }
.leaderboard-card.top-3 { border-color: #cd7f32; background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), var(--bg-card)); }
.leaderboard-rank { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: var(--text-muted); }
.leaderboard-avatar { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; background: var(--bg-input); border-radius: 50%; }
.leaderboard-info { flex: 1; }
.leaderboard-name { font-size: 1.125rem; font-weight: 600; margin-bottom: 2px; }
.leaderboard-challenges { font-size: 0.75rem; color: var(--text-muted); }
.leaderboard-score { font-size: 1.5rem; font-weight: 800; color: var(--accent-purple); }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 16px 24px; background: var(--bg-primary); border-top: 1px solid var(--border-color); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; background: none; border: none; color: var(--text-muted); cursor: pointer; min-width: 64px; }
.nav-item:hover { color: var(--text-secondary); }
.nav-item.active { color: var(--accent-cyan); }
.nav-icon { font-size: 1.5rem; }
.nav-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.placeholder-view { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 32px; }
.placeholder-icon { font-size: 4rem; margin-bottom: 24px; opacity: 0.5; }
.placeholder-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.placeholder-text { color: var(--text-muted); max-width: 300px; }
.chat-mode-selector { display: flex; gap: 12px; margin-bottom: 20px; max-width: 800px; margin: 0 auto 20px; }
.mode-btn { flex: 1; padding: 16px; background: var(--bg-card); border: 2px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-primary); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: center; line-height: 1.4; }
.mode-btn:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); transform: translateY(-2px); }
.mode-btn.active { background: linear-gradient(135deg, var(--accent-cyan), #22d3ee); border-color: var(--accent-cyan); color: white; }
.mode-desc { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.9; margin-top: 4px; }
.chat-container { display: flex; flex-direction: column; height: calc(100vh - 360px); min-height: 400px; max-width: 800px; margin: 0 auto; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 16px; }
.chat-message { display: flex; gap: 12px; animation: slideUp 0.3s ease-out; }
.chat-message.user { flex-direction: row-reverse; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-input); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.chat-bubble { max-width: 70%; padding: 12px 16px; border-radius: var(--radius-md); line-height: 1.5; }
.chat-message.user .chat-bubble { background: linear-gradient(135deg, var(--accent-pink), #f06292); color: white; border-bottom-right-radius: 4px; }
.chat-message.assistant .chat-bubble { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-primary); border-bottom-left-radius: 4px; }
.chat-input-container { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border-color); }
.chat-input { flex: 1; padding: 12px 16px; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: var(--radius-lg); color: var(--text-primary); font-size: 1rem; resize: none; max-height: 120px; }
.chat-input:focus { border-color: var(--accent-pink); outline: none; }
.chat-send-btn { padding: 12px 24px; background: linear-gradient(135deg, var(--accent-pink), #f06292); border: none; border-radius: var(--radius-lg); color: white; font-weight: 600; cursor: pointer; }
.chat-send-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.voice-btn { padding: 12px; background: linear-gradient(135deg, var(--accent-purple), #a78bfa); border: none; border-radius: var(--radius-lg); color: white; font-size: 1.25rem; cursor: pointer; min-width: 50px; }
.voice-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }
.voice-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.voice-btn.recording { background: linear-gradient(135deg, #ef4444, #f87171); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.chat-loading { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.875rem; }
.chat-loading-dots { display: flex; gap: 4px; }
.chat-loading-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-pink); animation: bounce 1.4s infinite ease-in-out; }
.chat-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-loading-dot:nth-child(2) { animation-delay: -0.16s; }
.location-filter { padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; outline: none; white-space: nowrap; }
.location-filter:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.location-filter:focus { outline: none; }
.japan-challenge-btn { padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.japan-challenge-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.japan-challenge-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.create-challenge-btn { padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.create-challenge-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.2s; }
.modal-content { background: var(--bg-card); border-radius: var(--radius-xl); padding: 32px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border-color); animation: slideUp 0.3s; }
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; text-align: center; }
.modal-form { display: flex; flex-direction: column; }
.modal-btn { flex: 1; padding: 12px 24px; border: none; border-radius: var(--radius-lg); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.modal-btn-primary { background: linear-gradient(135deg, var(--accent-purple), #a78bfa); color: white; }
.modal-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }
.modal-btn-secondary { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border-color); }
.modal-btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(233, 30, 99, 0.3); } 50% { box-shadow: 0 0 20px rgba(233, 30, 99, 0.5); } }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.zen-container { max-width: 800px; margin: 0 auto; padding: 0 16px 32px; }
.zen-header { text-align: center; margin-bottom: 32px; position: relative; }
.zen-title { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.zen-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.zen-date-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.zen-nav-btn { width: 40px; height: 40px; background: rgba(6, 182, 212, 0.1); border: 1px solid var(--accent-cyan); border-radius: var(--radius-md); color: var(--accent-cyan); font-size: 1.25rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.zen-nav-btn:hover:not(:disabled) { background: rgba(6, 182, 212, 0.2); transform: scale(1.1); }
.zen-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.zen-date-display { flex: 1; text-align: center; font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.zen-refresh-btn { padding: 8px 16px; background: rgba(139, 92, 246, 0.1); border: 1px solid var(--accent-purple); border-radius: var(--radius-lg); color: var(--accent-purple); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.zen-refresh-btn:hover { background: rgba(139, 92, 246, 0.2); transform: translateY(-2px); }
.zen-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 24px; animation: slideUp 0.4s ease-out; transition: all 0.3s; }
.zen-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); border-color: var(--accent-cyan); }
.zen-card-icon { font-size: 3rem; text-align: center; margin-bottom: 16px; }
.zen-card-title { font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--text-primary); }
.zen-quote-card { border-left: 4px solid var(--accent-purple); }
.zen-quote-text { font-size: 1.25rem; font-weight: 500; line-height: 1.6; text-align: center; color: var(--text-primary); margin: 24px 0 16px; font-style: italic; }
.zen-quote-author { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.zen-quote-kanji { text-align: center; color: var(--accent-cyan); font-size: 1.5rem; margin-top: 16px; }
.zen-quote-english { text-align: center; color: var(--text-muted); font-size: 0.9rem; font-style: italic; margin-top: 8px; }
.zen-fact-card { border-left: 4px solid var(--accent-pink); }
.zen-fact-text { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }
.zen-food-card { border-left: 4px solid var(--accent-green); }
.zen-food-name { font-size: 1.5rem; font-weight: 700; color: var(--accent-green); text-align: center; margin-bottom: 8px; }
.zen-food-name-japanese { text-align: center; color: var(--accent-cyan); font-size: 1.1rem; margin-bottom: 12px; }
.zen-food-desc { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 20px; }
.zen-food-image-container { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-top: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.zen-food-image { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.zen-ghibli-badge { position: absolute; bottom: 12px; right: 12px; background: rgba(16, 185, 129, 0.9); color: white; padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(8px); }
.zen-food-image-placeholder { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 211, 238, 0.1)); border: 2px dashed var(--border-color); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.zen-food-emoji { font-size: 4rem; margin-bottom: 12px; }
.zen-food-image-hint { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.zen-haiku-card { border-left: 4px solid var(--accent-cyan); }
.zen-haiku-lines { text-align: center; margin: 24px 0; }
.zen-haiku-line { font-size: 1.25rem; line-height: 1.8; color: var(--text-primary); font-weight: 500; margin: 8px 0; font-family: 'Georgia', serif; font-style: italic; }
.zen-haiku-theme { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }
.zen-song-card { border-left: 4px solid #f59e0b; }
.zen-song-title { font-size: 1.35rem; font-weight: 700; color: #f59e0b; text-align: center; margin-bottom: 8px; }
.zen-song-artist { text-align: center; color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 12px; }
.zen-song-genre { text-align: center; background: rgba(245, 158, 11, 0.15); color: #f59e0b; padding: 4px 12px; border-radius: var(--radius-full); display: inline-block; font-size: 0.8rem; font-weight: 600; margin: 0 auto 16px; display: block; width: fit-content; }
.zen-song-desc { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 20px; }
.zen-spotify-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; background: linear-gradient(135deg, #1DB954, #1ed760); border: none; border-radius: var(--radius-lg); color: white; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all 0.2s; margin-top: 16px; }
.zen-spotify-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4); background: linear-gradient(135deg, #1ed760, #1DB954); }
.spotify-icon { font-size: 1.25rem; }
.zen-footer { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.zen-footer-text { color: var(--text-muted); font-size: 0.875rem; }
@media (max-width: 480px) { .avatar-grid { grid-template-columns: repeat(4, 1fr); } .upload-options { grid-template-columns: 1fr; } .zen-title { font-size: 1.5rem; } .zen-quote-text { font-size: 1.05rem; } .zen-haiku-line { font-size: 1.05rem; } }

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Smooth image loading with fade-in */
img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img.loaded {
  opacity: 1;
}

/* Lazy loading skeleton/shimmer effect */
.image-loading {
  position: relative;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  min-height: 200px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Smooth Zen Mode food image loading */
.zen-food-image {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.zen-food-image.loaded {
  opacity: 1;
}

/* Feed image smooth loading */
.feed-image {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.feed-image.loaded {
  opacity: 1;
}

/* Hardware acceleration for smooth animations */
.challenge-card,
.feed-card,
.zen-card,
.chat-message {
  transform: translateZ(0);
  will-change: transform;
}

/* Optimize scrolling performance */
.main,
.challenges-list,
.feed-list {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Reduce repaints for hover effects */
.challenge-card:hover,
.feed-card:hover,
.category-btn:hover {
  transform: translateY(-2px) translateZ(0);
}

/* Optimize images for better performance */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Smooth theme transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Disable transitions during initial page load */
.preload * {
  transition: none !important;
}

/* Loading spinner for async operations */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Skeleton loader for content */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 12px;
}

/* Optimize for 60fps animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Improve rendering performance for gradients */
.header,
.challenge-card,
.feed-card {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.success {
  border-left: 4px solid #00ff88;
}

.toast.error {
  border-left: 4px solid #ff4757;
}

.toast.warning {
  border-left: 4px solid #ffa502;
}

.toast.info {
  border-left: 4px solid #00d2ff;
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.hiding {
  animation: toastSlideOut 0.3s ease-out forwards;
}

@media (max-width: 480px) {
  .toast-container {
    top: 60px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
  }

  /* Header mobile fixes */
  .header {
    padding: 12px 16px;
  }

  .header-left {
    gap: 8px;
  }

  .header-logo {
    font-size: 1.25rem;
  }

  .header-title-main {
    font-size: 1rem;
  }

  .header-subtitle {
    font-size: 0.65rem;
  }

  .header-right {
    gap: 8px;
  }

  .user-profile {
    padding: 6px 12px;
  }

  .user-name {
    max-width: 80px;
    font-size: 0.8rem;
  }

  .user-avatar {
    font-size: 1.1rem;
  }

  .theme-toggle,
  .logout-btn {
    width: 36px;
    height: 36px;
  }

  .theme-icon,
  .logout-icon {
    font-size: 1.1rem;
  }

  /* Feed filters mobile fixes */
  .feed-filters {
    flex-direction: column;
    gap: 8px;
  }

  .filter-select {
    min-width: unset;
    width: 100%;
  }

  .filter-clear-btn {
    width: 100%;
  }

  /* Challenges header mobile fixes */
  .challenges-header {
    align-items: flex-start;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 2px;
  }

  .challenges-count {
    font-size: 0.8rem;
  }

  .challenges-percent {
    font-size: 1.25rem;
    padding: 4px 12px;
  }
}

/* ===== FULLSCREEN IMAGE VIEWER ===== */
.fullscreen-image-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease-out; }
.fullscreen-image-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 1; cursor: pointer; }
.fullscreen-image-loading { position: relative; z-index: 3; color: white; font-size: 1.25rem; font-weight: 500; }
.fullscreen-image { position: relative; max-width: 95vw; max-height: 95vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); z-index: 2; pointer-events: none; transition: opacity 0.3s ease-out, transform 0.3s ease-out; transform: scale(1); }
.fullscreen-close-btn { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-full); color: white; font-size: 1.5rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; z-index: 3; }
.fullscreen-close-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.1); }
.fullscreen-help-text { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; z-index: 3; pointer-events: none; animation: fadeIn 0.5s ease-out 0.3s both; }

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
