/* =============================================
   LU NA - 다크 테마 글로벌 스타일시트
   ============================================= */

:root {
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #EDE9FE;
  --accent: #F472B6;
  --accent-light: #FCE7F3;
  --bg: #0f0f14;
  --card-bg: #1a1a24;
  --surface: #1a1a24;
  --text: #f0f0f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255,255,255,0.08);
  --danger: #EF4444;
  --success: #10B981;
  --warning: #F59E0B;
  --input-bg: #1e1e2a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
  min-height: 100vh;
}
#app {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

a { color: var(--primary); text-decoration: none; }
main { padding-bottom: 70px; }

/* 헤더 */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-logo { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.header-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.header-actions { display: flex; gap: 12px; }
.back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.25rem; text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.back-btn:hover {
  background: rgba(139,92,246,0.3);
  border-color: rgba(139,92,246,0.55);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(139,92,246,0.25);
}
.back-btn:active { transform: scale(0.94); }
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; position: relative; padding: 4px 8px; color: var(--text); }
.badge { position: absolute; top: 0; right: 0; background: var(--danger); color: #fff; font-size: 0.65rem; padding: 1px 5px; border-radius: 10px; min-width: 18px; text-align: center; }
.badge.hidden { display: none; }

/* 탭 내비게이션 */
.tab-nav { display: flex; overflow-x: auto; background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 0 8px; -webkit-overflow-scrolling: touch; }
.tab-nav::-webkit-scrollbar, .category-bar::-webkit-scrollbar { display: none; }
.tab-item { padding: 12px 16px; font-size: 0.9rem; color: var(--text-secondary); white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.category-bar { display: flex; gap: 4px; padding: 12px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cat-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--card-bg); font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.cat-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 게시물 작성 */
.post-composer { background: var(--card-bg); padding: 16px; border-radius: var(--radius); margin: 12px 16px; box-shadow: var(--shadow); }
.composer-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.composer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.composer-input { flex: 1; border: none; background: var(--input-bg); padding: 10px 16px; border-radius: 20px; font-size: 0.9rem; outline: none; color: var(--text); }
.composer-input::placeholder { color: #555; }
.composer-actions { display: flex; align-items: center; gap: 8px; }
.composer-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: 16px; background: none; font-size: 0.8rem; cursor: pointer; color: var(--text-secondary); }
.composer-cat { padding: 6px 12px; border: 1px solid var(--border); border-radius: 16px; background: none; font-size: 0.8rem; color: var(--text-secondary); }
.composer-submit { margin-left: auto; padding: 6px 20px; background: var(--primary); color: #fff; border: none; border-radius: 16px; font-size: 0.85rem; cursor: pointer; }
.image-preview { margin-top: 8px; position: relative; max-width: 200px; }
.image-preview img { width: 100%; border-radius: var(--radius-sm); }
.image-preview button { position: absolute; top: -8px; right: -8px; background: var(--danger); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 0.8rem; }

/* 피드 */
.feed-list { padding: 0 16px 80px; }
.post-card { background: var(--card-bg); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.post-meta { flex: 1; }
.post-meta strong { font-size: 0.9rem; display: block; color: var(--text); }
.post-time { font-size: 0.75rem; color: var(--text-muted); }
.post-menu-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.1rem; padding: 4px; }
.post-body { margin-bottom: 12px; }
.post-body h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.post-body p { font-size: 0.9rem; word-break: break-word; color: var(--text); }
.post-image { width: 100%; border-radius: var(--radius-sm); margin-top: 8px; object-fit: cover; max-height: 300px; }
.post-actions { display: flex; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.action-btn { background: none; border: none; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; padding: 4px 12px; border-radius: 16px; transition: all 0.2s; }
.action-btn:hover { background: rgba(255,255,255,0.06); }
.action-btn.active { color: var(--accent); }
.comment-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.comment-section.hidden { display: none; }
.comment-item { display: flex; align-items: flex-start; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.comment-item div { flex: 1; min-width: 0; }
.comment-item strong { margin-right: 4px; color: var(--primary); font-size: 0.8rem; }
.comment-item span { word-break: break-all; display: block; margin-bottom: 2px; color: var(--text); }
.comment-item small { color: var(--text-muted); }
.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }
.comment-input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; font-size: 0.85rem; outline: none; background: var(--input-bg); color: var(--text); }
.comment-input::placeholder { color: #555; }
.comment-submit { background: var(--primary); color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-size: 0.85rem; cursor: pointer; }

/* 하단 내비게이션 */
.bottom-nav {
  display: flex; justify-content: space-around;
  background: var(--card-bg); border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + var(--safe-bottom));
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100%; max-width: 500px; margin: 0 auto; z-index: 100;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 16px; font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.nav-item.active { color: var(--primary); }
.nav-item span { font-size: 0.65rem; }
.nav-item .nav-icon { font-size: 1.3rem; }

/* 드롭다운 메뉴 */
.user-dropdown { position: relative; }
.dropdown-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); }
.dropdown-trigger:hover { background: rgba(255,255,255,0.05); }
.dropdown-avatar-small { width: 28px; height: 28px; border-radius: 50%; }
.dropdown-name { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.dropdown-arrow { font-size: 0.6rem; color: var(--text-muted); }
.dropdown-menu { position: absolute; top: 100%; right: 0; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow-md); min-width: 160px; z-index: 200; padding: 8px 0; border: 1px solid var(--border); }
.dropdown-menu.hidden { display: none; }
.dropdown-menu a, .dropdown-menu button { display: block; padding: 10px 16px; font-size: 0.85rem; color: var(--text); text-decoration: none; background: none; border: none; width: 100%; text-align: left; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(255,255,255,0.05); }
.dropdown-menu hr { margin: 4px 0; border: none; border-top: 1px solid var(--border); }

/* 인증 */
.auth-page { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { background: var(--card-bg); border-radius: 20px; padding: 40px 30px; width: 90%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-logo { text-align: center; margin-bottom: 30px; }
.logo-icon { font-size: 3rem; }
.auth-logo h1 { color: var(--primary); font-size: 2rem; margin: 10px 0; }
.auth-subtitle { color: var(--text-secondary); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; outline: none; background: var(--input-bg); color: var(--text); transition: border 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.password-wrapper { position: relative; }
.password-wrapper input { width: 100%; padding-right: 40px; }
.toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-secondary); }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.remember-me { display: flex; align-items: center; gap: 4px; color: var(--text-secondary); }
.forgot-pw { color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 14px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline { background: none; border: 1px solid var(--primary); color: var(--primary); padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.85rem; }
.btn-small { background: var(--primary); color: #fff; border: none; padding: 6px 14px; border-radius: 16px; font-size: 0.8rem; cursor: pointer; }
.btn-danger { background: var(--danger); }
.btn-cancel { background: rgba(255,255,255,0.06); border: none; padding: 10px 20px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary); }
.btn-full { width: 100%; margin-top: 20px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-secondary); }
.terms { font-size: 0.8rem; color: var(--text-secondary); }
.checkbox-label { display: flex; align-items: flex-start; gap: 6px; }

/* 프로필 */
.profile-section { background: var(--card-bg); }
.profile-cover { height: 120px; background: linear-gradient(135deg, #1a1a2e, #2d1b69); position: relative; }
.profile-avatar-wrap { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--card-bg); object-fit: cover; }
.avatar-edit-btn { position: absolute; bottom: 0; right: 0; background: var(--card-bg); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); font-size: 0.8rem; }
.avatar-edit-btn input { display: none; }
.profile-info { padding: 50px 16px 20px; text-align: center; }
.profile-info h2 { font-size: 1.3rem; margin-bottom: 4px; color: var(--text); }
.profile-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.profile-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.stat { text-align: center; }
.stat strong { font-size: 1.1rem; display: block; color: var(--text); }
.stat span { font-size: 0.75rem; color: var(--text-muted); }
.profile-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--card-bg); }
.profile-tab { flex: 1; padding: 12px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); }
.profile-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.profile-tab-content { padding: 16px; }
.mini-post { background: var(--card-bg); padding: 12px; border-radius: var(--radius-sm); margin-bottom: 8px; box-shadow: var(--shadow); }
.visitors-section { padding: 16px; }
.visitors-section h3 { margin-bottom: 12px; color: var(--text); }
.visitor-list { display: flex; gap: 10px; flex-wrap: wrap; }
.visitor-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* 채팅 목록 */
.chat-search { padding: 12px 16px; }
.chat-search input { width: 100%; padding: 10px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.9rem; outline: none; background: var(--input-bg); color: var(--text); }
.conversation-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.conversation-item:hover { background: rgba(255,255,255,0.02); }
.convo-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.convo-info { flex: 1; position: relative; }
.convo-header { display: flex; justify-content: space-between; align-items: center; }
.convo-header strong { font-size: 0.9rem; }
.convo-header small { font-size: 0.7rem; color: var(--text-muted); }
.convo-preview { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.unread-badge { position: absolute; right: 0; top: 20px; background: var(--danger); color: #fff; font-size: 0.65rem; padding: 1px 6px; border-radius: 10px; }

/* 채팅방 */
.chat-room-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.chat-room-title { flex: 1; }
.chat-room-title strong { display: block; font-size: 0.95rem; }
.chat-room-title small { font-size: 0.7rem; color: var(--success); }
.message-container { padding: 16px; height: calc(100vh - 190px); overflow-y: auto; padding-bottom: 80px; display: flex; flex-direction: column; gap: 4px; }
.message-row { margin-bottom: 12px; display: flex; flex-direction: column; max-width: 78%; }
.message-row.mine { align-self: flex-end; align-items: flex-end; }
.message-row.other { align-self: flex-start; align-items: flex-start; }
.message-bubble { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; }
.message-row.mine .message-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.message-row.other .message-bubble { background: var(--card-bg); color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.message-meta { display: flex; gap: 6px; margin-top: 2px; }
.message-meta small { font-size: 0.65rem; opacity: 0.7; }
.message-input-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--card-bg); border-top: 1px solid var(--border); position: fixed; bottom: 52px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 500px; }
.message-input-bar input[type="text"] { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.9rem; outline: none; background: var(--input-bg); color: var(--text); }
.attach-btn, .send-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 8px; }
.send-btn { background: var(--primary); color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* 주변 카드 */
.nearby-filters { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; }
.filter-select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 16px; font-size: 0.8rem; background: var(--card-bg); color: var(--text); outline: none; }
.nearby-grid { padding: 0 16px 80px; }
.nearby-card { display: flex; align-items: center; gap: 12px; background: var(--card-bg); padding: 14px; border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.nearby-avatar-wrap { position: relative; }
.nearby-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.online-dot { position: absolute; bottom: 2px; right: 2px; width: 12px; height: 12px; background: var(--text-muted); border-radius: 50%; border: 2px solid var(--card-bg); }
.online-dot.online { background: var(--success); }
.nearby-info { flex: 1; }
.nearby-info strong { font-size: 0.9rem; display: block; color: var(--text); }
.nearby-info small { font-size: 0.75rem; color: var(--text-muted); }
.nearby-actions { display: flex; gap: 4px; }
.action-mini { background: none; border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); }

