/* ===== Theme Variables ===== */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --border-subtle: #21262d;
    --accent-color: #58a6ff;
    --success-color: #3fb950;
    --error-color: #f85149;
    --warning-color: #d29922;
    --hover-bg: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #e1e4e8;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --border-color: #d1d9e0;
    --border-subtle: #e1e4e8;
    --accent-color: #0969da;
    --success-color: #1a7f37;
    --error-color: #cf222e;
    --warning-color: #9a6700;
    --hover-bg: rgba(0, 0, 0, 0.05);
    --text-muted: rgba(0, 0, 0, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.15);
}

/* ===== Light Mode Overrides ===== */
[data-theme="light"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .pc-header,
[data-theme="light"] .app-header,
[data-theme="light"] .bottom-nav {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .pc-nav-link,
[data-theme="light"] .pc-login-btn,
[data-theme="light"] .header-icon-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .pc-nav-link:hover,
[data-theme="light"] .pc-nav-link.active {
    color: var(--text-primary);
}

[data-theme="light"] .logo,
[data-theme="light"] .logo-accent {
    color: var(--text-primary);
}

[data-theme="light"] .metric-item,
[data-theme="light"] .coin-row,
[data-theme="light"] .table-header {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .m-label,
[data-theme="light"] .th {
    color: var(--text-secondary);
}

[data-theme="light"] .m-value,
[data-theme="light"] .coin-name,
[data-theme="light"] .coin-price {
    color: var(--text-primary);
}

[data-theme="light"] .coin-symbol {
    color: var(--text-secondary);
}

[data-theme="light"] .chip,
[data-theme="light"] .trending-tab,
[data-theme="light"] .ls-tab {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .chip.active,
[data-theme="light"] .trending-tab.active,
[data-theme="light"] .ls-tab.active {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .feed-item,
[data-theme="light"] .comment-item,
[data-theme="light"] .post-detail-content {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .feed-author,
[data-theme="light"] .comment-author,
[data-theme="light"] .post-detail-username {
    color: var(--text-primary);
}

[data-theme="light"] .feed-content,
[data-theme="light"] .comment-content,
[data-theme="light"] .post-detail-text {
    color: var(--text-primary);
}

[data-theme="light"] .feed-time,
[data-theme="light"] .comment-time {
    color: var(--text-secondary);
}

[data-theme="light"] .composer-textarea,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .composer-textarea::placeholder,
[data-theme="light"] input::placeholder {
    color: var(--text-secondary);
}

[data-theme="light"] .modal-content,
[data-theme="light"] .dropdown-menu,
[data-theme="light"] .notification-panel {
    background: var(--bg-primary);
    border-color: var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-color);
}

[data-theme="light"] .modal-header,
[data-theme="light"] .notif-header {
    border-color: var(--border-subtle);
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .notif-item:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .save-profile-btn {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .action-btn,
[data-theme="light"] .feed-action {
    color: var(--text-secondary);
}

[data-theme="light"] .action-btn:hover,
[data-theme="light"] .feed-action:hover {
    color: var(--accent-color);
}

[data-theme="light"] .inline-composer {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .comm-tabs {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .comm-tabs .tab {
    color: var(--text-secondary);
}

[data-theme="light"] .comm-tabs .tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

[data-theme="light"] .my-page,
[data-theme="light"] .profile-page {
    background: var(--bg-primary);
}

[data-theme="light"] .my-menu-item,
[data-theme="light"] .my-subpage-header {
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .my-menu-item:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .avatar-default {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="light"] .empty,
[data-theme="light"] .empty-comments {
    color: var(--text-secondary);
}

[data-theme="light"] .ls-bar-container {
    background: var(--bg-tertiary);
}

[data-theme="light"] .funding-item,
[data-theme="light"] .liquidation-item {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .trending-card {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
}

[data-theme="light"] .dm-list,
[data-theme="light"] .dm-chat {
    background: var(--bg-primary);
}

[data-theme="light"] .dm-item,
[data-theme="light"] .message-item {
    border-color: var(--border-subtle);
}

[data-theme="light"] .dm-item:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .message-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="light"] .message-bubble.mine {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .search-input,
[data-theme="light"] .comm-search input {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="light"] .report-modal-content,
[data-theme="light"] .gif-modal-content {
    background: var(--bg-primary);
}

[data-theme="light"] .policy-content {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .policy-content h1,
[data-theme="light"] .policy-content h2,
[data-theme="light"] .policy-content h3 {
    color: var(--text-primary);
}

[data-theme="light"] .footer {
    background: var(--bg-secondary);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

/* Bottom Navigation - Light Mode */
[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .nav-item {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    color: var(--accent-color);
    background: var(--hover-bg);
}

/* PC Navigation - Light Mode */
[data-theme="light"] .pc-nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .pc-nav-link:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

[data-theme="light"] .pc-nav-link.active {
    color: var(--accent-color);
}

/* Buttons - Light Mode */
[data-theme="light"] .composer-post-btn {
    background: var(--accent-color);
    color: #fff;
}

[data-theme="light"] .composer-post-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="light"] .fav-btn {
    color: var(--text-secondary);
}

[data-theme="light"] .fav-btn.active {
    color: #f59e0b;
}

/* Dropdown - Light Mode */
[data-theme="light"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="light"] .dropdown-item:hover {
    background: var(--hover-bg);
}

/* Mobile Header - Light Mode */
[data-theme="light"] .app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .app-header .logo {
    color: var(--text-primary);
}

/* Coins Table - Light Mode */
[data-theme="light"] .coin-row:hover {
    background: var(--hover-bg);
}

[data-theme="light"] .coin-row:active {
    background: var(--bg-tertiary);
}

/* Tags - Light Mode */
[data-theme="light"] .tag {
    background: var(--bg-tertiary);
    color: var(--accent-color);
}

/* Longshort Page - Light Mode */
[data-theme="light"] .ls-coin {
    color: var(--text-primary);
}

[data-theme="light"] .ls-percent {
    color: var(--text-primary);
}

[data-theme="light"] .funding-symbol,
[data-theme="light"] .funding-name {
    color: var(--text-primary);
}

[data-theme="light"] .funding-rate {
    font-weight: 600;
}

/* Trending Page - Light Mode */
[data-theme="light"] .trending-coin-name {
    color: var(--text-primary);
}

[data-theme="light"] .trending-coin-symbol {
    color: var(--text-secondary);
}

/* Modal Overlays - Light Mode */
[data-theme="light"] .modal-overlay,
[data-theme="light"] .gif-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-title,
[data-theme="light"] .modal-header span {
    color: var(--text-primary);
}

[data-theme="light"] .modal-close {
    color: var(--text-secondary);
}

[data-theme="light"] .modal-close:hover {
    color: var(--text-primary);
}

/* Form Elements - Light Mode */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    border-color: var(--accent-color);
}

[data-theme="light"] .form-label {
    color: var(--text-primary);
}

/* My Page Menu - Light Mode */
[data-theme="light"] .my-menu-item {
    background: var(--bg-primary);
}

[data-theme="light"] .my-menu-item svg {
    color: var(--text-secondary);
}

[data-theme="light"] .my-username {
    color: var(--text-primary);
}

[data-theme="light"] .my-loginid {
    color: var(--text-secondary);
}

/* Profile Page - Light Mode */
[data-theme="light"] .profile-username {
    color: var(--text-primary);
}

[data-theme="light"] .profile-loginid {
    color: var(--text-secondary);
}

[data-theme="light"] .profile-bio {
    color: var(--text-primary);
}

[data-theme="light"] .profile-stats {
    color: var(--text-secondary);
}

[data-theme="light"] .profile-follow-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="light"] .profile-follow-btn.following {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* DM Page - Light Mode */
[data-theme="light"] .dm-header {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .dm-username {
    color: var(--text-primary);
}

[data-theme="light"] .dm-preview {
    color: var(--text-secondary);
}

[data-theme="light"] .dm-time {
    color: var(--text-secondary);
}

[data-theme="light"] .message-input-container {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .message-input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Notification - Light Mode */
[data-theme="light"] .notif-item {
    border-color: var(--border-subtle);
}

[data-theme="light"] .notif-item.unread {
    background: var(--bg-secondary);
}

[data-theme="light"] .notif-text {
    color: var(--text-primary);
}

[data-theme="light"] .notif-time {
    color: var(--text-secondary);
}

/* Badges - Light Mode */
[data-theme="light"] .badge {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Edit Profile - Light Mode */
[data-theme="light"] .edit-form-group label {
    color: var(--text-primary);
}

[data-theme="light"] .edit-input,
[data-theme="light"] .edit-textarea {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* GIF Modal - Light Mode */
[data-theme="light"] .gif-search-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .gif-category-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .gif-category-btn.active {
    background: var(--accent-color);
    color: #fff;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* App Wrapper */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== PC Header ===== */
.pc-header {
    display: none;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pc-header-inner {
    max-width: 983px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 64px;
}

.pc-header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pc-nav {
    display: flex;
    gap: 24px;
}

.pc-nav-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.pc-nav-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.pc-nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    border-bottom: none;
}

.pc-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.header-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.15s;
}

.header-avatar:hover {
    background: rgba(255, 255, 255, 0.12);
}

.avatar-emoji {
    font-size: 18px;
}

.pc-login-btn {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    transition: all 0.15s;
}

.pc-login-btn:hover {
    color: var(--text-secondary);
}

/* ===== Mobile Header ===== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo */
.logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    gap: 0;
    text-decoration: none;
}

.logo-accent {
    color: var(--accent-color);
}

/* ===== Main Layout (광고 포함) ===== */
.main-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.app {
    flex: 1;
    max-width: 420px;
    width: 100%;
    background: var(--bg-primary);
    padding-bottom: 90px;
}

/* ===== 광고 영역 ===== */
.ad-column {
    display: none;
    width: 160px;
    flex-shrink: 0;
}

.ad-column.ad-left {
    margin-right: 24px;
}

.ad-column.ad-right {
    margin-left: 24px;
}

.ad-sticky {
    position: sticky;
    top: 76px;
}

.ad-box {
    width: 160px;
    height: 600px;
    background: var(--bg-secondary);
    border: 1px dashed #30363d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #484f58;
    font-size: 12px;
    line-height: 1.5;
}

/* 중간 광고 배너 */
.ad-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.ad-banner:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
}

.ad-tag {
    font-size: 9px;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.ad-text {
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ad-arrow {
    color: #a78bfa;
    font-size: 14px;
}

/* ===== Metrics Section ===== */
.metrics-compact {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 12px;
    gap: 4px;
}

.metric-item {
    text-align: center;
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.m-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.m-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.m-change {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
}

.m-change.up { color: var(--success-color); }
.m-change.down { color: var(--error-color); }

.m-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.metric-item.online .m-value {
    color: var(--text-primary);
}

/* BTC Long/Short Bar */
.btc-ls-row {
    display: flex;
    align-items: center;
    padding: 6px 12px 10px;
    gap: 8px;
}

.ls-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.ls-mini {
    flex: 1;
}

.ls-bar-mini {
    display: flex;
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.ls-long {
    background: linear-gradient(90deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.ls-short {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
}

.ls-pct {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== Top Bar (Exchange Selector) ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
}

.exchange-selector-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-dropdown {
    position: relative;
}

.dropdown-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-primary);
    transition: all 0.15s;
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.15s;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 140px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-color);
}

.dropdown-item:first-child {
    border-radius: 7px 7px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 7px 7px;
}

.ex-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    margin-top: 14px;
}

/* Search */
.search-compact {
    flex: 1;
    max-width: 200px;
    position: relative;
}

.search-compact input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
    transition: all 0.15s;
}

.search-compact input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-compact input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ===== Section Divider ===== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.total-coins {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Filter Chips (React 스타일) */
.filter-chips {
    display: flex;
    gap: 6px;
}

.chip {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: rgb(239, 243, 244);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.15s;
}

.chip:hover {
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.15);
}

.chip.active {
    color: #000;
    background: rgb(239, 243, 244);
    border-color: rgb(239, 243, 244);
    opacity: 1;
}

/* ===== Table Header ===== */
.table-header {
    display: grid;
    grid-template-columns: 2fr 1.3fr 0.8fr 0.9fr 1fr;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.th {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.15s;
}

.th:hover {
    color: rgba(255, 255, 255, 0.8);
}

.th.sortable {
    user-select: none;
}

.sort-arrows {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    margin-left: 2px;
}

.th.sort-asc .sort-arrows,
.th.sort-desc .sort-arrows {
    color: var(--accent-color);
}

.th-price,
.th-kimchi,
.th-change,
.th-high,
.th-low,
.th-volume {
    text-align: right;
}

/* ===== Coin List ===== */
.coin-list {
    padding: 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== Coin Row ===== */
.coin-row {
    display: grid;
    grid-template-columns: 2fr 1.3fr 0.8fr 0.9fr 1fr;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.15s;
}

.coin-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.coin-row.expanded {
    background: rgba(16, 185, 129, 0.05);
    border-bottom-color: transparent;
}

.coin-row:active {
    background: rgba(255, 255, 255, 0.03);
}

/* Coin Detail Toggle (공급량 정보) */
.coin-detail-toggle {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 16px;
    animation: slideDown 0.15s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coin-detail-toggle .toggle-loading {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.supply-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.supply-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.supply-row span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.supply-row span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'IBM Plex Mono', -apple-system, BlinkMacSystemFont, monospace;
}

.supply-row span.highlight {
    color: #f0b90b;
}

/* Coin Info (Name Column) */
.coin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.coin-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.coin-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.coin-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.coin-icon-fallback {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.coin-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.coin-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-symbol {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Favorite Button (아이콘 아래) */
.fav-btn {
    width: 14px;
    height: 14px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-btn:hover {
    color: #fbbf24;
    transform: scale(1.15);
}

.fav-btn.active {
    color: #fbbf24;
}

.fav-btn svg {
    width: 12px;
    height: 12px;
}

/* Coin Price */
.coin-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: background 0.3s;
    padding: 2px 4px;
    border-radius: 4px;
}

.coin-price.flash-up {
    background: rgba(63, 185, 80, 0.2);
}

.coin-price.flash-down {
    background: rgba(248, 81, 73, 0.2);
}

.main-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sub-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Coin Kimchi (김프) */
.coin-kimchi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Coin Change */
.coin-change {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Coin High/Low */
.coin-high,
.coin-low {
    display: none;
    flex-direction: column;
    align-items: flex-end;
}

/* Coin Volume */
.coin-volume {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Main Value Styling */
.main-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 500;
}

.main-value.up {
    color: var(--success-color);
}

.main-value.down {
    color: var(--error-color);
}

.main-value.high {
    color: #f0b90b;
}

.sub-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.coin-volume .main-value {
    color: var(--text-primary);
    font-size: 13px;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 8px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    width: 22px;
    height: 22px;
    transition: color 0.15s;
}

.nav-label {
    font-weight: 500;
}

/* Fear Greed Colors */
.fear-greed-extreme-fear { color: var(--error-color); }
.fear-greed-fear { color: var(--error-color); }
.fear-greed-neutral { color: #fbbf24; }
.fear-greed-greed { color: var(--success-color); }
.fear-greed-extreme-greed { color: var(--success-color); }

/* ===== PC Only / Mobile Only ===== */
.pc-only {
    display: none !important;
}

.mobile-only {
    display: flex;
}

/* ===== Responsive - Galaxy Fold (max 320px) ===== */
@media (max-width: 320px) {
    .m-label { font-size: 7px; }
    .m-value { font-size: 9px; }
    .m-change { font-size: 7px; }
    .m-status { font-size: 7px; }

    .coin-name { font-size: 11px; }
    .coin-symbol { font-size: 9px; }
    .th { font-size: 9px; }

    .chip {
        padding: 4px 10px;
        font-size: 10px;
    }

    .trending-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .ls-tab {
        font-size: 11px;
    }
}

/* ===== Responsive - Small phones (321-375px) ===== */
@media (min-width: 321px) and (max-width: 375px) {
    .m-label { font-size: 8px; }
    .m-value { font-size: 10px; }
    .m-change { font-size: 8px; }
}

/* ===== Responsive - Mobile (376-768px) ===== */
@media (min-width: 376px) and (max-width: 768px) {
    .m-label { font-size: 10px; }
    .m-value { font-size: 11px; }
    .m-change { font-size: 9px; }
    .m-status { font-size: 9px; }
}

/* ===== Responsive - Tablet (769-1024px) ===== */
@media (min-width: 769px) {
    .app {
        max-width: 100%;
    }
    .bottom-nav {
        max-width: 100%;
        left: 0;
        transform: none;
    }
    .table-header,
    .coin-row {
        padding: 10px 20px;
    }
    .m-label { font-size: 9px; }
    .m-value { font-size: 12px; }
    .m-change { font-size: 9px; }

    /* 코인 텍스트 - 태블릿 스타일 */
    .coin-text {
        gap: 4px;
        margin-top: 2px;
    }
    .coin-name {
        font-size: 13px;
    }
    .coin-symbol {
        font-size: 11px;
    }

    /* 테이블 헤더 - 태블릿 스타일 */
    .th {
        font-size: 11px;
    }

    /* 드롭다운 라벨 - 태블릿 스타일 */
    .dropdown-label {
        font-size: 11px;
    }
}

/* ===== Responsive - PC (1025px+) ===== */
@media (min-width: 1025px) {
    .pc-header {
        display: block;
    }
    .app-header {
        display: none !important;
    }
    .bottom-nav {
        display: none !important;
    }

    /* 광고 영역 표시 */
    .ad-column {
        display: block;
    }

    .app {
        width: 960px;
        max-width: 960px;
        padding-bottom: 20px;
    }

    .pc-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    /* 커뮤니티 검색 - flex 유지 */
    .comm-search.pc-only {
        display: flex !important;
    }

    /* 테이블 헤더 고가/저가 */
    .th.pc-only {
        display: block !important;
    }

    /* Table Header - 7 columns */
    .table-header {
        grid-template-columns: 2fr 1.3fr 0.8fr 0.9fr 0.9fr 0.9fr 1.1fr;
    }

    /* Coin Row - 7 columns */
    .coin-row {
        grid-template-columns: 2fr 1.3fr 0.8fr 0.9fr 0.9fr 0.9fr 1.1fr;
    }

    .coin-high,
    .coin-low {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
    }

    /* 코인 텍스트 - PC 스타일 */
    .coin-text {
        gap: 7px !important;
        margin-top: 3px;
    }

    .coin-name {
        font-size: 14px !important;
    }

    .coin-symbol {
        font-size: 12px !important;
    }

    /* 테이블 헤더 - PC 스타일 */
    .th {
        font-size: 12px !important;
    }

    /* 드롭다운 라벨 - PC 스타일 */
    .dropdown-label {
        font-size: 12px !important;
    }

    /* Metrics - PC 스타일 */
    .metric-item {
        background: var(--bg-secondary);
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 9px 8px;
    }

    .m-label { font-size: 12px !important; }
    .m-value { font-size: 12px !important; }
    .m-change { font-size: 11px !important; }
    .m-status { font-size: 11px !important; }

    .metrics-row {
        gap: 12px;
        padding: 12px;
    }
}

/* ===== Trending Page ===== */
.trending-page {
    padding: 0 12px;
    padding-bottom: 80px;
}

/* 트렌딩 페이지 헤더 */
.trending-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 8px;
}

.last-update-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
}

.trending-page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex-grow: 1;
}

.trending-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    padding: 3px;
    border-radius: 8px;
}

.trending-tab {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgb(239, 243, 244);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0.5;
}

.trending-tab:hover {
    opacity: 0.7;
}

.trending-tab.active {
    background: rgb(239, 243, 244);
    color: #000;
    opacity: 1;
}

.trending-section {
    margin-bottom: 0;
}

.trending-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-left: 4px;
}

.trending-section-header.up {
    color: #10b981;
}

.trending-section-header.down {
    color: #ef4444;
}

.trending-icon {
    font-size: 13px;
}

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

.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-rank {
    width: 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

.trending-rank.top {
    color: #f59e0b;
}

.trending-coin {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.trending-coin-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}

.trending-coin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trending-coin-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-coin-symbol {
    font-size: 11px;
    color: var(--text-secondary);
}

.trending-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.trending-price {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-family: 'IBM Plex Mono', monospace;
}

.trending-change {
    font-size: 13px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.trending-change.up {
    color: #10b981;
}

.trending-change.down {
    color: #ef4444;
}

/* Trending 에러/로딩 상태 */
.trending-list .loading,
.trending-list .error,
.trending-list .empty {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Trending PC 스타일 */
@media (min-width: 1025px) {
    .trending-page {
        padding: 0;
    }

    .trending-item {
        padding: 14px 8px;
    }

    .trending-rank {
        width: 32px;
    }

    .trending-coin-icon {
        width: 40px;
        height: 40px;
    }

    .trending-coin-name {
        font-size: 15px;
    }

    .trending-coin-symbol {
        font-size: 12px;
    }

    .trending-price {
        font-size: 13px;
    }

    .trending-change {
        font-size: 14px;
    }
}

/* ===== LongShort Page ===== */
.longshort-page {
    padding: 0 12px;
    padding-bottom: 80px;
}

/* 롱숏 페이지 헤더 */
.ls-page-header {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ls-page-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ls-tabs {
    display: flex;
    gap: 8px;
    padding: 8px 0 0 0;
}

.ls-tab {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.ls-tab:hover {
    color: rgba(255,255,255,0.7);
}

.ls-tab.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.ls-tab-content {
    display: none;
    padding-top: 8px;
}

.ls-tab-content.active {
    display: block;
}

.ls-description {
    margin: 0 12px 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    text-align: center;
}

.ls-description p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

.ls-description .ls-desc-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* 롱숏비율 */
.ls-ratio-list {
    display: flex;
    flex-direction: column;
}

.ls-ratio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ls-coin {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
    flex-shrink: 0;
}

.ls-coin .coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ls-coin .coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ls-coin .coin-icon-fallback {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ls-coin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ls-coin-info .name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.ls-coin-info .symbol {
    font-size: 11px;
    color: #6e7681;
}

.ls-bar-container {
    flex: 1;
}

.ls-bar {
    display: flex;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
}

.ls-bar-long {
    background: linear-gradient(90deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8px;
    min-width: 45px;
}

.ls-bar-short {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 45px;
}

.ls-bar-pct {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
}

/* 롱/숏 범례 */
.ls-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.ls-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ls-legend-bar {
    width: 24px;
    height: 12px;
    border-radius: 2px;
}

.ls-legend-bar.long {
    background: linear-gradient(90deg, #10b981, #059669);
}

.ls-legend-bar.short {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.ls-legend-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.ls-legend-indicator {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.ls-legend-indicator.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.ls-legend-indicator.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* 펀딩비 */
.funding-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.funding-header span:not(:first-child) {
    text-align: right;
}

.funding-list {
    display: flex;
    flex-direction: column;
}

.funding-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: center;
}

.funding-coin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funding-coin .coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.funding-coin .coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.funding-coin .coin-icon-fallback {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.funding-coin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.funding-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.funding-symbol {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.funding-rate {
    font-size: 12px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    text-align: right;
}

.funding-rate.positive {
    color: #10b981;
}

.funding-rate.negative {
    color: #ef4444;
}

.funding-countdown {
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(255,255,255,0.7);
    text-align: right;
}

.funding-highlow {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 10px;
    font-family: 'IBM Plex Mono', monospace;
}

.funding-high {
    color: #10b981;
}

.funding-low {
    color: #ef4444;
}

/* 청산 */
.liq-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.liq-filter-row:last-of-type {
    margin-bottom: 12px;
}

.liq-exchange-filter {
    display: flex;
    gap: 8px;
    flex: 1;
}

.liq-threshold-filter {
    display: flex;
    gap: 4px;
    align-items: center;
}

.threshold-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-right: 4px;
}

.liq-stats-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.liq-ex-btn {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.liq-th-btn {
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.5);
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.liq-ex-btn:hover,
.liq-th-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.liq-ex-btn.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}

.liq-ex-btn.active.binance {
    background: rgba(240,185,11,0.15);
    border-color: #f0b90b;
    color: #f0b90b;
}

.liq-ex-btn.active.bybit {
    background: rgba(247,166,0,0.15);
    border-color: #f7a600;
    color: #f7a600;
}

.liq-ex-btn.active.okx {
    background: rgba(0,200,200,0.15);
    border-color: #00c8c8;
    color: #00c8c8;
}

.liq-th-btn.active {
    background: rgba(99,102,241,0.2);
    border-color: #6366f1;
    color: #6366f1;
}

.liq-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.liq-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.liq-stat-value {
    font-size: 12px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.liq-stat.long .liq-stat-value {
    color: #10b981;
}

.liq-stat.short .liq-stat-value {
    color: #ef4444;
}

.liq-list {
    display: flex;
    flex-direction: column;
}

.liq-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
}

.liq-ex-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}

.liq-ex-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.liq-side {
    font-size: 11px;
    font-weight: 700;
    width: 20px;
}

.liq-side.long {
    color: #3b82f6;
}

.liq-side.short {
    color: #ef4444;
}

.liq-symbol {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.liq-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.liq-amount {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 700;
}

.liq-item.long {
    background: rgba(59,130,246,0.1);
}

.liq-item.short {
    background: rgba(239,68,68,0.1);
}

.liq-item.long .liq-amount {
    color: #3b82f6;
}

.liq-item.short .liq-amount {
    color: #ef4444;
}

/* 공통 상태 */
.ls-ratio-list .loading,
.ls-ratio-list .empty,
.funding-list .loading,
.funding-list .empty,
.liq-list .loading,
.liq-list .empty {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* LongShort PC 스타일 */
@media (min-width: 769px) {
    .funding-header {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .fh-highlow {
        display: block;
    }

    .funding-item {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .funding-highlow.pc-only {
        display: flex !important;
    }
}

@media (min-width: 1025px) {
    .longshort-page {
        padding: 0;
    }
}

/* LongShort 소형 폰 (375px 이하) */
@media (max-width: 375px) {
    .ls-tab {
        font-size: 12px;
        padding: 10px 12px;
    }

    .ls-coin .coin-icon {
        width: 20px;
        height: 20px;
    }

    .ls-coin-info .name {
        font-size: 12px;
    }

    .ls-coin-info .symbol {
        font-size: 9px;
    }

    .ls-bar-pct {
        font-size: 9px;
    }

    .funding-coin .coin-icon {
        width: 20px;
        height: 20px;
    }

    .funding-name {
        font-size: 12px;
    }

    .funding-symbol {
        font-size: 9px;
    }

    .funding-rate {
        font-size: 12px;
    }

    .funding-countdown {
        font-size: 11px;
    }

    .liq-symbol {
        font-size: 11px;
    }

    .liq-amount {
        font-size: 11px;
    }
}

/* LongShort Galaxy Fold (320px 이하) */
@media (max-width: 320px) {
    .ls-tabs {
        gap: 4px;
    }

    .ls-tab {
        font-size: 11px;
        padding: 10px 10px;
    }

    .ls-coin {
        gap: 4px;
        min-width: 70px;
    }

    .ls-coin .coin-icon {
        width: 18px;
        height: 18px;
    }

    .ls-coin-info .name {
        font-size: 11px;
    }

    .ls-coin-info .symbol {
        display: none;
    }

    .ls-bar-pct {
        font-size: 8px;
    }

    .funding-coin {
        gap: 4px;
    }

    .funding-coin .coin-icon {
        width: 18px;
        height: 18px;
    }

    .funding-name {
        font-size: 11px;
    }

    .funding-symbol {
        display: none;
    }

    .funding-item {
        gap: 6px;
    }

    .funding-rate {
        font-size: 11px;
    }

    .funding-countdown {
        font-size: 10px;
    }

    .liq-item {
        padding: 5px 8px;
        gap: 5px;
    }

    .liq-ex-icon {
        width: 16px;
        height: 16px;
    }

    .liq-side {
        font-size: 10px;
        width: 18px;
    }

    .liq-symbol {
        font-size: 12px;
    }

    .liq-time {
        font-size: 10px;
    }

    .liq-amount {
        font-size: 12px;
    }

    .ls-description p {
        font-size: 10px;
    }

    .ls-description .ls-desc-sub {
        font-size: 8px;
    }

    .liq-filter-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .liq-exchange-filter {
        width: 100%;
        gap: 4px;
    }

    .liq-ex-btn {
        flex: 1;
        padding: 5px 4px;
        font-size: 10px;
    }

    .liq-threshold-filter {
        order: 1;
    }

    .liq-stats-row {
        order: 2;
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .threshold-label {
        display: none;
    }

    .liq-th-btn {
        font-size: 9px;
        padding: 4px 6px;
    }
}

/* LongShort Small phones (321px - 375px) */
@media (min-width: 321px) and (max-width: 375px) {
    .ls-description p {
        font-size: 11px;
    }

    .ls-description .ls-desc-sub {
        font-size: 9px;
    }
}

/* ===== 모달 공통 스타일 ===== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

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

/* ===== 로그인 모달 ===== */
.login-modal {
    padding-bottom: 20px;
}

.login-desc {
    padding: 16px 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.simple-login-form {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

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

.login-input::placeholder {
    color: #484f58;
}

.login-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-submit-btn {
    background: #238636;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.login-submit-btn:hover {
    background: #2ea043;
}

.login-submit-btn:disabled {
    background: var(--bg-tertiary);
    color: #484f58;
    cursor: not-allowed;
}

.login-toggle {
    padding: 0 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.login-toggle button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.login-toggle button:hover {
    text-decoration: underline;
}

.login-terms {
    padding: 16px 20px 0;
    text-align: center;
    font-size: 11px;
    color: #484f58;
}

.login-terms span {
    color: var(--accent-color);
    cursor: pointer;
}

.login-terms span:hover {
    text-decoration: underline;
}

/* PC 로그인 버튼 */
.pc-login-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 6px;
}

.pc-login-btn:hover {
    color: var(--text-secondary);
}

/* ===== 커뮤니티 페이지 ===== */
.community-page {
    padding: 0;
}

/* 커뮤니티 탭 */
.comm-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.comm-tabs .tab-left {
    display: flex;
    width: 100%;
}

.comm-tabs .tab-left .tab {
    flex: 1;
    text-align: center;
}

.comm-tabs .tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 14px 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    border-radius: 0;
    transition: all 0.2s;
}

.comm-tabs .tab:hover {
    background: rgba(255,255,255,0.05);
}

.comm-tabs .tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: transparent;
}

/* 커뮤니티 검색 */
.comm-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    width: 180px;
}

.comm-search:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}

.comm-search input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    flex: 1;
    min-width: 0;
    outline: none;
    padding-right: 20px;
}

.comm-search input::placeholder {
    color: rgba(255,255,255,0.4);
}

.comm-search .search-btn,
.comm-search .search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.comm-search .search-btn {
    color: rgba(255,255,255,0.4);
}

.comm-search .search-btn:hover {
    color: rgba(255,255,255,0.7);
}

.comm-search .search-clear {
    color: rgba(255,255,255,0.5);
}

.comm-search .search-clear:hover {
    color: #fff;
}

.comm-search .search-clear:hover {
    color: #fff;
}

/* 글쓰기 영역 */
.inline-composer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.composer-avatar {
    flex-shrink: 0;
}

.composer-avatar .avatar-emoji {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a1a1f 0%, #2a2a32 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,0.5);
}

.composer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.composer-placeholder {
    padding: 12px 0;
    cursor: pointer;
}

.composer-placeholder span {
    color: rgba(255,255,255,0.4);
    font-size: 15px;
}

.composer-placeholder:hover span {
    color: rgba(255,255,255,0.6);
}

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

.composer-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
    padding-top: 8px;
}

.composer-textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.composer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.composer-post-btn {
    background: rgba(239, 243, 244, 0.3);
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.composer-bottom .composer-post-btn {
    background: rgb(239, 243, 244);
    color: #0f1419;
    font-weight: 700;
}

.composer-bottom .composer-post-btn:hover {
    background: rgb(215, 219, 220);
}

.composer-bottom .composer-post-btn:disabled {
    background: rgba(239, 243, 244, 0.3);
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
}

/* 글쓰기 액션 버튼 영역 */
.composer-actions {
    display: flex;
    gap: 4px;
}

/* bittalk 스타일 미디어 버튼 */
.composer-media-btn,
.composer-gif-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: #a3a3a3;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.composer-media-btn:hover,
.composer-gif-btn:hover {
    background: #262626;
    color: #fff;
}

.composer-media-btn:disabled,
.composer-gif-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 글쓰기 미디어 프리뷰 */
.composer-media-preview {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    position: relative;
}

.composer-media-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    object-fit: cover;
}

.composer-media-preview .remove-media-btn {
    position: absolute;
    top: 12px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
}

.composer-media-preview .remove-media-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* 피드 미디어 */
.feed-media {
    margin: 12px 0;
}

.feed-media img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: contain;
}

.feed-media img:hover {
    opacity: 0.95;
}

/* GIF 버튼 스타일은 위 .composer-gif-btn 에서 통합 정의됨 */

/* GIF 모달 */
.gif-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.gif-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.gif-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gif-modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.gif-modal-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.gif-modal-search input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.gif-modal-search input:focus {
    border-color: var(--accent-color);
}

.gif-modal-search input::placeholder {
    color: var(--text-secondary);
}

.gif-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 300px;
}

.gif-loading,
.gif-empty,
.gif-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gif-item {
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    padding: 0;
}

.gif-item:hover {
    outline: 2px solid #58a6ff;
}

.gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
}

.gif-modal-footer strong {
    color: var(--text-primary);
}

/* 검색 결과 헤더 */
.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-secondary);
}

.search-clear-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 13px;
}

.search-clear-btn:hover {
    text-decoration: underline;
}

/* 피드 */
.feed-wrapper {
    position: relative;
}

.pull-indicator-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

.feed-list {
    transition: transform 0.2s;
}

.feed-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.15s;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feed-avatar-col {
    flex-shrink: 0;
    cursor: pointer;
}

.feed-main {
    flex: 1;
    min-width: 0;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.feed-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.feed-avatar {
    flex-shrink: 0;
}

.feed-avatar .avatar-emoji {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* 아바타 이미지 공통 스타일 */
img.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

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

img.composer-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* 아바타 기본 아이콘 스타일 */
.avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: #666;
}

.feed-avatar.avatar-default {
    width: 36px;
    height: 36px;
}

.feed-avatar.avatar-default svg {
    width: 24px;
    height: 24px;
}

.comment-avatar.avatar-default {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar.avatar-default svg {
    width: 16px;
    height: 16px;
}

.composer-avatar-img.avatar-default {
    width: 36px;
    height: 36px;
}

.composer-avatar-img.avatar-default svg {
    width: 24px;
    height: 24px;
}

.feed-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.feed-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.feed-header-right {
    position: relative;
}

.feed-more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.feed-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.post-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 120px;
    z-index: 100;
    overflow: hidden;
}

.post-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.post-menu button:hover {
    background: var(--bg-tertiary);
}

.post-menu button.danger {
    color: var(--error-color);
}

.feed-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 8px;
}

.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.feed-tag {
    font-size: 13px;
    color: var(--accent-color);
    cursor: pointer;
}

.feed-tag:hover {
    text-decoration: underline;
}

.feed-actions {
    display: flex;
    gap: 16px;
}

.feed-action {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

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

.feed-action.liked {
    color: #ef4444;
}

.feed-action.bookmarked {
    color: var(--accent-color);
}

.feed-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.feed-empty span {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.feed-empty p {
    font-size: 13px;
    color: #484f58;
}

/* 더보기 */
.load-more-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.no-more-posts {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.loading-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #30363d;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== 게시글 상세 페이지 ===== */
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 10;
}

@media (min-width: 1025px) {
    .detail-header {
        top: 64px;
    }
}

.detail-back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.post-detail-container {
    padding-bottom: 70px;
}

.post-detail-body {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.post-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.post-detail-author:hover .post-detail-username {
    text-decoration: underline;
}

.post-detail-author-info {
    flex: 1;
}

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

.post-detail-avatar.avatar-default {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-detail-avatar.avatar-default svg {
    width: 28px;
    height: 28px;
    color: var(--text-secondary);
}

.post-detail-username {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-detail-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.post-detail-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;
}

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

.post-detail-media img {
    max-width: 100%;
    border-radius: 12px;
    cursor: pointer;
}

.post-detail-actions {
    display: flex;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.post-detail-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
}

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

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

.post-detail-action.bookmarked {
    color: var(--accent-color);
}

.post-detail-action svg {
    width: 20px;
    height: 20px;
}

/* 댓글 섹션 */
.post-comments-section {
    border-top: 8px solid #161b22;
}

.post-comments-section .comments-header {
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.post-comments-section .comments-header span {
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
}

.post-comments-section .comment-list {
    padding: 0;
}

.post-comments-section .comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.post-comments-section .comment-avatar-col {
    flex-shrink: 0;
    cursor: pointer;
}

.post-comments-section .comment-main {
    flex: 1;
    min-width: 0;
}

.post-comments-section .comment-content {
    padding-left: 0;
    margin-top: 4px;
}

.post-comments-section .empty-comments {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* 댓글 입력 (하단 고정) */
/* 트위터 스타일 댓글 입력 */
.comment-composer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

.comment-composer-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.comment-composer-avatar .avatar-emoji {
    font-size: 16px;
}

.comment-composer-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-composer-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-composer-main input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.comment-composer-main input:focus {
    border: none;
}

.comment-composer-main input::placeholder {
    color: var(--text-secondary);
}

.comment-composer-main button {
    background: rgb(239, 243, 244);
    border: none;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-composer-main button:hover {
    opacity: 0.8;
}

.comment-composer-main button:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* 댓글 모달 */
.comment-modal {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.empty-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

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

.comment-avatar-col {
    flex-shrink: 0;
    cursor: pointer;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-avatar {
    font-size: 16px;
}

.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.comment-edit,
.comment-delete,
.comment-report {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
}

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

.comment-edit:hover {
    color: var(--text-primary);
}

.comment-delete,
.comment-report {
    color: var(--error-color);
}

/* 댓글 메뉴 */
.comment-menu-wrapper {
    position: relative;
    margin-left: auto;
}

.comment-menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s;
}

.comment-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.comment-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 120px;
    z-index: 100;
    overflow: hidden;
    margin-top: 4px;
}

.comment-menu.show {
    display: block;
}

.comment-menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.comment-menu button:hover {
    background: var(--bg-tertiary);
}

.comment-menu button.danger {
    color: var(--error-color);
}

/* 댓글 수정 모달 */
#editCommentModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#editCommentModal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 100000;
}

#editCommentModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

#editCommentModal .modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

#editCommentModal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

#editCommentModal .modal-close:hover {
    color: var(--text-primary);
}

#editCommentModal .modal-body {
    padding: 16px;
}

#editCommentModal textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

#editCommentModal textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

#editCommentModal .char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

#editCommentModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
}

#editCommentModal .btn-cancel {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

#editCommentModal .btn-cancel:hover {
    background: var(--bg-tertiary);
}

#editCommentModal .btn-submit {
    padding: 8px 16px;
    background: #238636;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#editCommentModal .btn-submit:hover {
    background: #2ea043;
}

.comment-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    padding-left: 0;
}

.comment-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
}

.comment-input-area input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.comment-input-area input:focus {
    border-color: var(--accent-color);
}

.comment-input-area button {
    background: #238636;
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.comment-input-area button:hover {
    background: #2ea043;
}

/* 수정 모달 */
.edit-modal .edit-form {
    padding: 16px;
}

.edit-modal textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.edit-modal textarea:focus {
    border-color: var(--accent-color);
}

.edit-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.edit-submit-btn {
    background: #238636;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.edit-submit-btn:hover {
    background: #2ea043;
}

/* 커뮤니티 헤더 검색 (모바일) */
@media (max-width: 1024px) {
    .app-header .comm-search {
        margin-left: auto;
    }

    .app-header .comm-search input {
        width: 80px;
    }
}

/* 커뮤니티 PC 스타일 */
@media (min-width: 769px) {
    .comm-tabs {
        border-bottom: 1px solid var(--border-subtle);
        background: transparent;
    }

    /* 글쓰기 영역 PC */
    .inline-composer {
        padding: 16px;
        border-bottom: 1px solid var(--border-subtle);
        background: transparent;
    }

    .composer-avatar svg {
        width: 36px;
        height: 36px;
    }

    .composer-textarea {
        font-size: 15px;
        line-height: 1.5;
        min-height: 60px;
        color: var(--text-primary);
        background: transparent;
    }

    .composer-post-btn {
        padding: 8px 20px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 9999px;
        min-height: 36px;
        background: rgb(239, 243, 244);
        color: #0f1419;
    }

    .composer-post-btn:hover {
        background: rgb(215, 219, 220);
    }

    .composer-bottom .composer-post-btn:disabled {
        background: rgba(239, 243, 244, 0.3);
        color: rgba(255,255,255,0.5);
    }
}

/* ===== 마이페이지 ===== */
.my-page {
    min-height: calc(100vh - 120px);
    position: relative;
}

/* 비로그인 상태 */
.my-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

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

.guest-avatar {
    font-size: 64px;
    margin-bottom: 20px;
}

.guest-content h2 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.guest-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.guest-login-btn {
    background: #238636;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.guest-login-btn:hover {
    background: #2ea043;
}

/* 프로필 정보 */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.profile-avatar .avatar-default-icon {
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.4);
}

.profile-avatar .profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* 프로필 스탯 */
.profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.stat-item:hover .stat-value {
    color: var(--accent-color);
}

.stat-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* 마이 메뉴 */
.my-menu {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 14px;
}

.menu-item:active {
    background: rgba(255,255,255,0.05);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
}

.menu-label {
    color: var(--text-primary);
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-badge {
    background: #10b981;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.menu-arrow {
    color: rgba(255,255,255,0.3);
}

.menu-item.logout {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 8px;
}

.menu-item.logout .menu-label {
    color: var(--error-color);
}

/* 서브페이지 */
.my-subpage {
    min-height: 100%;
}

/* 모바일에서 서브페이지 전체 화면 */
@media (max-width: 1024px) {
    .my-subpage {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px; /* 하단 네비게이션 높이 */
        background: var(--bg-primary);
        z-index: 200;
        overflow-y: auto;
    }
}

/* DM 페이지는 flex 레이아웃 필요 */
.my-subpage.dm-page {
    min-height: auto;
}

.subpage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.subpage-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 사용자 목록 */
.user-list {
    padding: 8px 0;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.unfollow-btn,
.unblock-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
}

.unfollow-btn:hover,
.unblock-btn:hover {
    background: #30363d;
}

/* 게시글 목록 */
.post-list {
    padding: 8px 0;
}

.post-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.post-avatar {
    font-size: 16px;
}

.post-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.post-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.post-content {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.post-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 빈 상태 */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 프로필 수정 */
.edit-profile-form {
    padding: 24px 16px;
}

.edit-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.edit-avatar-section.twitter-style {
    margin-bottom: 32px;
}

.avatar-upload-wrapper {
    position: relative;
}

.edit-avatar-large {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.edit-avatar-large .avatar-default-icon {
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.4);
}

.edit-avatar-large .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.edit-avatar-large:hover .avatar-camera-overlay {
    opacity: 1;
}

.avatar-camera-overlay svg {
    color: #fff;
}

.avatar-cancel-x {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #f85149;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.avatar-cancel-x:hover {
    background: #da3633;
}

.avatar-hint {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.edit-field {
    margin-bottom: 20px;
}

.edit-field label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.edit-field input,
.edit-field textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.edit-field input:focus,
.edit-field textarea:focus {
    border-color: var(--accent-color);
}

.edit-field textarea {
    resize: none;
}

.save-profile-btn {
    width: 100%;
    background: #58a6ff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.save-profile-btn:hover {
    background: #4393e6;
}

/* 크롭 모달 */
.crop-modal {
    max-width: 400px;
    width: 90%;
}

.crop-container {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.crop-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 60vh;
}

.crop-image-wrapper img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
}

.crop-circle {
    position: absolute;
    border: 2px dashed #58a6ff;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    cursor: move;
    pointer-events: none;
}

.crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #30363d;
}

.crop-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

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

.crop-btn.cancel:hover {
    background: #30363d;
}

.crop-btn.confirm {
    background: #238636;
    color: #fff;
}

.crop-btn.confirm:hover {
    background: #2ea043;
}

/* 기본 아바타 (SVG 아이콘) */
.avatar-default {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
}

.avatar-default svg {
    width: 100%;
    height: 100%;
}

/* 이미지 아바타 공통 */
img.user-avatar,
img.post-avatar,
img.conv-avatar,
img.msg-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* ===== DM (쪽지함) - 트위터 스타일 ===== */

/* DM 페이지 컨테이너 */
.dm-page {
    height: calc(100vh - 60px);
    background: #000;
    overflow: hidden;
    position: relative;
}

/* DM 페이지 내 채팅 입력창 - 고정 위치 해제 */
.dm-page .chat-input-area {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1;
}

/* 좌측 사이드바 (대화 목록) */
.dm-sidebar {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    border-right: 1px solid #2f3336;
    display: flex;
    flex-direction: column;
    background: #000;
    flex-shrink: 0;
    overflow: hidden;
}

.dm-sidebar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #2f3336;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.dm-sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
}

/* 우측 메인 (채팅) */
.dm-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    background: #000;
    min-width: 0;
    overflow: hidden;
}

/* 빈 상태 */
.dm-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.dm-empty-content {
    max-width: 320px;
}

.dm-empty-content svg {
    color: #1d9bf0;
    margin-bottom: 16px;
}

.dm-empty-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dm-empty-content p {
    color: #71767b;
    font-size: 15px;
    line-height: 1.5;
}

/* 채팅 영역 */
.dm-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

/* DM 채팅 메시지 영역 */
.dm-chat .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 스크롤바 스타일링 */
.dm-chat .chat-messages::-webkit-scrollbar {
    width: 6px;
}

.dm-chat .chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.dm-chat .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.dm-chat .chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dm-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.dm-chat-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.dm-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dm-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-chat-avatar svg {
    width: 24px;
    height: 24px;
    color: #71767b;
}

.dm-chat-name {
    font-size: 16px;
    font-weight: 700;
}

/* 대화 선택됨 표시 */
.conversation-item.active {
    background: rgba(29, 155, 240, 0.1);
}

.conversation-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1d9bf0;
}

.conversation-item {
    position: relative;
}

/* PC 레이아웃 (1025px 이상) */
@media (min-width: 1025px) {
    .dm-page {
        height: calc(100vh - 80px);
    }

    .dm-chat-header .back-btn {
        display: none;
    }
}

/* 모바일 레이아웃 */
@media (max-width: 1024px) {
    .dm-page {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px; /* 하단 네비게이션 높이 */
        height: auto !important;
        z-index: 200;
    }

    .dm-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 100%;
    }

    .dm-main {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: #000;
        display: none !important;
    }

    .dm-main.active {
        display: flex !important;
    }

    .dm-empty {
        display: none;
    }

    .dm-chat {
        height: 100%;
    }

    .dm-chat-header {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .dm-page .chat-messages {
        flex: 1;
        padding-bottom: 16px;
    }

    .dm-page .chat-input-area {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}

/* 모바일 전용 요소 */
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: flex !important;
    }
}

.conversation-list {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.conversation-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.conversation-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.15s;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.conv-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.conv-avatar.avatar-default {
    color: rgba(255,255,255,0.4);
}

img.conv-avatar {
    object-fit: cover;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.conv-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.conv-badge {
    background: #f85149;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.menu-badge {
    background: #f85149;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
    margin-right: 8px;
}

/* 채팅 메시지 영역 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 300px;
    max-height: calc(100vh - 140px);
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.chat-message.mine {
    align-self: flex-end;
    justify-content: flex-end;
}

/* mine: actions(왼쪽, 바깥쪽) + bubble(오른쪽) */
.chat-message.mine .msg-actions {
    order: 0;
}
.chat-message.mine .msg-bubble {
    order: 1;
}

.chat-message.theirs {
    align-self: flex-start;
    justify-content: flex-start;
}

/* theirs: avatar(왼쪽) + bubble(중간) + actions(오른쪽, 바깥쪽) */
.chat-message.theirs .msg-avatar {
    order: 0;
}
.chat-message.theirs .msg-bubble {
    order: 1;
}
.chat-message.theirs .msg-actions {
    order: 2;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.msg-avatar.avatar-default {
    color: rgba(255,255,255,0.4);
}

img.msg-avatar {
    object-fit: cover;
}

.msg-bubble {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 10px 14px;
    max-width: 100%;
}

.chat-message.mine .msg-bubble {
    background: #58a6ff;
    border-bottom-right-radius: 4px;
}

.chat-message.theirs .msg-bubble {
    border-bottom-left-radius: 4px;
}

.msg-content {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.msg-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.chat-message.mine .msg-time {
    text-align: right;
}

/* 채팅 입력 영역 */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--accent-color);
}

.chat-input-area button {
    background: #58a6ff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-input-area button:hover {
    background: #79b8ff;
}

/* 채팅 미디어/GIF 버튼 (bittalk 스타일) */
.chat-input-area .media-btn,
.chat-input-area .gif-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    padding: 0;
    color: #a3a3a3;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.chat-input-area .media-btn:hover,
.chat-input-area .gif-btn:hover {
    background: #262626;
    color: #fff;
}

.chat-input-area .media-btn:disabled,
.chat-input-area .gif-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 채팅 미디어 프리뷰 */
.chat-media-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.chat-media-preview img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.chat-media-preview .remove-media-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
}

.chat-media-preview .remove-media-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 메시지 미디어 */
.msg-media {
    margin-bottom: 8px;
}

.msg-media img {
    max-width: 250px;
    max-height: 300px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: contain;
}

.msg-media img:hover {
    opacity: 0.9;
}

/* 미디어 뷰어 */
.media-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.media-viewer-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.media-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.media-viewer-close:hover {
    color: var(--accent-color);
}

/* 채팅 서브페이지 레이아웃 */
#subChat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#subChat .subpage-header {
    flex-shrink: 0;
}

/* 채팅 헤더 메뉴 */
.chat-menu {
    position: relative;
    margin-left: auto;
}

.chat-menu-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.chat-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.chat-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 140px;
    overflow: hidden;
}

.chat-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 14px;
    color: var(--error-color);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.chat-menu-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 메시지 액션 버튼 */
.msg-actions {
    position: relative;
    opacity: 0;
    transition: opacity 0.15s;
}

.chat-message:hover .msg-actions {
    opacity: 1;
}

.msg-menu-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    outline: none;
}

.msg-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.msg-menu-btn:focus {
    outline: none;
    background: none;
    color: rgba(255, 255, 255, 0.5);
}

.msg-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 140px;
    overflow: hidden;
    margin-bottom: 4px;
}

.chat-message.theirs .msg-menu {
    right: auto;
    left: 0;
}

.msg-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}

.msg-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.msg-menu button:first-child {
    color: var(--error-color);
}

/* 메시지 메타 정보 */
.msg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.chat-message.mine .msg-meta {
    justify-content: flex-end;
}

.msg-read {
    color: rgba(255, 255, 255, 0.7);
}

/* 날짜 구분선 */
.dm-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.dm-date-separator span {
    background: var(--bg-tertiary);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
}

/* ===== PC 알림 패널 ===== */
.notification-bell-wrapper {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #f85149;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 320px;
    max-height: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 200;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.notif-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.notif-mark-read,
.notif-read-all {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 12px;
    cursor: pointer;
}

.notif-mark-read:hover,
.notif-read-all:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.15s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
    background: rgba(88, 166, 255, 0.08);
}

.notif-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.notif-text .username {
    font-weight: 500;
    color: var(--accent-color);
}

.notif-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.notif-empty,
.notif-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.notif-preview {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.notif-avatar.avatar-default svg {
    width: 20px;
    height: 20px;
}

.notif-avatar.avatar-admin {
    background: #f85149;
    color: #fff;
}

.notif-avatar.avatar-admin svg {
    width: 18px;
    height: 18px;
}

/* ===== 모바일 검색 (홈) ===== */
.search-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-mobile input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.search-mobile input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-mobile input:focus {
    border-color: var(--accent-color);
}

.search-mobile .search-clear {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-mobile .search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* PC에서 모바일 검색 숨김 */
@media (min-width: 1025px) {
    .search-mobile {
        display: none !important;
    }
}

/* ===== 프로필 페이지 (쓰레드 스타일) ===== */
.profile-container {
    padding-bottom: 20px;
}

.profile-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.profile-info-left {
    flex: 1;
    min-width: 0;
}

.profile-avatar-right {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-secondary);
    margin-left: 16px;
}

.profile-avatar-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-right svg {
    width: 40px;
    height: 40px;
}

.profile-username {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-login-id {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-header .profile-bio {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: left;
}

.profile-followers {
    font-size: 15px;
    color: var(--text-secondary);
}

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

.profile-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-actions-row .profile-follow-btn {
    padding: 8px 20px;
    background: #238636;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.profile-actions-row .profile-follow-btn:hover {
    background: #2ea043;
}

.profile-actions-row .profile-follow-btn.following {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.profile-actions-row .profile-follow-btn.following:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.profile-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.profile-icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.profile-more-wrapper {
    position: relative;
}

.profile-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 140px;
    z-index: 100;
    overflow: hidden;
}

.profile-more-menu.show {
    display: block;
}

.profile-more-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.profile-more-menu button:hover {
    background: var(--bg-tertiary);
}

.profile-more-menu button.block-btn,
.profile-more-menu button.report-btn {
    color: var(--error-color);
}

/* 프로필 팔로워/팔로잉 스탯 */
.profile-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
}

.profile-stat.clickable {
    cursor: pointer;
    transition: color 0.15s;
}

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

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

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

/* 팔로워/팔로잉 모달 */
.follow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.follow-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.follow-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.follow-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.follow-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.follow-modal-close:hover {
    color: var(--text-primary);
}

.follow-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.follow-modal-body .empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.follow-modal-body .loading-spinner {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.follow-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-subtle);
}

.follow-user-item:last-child {
    border-bottom: none;
}

.follow-user-item:hover {
    background: var(--bg-tertiary);
}

.follow-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.follow-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.follow-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follow-user-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.follow-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.follow-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.follow-user-bio {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-list-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: #238636;
    border: none;
    color: #fff;
}

.follow-list-btn:hover {
    background: #2ea043;
}

.follow-list-btn.following {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.follow-list-btn.following:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.profile-dm-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.profile-dm-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.profile-follow-btn {
    padding: 8px 20px;
    background: #238636;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.profile-follow-btn:hover {
    background: #2ea043;
}

.profile-follow-btn.following {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.profile-follow-btn.following:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.profile-posts {
    border-top: 1px solid var(--border-subtle);
}

.profile-posts-header {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

/* ===== 클릭 가능한 프로필 ===== */
.feed-header-left {
    cursor: pointer;
}

.feed-header-left:hover .feed-author {
    text-decoration: underline;
}

.clickable-profile {
    cursor: pointer;
}

.clickable-profile:hover .post-detail-username {
    text-decoration: underline;
}

.comment-author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.comment-author-link:hover .comment-author {
    text-decoration: underline;
}

/* 팔로잉/팔로워 목록 */
.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-link {
    cursor: pointer;
}

.user-profile-link:hover .user-name {
    text-decoration: underline;
}

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

.user-avatar.avatar-default {
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.user-avatar.avatar-default svg {
    width: 24px;
    height: 24px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dm-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.user-dm-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.unfollow-btn, .unblock-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.unfollow-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.unfollow-btn:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.unblock-btn {
    background: #238636;
    border: none;
    color: #fff;
}

.unblock-btn:hover {
    background: #2ea043;
}

/* ===== Policy Pages ===== */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.policy-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.policy-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.policy-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.policy-section:last-of-type {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.policy-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #c9d1d9;
    margin: 20px 0 12px;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.policy-section ul, .policy-section ol {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 24px;
    margin-bottom: 12px;
}

.policy-section li {
    margin-bottom: 8px;
}

.policy-section ul ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.policy-section strong {
    color: #c9d1d9;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.policy-table th,
.policy-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.policy-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

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

.policy-warning {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.policy-warning p {
    color: var(--error-color);
    margin: 0;
}

.policy-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.policy-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.policy-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 16px 12px 60px;
    }
    
    .policy-title {
        font-size: 24px;
    }
    
    .policy-section h2 {
        font-size: 18px;
    }
    
    .policy-table th,
    .policy-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .policy-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ===== Policy Footer ===== */
.policy-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 60px; /* bottom-nav 공간 확보 */
}

.policy-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.policy-footer-inner a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.policy-footer-inner a:hover {
    color: var(--accent-color);
}

.policy-footer-inner .divider {
    color: #30363d;
    font-size: 12px;
}

.policy-footer .copyright {
    color: #484f58;
    font-size: 12px;
    margin: 0;
}

@media (min-width: 769px) {
    .policy-footer {
        margin-bottom: 0;
        padding: 32px 16px;
    }
}

/* ===== Report Modal ===== */
.report-modal {
    max-width: 400px;
}

.report-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-reason {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.report-reason:hover {
    border-color: var(--border-color);
}

.report-reason input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.report-reason span {
    font-size: 14px;
    color: var(--text-primary);
}

.report-reason:has(input:checked) {
    border-color: var(--accent-color);
    background: rgba(88, 166, 255, 0.1);
}

.report-detail {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.report-detail:focus {
    outline: none;
    border-color: var(--accent-color);
}

.report-submit-btn {
    width: 100%;
    padding: 12px;
    background: #da3633;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.report-submit-btn:hover {
    background: #f85149;
}

/* ===== 소셜 로그인 ===== */
.login-divider {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin: 4px 0 16px;
}

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

.login-divider span {
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 12px;
}

.social-login-buttons {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.google-login-btn {
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
}

.google-login-btn svg {
    flex-shrink: 0;
}
