/* Banner */
.banner-wrapper { padding: 0; }
.banner { height: 200px; border-radius: var(--radius-lg); background: var(--bg-card); position: relative; overflow: hidden; background-size: cover; background-position: center; }
.banner::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(13,13,13,0.95), transparent); }
.banner-content { position: absolute; bottom: 16px; left: 20px; z-index: 1; }
.banner-title { font-size: 20px; font-weight: 700; }

/* Drama Grid */
.drama-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drama-card { cursor: pointer; }
.drama-thumb { width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-sm); background: var(--bg-card); position: relative; overflow: hidden; background-size: cover; background-position: center; }
.drama-thumb .ep-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; color: var(--text-primary); background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 4px; }
.drama-name { font-size: 14px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.drama-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Rank List */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.rank-num { font-size: 20px; font-weight: 800; min-width: 24px; }
.rank-num.top { color: var(--accent); }
.rank-thumb { width: 56px; height: 74px; border-radius: 6px; background: var(--bg-card); background-size: cover; background-position: center; }
.rank-info { display: flex; flex-direction: column; gap: 4px; }
.rank-name { font-size: 14px; font-weight: 600; }
.rank-plays { font-size: 12px; color: var(--text-muted); }

/* Tag Grid */
.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tag-card { border-radius: 10px; background: var(--bg-card); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tag-emoji { font-size: 24px; }
.tag-name { font-size: 13px; font-weight: 600; }
.tag-count { font-size: 11px; color: var(--text-muted); }

/* Progress List */
.progress-list { display: flex; flex-direction: column; gap: 12px; }
.progress-item { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.progress-thumb { width: 64px; height: 85px; border-radius: 8px; background: var(--bg-card); background-size: cover; background-position: center; }
.progress-info { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.progress-name { font-size: 15px; font-weight: 600; }
.progress-meta { font-size: 12px; color: var(--text-muted); }
.progress-bar { width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.3s; }
.progress-play-btn { width: 36px; height: 36px; border-radius: 18px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: none; cursor: pointer; }
.progress-play-btn i { color: var(--accent-dark); width: 16px; height: 16px; }

/* Recent Grid */
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.recent-card { cursor: pointer; }
.recent-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 8px; background: var(--bg-card); background-size: cover; background-position: center; }
.recent-name { font-size: 13px; font-weight: 600; margin-top: 6px; }
.recent-update { font-size: 11px; color: var(--accent); margin-top: 2px; }

/* Profile */
.profile-header { display: flex; flex-direction: column; align-items: center; padding: 56px 0 24px; gap: 12px; }
.avatar { width: 72px; height: 72px; border-radius: 36px; background: var(--bg-card); border: 3px solid var(--accent); text-align: center;line-height: 86px;}
.username { font-size: 20px; font-weight: 700; }
.bio { font-size: 13px; color: var(--text-muted); }
.stats-row { display: flex; justify-content: space-around; padding: 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: 22px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* VIP Card */
.vip-card-wrapper { padding: 0; margin-top: 24px; }
.vip-card { border-radius: var(--radius-lg); padding: 16px; background: linear-gradient(90deg, #2A1A0A, #1A0A00); border: 1px solid rgba(255,215,0,0.3); display: flex; align-items: center; justify-content: space-between; }
.vip-title { font-size: 16px; font-weight: 700; color: var(--accent); }
.vip-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.vip-btn { background: var(--accent); color: var(--accent-dark); border: none; padding: 8px 16px; border-radius: 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* Menu */
.menu-section { padding: 24px 0 0; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; cursor: pointer; color: inherit; text-decoration: none; }
.menu-item i { width: 20px; height: 20px; color: var(--text-secondary); }
.menu-item span { flex: 1; font-size: 15px; }
.menu-item i:last-child { width: 18px; height: 18px; color: var(--text-muted); }

/* Login */
.login-bg { position: absolute; top: 0; left: 0; right: 0; height: 400px; background: radial-gradient(ellipse at 50% 30%, rgba(204,255,0,0.09), transparent 70%); pointer-events: none; z-index: 0; }
.login-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.login-nav { width: 100%; padding: 48px 0 12px; display: flex; justify-content: space-between; }
.login-logo-area { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 40px; }
.logo-ring { width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; }
.logo-inner { width: 88px; height: 88px; border-radius: 44px; background: linear-gradient(135deg, #1A1A0A, #0D0D05); display: flex; align-items: center; justify-content: center; }
.login-app-name { font-size: 32px; font-weight: 800; }
.login-subtitle { font-size: 15px; color: var(--text-secondary); }
.login-features { display: flex; gap: 24px; margin-top: 24px; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.feature-icon { font-size: 24px; }
.feature-text { font-size: 12px; color: var(--text-muted); }
.login-connect { padding: 60px 0 0; width: 100%; }
.wallet-btn { width: 100%; padding: 18px; border-radius: 16px; border: none; background: linear-gradient(90deg, #CCFF00, #A3CC00); color: var(--accent-dark); font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-family: inherit; }
.wallet-btn i { width: 22px; height: 22px; }
.wallet-support { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; }
.login-divider { display: flex; align-items: center; gap: 14px; padding: 24px 0 0; width: 100%; }
.login-divider span { font-size: 12px; color: var(--text-muted); }
.divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.05); }
.address-input { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 12px; background: #141414; border: 1px solid #222; cursor: pointer; }
.address-input i { width: 18px; height: 18px; color: var(--text-muted); }
.address-input span { font-size: 14px; color: var(--text-muted); }
.login-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 40px; }
.chain-badge { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; background: #1A1A0A; border: 1px solid rgba(204,255,0,0.2); }
.green-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.chain-badge span { font-size: 12px; font-weight: 600; color: var(--accent); }
.terms { font-size: 11px; color: #444; text-align: center; max-width: 260px; line-height: 1.5; }

/* Player */
.player-video-area { position: relative; width: 100%; height: 100vh; background: #000; overflow: hidden; }
.player-video-area video { width: 100%; height: 100%; object-fit: cover; }
.player-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%); pointer-events: none; }
.player-topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 50px 0 12px; z-index: 5; }
.player-top-center { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.player-drama-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.player-ep-num { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.token-ring { position: absolute; top: 110px; left: 16px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; z-index: 5; }
.ring-svg { position: absolute; width: 100%; height: 100%; }
.ring-center { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(0,0,0,0.7); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.ring-center.active i { color: #CCFF00 !important; }
.ring-reward-float { position: absolute; top: -8px; right: -8px; pointer-events: none; font-size: 11px; font-weight: 800; color: #CCFF00; opacity: 0; white-space: nowrap; }
.ring-reward-float.show { animation: rewardFloat 1.8s ease-out forwards; }
@keyframes rewardFloat { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-30px); } }
.player-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 30px; background: rgba(255,255,255,0.13); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; border: none; }
.player-play-btn i { width: 30px; height: 30px; color: var(--text-primary); }
.player-right-actions { position: absolute; right: 16px; bottom: 180px; display: flex; flex-direction: column; gap: 24px; align-items: center; z-index: 5; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.action-item i { width: 28px; height: 28px; color: var(--text-primary); }
.action-item span { font-size: 11px; color: var(--text-secondary); }
.player-bottom-info { position: absolute; bottom: 80px; left: 16px; right: 80px; z-index: 5; }
.player-handle { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.player-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 12px; }
.episodes-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; background: rgba(255,255,255,0.08); cursor: pointer; }
.episodes-pill span { font-size: 12px; font-weight: 600; }
.episodes-pill i { width: 16px; height: 16px; color: var(--text-secondary); }

/* Comment Ticker */
.comment-ticker { flex: 1; min-width: 0; overflow: hidden; }
.comment-ticker-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); animation: fadeInOut 2s ease-in-out; }
.comment-ticker-avatar { width: 20px; height: 20px; border-radius: 10px; background: var(--bg-card); flex-shrink: 0; }
.comment-ticker-text { font-size: 11px; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fadeInOut { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }

/* Player content padding (except video) */
.player-topbar { padding-left: 16px; padding-right: 16px; }
.player-right-actions { right: 16px; }
.player-bottom-info { left: 16px; right: 80px; }
.player-bottom-bar { padding-left: 16px; padding-right: 16px; }

.player-bottom-bar { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 0 16px 32px; z-index: 5; }
.player-input { flex: 1; border-radius: 24px; padding: 12px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: var(--text-primary); outline: none; font-family: inherit; }
.player-input::placeholder { color: var(--text-muted); }
.player-comment-toast { position: absolute; left: 16px; bottom: 90px; background: rgba(0,0,0,0.7); color: #fff; padding: 8px 14px; border-radius: 16px; font-size: 13px; z-index: 10; animation: toastUp 3s ease forwards; max-width: 70%; word-break: break-word; }
@keyframes toastUp { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px); } }
.episodes-panel { display: none; position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 375px; max-height: 60vh; background: var(--bg-secondary); border-radius: 16px 16px 0 0; z-index: 20; padding: 20px; overflow-y: auto; }
.episodes-panel.show { display: block; }
.ep-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 16px; font-weight: 700; }
.ep-panel-header i { width: 24px; height: 24px; color: var(--text-secondary); cursor: pointer; }
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ep-btn { padding: 10px 0; border-radius: var(--radius-sm); text-align: center; background: var(--bg-card); font-size: 13px; color: var(--text-secondary); cursor: pointer; border: none; font-family: inherit; position: relative; }
.ep-btn.active { background: var(--accent); color: var(--accent-dark); font-weight: 600; }
.ep-btn.ep-locked { opacity: 0.85; }
.ep-locked-badge { position: absolute; top: 3px; right: 3px; display: flex; align-items: center; justify-content: center; }
.ep-purchased-badge { position: absolute; top: 3px; right: 3px; display: flex; align-items: center; justify-content: center; }

/* Detail */
.detail-header { position: relative; height: 280px; margin: 0; }
.detail-cover-bg { width: 100%; height: 100%; background: var(--bg-card); background-size: cover; background-position: center; }
.detail-cover-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(13,13,13,0), rgba(13,13,13,1)); }
.detail-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 48px 16px 12px; }
.detail-info { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 14px; padding: 0 16px 16px; }
.detail-small-cover { width: 80px; height: 106px; border-radius: var(--radius-sm); background: var(--bg-secondary); background-size: cover; background-position: center; flex-shrink: 0; }
.detail-text { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.detail-drama-name { font-size: 20px; font-weight: 700; }
.detail-genre { font-size: 12px; color: var(--text-secondary); }
.detail-plays { font-size: 12px; color: var(--text-muted); }
.detail-actions { display: flex; gap: 12px; padding: 16px 16px 0; }
.play-now-btn { flex: 1; padding: 14px; border-radius: var(--radius-md); background: var(--accent); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--accent-dark); font-family: inherit; }
.play-now-btn i { width: 20px; height: 20px; }
.fav-btn { padding: 14px 18px; border-radius: var(--radius-md); background: var(--bg-card); border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; }
.fav-btn i, .fav-btn svg { width: 20px; height: 20px; color: var(--text-secondary); stroke: var(--text-secondary); }
.fav-btn span { font-size: 10px; color: var(--text-muted); }
.fav-btn.saved { background: rgba(204,255,0,0.15); }
.fav-btn.saved i, .fav-btn.saved svg { color: var(--accent); stroke: var(--accent); }
.detail-synopsis { padding: 20px 16px; }
.synopsis-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.synopsis-text.expanded { -webkit-line-clamp: unset; display: block; }
.synopsis-toggle { font-size: 13px; color: var(--accent); cursor: pointer; margin-top: 6px; font-weight: 600; }
.detail-episodes { padding: 0 16px; }

/* Balance Card */
.balance-card-wrapper { padding: 0; }
.balance-card { border-radius: var(--radius-lg); padding: 24px; background: linear-gradient(135deg, #1A1A0A, #0D0D05); border: 1px solid rgba(204,255,0,0.3); display: flex; flex-direction: column; gap: 16px; }
.balance-top { display: flex; justify-content: space-between; align-items: center; }
.balance-label { font-size: 13px; color: rgba(204,255,0,0.6); }
.balance-today { font-size: 12px; color: #00FF88; }
.balance-value { font-size: 36px; font-weight: 700; color: var(--accent); }
.balance-actions { display: flex; gap: 12px; }
.withdraw-btn { flex: 1; padding: 12px; border-radius: var(--radius-sm); background: var(--accent); border: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent-dark); font-family: inherit; }
.convert-btn { flex: 1; padding: 12px; border-radius: var(--radius-sm); background: rgba(204,255,0,0.08); border: 1px solid rgba(204,255,0,0.3); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); font-family: inherit; }

/* Rewards Tabs */
.rewards-tabs { display: flex; gap: 32px; padding: 24px 0 0; }
.rewards-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.rewards-tab span { font-size: 15px; color: var(--text-muted); }
.rewards-tab.active span { color: var(--text-primary); font-weight: 700; }
.tab-indicator { width: 32px; height: 3px; border-radius: 2px; background: var(--accent); }

/* Reward List */
.reward-list { padding: 20px 0; }
.reward-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.reward-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.reward-desc { font-size: 13px; }
.reward-time { font-size: 11px; color: var(--text-muted); }
.reward-amount { font-size: 14px; font-weight: 600; color: #00FF88; }

/* Task Banner */
.task-banner-wrapper { padding: 0; }
.task-banner { border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(90deg, #1A0A2A, #0D0D1A); border: 1px solid rgba(139,92,246,0.4); display: flex; justify-content: space-between; align-items: center; }
.banner-left .banner-title { font-size: 16px; font-weight: 700; }
.banner-value { font-size: 28px; font-weight: 700; color: #A78BFA; }
.banner-earned-label { font-size: 11px; color: var(--text-muted); text-align: center; }
.banner-earned-value { font-size: 20px; font-weight: 700; color: #00FF88; text-align: center; }

/* Task List */
.task-section { padding: 20px 0; }
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-card); }
.task-left { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.task-name { font-size: 14px; font-weight: 600; }
.task-desc { font-size: 12px; color: var(--text-muted); }
.task-right { display: flex; align-items: center; gap: 10px; }
.task-reward { font-size: 13px; font-weight: 600; color: var(--accent); }
.task-btn { padding: 6px 14px; border-radius: 12px; border: none; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.task-btn.completed { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.task-btn.pending { background: var(--accent); color: var(--accent-dark); }

/* History */
.history-list { padding: 0; }
.history-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer; }
.history-thumb { width: 72px; height: 48px; border-radius: 6px; background: var(--bg-card); background-size: cover; background-position: center; flex-shrink: 0; }
.history-info { display: flex; flex-direction: column; gap: 4px; }
.history-name { font-size: 14px; font-weight: 600; }
.history-meta { font-size: 12px; color: var(--text-muted); }

/* Favorites */
.favorites-list { padding: 0; }
.fav-item { display: flex; gap: 14px; align-items: center; padding: 8px 0; cursor: pointer; }
.fav-cover { width: 72px; height: 96px; border-radius: 8px; background: var(--bg-card); background-size: cover; background-position: center; flex-shrink: 0; }
.fav-info { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fav-name { font-size: 15px; font-weight: 600; }
.fav-genre { font-size: 12px; color: var(--text-muted); }
.fav-score { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.fav-score .star { color: #FFD700; }
.fav-score .score { color: var(--accent); font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; }
.faq-left { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.faq-q { font-size: 14px; font-weight: 600; }
.faq-a { font-size: 12px; color: var(--text-muted); }
.faq-item i { width: 18px; height: 18px; color: var(--text-muted); }

/* Contact */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--bg-card); cursor: pointer; }
.contact-item i:first-child { width: 22px; height: 22px; color: var(--accent); }
.contact-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.contact-name { font-size: 14px; font-weight: 600; }
.contact-desc { font-size: 12px; color: var(--text-muted); }
.contact-item i:last-child { width: 18px; height: 18px; color: var(--text-muted); }

/* Chat */
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 10px; max-width: 80%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { width: 32px; height: 32px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.chat-msg.bot .chat-avatar { background: var(--accent); color: #0A0A00; }
.chat-msg.user .chat-avatar { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.chat-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-msg.bot .chat-bubble { background: rgba(255,255,255,0.06); color: var(--text-primary); border-top-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #0A0A00; border-top-right-radius: 4px; }
.chat-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.chat-msg.user .chat-time { text-align: right; }
.chat-input-bar { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.chat-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 10px 16px; font-size: 14px; color: var(--text-primary); outline: none; font-family: inherit; }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send-btn { width: 36px; height: 36px; border-radius: 18px; background: var(--accent); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-send-btn i { width: 18px; height: 18px; color: #0A0A00; }

/* Comments - fixed header & input */
#page-comments { display: none; flex-direction: column; }
#page-comments.active { display: flex; }
.comments-header { display: flex; justify-content: space-between; align-items: center; padding: 48px 0 16px; flex-shrink: 0; background: var(--bg-primary); position: sticky; top: 0; z-index: 10; }
.comment-sort { display: flex; gap: 20px; padding: 0 0 12px; flex-shrink: 0; background: var(--bg-primary); }
.sort-item { font-size: 13px; color: var(--text-muted); cursor: pointer; }
.sort-item.active { color: var(--accent); font-weight: 700; }
.comment-list { flex: 1; overflow-y: auto; padding: 0; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.comment-avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--bg-card); flex-shrink: 0; }
.comment-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.comment-name-row { display: flex; align-items: center; gap: 8px; }
.comment-name { font-size: 13px; font-weight: 600; }
.hot-badge { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: var(--accent-dark); }
.comment-text { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.comment-meta { display: flex; gap: 16px; align-items: center; }
.comment-time { font-size: 11px; color: var(--text-muted); }
.comment-like { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.comment-like i { width: 14px; height: 14px; }
.comment-input-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 28px; flex-shrink: 0; background: var(--bg-primary); border-top: 1px solid rgba(255,255,255,0.05); }
.comment-input { flex: 1; border-radius: 24px; padding: 12px 16px; background: var(--bg-card); }
.comment-input span { font-size: 13px; color: var(--text-muted); }

/* Share */
.share-preview { display: flex; gap: 14px; padding: 14px; margin: 0; border-radius: var(--radius-lg); background: var(--bg-card); }
.share-cover { width: 64px; height: 85px; border-radius: 8px; background: var(--bg-secondary); flex-shrink: 0; background-size: cover; background-position: center; }
.share-info { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.share-drama-name { font-size: 16px; font-weight: 700; }
.share-meta { font-size: 12px; color: var(--text-muted); }
.share-recommend { font-size: 12px; color: var(--accent); }
.share-reward { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #1A1A0A; }
.share-reward span:first-child { font-size: 18px; }
.share-reward-text { font-size: 13px; color: var(--accent); }
.share-platforms { padding: 24px 0 0; }
.share-platform-label { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.platform-row { display: flex; justify-content: space-around; }
.platform { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.platform-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; }
.platform span { font-size: 11px; color: var(--text-secondary); }
.share-actions { padding: 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.save-poster-btn { width: 100%; padding: 16px; border-radius: 12px; background: var(--bg-card); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-primary); font-family: inherit; }
.save-poster-btn i { width: 20px; height: 20px; }
.share-link-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--bg-card); }
.share-link { flex: 1; font-size: 13px; color: var(--text-muted); }
.copy-btn { padding: 8px 14px; border-radius: 8px; background: var(--accent); border: none; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--accent-dark); font-family: inherit; }

/* Contact Page */
.contact-links { display: flex; flex-direction: column; gap: 12px; padding: 0 20px; }
.contact-link-item { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--bg-card); text-decoration: none; cursor: pointer; }
.contact-link-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link-icon.telegram { background: #26A5E4 !important; }
.contact-link-icon.twitter { background: #fff; }
.contact-link-info { flex: 1; }
.contact-link-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.contact-link-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.contact-link-item i, .contact-link-item svg { width: 18px; height: 18px; color: var(--text-muted); stroke: var(--text-muted); }

/* ==================== PROJECT PAGE ==================== */
.project-page { padding: 0; background: #0A0A0A; }

/* Hero Section */
.project-hero { position: relative; width: calc(100% + 40px); margin-left: -20px; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 60px 24px; background: url('../images/title.png') center/cover no-repeat; text-align: center; }
.project-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.2), rgba(10,10,10,0.85)); }
.project-hero > * { position: relative; z-index: 1; }
.project-hero-logo { width: 180px; height: auto; }
.project-hero-title { font-size: 36px; font-weight: 800; color: var(--text-primary); }
.project-hero-subtitle { font-size: 16px; color: var(--text-secondary); line-height: 1.5; max-width: 300px; }
.project-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.project-hero-primary { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 28px; background: var(--accent); border: none; font-size: 16px; font-weight: 700; color: #0A0A00; cursor: pointer; font-family: inherit; }
.project-hero-primary i { width: 20px; height: 20px; }
.project-hero-secondary { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 28px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); font-size: 16px; font-weight: 600; color: var(--text-primary); cursor: pointer; font-family: inherit; }
.project-hero-secondary i { width: 20px; height: 20px; }
.project-hero-chain { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(204,255,0,0.2); }
.chain-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.project-hero-chain span { font-size: 12px; font-weight: 600; color: var(--accent); }

/* Sections */
.project-section { padding: 50px 24px; }
.project-section-header { text-align: center; margin-bottom: 28px; }
.project-section-label { font-size: 13px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: 1px; }
.project-section-header h2 { font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.project-section-header p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.project-subheading { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }

/* Features Section */
.project-features-section { background: url('../images/bg2.png') center/cover; }
.project-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project-feature { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.pf-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--accent); }
.pf-name { font-size: 12px;text-align: center; font-weight: 600; color: var(--text-primary); }

/* Tokenomics Section */
.project-tokenomics-section { background: url('../images/bg1.png') center/cover; }
.project-token-table { display: flex; flex-direction: column; margin-bottom: 28px; }
.token-row { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 8px; }
.token-row:nth-child(odd) { background: rgba(255,255,255,0.03); }
.token-row span:first-child { font-size: 13px; color: var(--text-muted); }
.token-row span:last-child { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.project-allocation { display: flex; gap: 20px; align-items: flex-start; }
.allocation-chart { flex-shrink: 0; }
.allocation-ring { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(#CCFF00 0% 40%, #A3CC00 40% 55%, #7FFF00 55% 70%, #FFD700 70% 80%, #FFA500 80% 90%, #FF6347 90% 95%, #FF4500 95% 100%); display: flex; align-items: center; justify-content: center; }
.allocation-total { width: 90px; height: 90px; border-radius: 50%; background: #0A0A0A; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.allocation-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-primary); }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.legend-pct { margin-left: auto; font-weight: 600; color: var(--text-primary); }

/* Rewards Section */
.project-rewards-section { background: url('../images/bg2.png') center/cover; }
.project-prob-list { display: flex; flex-direction: column; gap: 10px; }
.prob-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.prob-badge { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex-shrink: 0; }
.prob-detail { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.prob-tier { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.prob-range { font-size: 12px; color: var(--text-secondary); }
.prob-emoji { font-size: 20px; }
.project-lottery-note { padding: 12px 16px; border-radius: 10px; background: rgba(255,255,255,0.03); margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* Utility Section */
.project-utility-section { background: #0A0A0A; }
.utility-grid { display: flex; flex-direction: column; gap: 10px; }
.utility-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.uc-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(204,255,0,0.08); border-radius: 10px; flex-shrink: 0; color: var(--accent); }
.uc-name { font-size: 14px; font-weight: 600; color: var(--text-primary); display: block; }
.uc-desc { font-size: 12px; color: var(--text-secondary); display: block; }

/* CTA Section */
.project-cta-section { background: #0A0A0A; text-align: center; }
.project-cta-section h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.project-cta-section p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.project-cta-main { display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px; border-radius: 28px; background: var(--accent); border: none; font-size: 16px; font-weight: 700; color: #0A0A00; cursor: pointer; font-family: inherit; margin-bottom: 28px; }
.project-cta-main i { width: 20px; height: 20px; }
.project-stats-layout { display: flex; align-items: center; gap: 24px; }
.project-stats { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.project-stats-phone { width: 220px; height: 335px; object-fit: cover; object-position: top; flex-shrink: 0; border-radius: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 20px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-muted); }

/* Footer */
/* Roadmap */
.roadmap-list { display: flex; flex-direction: column; gap: 16px; }
.roadmap-item { padding: 20px; border-radius: var(--radius-md); background: var(--bg-card); border-left: 3px solid var(--accent); }
.roadmap-phase { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.roadmap-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.roadmap-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.project-footer { padding: 36px 24px; background: #000; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.project-footer p { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.project-footer-links { display: flex; justify-content: center; gap: 24px; }
.project-footer-links span { font-size: 12px; color: var(--text-secondary); cursor: pointer; }

/* ==================== ACTIVITY PAGE ==================== */
.activity-page { padding: 0; }

/* Balance Card */
.activity-balance { margin: 20px 0 0 0; padding: 24px; border-radius: 16px; background: linear-gradient(135deg, #1A1A0A, #0D0D05); border: 1px solid rgba(204,255,0,0.3); }
.balance-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.balance-label { font-size: 13px; color: rgba(204,255,0,0.6); }
.balance-amount { font-size: 36px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.balance-withdraw { padding: 6px 14px; border-radius: 16px; background: var(--accent); border: none; font-size: 12px; font-weight: 700; color: #0A0A00; cursor: pointer; font-family: inherit; }

/* Tab Bar */
.activity-tabs { display: flex; gap: 32px; padding: 24px 0 0; }
.activity-tab { font-size: 15px; color: var(--text-muted); cursor: pointer; padding-bottom: 8px; border: none; background: none; border-bottom: 3px solid transparent; font-family: inherit; }
.activity-tab.active { color: var(--text-primary); font-weight: 700; border-bottom-color: var(--accent); }

/* Tab Content */
.activity-content { padding: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.activity-content.hidden { display: none; }

/* Reward Cards */
.reward-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(18,18,7,1); border: 1px solid rgba(255,255,255,0.05); }
.reward-icon-bg { width: 40px; height: 40px; border-radius: 10px; background: rgba(204,255,0,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.reward-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.reward-desc { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.reward-time { font-size: 11px; color: var(--text-muted); }
.reward-amount-col { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.reward-amount { font-size: 14px; font-weight: 600; color: #00FF88; }
.reward-unit { font-size: 10px; color: rgba(0,255,136,0.6); }

/* Task Banner */
.task-banner-card { padding: 20px; border-radius: 16px; background: linear-gradient(90deg, #1A0A2A, #0D0D1A); border: 1px solid rgba(139,92,246,0.4); display: flex; justify-content: space-between; align-items: center; }
.task-banner-left { display: flex; flex-direction: column; gap: 6px; }
.task-banner-label { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.task-banner-value { font-size: 28px; font-weight: 700; color: #A78BFA; }
.task-banner-right { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.task-banner-earned-label { font-size: 11px; color: var(--text-muted); }
.task-banner-earned { font-size: 20px; font-weight: 700; color: #00FF88; }

/* Task Cards */
.task-section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-top: 8px; }
.task-card { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: rgba(18,18,7,1); border: 1px solid rgba(255,255,255,0.05); }
.task-icon-bg { width: 40px; height: 40px; border-radius: 10px; background: rgba(204,255,0,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.task-icon-bg.weekly { background: rgba(139,92,246,0.15); }
.task-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.task-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.task-desc { font-size: 12px; color: var(--text-muted); }
.task-reward-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.task-reward { font-size: 13px; font-weight: 600; color: #FFD700; }
.task-status { padding: 4px 12px; border-radius: 12px; border: none; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.task-status.done { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.task-status.progress { background: rgba(204,255,0,0.12); color: var(--accent); }
.task-status.go { background: var(--accent); color: #0A0A00; }

/* Withdraw Cards */
.withdraw-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(18,18,7,1); border: 1px solid rgba(255,255,255,0.05); }
.withdraw-icon-bg { width: 40px; height: 40px; border-radius: 10px; background: rgba(0,255,136,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.withdraw-icon-bg.processing { background: rgba(255,215,0,0.1); }
.withdraw-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.withdraw-desc { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.withdraw-time { font-size: 11px; color: var(--text-muted); }
.withdraw-amount-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.withdraw-amount { font-size: 14px; font-weight: 700; color: #FF6B6B; }
.withdraw-status { padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 600; }
.withdraw-status.processing { background: rgba(255,215,0,0.12); color: #FFD700; }
.withdraw-status.completed { background: rgba(0,255,136,0.1); color: #00FF88; }

/* Login Prompt Modal */
.login-prompt-content { text-align: center; padding: 32px 24px 24px; width: 300px; }
.login-prompt-icon { margin-bottom: 16px; }
.login-prompt-icon svg { opacity: 0.9; }
.login-prompt-title { font-size: 20px; margin-bottom: 8px; }
.login-prompt-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }
.login-prompt-actions { display: flex; gap: 12px; }
.login-prompt-cancel { flex: 1; padding: 12px; border-radius: 12px; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); font-size: 15px; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.login-prompt-confirm { flex: 1; padding: 12px; border-radius: 12px; background: var(--accent); border: none; font-size: 15px; font-weight: 700; color: #0A0A00; cursor: pointer; font-family: inherit; }

/* AppKit Modal */
appkit-modal { z-index: 10000 !important; }