/* 탐색 */
.discover-section { padding: 16px; }
.discover-section h3 { margin-bottom: 12px; font-size: 1rem; color: var(--text); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.topic-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: var(--card-bg); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.topic-icon { font-size: 1.5rem; }
.topic-card span { font-size: 0.75rem; font-weight: 500; }
.topic-card small { font-size: 0.65rem; color: var(--text-muted); }
.recent-users { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.recent-user-card { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; cursor: pointer; }
.recent-user-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.recent-user-card span { font-size: 0.75rem; font-weight: 500; }
.recent-user-card small { font-size: 0.65rem; color: var(--text-muted); }
.trending-post-card { background: var(--card-bg); padding: 14px; border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); }
.trending-post-card .post-meta { display: flex; justify-content: space-between; margin-bottom: 4px; }
.trending-post-card .post-meta span { color: var(--text); font-weight: 500; }
.trending-post-card .post-meta small { color: var(--text-muted); }
.trending-post-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* 파티 */
.party-card { background: var(--card-bg); padding: 16px; border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.party-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.party-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; }
.party-badge.open { background: var(--success); color: #fff; }
.party-badge.closed { background: var(--text-muted); color: #fff; }
.party-footer { display: flex; gap: 12px; margin: 8px 0; font-size: 0.8rem; color: var(--text-secondary); }
.party-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 게임 */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.game-card { background: var(--card-bg); padding: 20px 12px; border-radius: var(--radius); text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.2s; }
.game-card:hover { transform: translateY(-2px); }
.game-icon { font-size: 2rem; margin-bottom: 8px; }
.game-card h3 { font-size: 0.9rem; margin-bottom: 4px; color: var(--text); }
.game-card p { font-size: 0.7rem; color: var(--text-secondary); }
.game-card small { font-size: 0.65rem; color: var(--accent); }
.game-section { padding: 16px; }
.game-section h3 { margin-bottom: 12px; color: var(--text); }
.ranking-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card-bg); border-radius: var(--radius-sm); margin-bottom: 6px; box-shadow: var(--shadow); }
.rank-num { width: 24px; height: 24px; background: rgba(139,92,246,0.2); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.ranking-item strong { flex: 1; font-size: 0.85rem; color: var(--text); }
.rank-score { color: var(--accent); font-weight: 600; }

/* 친구 */
.friend-tabs { display: flex; background: var(--card-bg); border-bottom: 1px solid var(--border); }
.friend-tab { flex: 1; padding: 12px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 0.85rem; color: var(--text-secondary); }
.friend-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.friend-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card-bg); border-bottom: 1px solid var(--border); }
.friend-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.friend-info { flex: 1; }
.friend-info strong { font-size: 0.9rem; display: block; color: var(--text); }
.friend-info small { font-size: 0.75rem; color: var(--text-muted); }
.friend-actions { display: flex; gap: 4px; }

