:root {
    --bg-main: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --nav-bg: rgba(20, 20, 20, 0.85);
}
body.theme-light {
    --bg-main: #f3f4f6;
    --surface: rgba(0, 0, 0, 0.04);
    --surface-hover: rgba(0, 0, 0, 0.07);
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #111827;
    --text-muted: #6b7280;
    --nav-bg: rgba(255, 255, 255, 0.85);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); min-height: 100vh; padding-bottom: 90px; -webkit-tap-highlight-color: transparent; }
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; position: sticky; top: 0; background: var(--bg-main); z-index: 100; border-bottom: 1px solid var(--border); }
.brand-title { font-size: 18px; font-weight: 800; }
.theme-toggle-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-main); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.page-container { display: none; padding: 16px 20px; max-width: 480px; margin: 0 auto; }
.page-container.active-page { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.glass-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-bottom: 16px; backdrop-filter: blur(10px); }
.glass-card h3 { font-size: 13px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.glass-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.section-title { font-size: 16px; font-weight: 800; margin: 20px 0 12px 0; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.video-thumbnail-container { position: relative; width: 100%; aspect-ratio: 1/1; background: #000; cursor: pointer; overflow: hidden; }
.video-thumbnail-container video, .video-thumbnail-container img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.badge { position: absolute; top: 8px; left: 8px; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; z-index: 2; }
.badge-free { background: #22c55e; color: #fff; }
.badge-premium { background: #eab308; color: #000; }
.badge-terabox { background: #3b82f6; color: #fff; }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.2s; z-index: 3; }
.video-thumbnail-container:hover .play-overlay { opacity: 1; }
.play-btn-circle { width: 36px; height: 36px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; }
.video-info { padding: 12px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.filter-tab { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.filter-tab.active-tab { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }
.btn-action { width: 100%; background: var(--text-main); color: var(--bg-main); border: none; padding: 10px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.profile-card { text-align: center; padding: 30px 20px; }
.profile-avatar { width: 80px; height: 80px; background: var(--surface-hover); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 14px auto; border: 1px solid var(--border); }
.profile-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.profile-edit-box { display: flex; gap: 8px; }
.profile-edit-box input { flex: 1; background: var(--surface); border: 1px solid var(--border); padding: 10px 14px; border-radius: 12px; color: var(--text-main); outline: none; }
.profile-edit-box button { background: var(--surface-hover); border: 1px solid var(--border); color: var(--text-main); padding: 0 16px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.glass-input { width: 100%; background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; border-radius: 12px; color: var(--text-main); outline: none; margin-bottom: 10px; }
.whatsapp-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin-top: 16px; }
.whatsapp-icon-box { width: 44px; height: 44px; background: rgba(37,211,102,0.15); color: #25d366; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.whatsapp-arrow { margin-left: auto; font-size: 20px; color: var(--text-muted); }
.join-modal, .glass-modal, .video-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.join-modal.active, .glass-modal.active, .video-modal.active { display: flex; }
.join-modal-box, .glass-modal-box, .modal-content { background: var(--bg-main); border: 1px solid var(--border); width: 100%; max-width: 360px; border-radius: 24px; padding: 24px; text-align: center; }
.video-modal .modal-content { padding: 16px; max-width: 360px; }
.video-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.btn-close-modal { background: var(--surface); border: 1px solid var(--border); color: var(--text-main); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-player-container { width: 100%; aspect-ratio: 1/1; background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.join-option-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); padding: 12px 16px; border-radius: 16px; margin-bottom: 10px; text-decoration: none; color: inherit; text-align: left; }
.join-option-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.join-option-info h4 { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.join-option-info p { font-size: 11px; color: var(--text-muted); margin: 0; }
.btn-join-submit, .btn-modal-submit, .btn-modal-cancel { width: 100%; padding: 12px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer; }
.btn-join-submit, .btn-modal-submit { background: var(--text-main); color: var(--bg-main); }
.btn-modal-cancel { background: var(--surface); color: var(--text-main); border: 1px solid var(--border); }
.modal-actions { display: flex; gap: 8px; margin-top: 10px; }
.floating-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 380px; background: var(--nav-bg); border: 1px solid var(--border); backdrop-filter: blur(16px); border-radius: 28px; display: flex; justify-content: space-around; padding: 10px; z-index: 1000; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-muted); cursor: pointer; width: 50px; font-size: 10px; font-weight: 700; }
.nav-item i { font-size: 20px; }
.nav-item.active-nav { color: var(--text-main); }
.nav-indicator { position: absolute; bottom: 8px; left: 16px; width: 50px; height: 38px; background: var(--surface-hover); border-radius: 20px; transition: 0.25s; z-index: -1; border: 1px solid var(--border); }