/* Pages */
.page { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; flex-direction: column; background: var(--bg-primary); z-index: 1; overflow-y: auto; overflow-x: hidden; padding: 0 20px; }
#page-player, #page-detail { max-width: 100%; padding: 0; }
#page-player .player-video-area { max-width: 100%; }
#page-detail .page-content { max-width: 100%; }
.page.active { display: flex; z-index: 2; }
.page-content { flex: 1; padding-bottom: 80px; }
#page-home .page-content, #page-project .page-content, #page-activity .page-content { padding-top: 84px; }
#page-home .page-content { padding-top: 118px; }

/* Back Icon */
.back-icon { color: var(--text-primary) !important; stroke: var(--text-primary) !important; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); width: 24px; height: 24px; cursor: pointer; flex-shrink: 0; }
.icon-btn, .icon-btn svg { width: 22px; height: 22px; color: var(--text-secondary); stroke: var(--text-secondary); cursor: pointer; flex-shrink: 0; }
.icon-btn.white, .icon-btn.white svg { color: var(--text-primary); stroke: var(--text-primary); }

/* Header */
.header { display: flex; justify-content: space-between; align-items: center; padding: 48px 20px 12px; position: fixed; top: 0; left: 0; right: 0; background: var(--bg-primary); z-index: 10; }
.logo-area { display: flex; align-items: center; gap: 8px; }
.header-logo { width: 24px; height: 24px; }
.logo-icon { font-size: 24px; font-weight: 700; }
.logo-text { font-size: 20px; font-weight: 700; }
.header-right { display: flex; gap: 10px; align-items: center; }
.page-title { font-size: 22px; font-weight: 800; }

/* Wallet Status */
.wallet-status { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; background: rgba(204,255,0,0.08); border: 1px solid rgba(204,255,0,0.15); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.wallet-status:hover { background: rgba(204,255,0,0.15); }
.wallet-status svg, .wallet-status i { width: 16px; height: 16px; color: var(--accent); stroke: var(--accent); }
.wallet-status span { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.3px; }
.wallet-status.connected { background: rgba(204,255,0,0.12); border-color: rgba(204,255,0,0.3); }
.wallet-status.connected span { color: var(--accent); font-weight: 700; }
.lang-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; width: 36px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lang-btn svg { width: 16px; height: 16px; color: var(--text-secondary); stroke: var(--text-secondary); }

/* Tabs */
.tabs-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 20px 8px; position: fixed; top: 84px; left: 0; right: 0; background: var(--bg-primary); z-index: 10; }
.tabs-wrapper::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 24px; white-space: nowrap; }
.tab { font-size: 14px; color: var(--text-muted); cursor: pointer; flex-shrink: 0; transition: all 0.2s; padding: 4px 0; }
.tab.active { color: var(--accent); font-weight: 700; }

/* Section */
.section { padding: 16px 0 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title { font-size: 16px; font-weight: 700; }
.section-more { font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* Bottom Nav */
.bottom-nav { display: flex; justify-content: space-around; align-items: center; padding: 12px 0 28px; background: var(--bg-primary); border-top: 1px solid rgba(255,255,255,0.05); position: sticky; bottom: 0; z-index: 10; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border: none; background: none; font-family: inherit; }
.nav-item i, .nav-item svg { width: 22px; height: 22px; color: var(--text-muted); stroke: var(--text-muted); }
.nav-item span { font-size: 10px; color: var(--text-muted); }
.nav-item.active i, .nav-item.active svg { color: var(--accent); stroke: var(--accent); }
.nav-item.active span { color: var(--accent); }

/* Nav Bar */
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 48px 0 16px; }
.nav-title { font-size: 18px; font-weight: 700; }
.nav-action { font-size: 14px; color: var(--text-muted); cursor: pointer; }

/* Search Bar */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--bg-card); }
.search-icon { width: 18px; height: 18px; color: var(--text-muted); }
.search-placeholder { font-size: 14px; color: var(--text-muted); }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 100; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 24px; width: 280px; display: flex; flex-direction: column; gap: 12px; }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.lang-option { padding: 14px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid transparent; cursor: pointer; font-size: 15px; color: var(--text-primary); font-family: inherit; text-align: left; }
.lang-option:hover, .lang-option.active { border-color: var(--accent); color: var(--accent); }