/* 알림 */
.notification-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--card-bg); border-bottom: 1px solid var(--border); cursor: pointer; }
.notification-item.unread { background: rgba(139,92,246,0.08); }
.notif-icon { font-size: 1.5rem; min-width: 36px; text-align: center; }
.notif-content { flex: 1; }
.notif-content p { font-size: 0.85rem; color: var(--text); }
.notif-content small { font-size: 0.7rem; color: var(--text-muted); }

/* 결제/멤버십 */
.wallet-card { background: linear-gradient(135deg, #1a1a2e, #2d1b69); color: #fff; margin: 16px; padding: 24px; border-radius: var(--radius); text-align: center; }
.wallet-balance small { opacity: 0.8; }
.wallet-balance strong { font-size: 2rem; display: block; margin-top: 4px; }
.wallet-mini { display: flex; justify-content: center; gap: 8px; padding: 12px; background: var(--card-bg); border-top: 1px solid var(--border); position: sticky; bottom: 60px; }
.payment-section { padding: 16px; }
.payment-section h3 { margin-bottom: 12px; color: var(--text); }
.coin-grid, .membership-grid, .gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.coin-package, .gift-card { background: var(--card-bg); padding: 16px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.coin-amount { font-size: 1.2rem; font-weight: 700; color: var(--primary); display: block; }
.coin-price { font-size: 0.85rem; color: var(--text-secondary); display: block; margin: 4px 0 8px; }
.plan-card { background: var(--card-bg); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.plan-card.recommended { border: 2px solid var(--primary); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.7rem; padding: 3px 12px; border-radius: 10px; }
.plan-card h4 { font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.plan-card p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.plan-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.plan-price small { font-size: 0.7rem; color: var(--text-muted); }
.plan-features { list-style: none; margin-bottom: 12px; }
.plan-features li { font-size: 0.75rem; padding: 2px 0; color: var(--text-secondary); }
.btn-plan { width: 100%; }
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.payment-method-btn { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; cursor: pointer; color: var(--text); }
.payment-method-btn small { color: var(--text-muted); }
.bank-info-box { background: var(--input-bg); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.bank-info-box p { font-size: 0.85rem; margin-bottom: 4px; color: var(--text-secondary); }
.my-membership-card { background: var(--card-bg); margin: 16px; padding: 20px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.member-badge { font-size: 1.2rem; font-weight: 700; color: var(--accent); }

/* 설정 */
.settings-section { padding: 0 16px 16px; }
.settings-section h3 { padding: 16px 0 8px; font-size: 0.85rem; color: var(--text-secondary); }
.settings-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--card-bg); border: none; border-bottom: 1px solid var(--border); width: 100%; font-size: 0.9rem; cursor: pointer; color: var(--text); text-decoration: none; }
.settings-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.settings-item:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.settings-item.danger { color: var(--danger); }
.toggle-item input[type="checkbox"] { width: 44px; height: 24px; }

/* 검색 */
.search-header { display: flex; gap: 8px; padding: 12px 16px; }
.search-header input { flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: 20px; font-size: 0.9rem; outline: none; background: var(--input-bg); color: var(--text); }
.search-btn { background: var(--primary); color: #fff; border: none; border-radius: 20px; padding: 10px 20px; cursor: pointer; }
.search-results { padding: 0 16px; }

/* 필터 */
.filter-section { padding: 16px; }
.filter-section h3 { margin-bottom: 10px; font-size: 0.9rem; color: var(--text); }
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--card-bg); font-size: 0.85rem; cursor: pointer; color: var(--text-secondary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-range input[type="range"] { flex: 1; }

/* 모달 */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 300; }
.modal.hidden { display: none; }
.modal-content { background: var(--card-bg); border-radius: var(--radius); padding: 24px; width: 90%; max-width: 400px; border: 1px solid var(--border); }
.modal-content h3 { margin-bottom: 16px; color: var(--text); }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }

/* 라이브 */
.live-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.live-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.live-thumb { height: 200px; background: linear-gradient(135deg, #1a1a2e, #16213e); display: flex; align-items: center; justify-content: center; color: var(--danger); font-size: 1.5rem; }
.live-info { padding: 14px; }
.live-info strong { display: block; font-size: 0.9rem; color: var(--text); }
.live-info small { color: var(--text-muted); }

/* 로딩 */
.loading { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state small { display: block; margin-top: 8px; }
.error-state { text-align: center; padding: 40px 20px; color: var(--danger); }

/* 스켈레톤 */
.skeleton { background: linear-gradient(90deg, #1e1e2a 25%, #2a2a38 50%, #1e1e2a 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 버튼 광택 */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shine 2.5s infinite; }
@keyframes shine { 0% { left: -100%; } 50%, 100% { left: 200%; } }

.post-user-row { display: flex; align-items: center; gap: 4px; }
.post-user-row strong { font-size: 0.9rem; color: var(--text); }

.verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: #3B82F6; color: #fff; border-radius: 50%; font-size: 0.6rem; font-weight: 700; }

.vip-badge { display: inline-block; background: linear-gradient(135deg, #F59E0B, #EF4444); color: #fff; font-size: 0.6rem; font-weight: 700; padding: 1px 5px; border-radius: 8px; }

.fab { position: fixed; bottom: 80px; right: 20px; width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary), #6366F1); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 14px rgba(139,92,246,0.4); z-index: 90; text-decoration: none; transition: transform 0.2s; }
.fab:hover { transform: scale(1.08); }
.fab.hidden { display: none; }

/* 인사/채팅 버튼 */
.btn-greet { padding: 6px 16px; background: linear-gradient(135deg, #FF6B9D, #FF8E53); color: #fff; border: none; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.btn-chat-mini { padding: 6px 16px; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; border: none; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }

/* 댓글 추가 */
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 8px; flex-shrink: 0; }

/* 게시물 발행 */
.composer-modal-content textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 0.9rem; resize: vertical; outline: none; margin-bottom: 12px; font-family: inherit; background: var(--input-bg); color: var(--text); }
.composer-modal-content select { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.85rem; outline: none; margin-bottom: 12px; background: var(--card-bg); color: var(--text); }

@media (max-width: 360px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
