/* ============================================================
   Layar Vidio — STYLE FINAL (MOBILE + DASHBOARD DESKTOP)
   ============================================================ */

/* ============================================
   1. VARIABEL & RESET DASAR
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Warna utama (Mobile) */
  --bg-main: #2C2D2D;
  --bg-video: #000000;
  --bg-surface: #343535;
  --bg-elevated: #3A3B3B;
  --bg-input: #383939;

  --cyan: #00E5FF;
  --ungu: #8A2BE2;
  --pink: #FF2D8B;
  --gradient: linear-gradient(90deg, #00E5FF, #8A2BE2, #FF2D8B);

  /* Teks */
  --text-primary: #FFFFFF;
  --text-secondary: #B8B9B9;
  --text-muted: #7A7B7B;
  --text-disabled: #5A5B5B;

  /* Garis */
  --line: 1px;
  --line-thin: 0.5px;
  --line-hairline: 0.8px;

  --divider: rgba(255, 255, 255, 0.08);
  --divider-soft: rgba(255, 255, 255, 0.05);
  --divider-strong: rgba(255, 255, 255, 0.12);

  --border-card: rgba(255, 255, 255, 0.06);
  --border-input: rgba(255, 255, 255, 0.10);
  --border-focus: var(--cyan);

  /* Glow */
  --glow-cyan: 0 0 8px rgba(0, 229, 255, 0.25);
  --glow-ungu: 0 0 10px rgba(138, 43, 226, 0.20);
  --glow-soft: 0 2px 12px rgba(0, 0, 0, 0.35);

  /* Safe area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --nav-height: 62px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 20px;

  /* Header & overlay offsets */
  --header-h: 56px;
  --header-h-compact: 52px;
  --tabs-gap: 6px;
  --tabs-pad-x: 12px;
  --tabs-pad-y: 8px;

  /* Layer z-index */
  --z-feed: 1;
  --z-card-overlay: 2;
  --z-actions: 5;
  --z-tabs: 15;
  --z-nav: 20;
  --z-fullscreen: 100;
  --z-drawer: 300;
  --z-comment: 400;
  --z-share: 450;
  --z-toast: 500;
  --z-camera: 600;
  --z-live: 700;

  /* Warna Live */
  --live-red: #FF2D55;
  --live-pink: #FF2D8B;

  /* Panel */
  --panel-bg: var(--bg-main);
  --panel-bg-soft: var(--bg-surface);
  --panel-line: var(--divider);
  --panel-line-soft: var(--divider-soft);
  --panel-text: var(--text-primary);
  --panel-text-soft: var(--text-secondary);
  --panel-text-muted: var(--text-muted);
  --panel-text-dim: var(--text-disabled);
  --panel-chevron: var(--text-disabled);
}

/* Pengaman lebar layar */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  position: fixed;
  overflow-x: clip;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  letter-spacing: 0.1px;
}

img, video, iframe, svg { max-width: 100%; }

/* ============================================
   2. APP WRAPPER (Mobile)
   ============================================ */
.app {
  position: relative;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  max-width: 480px;
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg-main);
}

.app.preview-active { overflow: hidden; }

/* ============================================
   3. TAB BAR (Atas)
   ============================================ */
.tabs-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--safe-top) + 8px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 12px;
  z-index: var(--z-tabs);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 12px;
  scroll-padding-right: 12px;
  background: transparent;
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  max-width: 100%;
}

.tabs-overlay::-webkit-scrollbar { display: none; }

.tabs-overlay .tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 6px;
  margin: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
  font-family: inherit;
  border-radius: 0;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tabs-overlay .tab.active {
  color: var(--cyan);
  font-weight: 700;
}

.tabs-overlay .tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  box-shadow: var(--glow-cyan);
}

.tabs-overlay .tab:active { color: var(--cyan); }

.tabs-overlay .tab.live-btn-tab {
  flex-shrink: 0;
  padding: 6px 8px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-overlay .tab.search-link {
  flex-shrink: 0;
  padding: 6px 8px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  text-decoration: none;
}

.tabs-overlay .tab.live-btn-tab svg,
.tabs-overlay .tab.search-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Live Icon */
.tabs-overlay .tab.live-btn-tab { padding: 7px 10px; min-width: 36px; }
.live-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  fill: none;
  display: block;
  transition: stroke 0.3s ease;
}
.live-icon .live-signal-arc { stroke: var(--text-primary); fill: none; transition: stroke 0.3s ease; }
.live-icon .live-signal-dot { fill: var(--text-primary); stroke: none; transition: fill 0.3s ease; }
.live-icon.is-live { stroke: #4ADE80; }
.live-icon.is-live .live-signal-arc { stroke: #4ADE80; animation: liveSignalPulse 1.5s ease-in-out infinite; }
.live-icon.is-live .live-signal-dot { fill: #4ADE80; animation: liveDotBlink 0.8s ease-in-out infinite; }
.live-icon.is-live .live-signal-arc:nth-of-type(2) { animation-delay: 0.2s; }

@keyframes liveSignalPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes liveDotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ============================================
   4. FEED UTAMA
   ============================================ */
.feed {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  z-index: var(--z-feed);
  background: var(--bg-video);
  min-width: 0;
  max-width: 100%;
}
.feed::-webkit-scrollbar { display: none; }

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
  background: var(--bg-video);
}

/* ============================================
   5. VIDEO CARD (Dalam Feed)
   ============================================ */
.video-card {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--bg-video);
}

.video-media {
  position: absolute;
  inset: 0;
  background: var(--bg-video);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-media video,
.video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-media.empty::before {
  content: '\25B6';
  font-size: 64px;
  color: rgba(255, 255, 255, 0.12);
}

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 48%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  z-index: var(--z-card-overlay);
}

/* ============================================
   6. AKSI VIDEO (Like, Comment, Share, dll)
   ============================================ */
.actions {
  position: absolute;
  right: calc(var(--safe-right) + 10px);
  bottom: calc(var(--safe-bottom) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: var(--z-actions);
}

.avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}

.avatar-creator {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  border: var(--line) solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.follow-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--bg-main);
  border: var(--line) solid var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 0;
  min-width: 46px;
  min-height: 46px;
  font-family: inherit;
  justify-content: center;
}

.action-btn .icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.action-btn .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.action-btn:active .icon { transform: scale(0.88); }

.action-btn .count {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1;
  min-height: 12px;
  font-weight: 500;
}

.action-btn.like.liked .icon svg { stroke: var(--pink); fill: rgba(255, 45, 139, 0.15); }
.action-btn.like.liked .count { color: var(--pink); }
.action-btn.save.saved .icon svg { stroke: var(--cyan); fill: rgba(0, 229, 255, 0.12); }
.action-btn.save.saved .count { color: var(--cyan); }

/* ============================================
   7. INFO VIDEO (Username, Caption, Hashtags)
   ============================================ */
.info {
  position: absolute;
  left: calc(var(--safe-left) + 16px);
  right: calc(var(--safe-right) + 76px);
  bottom: calc(var(--safe-bottom) + 12px);
  z-index: var(--z-actions);
  pointer-events: auto;
}

.username {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.video-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 400;
}

.hashtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.hashtag {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: var(--line-thin) solid rgba(0, 229, 255, 0.30);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.hashtag:active { background: rgba(0, 229, 255, 0.10); border-color: var(--cyan); }

/* ============================================
   8. BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  background: var(--bg-main);
  border-top: var(--line-thin) solid var(--divider);
  z-index: var(--z-nav);
  max-width: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  max-width: 80px;
  transition: color 0.2s;
}

.nav-icon { display: flex; align-items: center; justify-content: center; height: 24px; }
.nav-icon svg {
  width: 22px; height: 22px; display: block; fill: none;
  stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.nav-label {
  font-size: 10px; font-weight: 500; line-height: 1;
  white-space: nowrap; letter-spacing: 0.2px;
}

.nav-item.active .nav-icon, .nav-item.active .nav-label { color: var(--cyan); }

.nav-item.upload .nav-icon {
  background: transparent; color: var(--cyan);
  border: var(--line) solid var(--cyan);
  width: 42px; height: 26px; border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-cyan);
}

/* ============================================
   9. HALAMAN UMUM (Page, Header, Form)
   ============================================ */
.page { display: flex; flex-direction: column; background: var(--bg-main); }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 14px) 16px 14px;
  background: var(--bg-main);
  border-bottom: var(--line-thin) solid var(--divider);
  z-index: 10; flex-shrink: 0;
}

.page-header h1 { font-size: 16px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.3px; }

.back-btn {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); text-decoration: none;
}
.back-btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.page-content {
  flex: 1; overflow-y: auto; padding: 20px 16px;
  margin-bottom: calc(var(--nav-height) + var(--safe-bottom));
}
.page-content::-webkit-scrollbar { display: none; }

/* Form */
.form { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  margin-top: 12px; margin-bottom: 4px;
  letter-spacing: 0.3px; text-transform: uppercase;
}

.form input, .form textarea {
  width: 100%; background: var(--bg-input);
  border: var(--line) solid var(--border-input);
  border-radius: var(--radius-md); padding: 12px 14px;
  color: var(--text-primary); font-size: 14px;
  font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; font-weight: 400;
}

.form input:focus, .form textarea:focus { border-color: var(--border-focus); box-shadow: var(--glow-cyan); }
.form textarea { resize: vertical; min-height: 80px; }

.btn-primary {
  margin-top: 20px; padding: 13px; background: transparent;
  color: var(--cyan); border: var(--line) solid var(--cyan);
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; letter-spacing: 0.3px; transition: all 0.2s;
}

.btn-primary:active { background: rgba(0, 229, 255, 0.10); box-shadow: var(--glow-cyan); }
.btn-primary:disabled { color: var(--text-disabled); border-color: var(--border-input); background: transparent; cursor: not-allowed; opacity: 0.5; }

.btn-primary:not(:disabled) {
  color: #000; background: var(--cyan); border-color: var(--cyan);
  font-weight: 700; box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
.btn-primary:not(:disabled):active { background: var(--cyan); box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); transform: scale(0.98); }

.btn-secondary {
  margin-top: 12px; padding: 12px; background: none;
  color: var(--text-secondary); border: var(--line) solid var(--border-input);
  border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; letter-spacing: 0.2px; transition: all 0.2s;
}
.btn-secondary:active { border-color: var(--cyan); color: var(--cyan); }

/* Result / Info Box */
.result {
  margin-top: 20px; padding: 14px; background: var(--bg-surface);
  border: var(--line) solid var(--divider); border-radius: var(--radius-md);
  font-family: 'SF Mono', Monaco, monospace; font-size: 11px;
  color: var(--cyan); white-space: pre-wrap; word-break: break-all;
  min-height: 60px; display: none; letter-spacing: 0.2px;
}
.result.show { display: block; }
.result.error { color: #FF6B6B; border-color: rgba(255, 107, 107, 0.40); }

.info-box {
  margin-top: 24px; padding: 14px;
  background: rgba(0, 229, 255, 0.05);
  border: var(--line-thin) solid rgba(0, 229, 255, 0.20);
  border-radius: var(--radius-md); font-size: 12px;
  color: var(--text-secondary); line-height: 1.6; letter-spacing: 0.2px;
}

/* Empty State */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-icon { width: 56px; height: 56px; margin-bottom: 16px; color: var(--text-disabled); }
.empty-icon svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}
.empty-state h2 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* Auth Tabs */
.auth-tabs {
  display: flex; margin-bottom: 20px; background: var(--bg-input);
  border: var(--line-thin) solid var(--divider);
  border-radius: var(--radius-md); padding: 3px;
}
.auth-tab {
  flex: 1; background: none; border: none; color: var(--text-muted);
  font-size: 13px; font-weight: 500; padding: 10px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; transition: all 0.2s; letter-spacing: 0.2px;
}
.auth-tab.active { background: rgba(0, 229, 255, 0.10); color: var(--cyan); font-weight: 600; box-shadow: var(--glow-cyan); }
.hidden { display: none !important; }

/* ============================================
   10. PROFIL
   ============================================ */
.profile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(min(var(--safe-top), 8px) + 6px) 14px 14px;
  background: var(--bg-main);
  border-bottom: var(--line-thin) solid var(--divider);
  z-index: 10; flex-shrink: 0;
}

.profile-header-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  flex: 1; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding: 0 12px; letter-spacing: 0.3px;
}

.icon-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-primary);
  cursor: pointer; padding: 0; border-radius: 50%; transition: background 0.2s;
}
.icon-btn:active { background: rgba(255, 255, 255, 0.06); }
.icon-btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.profile-content { padding: 0; margin-bottom: calc(var(--nav-height) + var(--safe-bottom)); }

.profile-identity { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 16px; }

.profile-avatar {
  width: 92px; height: 92px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 600; color: var(--text-primary);
  border: var(--line) solid rgba(255, 255, 255, 0.30);
  overflow: hidden; box-shadow: var(--glow-soft);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-username {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-top: 16px; display: flex; align-items: center; gap: 6px; letter-spacing: 0.2px;
}

.profile-stats { display: flex; justify-content: center; align-items: center; gap: 44px; padding: 18px 20px; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 60px; }
.stat-value { font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.1; letter-spacing: 0.2px; }
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.3px; }

.profile-actions { display: flex; gap: 8px; padding: 0 20px 16px; }

.btn-follow {
  flex: 1; padding: 11px 16px; background: transparent; color: var(--pink);
  border: var(--line) solid var(--pink); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-follow.following { background: transparent; color: var(--text-secondary); border: var(--line) solid var(--border-input); }
.btn-follow:active { background: rgba(255, 45, 139, 0.10); }

.btn-icon-action {
  padding: 11px 14px; background: transparent; color: var(--text-primary);
  border: var(--line) solid var(--border-input); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-icon-action:active { border-color: var(--cyan); color: var(--cyan); }
.btn-icon-action svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.profile-bio { padding: 0 20px 18px; text-align: center; }
.profile-bio-line { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.5; font-weight: 400; }
.profile-bio-line.strong { color: var(--text-primary); font-weight: 600; }

.profile-tabs {
  display: flex; justify-content: space-around;
  border-bottom: var(--line-thin) solid var(--divider);
  border-top: var(--line-thin) solid var(--divider); margin-top: 8px;
}
.profile-tab {
  flex: 1; padding: 15px 0; background: none; border: none;
  color: var(--text-muted); cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: color 0.2s;
}
.profile-tab svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.profile-tab.active { color: var(--cyan); }
.profile-tab.active::after {
  content: ''; position: absolute; bottom: -1px; left: 25%; right: 25%;
  height: 1px; background: var(--cyan); box-shadow: var(--glow-cyan);
}

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 0; background: var(--divider); }
.grid-item { position: relative; aspect-ratio: 9 / 16; background: var(--bg-video); overflow: hidden; cursor: pointer; }
.grid-item-media {
  width: 100%; height: 100%; background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center; color: var(--text-disabled);
}
.grid-item-media svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1; }
.grid-item-media video, .grid-item-media img { width: 100%; height: 100%; object-fit: cover; }

.grid-item-views {
  position: absolute; bottom: 4px; left: 6px; color: var(--text-primary);
  font-size: 11px; font-weight: 500; display: flex; align-items: center;
  gap: 3px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.grid-item-views svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.profile-empty { padding: 48px 20px; text-align: center; color: var(--text-muted); }
.profile-empty svg {
  width: 44px; height: 44px; color: var(--text-disabled);
  margin-bottom: 12px; fill: none; stroke: currentColor; stroke-width: 1;
}
.profile-empty p { font-size: 13px; line-height: 1.55; }

/* Privacy Badge & Grid Lock */
.privacy-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--cyan);
  background: rgba(0, 229, 255, 0.10);
  border: 0.5px solid rgba(0, 229, 255, 0.40);
  padding: 2px 8px; border-radius: var(--radius-pill);
  letter-spacing: 0.3px; vertical-align: middle; margin-left: 6px;
}
.privacy-badge svg { width: 10px; height: 10px; stroke: currentColor; fill: none; display: block; }

.grid-item-lock {
  position: absolute; top: 6px; left: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 3;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none;
}
.grid-item-lock svg { width: 12px; height: 12px; stroke: #fff; fill: none; display: block; }

.grid-item-options {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.5); border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; z-index: 3; transition: all 0.2s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.grid-item-options:active { transform: scale(0.9); background: rgba(0, 0, 0, 0.7); }
.grid-item-options svg { width: 16px; height: 16px; display: block; }

/* ============================================
   11. INBOX (Kotak Masuk)
   ============================================ */
.inbox-tabs {
  display: flex; gap: 6px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg-main);
  border-bottom: var(--line-thin) solid var(--divider);
}
.inbox-tabs::-webkit-scrollbar { display: none; }

.inbox-tab {
  background: transparent; border: var(--line) solid var(--border-input);
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  padding: 7px 16px; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit; transition: all 0.2s; letter-spacing: 0.2px;
}
.inbox-tab.active {
  background: rgba(0, 229, 255, 0.10); border-color: var(--cyan);
  color: var(--cyan); font-weight: 600; box-shadow: var(--glow-cyan);
}
.inbox-tab:active { opacity: 0.85; }
.inbox-content { padding: 0; }

.inbox-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: var(--line-thin) solid var(--divider-soft); transition: background 0.2s;
}
.inbox-item:active { background: rgba(255, 255, 255, 0.03); }

.inbox-icon-badge {
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; background: transparent;
}
.inbox-icon-badge.like { border: var(--line) solid var(--pink); color: var(--pink); }
.inbox-icon-badge.comment { border: var(--line) solid var(--cyan); color: var(--cyan); }
.inbox-icon-badge.follow { border: var(--line) solid var(--ungu); color: var(--ungu); }
.inbox-icon-badge svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.inbox-text { flex: 1; min-width: 0; color: var(--text-primary); font-size: 13px; line-height: 1.45; font-weight: 400; }
.inbox-text strong { font-weight: 600; color: var(--cyan); }
.inbox-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; font-weight: 400; }

.inbox-empty { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.inbox-empty svg {
  width: 52px; height: 52px; color: var(--text-disabled);
  margin-bottom: 16px; fill: none; stroke: currentColor;
  stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}
.inbox-empty h2 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.inbox-empty p { font-size: 12px; line-height: 1.55; }

/* ============================================
   12. SEARCH
   ============================================ */
.search-header {
  display: flex; align-items: center; gap: 6px;
  padding: calc(var(--safe-top) + 6px) 10px 6px;
  background: var(--bg-main);
  border-bottom: var(--line-thin) solid var(--divider);
}
.search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 10px; width: 15px; height: 15px;
  color: var(--text-muted); pointer-events: none; fill: none;
  stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.search-input {
  width: 100%; background: var(--bg-input);
  border: var(--line) solid var(--border-input);
  border-radius: var(--radius-md); padding: 7px 30px 7px 32px;
  color: var(--text-primary); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-weight: 400;
}
.search-input:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.search-input::placeholder { color: var(--text-muted); }

.search-clear {
  position: absolute; right: 8px; width: 18px; height: 18px;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
.search-clear svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.search-header .icon-btn { width: 32px; height: 32px; }
.search-header .icon-btn svg { width: 18px; height: 18px; }

.search-tabs {
  display: flex; gap: 6px; padding: 8px 10px;
  background: var(--bg-main);
  border-bottom: var(--line-thin) solid var(--divider);
  overflow-x: auto; scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }

.search-tab {
  background: transparent; border: var(--line) solid var(--border-input);
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: all 0.2s; letter-spacing: 0.2px;
}
.search-tab:active, .search-tab.active {
  background: rgba(0, 229, 255, 0.10); border-color: var(--cyan);
  color: var(--cyan); font-weight: 600; box-shadow: var(--glow-cyan);
}

.search-content { padding: 0; }
.search-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 60px 24px; color: var(--text-muted);
}
.search-empty svg {
  width: 44px; height: 44px; color: var(--text-disabled);
  margin-bottom: 12px; fill: none; stroke: currentColor;
  stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}
.search-empty h2 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.search-empty p { font-size: 12px; line-height: 1.55; }
.search-loading { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

.search-user-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: var(--line-thin) solid var(--divider-soft);
  cursor: pointer; text-decoration: none; color: var(--text-primary); transition: background 0.2s;
}
.search-user-item:active { background: rgba(255, 255, 255, 0.03); }

.search-user-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-weight: 600; font-size: 15px;
  flex-shrink: 0; border: var(--line) solid rgba(255, 255, 255, 0.25); overflow: hidden;
}
.search-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.search-user-info { flex: 1; min-width: 0; }
.search-user-name {
  font-weight: 600; font-size: 13px; color: var(--text-primary);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; letter-spacing: 0.2px;
}
.search-user-username {
  font-size: 12px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-weight: 400;
}
.search-user-bio {
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.search-video-item {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: var(--line-thin) solid var(--divider-soft);
  cursor: pointer; text-decoration: none; color: var(--text-primary); transition: background 0.2s;
}
.search-video-item:active { background: rgba(255, 255, 255, 0.03); }

.search-video-thumb {
  width: 56px; height: 84px; border-radius: var(--radius-sm);
  background: var(--bg-surface); border: var(--line-thin) solid var(--divider);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-disabled); overflow: hidden;
}
.search-video-thumb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1; }
.search-video-thumb video, .search-video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-video-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.search-video-title {
  font-weight: 600; font-size: 13px; color: var(--text-primary);
  margin-bottom: 4px; line-height: 1.35; max-height: 2.7em;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; letter-spacing: 0.1px;
}
.search-video-meta {
  font-size: 11px; color: var(--text-muted); display: flex;
  align-items: center; gap: 6px; flex-wrap: wrap;
}
.search-video-meta .dot { width: 3px; height: 3px; background: var(--text-disabled); border-radius: 50%; }

.search-hashtag-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-bottom: var(--line-thin) solid var(--divider-soft);
  cursor: pointer; text-decoration: none; color: var(--text-primary); transition: background 0.2s;
}
.search-hashtag-item:active { background: rgba(255, 255, 255, 0.03); }

.search-hashtag-icon {
  width: 42px; height: 42px; border-radius: 50%; background: transparent;
  border: var(--line) solid rgba(0, 229, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--cyan); font-size: 18px; font-weight: 500;
}
.search-hashtag-info { flex: 1; min-width: 0; }
.search-hashtag-tag {
  font-weight: 600; font-size: 13px; color: var(--cyan);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; letter-spacing: 0.2px;
}
.search-hashtag-count { font-size: 11px; color: var(--text-muted); }

/* ============================================
   13. EDIT PROFIL
   ============================================ */
.edit-list { padding: 0; }
.edit-avatar-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px;
  border-bottom: var(--line-thin) solid var(--divider);
}
.edit-avatar-big {
  width: 92px; height: 92px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 600; color: var(--text-primary);
  border: var(--line) solid rgba(255, 255, 255, 0.30);
  overflow: hidden; box-shadow: var(--glow-soft); cursor: pointer; transition: transform 0.2s;
}
.edit-avatar-big:active { transform: scale(0.96); }
.edit-avatar-label {
  font-size: 12px; color: var(--cyan); font-weight: 500;
  margin-top: 14px; cursor: pointer; letter-spacing: 0.3px;
}

.edit-row { padding: 14px 16px; border-bottom: var(--line-thin) solid var(--divider-soft); transition: background 0.15s; }
.edit-row-label {
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px;
  font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase;
}
.edit-row-value {
  font-size: 14px; color: var(--text-primary); font-weight: 400;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: text; min-height: 22px;
}
.edit-row-value .chev {
  width: 16px; height: 16px; max-width: 16px; max-height: 16px;
  color: var(--text-muted); flex-shrink: 0; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.edit-row-value.placeholder { color: var(--text-disabled); font-style: normal; }
.edit-row-value.disabled { cursor: default; color: var(--text-muted); }
.edit-row-value.disabled .chev { opacity: 0.3; }

.edit-row-input {
  width: 100%; background: transparent; border: none;
  border-bottom: var(--line) solid var(--cyan);
  color: var(--text-primary); font-size: 14px; font-weight: 400;
  font-family: inherit; padding: 4px 0; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.edit-row-input:focus { border-bottom-color: var(--cyan); box-shadow: 0 1px 0 0 var(--glow-cyan); }

.edit-row-textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: var(--line) solid var(--cyan);
  color: var(--text-primary); font-size: 14px; font-weight: 400;
  font-family: inherit; padding: 4px 0; outline: none;
  resize: none; min-height: 50px; line-height: 1.45;
  transition: border-color 0.2s;
}
.edit-row-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.edit-row-hint .counter { color: var(--text-secondary); }

.edit-link-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.edit-link-row .edit-row-value { cursor: pointer; flex: 1; }

.btn-copy {
  background: transparent; border: var(--line) solid rgba(0, 229, 255, 0.35);
  color: var(--cyan); font-size: 11px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; flex-shrink: 0;
  letter-spacing: 0.3px; transition: all 0.2s;
}
.btn-copy:active { background: rgba(0, 229, 255, 0.10); box-shadow: var(--glow-cyan); }

/* ============================================
   14. TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(44, 45, 45, 0.96);
  border: var(--line) solid rgba(0, 229, 255, 0.40);
  color: var(--text-primary); font-size: 12px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius-pill);
  z-index: var(--z-toast); opacity: 0; transition: all 0.3s ease;
  pointer-events: none; box-shadow: var(--glow-cyan), var(--glow-soft);
  white-space: nowrap; letter-spacing: 0.3px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255, 107, 107, 0.55); box-shadow: 0 0 10px rgba(255, 107, 107, 0.25), var(--glow-soft); }

/* ============================================
   15. UTILITAS & LEGAL PAGES
   ============================================ */
.hairline-top { border-top: var(--line-thin) solid var(--divider); }
.hairline-bottom { border-bottom: var(--line-thin) solid var(--divider); }
.hairline-left { border-left: var(--line-thin) solid var(--divider); }
.hairline-right { border-right: var(--line-thin) solid var(--divider); }
.circle-outline { border: var(--line) solid var(--border-input); border-radius: 50%; }

.legal-content { padding: 20px 20px 40px; color: #ddd; line-height: 1.7; }
.legal-content h2 { font-size: 16px; font-weight: 700; color: #fff; margin-top: 24px; margin-bottom: 10px; line-height: 1.3; }
.legal-content h3 { font-size: 14px; font-weight: 600; color: #fff; margin-top: 16px; margin-bottom: 6px; }
.legal-content p { font-size: 14px; color: #bbb; margin-bottom: 12px; }
.legal-content ul { list-style: none; padding: 0; margin-bottom: 16px; }
.legal-content ul li { font-size: 14px; color: #bbb; padding-left: 20px; position: relative; margin-bottom: 6px; line-height: 1.6; }
.legal-content ul li::before { content: '•'; position: absolute; left: 6px; color: var(--cyan); font-weight: 700; }
.legal-content strong { color: #fff; font-weight: 600; }
.legal-content a { color: var(--cyan); text-decoration: none; }
.legal-content a:active { opacity: 0.7; }

.legal-meta { font-size: 12px; color: #666; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.legal-contact {
  display: inline-block; background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25); color: var(--cyan);
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: 8px; margin: 6px 0 16px; font-family: monospace;
}
.legal-note { font-size: 12px; color: #666; font-style: italic; }
.legal-links { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.legal-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #1A1A1A; border-radius: 10px;
  color: #fff !important; font-size: 14px; font-weight: 500; text-decoration: none;
}
.legal-link::after { content: '›'; color: #666; font-size: 20px; font-weight: 300; }
.legal-link:active { background: #222; }

.faq-item { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.faq-item:last-child { border-bottom: none; }

.about-logo {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 0 30px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.about-logo-icon {
  width: 72px; height: 72px; border-radius: 20px; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; color: #fff;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4); margin-bottom: 16px;
}
.about-title { font-size: 24px !important; font-weight: 800 !important; color: #fff !important; margin: 0 0 4px !important; padding: 0 !important; }
.about-tagline { font-size: 13px !important; color: #888 !important; margin: 0 !important; letter-spacing: 0.5px; }

.profile-footer { padding: 24px 20px 20px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.04); margin-bottom: calc(var(--nav-height) + var(--safe-bottom)); }
.footer-link { color: #888; font-size: 12px; text-decoration: none; padding: 4px 2px; }
.footer-link:active { color: var(--cyan); }
.footer-dot { color: #444; font-size: 12px; margin: 0 4px; }
.footer-copy { margin-top: 12px; font-size: 11px; color: #555; }

/* ============================================
   16. DRAWER MENU
   ============================================ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-drawer); display: none;
  animation: drawerFadeIn 0.2s ease; max-width: 480px; margin: 0 auto;
}
.drawer-overlay.show { display: flex; justify-content: flex-start; }

@keyframes drawerFadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  width: 70%; max-width: 280px; min-width: 0; height: 100%;
  background: #0B0B0B; border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column;
  animation: drawerSlideIn 0.25s ease; overflow-y: auto;
}
@keyframes drawerSlideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer::-webkit-scrollbar { display: none; }

.drawer-header {
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 14px) 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer; transition: background 0.2s;
}
.drawer-header:active { background: rgba(255, 255, 255, 0.03); }
.drawer-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: #fff;
  border: 1.5px solid #fff; flex-shrink: 0; overflow: hidden;
}
.drawer-user { flex: 1; min-width: 0; }
.drawer-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-username { font-size: 11px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }

.drawer-content { padding: 6px 0 30px; }
.drawer-section { padding: 8px 0; }
.drawer-section-title { font-size: 10px; font-weight: 500; color: #555; padding: 6px 16px 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.drawer-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  color: #fff; text-decoration: none; cursor: pointer;
  transition: background 0.15s; border: none; background: none;
  width: 100%; text-align: left; font-family: inherit;
}
.drawer-item:active { background: rgba(255, 255, 255, 0.04); }
.drawer-item.disabled { opacity: 0.4; cursor: not-allowed; }
.drawer-item-icon { width: 18px; height: 18px; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; }
.drawer-item-icon svg { width: 100%; height: 100%; fill: currentColor; }
.drawer-item-label { flex: 1; font-size: 13px; font-weight: 400; }
.drawer-item-badge { font-size: 9px; background: rgba(255, 255, 255, 0.06); color: #666; padding: 2px 6px; border-radius: 8px; font-weight: 500; }
.drawer-item-chev { width: 14px; height: 14px; color: #444; flex-shrink: 0; }

/* ============================================
   17. QR CODE MODAL
   ============================================ */
.qr-modal {
  background: #0B0B0B; border-radius: 16px; padding: 24px 20px;
  max-width: 340px; width: 90%; margin: auto; text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.qr-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.qr-box { background: #fff; border-radius: 12px; padding: 12px; display: inline-block; margin-bottom: 12px; }
.qr-img { display: block; width: 200px; height: 200px; }
.qr-link { font-size: 13px; color: var(--cyan); font-weight: 600; margin-bottom: 8px; word-break: break-all; font-family: monospace; }

/* ============================================
   18. SETTINGS
   ============================================ */
.settings-list { padding: 0; }
.settings-section { padding: 12px 0 8px; border-bottom: var(--line-thin) solid var(--divider); }
.settings-section:last-child { border-bottom: none; }
.settings-section-title { font-size: 10px; font-weight: 500; color: var(--text-muted); padding: 8px 16px 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.settings-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: var(--text-primary); text-decoration: none; cursor: pointer;
  transition: background 0.15s; border: none; background: none;
  width: 100%; text-align: left; font-family: inherit;
}
.settings-item:active { background: rgba(255, 255, 255, 0.03); }
.settings-item.danger .settings-item-label, .settings-item.danger .settings-item-icon { color: #FF6B6B; }

.settings-item-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
.settings-item-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.settings-item-label { flex: 1; font-size: 13px; font-weight: 400; color: var(--text-primary); }
.settings-item-value { font-size: 12px; color: var(--text-muted); margin-right: 4px; }
.settings-item-chev { width: 14px; height: 14px; color: var(--text-disabled); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.settings-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.settings-toggle input { opacity: 0; width: 0; height: 0; }
.settings-toggle-slider {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.10);
  border: var(--line-thin) solid var(--border-input);
  border-radius: 22px; cursor: pointer; transition: 0.2s;
}
.settings-toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px;
  left: 2px; top: 2px; background: var(--text-secondary);
  border-radius: 50%; transition: 0.2s;
}
.settings-toggle input:checked + .settings-toggle-slider { background: rgba(0, 229, 255, 0.20); border-color: var(--cyan); }
.settings-toggle input:checked + .settings-toggle-slider::before { transform: translateX(18px); background: var(--cyan); }

.settings-profile-header {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-bottom: var(--line-thin) solid var(--divider);
  cursor: pointer; transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.settings-profile-header:active { background: rgba(255, 255, 255, 0.03); }
.settings-profile-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: var(--text-primary);
  border: var(--line) solid rgba(255, 255, 255, 0.30);
  flex-shrink: 0; overflow: hidden;
}
.settings-profile-info { flex: 1; min-width: 0; }
.settings-profile-name { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-profile-username { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.settings-version { padding: 20px 16px 30px; text-align: center; font-size: 11px; color: var(--text-disabled); letter-spacing: 0.3px; }

/* ============================================
   19. ACTIVITY (Pusat Aktivitas)
   ============================================ */
.activity-tabs {
  display: flex; gap: 6px; padding: 10px 12px;
  background: var(--bg-main);
  border-bottom: var(--line-thin) solid var(--divider);
  overflow-x: auto; scrollbar-width: none;
}
.activity-tabs::-webkit-scrollbar { display: none; }

.activity-tab {
  background: transparent; border: var(--line) solid var(--border-input);
  color: var(--text-secondary); font-size: 12px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-pill);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit; transition: all 0.2s; letter-spacing: 0.2px;
}
.activity-tab.active { background: rgba(0, 229, 255, 0.10); border-color: var(--cyan); color: var(--cyan); font-weight: 600; box-shadow: var(--glow-cyan); }

.activity-content { padding: 0; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border-bottom: var(--line-thin) solid var(--divider-soft); transition: background 0.2s;
}
.activity-item:active { background: rgba(255, 255, 255, 0.03); }

.activity-icon {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; background: transparent;
}
.activity-icon.like { border: var(--line) solid var(--pink); color: var(--pink); }
.activity-icon.comment { border: var(--line) solid var(--cyan); color: var(--cyan); }
.activity-icon.follow { border: var(--line) solid var(--ungu); color: var(--ungu); }
.activity-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.activity-info { flex: 1; min-width: 0; }
.activity-text { font-size: 13px; color: var(--text-primary); line-height: 1.45; margin-bottom: 4px; font-weight: 400; }
.activity-text strong { font-weight: 600; color: var(--cyan); }
.activity-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.activity-meta .dot { width: 3px; height: 3px; background: var(--text-disabled); border-radius: 50%; }

.activity-thumb {
  width: 44px; height: 60px; border-radius: var(--radius-sm); background: var(--bg-surface);
  border: var(--line-thin) solid var(--divider); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-disabled); overflow: hidden;
}
.activity-thumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1; }

.activity-empty { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.activity-empty svg { width: 52px; height: 52px; color: var(--text-disabled); margin-bottom: 16px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.activity-empty h2 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.activity-empty p { font-size: 12px; line-height: 1.55; }

/* ============================================
   20. COMMENT PANEL (Bottom Sheet)
   ============================================ */
.comment-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-comment); display: none; align-items: flex-end; justify-content: center;
}
.comment-overlay.show { display: flex; animation: commentFadeIn 0.2s ease; }
@keyframes commentFadeIn { from { opacity: 0; } to { opacity: 1; } }

.comment-sheet {
  width: 100%; max-width: 480px; max-height: 75vh; background: var(--bg-main);
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  border-top: var(--line) solid var(--divider);
  display: flex; flex-direction: column;
  animation: commentSlideUp 0.3s ease; padding-bottom: var(--safe-bottom);
}
@keyframes commentSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.comment-header {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 14px 16px 10px; border-bottom: var(--line-thin) solid var(--divider); flex-shrink: 0;
}
.comment-drag-handle {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; background: var(--text-disabled);
  border-radius: 2px; opacity: 0.5;
}
.comment-title { font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.3px; }
.comment-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; background: none; border: none;
  color: var(--text-secondary); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
}
.comment-close:active { background: rgba(255, 255, 255, 0.06); }
.comment-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.comment-list { flex: 1; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.comment-list::-webkit-scrollbar { display: none; }
.comment-loading, .comment-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.comment-empty h3 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.comment-empty p { font-size: 12px; line-height: 1.55; }

.comment-item { display: flex; gap: 10px; padding: 10px 16px; transition: background 0.15s; }
.comment-item:active { background: rgba(255, 255, 255, 0.02); }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-weight: 600; font-size: 13px;
  flex-shrink: 0; border: var(--line) solid rgba(255, 255, 255, 0.20); overflow: hidden;
}
.comment-body { flex: 1; min-width: 0; }
.comment-username { font-size: 12px; font-weight: 600; color: var(--cyan); margin-bottom: 3px; letter-spacing: 0.2px; }
.comment-text { font-size: 13px; color: var(--text-primary); line-height: 1.45; word-break: break-word; margin-bottom: 4px; font-weight: 400; }
.comment-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-muted); }
.comment-meta .time { font-weight: 400; }

.comment-form {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: var(--line-thin) solid var(--divider);
  background: var(--bg-main); flex-shrink: 0;
}
.comment-input {
  flex: 1; background: var(--bg-input);
  border: var(--line) solid var(--border-input);
  border-radius: var(--radius-pill); padding: 10px 16px;
  color: var(--text-primary); font-size: 13px;
  font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; font-weight: 400;
}
.comment-input::placeholder { color: var(--text-muted); }
.comment-input:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.comment-send {
  width: 36px; height: 36px; border-radius: 50%; background: transparent;
  border: var(--line) solid var(--cyan); color: var(--cyan);
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.comment-send:disabled { border-color: var(--border-input); color: var(--text-disabled); cursor: not-allowed; }
.comment-send:not(:disabled):active { background: rgba(0, 229, 255, 0.10); box-shadow: var(--glow-cyan); }
.comment-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================
   21. ACTION BOTTOM SHEET (Share & Options)
   ============================================ */
.action-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-share); display: none; align-items: flex-end; justify-content: center;
}
.action-overlay.active { display: flex; animation: actionFadeIn 0.2s ease; }
@keyframes actionFadeIn { from { opacity: 0; } to { opacity: 1; } }

#actionOverlay.active { pointer-events: auto !important; }

.action-sheet {
  box-sizing: border-box; width: 100%; max-width: 480px;
  height: auto; max-height: min(72dvh, 560px);
  background: var(--bg-main); border-top-left-radius: 12px; border-top-right-radius: 12px;
  border-top: var(--line) solid var(--divider);
  display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--safe-bottom) + 6px);
  animation: actionSlideUp 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  transform: translateY(0); transition: transform 0.2s ease;
  position: relative; z-index: 451; pointer-events: auto !important;
}
@media (max-height: 600px) { .action-sheet { max-height: 82dvh; } }
@keyframes actionSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.action-sheet.dragging { animation: none; transition: none; }

#actionSheet button, #actionSheet a, #actionSheet input, #actionSheet [role="button"] { pointer-events: auto !important; }

.action-header {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 44px 10px; border-bottom: var(--line-thin) solid var(--divider);
  flex-shrink: 0; text-align: center;
}
.action-drag-handle {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 3px; background: var(--text-disabled);
  border-radius: 2px; opacity: 0.5; pointer-events: none;
}
.action-title { font-size: 14px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.2px; line-height: 1.2; margin: 0; }
.action-subtitle { font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.2px; line-height: 1.3; margin-top: 2px; }
.action-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; background: none; border: none;
  color: var(--text-secondary); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.15s;
  z-index: 20; pointer-events: auto !important; touch-action: manipulation;
}
.action-close:active { background: rgba(255, 255, 255, 0.06); }
.action-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.action-section-title {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  padding: 8px 14px 4px; letter-spacing: 0.3px;
  text-transform: uppercase; flex-shrink: 0;
}

.action-recipients {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding: 4px 14px 8px; flex-shrink: 0;
}
.action-recipients::-webkit-scrollbar { display: none; }

.recipient-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 50px; flex-shrink: 0; cursor: pointer; transition: opacity 0.15s; }
.recipient-item:active { opacity: 0.7; }
.recipient-item img, .recipient-item .recipient-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: var(--line) solid rgba(255, 255, 255, 0.20); background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 16px; font-weight: 600;
}
.recipient-item span { font-size: 10px; color: var(--text-secondary); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50px; letter-spacing: 0.1px; }
.recipient-item.invite .recipient-avatar { background: var(--bg-surface); border: var(--line) dashed var(--text-muted); color: var(--text-secondary); font-size: 20px; font-weight: 300; }

.action-divider { height: var(--line-thin); background: var(--divider); margin: 0 12px; flex-shrink: 0; }

.action-scroll-row {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding: 4px 12px 10px; flex-shrink: 0;
}
.action-scroll-row::-webkit-scrollbar { display: none; }

.action-sheet .action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  min-width: 56px; max-width: 56px; flex-shrink: 0;
  color: var(--text-primary); font-family: inherit;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.action-sheet.active .action-btn { opacity: 1; transform: translateY(0); }
.action-sheet .action-btn:active .action-icon-circle { transform: scale(0.92); background: var(--bg-elevated); }

.action-sheet .action-icon-circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-surface);
  border: var(--line-thin) solid var(--divider);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.action-sheet .action-icon-circle svg { width: 20px; height: 20px; stroke: var(--text-primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }

.action-sheet .action-label { font-size: 10px; color: var(--text-secondary); text-align: center; line-height: 1.2; max-width: 56px; word-break: break-word; letter-spacing: 0.1px; font-weight: 400; }
.action-sheet .action-btn.hidden { display: none; }

/* Stagger delay */
.action-sheet.active .action-btn:nth-child(1) { transition-delay: 0.04s; }
.action-sheet.active .action-btn:nth-child(2) { transition-delay: 0.08s; }
.action-sheet.active .action-btn:nth-child(3) { transition-delay: 0.12s; }
.action-sheet.active .action-btn:nth-child(4) { transition-delay: 0.16s; }
.action-sheet.active .action-btn:nth-child(5) { transition-delay: 0.20s; }
.action-sheet.active .action-btn:nth-child(6) { transition-delay: 0.24s; }
.action-sheet.active .action-btn:nth-child(7) { transition-delay: 0.28s; }
.action-sheet.active .action-btn:nth-child(8) { transition-delay: 0.32s; }
.action-sheet:not(.active) .action-btn { transition-delay: 0s; }

/* Skeleton Loading */
.action-recipients.skeleton { display: flex; gap: 14px; padding: 14px 16px 10px; }
.skeleton-recipient { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 60px; flex-shrink: 0; }
.skeleton-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(90deg, var(--bg-surface) 0%, var(--bg-elevated) 50%, var(--bg-surface) 100%); background-size: 200% 100%; animation: skeletonShimmer 1.4s ease-in-out infinite; }
.skeleton-name { width: 48px; height: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--bg-surface) 0%, var(--bg-elevated) 50%, var(--bg-surface) 100%); background-size: 200% 100%; animation: skeletonShimmer 1.4s ease-in-out infinite; }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Responsive Action Sheet */
@media (max-width: 360px) {
  .action-sheet .action-btn { min-width: 48px; max-width: 48px; }
  .action-sheet .action-icon-circle { width: 36px; height: 36px; }
  .action-sheet .action-icon-circle svg { width: 18px; height: 18px; }
  .action-sheet .action-label { font-size: 9px; max-width: 48px; }
  .recipient-item img, .recipient-item .recipient-avatar { width: 38px; height: 38px; }
  .recipient-item span { font-size: 9px; max-width: 46px; }
}
@media (min-width: 768px) {
  .action-sheet { max-width: 500px; border-radius: var(--radius-lg); margin-bottom: 20px; border: var(--line) solid var(--divider); }
}

/* ============================================
   22. UPLOAD VIDEO
   ============================================ */
.upload-picker {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 24px; background: var(--bg-input);
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all 0.2s ease; text-align: center; margin-bottom: 8px;
}
.upload-picker:active { border-color: var(--cyan); background: rgba(0, 229, 255, 0.05); }
.upload-picker-icon { width: 48px; height: 48px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.upload-picker-icon svg { width: 100%; height: 100%; max-width: 48px; max-height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
.upload-picker-text { font-size: 14px; font-weight: 500; color: var(--text-primary); letter-spacing: 0.2px; }
.upload-picker-hint { font-size: 12px; color: var(--text-muted); letter-spacing: 0.2px; }

.upload-preview { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: #000; margin-bottom: 8px; }
.upload-preview video { width: 100%; max-height: 400px; display: block; background: #000; }
.upload-preview-remove {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: all 0.2s;
}
.upload-preview-remove:active { transform: scale(0.9); background: rgba(255, 0, 0, 0.7); }
.upload-preview-remove svg { width: 16px; height: 16px; display: block; }

.upload-progress {
  position: relative; width: 100%; height: 32px; background: var(--bg-input);
  border: 1px solid var(--border-input); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 8px;
}
.upload-progress-bar {
  position: absolute; top: 0; left: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--ungu), var(--pink));
  transition: width 0.2s ease; border-radius: var(--radius-md);
}
.upload-progress-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff; letter-spacing: 0.5px;
  z-index: 2; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Duration & Source */
.video-source-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.video-source-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; background: #1a1a1a; color: #fff;
  border: 1px solid #2a2a2a; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.video-source-btn svg { width: 18px; height: 18px; }
.video-source-btn:active { background: #222; }

.duration-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.duration-opt {
  flex: 1; min-width: 80px; padding: 12px 10px;
  background: var(--bg-input); border: 1px solid var(--border-input);
  border-radius: var(--radius-md); color: var(--text-secondary);
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.duration-opt:active { transform: scale(0.97); }
.duration-opt.active { background: rgba(0, 229, 255, 0.10); border-color: var(--cyan); color: var(--cyan); font-weight: 600; box-shadow: 0 0 8px rgba(0, 229, 255, 0.25); }
.duration-opt-label { display: block; white-space: nowrap; }

.video-preview-overlay {
  position: relative; width: 100%; max-width: 100%; height: auto;
  background: var(--bg-input); border: 1px solid var(--border-input);
  border-radius: var(--radius-md); padding: 8px; margin: 6px 0 8px;
  display: none; flex-direction: column; align-items: stretch;
  justify-content: flex-start; gap: 8px; z-index: 1;
  animation: previewFadeIn 0.2s ease; box-sizing: border-box; overflow: hidden;
}
.video-preview-overlay.show { display: flex; }
.video-preview-overlay video { width: 100%; height: auto; max-height: clamp(26dvh, 38dvh, 46dvh); object-fit: contain; background: #000; border-radius: var(--radius-sm); display: block; }
@keyframes previewFadeIn { from { opacity: 0; } to { opacity: 1; } }
.video-preview-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.30); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; z-index: 5; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s;
}
.video-preview-close:active { transform: scale(0.9); background: rgba(0, 0, 0, 0.9); }
.video-preview-close svg { width: 16px; height: 16px; display: block; }
.video-preview-next {
  position: static; width: 100%; margin: 0; padding: clamp(9px, 1.4dvh, 13px) 14px;
  background: var(--cyan); color: #000; border: none;
  border-radius: var(--radius-md); font-size: clamp(12px, 1.6dvh, 14px);
  font-weight: 700; font-family: inherit; letter-spacing: 0.3px;
  cursor: pointer; box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
  transition: all 0.2s; text-align: center;
}
.video-preview-next:active { transform: scale(0.98); box-shadow: 0 0 20px rgba(0, 229, 255, 0.55); }

/* Scope khusus halaman upload */
.page-upload .page-header { padding: calc(var(--safe-top) + 8px) 14px 8px; }
.page-upload .page-header h1 { font-size: 15px; }
.page-upload .page-content { padding: clamp(10px, 1.8dvh, 18px) 14px; }
.page-upload .form { gap: 4px; }
.page-upload .form-label { font-size: 11px; margin-top: clamp(6px, 1dvh, 10px); margin-bottom: 2px; letter-spacing: 0.2px; }
.page-upload .form input, .page-upload .form textarea { padding: clamp(8px, 1.2dvh, 11px) 12px; font-size: 13px; border-radius: 8px; }
.page-upload .form textarea { min-height: clamp(48px, 7dvh, 70px); }
.page-upload .duration-picker { gap: 6px; margin-bottom: 6px; }
.page-upload .duration-opt { padding: clamp(6px, 1dvh, 10px) 6px; font-size: 12px; border-radius: 8px; min-width: 0; }
.page-upload .duration-opt-label { font-size: 12px; }
.page-upload .video-source-row { gap: 8px; margin-bottom: 6px; }
.page-upload .video-source-btn { padding: clamp(8px, 1.2dvh, 12px) 8px; font-size: 13px; border-radius: 10px; }
.page-upload .video-source-btn svg { width: 16px; height: 16px; }
.page-upload .upload-picker { padding: clamp(14px, 2.2dvh, 22px) 20px; gap: 4px; margin-bottom: 4px; }
.page-upload .upload-picker-text { font-size: 13px; }
.page-upload .upload-picker-hint { font-size: 11px; }
.page-upload .btn-primary { margin-top: clamp(10px, 1.6dvh, 16px); padding: clamp(10px, 1.4dvh, 13px); font-size: 13px; }
.page-upload .info-box { margin-top: clamp(10px, 1.6dvh, 16px); padding: 10px 12px; font-size: 11px; line-height: 1.5; }
.page-upload .upload-progress { height: 26px; margin-bottom: 4px; }
.page-upload .upload-progress-text { font-size: 11px; }

/* ============================================
   23. CAMERA OVERLAY
   ============================================ */
.camera-overlay {
  position: fixed; inset: 0; background: #000; z-index: var(--z-camera);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.camera-overlay #cameraStream { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

.camera-topbar {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: space-between;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top));
}
.camera-icon-btn {
  background: rgba(0, 0, 0, 0.45); color: #fff; border: none;
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.camera-icon-btn svg { width: 20px; height: 20px; }

.camera-timer {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.35); padding: 6px 14px; border-radius: 20px;
  z-index: 2; pointer-events: none;
}

.camera-bottombar {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.camera-bottombar .camera-icon-btn { width: auto; height: auto; border-radius: 20px; padding: 8px 14px; font-size: 13px; }

.camera-record-btn {
  width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff;
  background: transparent; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.camera-record-inner { width: 58px; height: 58px; border-radius: 50%; background: #fe2c55; transition: all 0.15s ease; }
.camera-record-btn.recording .camera-record-inner { width: 28px; height: 28px; border-radius: 6px; background: #fe2c55; }

/* ============================================
   24. PRIVACY SETTINGS
   ============================================ */
.page-privacy .privacy-content { padding: 0 0 40px; margin-bottom: calc(var(--nav-height) + var(--safe-bottom)); }
.privacy-intro { font-size: 13px; line-height: 1.55; color: var(--text-secondary); padding: 16px 16px 8px; letter-spacing: 0.2px; }
.privacy-note { font-size: 11px; line-height: 1.55; color: var(--text-muted); padding: 16px 20px 0; text-align: center; letter-spacing: 0.2px; }
.page-privacy .settings-section { padding: 8px 0 4px; border-bottom: var(--line-thin) solid var(--divider); }
.page-privacy .settings-section:last-of-type { border-bottom: none; }
.page-privacy .settings-section-title { font-size: 10px; font-weight: 500; color: var(--text-muted); padding: 12px 16px 6px; text-transform: uppercase; letter-spacing: 0.5px; }

.settings-item-col { display: block; padding: 14px 16px; }
.settings-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.settings-item-col .settings-item-label { font-size: 13px; font-weight: 500; color: var(--text-primary); letter-spacing: 0.2px; }
.settings-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.settings-item-text .settings-item-label { font-size: 13px; font-weight: 400; color: var(--text-primary); }
.settings-item-hint { font-size: 11px; color: var(--text-muted); line-height: 1.4; letter-spacing: 0.2px; }

.privacy-radios { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.privacy-radio { display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; position: relative; }
.privacy-radio:active { background: var(--divider-soft); }
.privacy-radio input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.privacy-radio-dot { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--border-input); background: transparent; position: relative; margin-top: 1px; transition: border-color 0.2s, background 0.2s; }
.privacy-radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: transparent; transition: background 0.2s; }
.privacy-radio input[type="radio"]:checked + .privacy-radio-dot { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.privacy-radio input[type="radio"]:checked + .privacy-radio-dot::after { background: var(--cyan); }
.privacy-radio-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.privacy-radio-text strong { font-size: 13px; font-weight: 500; color: var(--text-primary); letter-spacing: 0.2px; }
.privacy-radio-text small { font-size: 11px; color: var(--text-muted); line-height: 1.4; letter-spacing: 0.2px; }

.settings-item.privacy-action { background: none; border: none; font-family: inherit; width: 100%; text-align: left; cursor: pointer; padding: 12px 16px; }
.settings-item.privacy-action:active { background: var(--divider-soft); }
.settings-item.privacy-action .settings-item-chev { width: 14px; height: 14px; color: var(--text-disabled); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.settings-item.privacy-action.danger .settings-item-label, .settings-item.privacy-action.danger .settings-item-icon { color: #FF6B6B; }
.settings-item.privacy-action.danger .settings-item-icon svg { stroke: #FF6B6B; }

/* ============================================
   25. LIVE PAGE
   ============================================ */
.live-app { background: #000; }
.live-page { position: absolute; inset: 0; background: #000; overflow: hidden; display: flex; flex-direction: column; z-index: var(--z-live); }
.live-video { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.live-video video, .live-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: rgba(255, 255, 255, 0.4); }
.live-video-placeholder svg { width: 72px; height: 72px; opacity: 0.5; }
.live-video-hint { font-size: 13px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.3px; }

.live-top {
  position: absolute; top: 0; left: 0; right: 0;
  padding: calc(var(--safe-top) + 12px) 12px 12px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 10; pointer-events: none;
}
.live-streamer { display: flex; align-items: center; gap: 10px; pointer-events: auto; flex: 1; min-width: 0; }
.live-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  border: 1.5px solid #fff; flex-shrink: 0; overflow: hidden;
}
.live-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.live-streamer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.live-streamer-name { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.live-streamer-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.85); }

.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--live-red); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}
.live-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: liveBadgePulse 1.2s ease-in-out infinite; }
@keyframes liveBadgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-viewers { display: inline-flex; align-items: center; font-weight: 600; color: #fff; }
.live-viewers::before { content: '👁 '; font-size: 10px; margin-right: 2px; }

.live-follow-btn {
  background: var(--live-red); color: #fff; border: none; border-radius: 6px;
  font-size: 12px; font-weight: 700; padding: 6px 12px;
  cursor: pointer; font-family: inherit; transition: all 0.15s; flex-shrink: 0;
}
.live-follow-btn:active { transform: scale(0.95); opacity: 0.85; }
.live-follow-btn.following { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; }

.live-close-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  pointer-events: auto; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0; transition: all 0.2s;
}
.live-close-btn:active { transform: scale(0.9); background: rgba(0,0,0,0.8); }
.live-close-btn svg { width: 18px; height: 18px; }

.live-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 12px calc(var(--safe-bottom) + 12px);
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 10; display: flex; flex-direction: column; gap: 10px;
}

.live-chat { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; pointer-events: auto; }
.live-chat::-webkit-scrollbar { display: none; }
.live-chat-item {
  display: flex; align-items: flex-start; gap: 6px; padding: 5px 8px;
  background: rgba(0,0,0,0.4); border-radius: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12px; line-height: 1.35; max-width: 85%; align-self: flex-start;
  animation: liveChatIn 0.25s ease;
}
@keyframes liveChatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.live-chat-user { color: var(--cyan); font-weight: 600; flex-shrink: 0; }
.live-chat-text { color: #fff; word-break: break-word; }

.live-actions { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.live-chat-form {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 4px 4px 4px 14px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0;
}
.live-chat-input { flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; font-family: inherit; outline: none; min-width: 0; }
.live-chat-input::placeholder { color: rgba(255,255,255,0.5); }

.live-chat-send {
  width: 32px; height: 32px; border-radius: 50%; background: var(--cyan);
  border: none; color: #000; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; padding: 0; transition: all 0.15s;
}
.live-chat-send:disabled { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); cursor: not-allowed; }
.live-chat-send:not(:disabled):active { transform: scale(0.9); }
.live-chat-send svg { width: 15px; height: 15px; }

.live-heart-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0; transition: all 0.15s;
}
.live-heart-btn:active { transform: scale(0.9); background: rgba(255, 45, 139, 0.25); border-color: var(--live-pink); }
.live-heart-btn svg { width: 20px; height: 20px; fill: var(--live-pink); stroke: none; }
.live-heart-count { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); pointer-events: none; white-space: nowrap; }

.live-share-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0; transition: all 0.15s;
}
.live-share-btn:active { transform: scale(0.9); background: rgba(255,255,255,0.20); }
.live-share-btn svg { width: 18px; height: 18px; }

.live-hearts { position: absolute; right: 12px; bottom: 80px; width: 60px; height: 200px; pointer-events: none; overflow: hidden; z-index: 15; }
.live-heart {
  position: absolute; bottom: 0; left: 50%; font-size: 24px; line-height: 1;
  color: var(--live-pink); animation: liveHeartFloat 2.5s ease-out forwards;
  text-shadow: 0 0 8px rgba(255, 45, 139, 0.6); will-change: transform, opacity;
}
@keyframes liveHeartFloat {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  15% { transform: translate(-50%, -20px) scale(1.1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--drift, 0px)), -200px) scale(0.9); opacity: 0; }
}

/* ============================================
   26. RESPONSIVE & MEDIA QUERIES
   ============================================ */
@media (max-width: 360px) {
  :root { --nav-height: 58px; }
  .nav-label { font-size: 9px; }
  .action-btn { gap: 2px; }
  .action-btn .icon { width: 24px; height: 24px; }
  .actions { gap: 16px; }
  .avatar-wrap, .avatar-creator { width: 42px; height: 42px; }
  .profile-stats { gap: 28px; }
  .stat-value { font-size: 15px; }
  .profile-avatar { width: 80px; height: 80px; font-size: 30px; }
  
  .tabs-overlay { gap: 4px; padding: 6px 6px; }
  .tabs-overlay .tab { font-size: 10px; padding: 5px 8px; letter-spacing: 0; }
  .tabs-overlay .tab svg { width: 14px; height: 14px; }

  .live-avatar { width: 36px; height: 36px; font-size: 14px; }
  .live-streamer-name { font-size: 12px; }
  .live-follow-btn { font-size: 11px; padding: 5px 10px; }
  .live-chat-item { font-size: 11px; }
  .live-chat-input { font-size: 12px; }
  .live-heart-btn, .live-share-btn { width: 36px; height: 36px; }
  .live-chat { max-height: 140px; }
}

@media (max-width: 320px) {
  .tabs-overlay { gap: 3px; padding: 4px 4px; }
  .tabs-overlay .tab { font-size: 9px; padding: 4px 6px; }
}

@media (min-width: 480px) {
  .app { border-left: var(--line-thin) solid var(--divider); border-right: var(--line-thin) solid var(--divider); }
}

@media (min-width: 768px) {
  body { background: #242525; }
  .app { box-shadow: 0 0 50px rgba(0, 229, 255, 0.05), 0 0 30px rgba(138, 43, 226, 0.04); }
  .live-page { max-width: 480px; left: 50%; right: auto; transform: translateX(-50%); border-left: var(--line-thin) solid var(--divider); border-right: var(--line-thin) solid var(--divider); }
  .app.live-app { width: 100%; max-width: none; margin: 0; left: 0; right: 0; box-sizing: border-box; }
}

/* Android Layout Fixes */
@media (max-height: 600px) {
  .tabs-overlay { top: max(var(--safe-top), var(--header-h-compact)); }
  .action-sheet { max-height: 82dvh; }
  .page-upload .page-header { padding: calc(var(--safe-top) + 4px) 12px 4px; }
  .page-upload .page-header h1 { font-size: 14px; }
  .page-upload .page-content { padding: 6px 10px; }
  .page-upload .form input, .page-upload .form textarea { padding: 7px 10px; font-size: 12.5px; }
  .page-upload .form textarea { min-height: 42px; }
  .page-upload .duration-opt-label, .page-upload .video-source-btn { font-size: 11.5px; }
  .page-upload .btn-primary { margin-top: 8px; padding: 9px; }
  .page-upload .info-box { margin-top: 8px; padding: 8px 10px; font-size: 10.5px; }
}

@media (max-height: 700px) {
  .page-upload .page-content { padding: 8px 12px; }
  .page-upload .form { gap: 2px; }
  .page-upload .form-label { margin-top: 4px; font-size: 10px; }
  .page-upload .duration-opt { padding: 6px 4px; }
  .page-upload .video-source-btn { padding: 8px 6px; }
  .page-upload .upload-picker { padding: 12px 16px; }
}

@media (max-height: 560px) {
  .page-upload .info-box { display: none; }
  .page-upload .form textarea { min-height: 38px; }
}

/* ============================================================
   27. MENU BUTTON (Tombol ☰ di Tab Bar) — BARU
   ============================================================ */
.tabs-overlay .tab.menu-btn-tab {
  flex-shrink: 0;
  padding: 7px 10px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tabs-overlay .tab.menu-btn-tab svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.tabs-overlay .tab.menu-btn-tab:active {
  background: rgba(255, 255, 255, 0.10);
  transform: scale(0.94);
}

.tabs-overlay .tab.menu-btn-tab:active svg {
  stroke: var(--cyan);
}

@media (max-width: 360px) {
  .tabs-overlay .tab.menu-btn-tab {
    min-width: 32px;
    padding: 6px 8px;
  }
  .tabs-overlay .tab.menu-btn-tab svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   28. DASHBOARD DESKTOP — BARU
   ============================================================ */

/* Layout dasar dashboard */
body.dashboard-active .dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: var(--bg-main);
}

body.dashboard-active .app,
body.dashboard-active .bottom-nav {
  display: none !important;
}

/* SIDEBAR KIRI */
.dashboard-sidebar,
aside.sidebar {
  width: 238px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: var(--line-thin) solid var(--divider);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

aside.sidebar::-webkit-scrollbar { width: 4px; }
aside.sidebar::-webkit-scrollbar-thumb { background: var(--divider-strong); border-radius: 2px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 20px;
  border-bottom: var(--line-thin) solid var(--divider);
  margin-bottom: 8px;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.sidebar-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  flex: 1;
}

/* OVERRIDE NAV ITEM UNTUK DESKTOP */
.dashboard-sidebar .nav-item,
aside.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  position: relative;
}

.dashboard-sidebar .nav-item:hover,
aside.sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.dashboard-sidebar .nav-item.active,
aside.sidebar .nav-item.active {
  background: rgba(0, 229, 255, 0.10);
  color: var(--cyan);
  font-weight: 600;
}

.dashboard-sidebar .nav-item.active::before,
aside.sidebar .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--cyan);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--cyan);
}

.dashboard-sidebar .nav-item-icon,
aside.sidebar .nav-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-sidebar .nav-item-icon svg,
aside.sidebar .nav-item-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-sidebar .nav-item-label,
aside.sidebar .nav-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-upload-primary {
  margin: 16px 24px 24px;
  padding: 12px;
  background-color: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-upload-primary:hover {
  background-color: var(--cyan);
  color: #000;
}
.btn-upload-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* MAIN CONTENT (TENGAH) */
.dashboard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background-color: var(--bg-main);
  overflow-y: auto;
}

.dashboard-main::-webkit-scrollbar { width: 6px; }
.dashboard-main::-webkit-scrollbar-thumb { background: #333; border-radius: 6px; }

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--divider);
  background-color: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dashboard-topbar h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 0 12px;
  height: 36px;
  width: 240px;
}
.search-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  margin-right: 8px;
}
.search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  font-size: 13px;
}

#pageContent {
  padding: 24px;
  flex: 1;
}

/* PANEL KANAN */
.dashboard-panel-right {
  width: 320px;
  min-width: 320px;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
}
.panel-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* GRID 6 KOLOM */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.feed-grid .video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background-color: #000;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--divider);
  transition: transform 0.2s;
}
.feed-grid .video-card:hover {
  transform: translateY(-2px);
  border-color: #555;
}

.feed-grid .video-card .info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  color: #fff;
}
.feed-grid .video-card .username {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feed-grid .video-card .video-title {
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-grid .video-card .actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* GRID 3 KOLOM */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}
.filter-tabs::-webkit-scrollbar { height: 4px; }
.filter-tab {
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.filter-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}
.filter-tab.active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}

/* Responsive Mobile View untuk Dashboard */
@media (max-width: 1024px) {
  .feed-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-panel-right { display: none; }
}
@media (max-width: 768px) {
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-sidebar { width: 72px; }
  .sidebar-brand-name, .nav-item-label { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .btn-upload-primary { padding: 12px; width: 40px; height: 40px; margin: 16px auto; }
  .btn-upload-primary span { display: none; }
}

/* ============================================================
   29. SMALL UTILITIES — BARU
   ============================================================ */
.btn-secondary {
  background: transparent;
  border: var(--line) solid var(--border-input);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-secondary:active {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ============================================================
   30. ACCESSIBILITY — FOCUS VISIBLE
   ============================================================ */
.tabs-overlay .tab:focus-visible,
.nav-item:focus-visible,
.action-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.comment-send:focus-visible,
.action-close:focus-visible,
.comment-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   LAYAR VIDIO — DASHBOARD USER LAYOUT FIX
   Tempelkan di bagian PALING BAWAH style.css
   Tujuan: struktur rapi, scroll terkontrol, responsif
   ========================================================= */

:root {
  --lv-sidebar-width: 238px;
  --lv-right-panel-width: 300px;
  --lv-topbar-height: 68px;
  --lv-page-gap: 24px;
  --lv-border: rgba(255, 255, 255, 0.09);
  --lv-text: #f5f7fa;
  --lv-muted: #a5aab4;
}

/* Reset lebar agar tidak menimbulkan scroll horizontal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
}

body.dashboard-active {
  position: static;
  width: 100%;
  min-height: 100vh;
  height: auto;
  margin: 0;
  overflow-x: clip;
  overflow-y: auto;
}

/* Kerangka dashboard */
body.dashboard-active .app,
body.dashboard-active .bottom-nav {
  display: none !important;
}

body.dashboard-active .dashboard-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--bg-main, #202124);
}

/* Sidebar */
body.dashboard-active .sidebar {
  flex: 0 0 var(--lv-sidebar-width);
  width: var(--lv-sidebar-width);
  min-width: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--lv-border);
  scrollbar-width: thin;
}

body.dashboard-active .sidebar::-webkit-scrollbar,
body.dashboard-active .dashboard-main::-webkit-scrollbar,
body.dashboard-active .dashboard-panel-right::-webkit-scrollbar {
  width: 6px;
}

body.dashboard-active .sidebar::-webkit-scrollbar-thumb,
body.dashboard-active .dashboard-main::-webkit-scrollbar-thumb,
body.dashboard-active .dashboard-panel-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

/* Area utama: hanya satu area konten yang menggulir */
body.dashboard-active .dashboard-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 0;
  min-width: 0;
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

body.dashboard-active .dashboard-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: var(--lv-topbar-height);
  padding: 12px 24px;
  background: var(--bg-main, #202124);
  border-bottom: 1px solid var(--lv-border);
  backdrop-filter: blur(14px);
}

/* Konten halaman */
body.dashboard-active #pageContent {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding: var(--lv-page-gap);
  overflow: visible;
}

body.dashboard-active #pageTitle {
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
  color: var(--lv-text);
}

/* Panel kanan */
body.dashboard-active .dashboard-panel-right {
  flex: 0 0 var(--lv-right-panel-width);
  width: var(--lv-right-panel-width);
  min-width: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 16px;
  border-left: 1px solid var(--lv-border);
  scrollbar-width: thin;
}

/* Grid video dan kartu */
body.dashboard-active .feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
}

body.dashboard-active .feed-grid > *,
body.dashboard-active .video-card,
body.dashboard-active .dashboard-card {
  min-width: 0;
  max-width: 100%;
}

body.dashboard-active img,
body.dashboard-active video {
  max-width: 100%;
}

body.dashboard-active button,
body.dashboard-active input,
body.dashboard-active textarea,
body.dashboard-active select {
  max-width: 100%;
  font: inherit;
}

body.dashboard-active input,
body.dashboard-active textarea,
body.dashboard-active select {
  min-width: 0;
}

/* Navigasi sidebar */
body.dashboard-active .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  overflow-wrap: anywhere;
  border-radius: 10px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

body.dashboard-active .nav-item:focus-visible,
body.dashboard-active button:focus-visible,
body.dashboard-active a:focus-visible {
  outline: 2px solid var(--accent-cyan, #00e5ff);
  outline-offset: 3px;
}

body.dashboard-active .nav-item.active,
body.dashboard-active .nav-item[aria-current="page"] {
  background: rgba(0, 229, 255, 0.10);
  color: var(--accent-cyan, #00e5ff);
}

/* Tablet */
@media (max-width: 1200px) {
  :root {
    --lv-right-panel-width: 250px;
    --lv-page-gap: 20px;
  }

  body.dashboard-active .feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet kecil */
@media (max-width: 900px) {
  :root {
    --lv-sidebar-width: 76px;
    --lv-right-panel-width: 0px;
    --lv-page-gap: 16px;
  }

  body.dashboard-active .dashboard-panel-right {
    display: none;
  }

  body.dashboard-active .sidebar {
    align-items: center;
  }

  body.dashboard-active .nav-item {
    justify-content: center;
    padding-inline: 8px;
  }

  body.dashboard-active .nav-item span,
  body.dashboard-active .nav-item .nav-label {
    display: none;
  }

  body.dashboard-active .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* Ponsel */
@media (max-width: 600px) {
  body.dashboard-active .dashboard-layout {
    display: flex;
    flex-direction: column;
  }

  body.dashboard-active .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--lv-border);
  }

  body.dashboard-active .dashboard-main {
    width: 100%;
    min-height: 0;
  }

  body.dashboard-active .dashboard-topbar {
    top: 0;
    gap: 8px;
    padding: 12px 14px;
  }

  body.dashboard-active #pageContent {
    padding: 14px;
  }

  body.dashboard-active .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Hormati preferensi gerakan pengguna */
@media (prefers-reduced-motion: reduce) {
  body.dashboard-active *,
  body.dashboard-active *::before,
  body.dashboard-active *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   31. BRAND & LOGO VISIBILITY — LAYAR VIDIO
   ============================================================ */

/* Variabel brand — konsisten dengan :root utama */
:root {
  --lv-brand-size: 25px;
  --lv-logo-size: 46px;
}

/* Area brand: sidebar & varian brand/logo-brand */
.sidebar-brand,
.brand,
.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Logo (img / svg) — ukuran tetap & tidak menyusut */
.sidebar-brand img,
.brand img,
.logo-brand img,
.sidebar-brand svg,
.brand svg,
.logo-brand svg {
  width: var(--lv-logo-size);
  height: var(--lv-logo-size);
  flex: 0 0 var(--lv-logo-size);
  object-fit: contain;
  display: block;
}

/* Nama brand — selalu terlihat & tidak terpotong */
.sidebar-brand .brand-name,
.brand .brand-name,
.logo-brand .brand-name,
.sidebar-brand h1,
.brand h1,
.logo-brand h1 {
  font-size: var(--lv-brand-size);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

/* Pastikan sidebar tidak memotong brand */
.sidebar,
.sidebar-header {
  min-width: 0;
}

/* Responsif: brand mengecil di layar sempit */
@media (max-width: 768px) {
  :root {
    --lv-brand-size: 22px;
    --lv-logo-size: 40px;
  }
}

/* ============================================================
   32. BRAND & DASHBOARD LAYOUT — FINAL
   Menggantikan .sidebar-brand* dari section 28 & 31.
   Semua grid di-scope ke body.dashboard-active.
   ============================================================ */

/* ---------- BRAND (single source of truth) ---------- */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px 20px;
  overflow: visible;
  min-width: 0;
}

.sidebar-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  flex-shrink: 0;
}

.sidebar-brand-name {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.6px;
  white-space: nowrap;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  color: var(--text-primary);
}

/* ---------- LAYOUT DASHBOARD (guard) ---------- */
body.dashboard-active .dashboard-layout {
  min-height: 100vh;
}

body.dashboard-active .dashboard-main {
  min-width: 0;
}

body.dashboard-active #pageContent {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ---------- GRID MEDIA (scope ke dashboard) ---------- */
body.dashboard-active .video-grid,
body.dashboard-active .videos-grid,
body.dashboard-active .explore-grid,
body.dashboard-active .media-grid,
body.dashboard-active .friends-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  align-items: start;
}

body.dashboard-active .video-grid > *,
body.dashboard-active .videos-grid > *,
body.dashboard-active .explore-grid > *,
body.dashboard-active .media-grid > *,
body.dashboard-active .friends-grid > * {
  min-width: 0;
  box-sizing: border-box;
}

body.dashboard-active .video-grid img,
body.dashboard-active .videos-grid img,
body.dashboard-active .explore-grid img,
body.dashboard-active .media-grid img,
body.dashboard-active .friends-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 1100px) {
  body.dashboard-active .video-grid,
  body.dashboard-active .videos-grid,
  body.dashboard-active .explore-grid,
  body.dashboard-active .media-grid,
  body.dashboard-active .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

/* ---------- RESPONSIVE: PONSEL ---------- */
@media (max-width: 600px) {
  .sidebar-brand {
    padding: 14px;
    min-height: 68px;
    gap: 10px;
  }

  .sidebar-brand-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 25px;
    border-radius: 12px;
  }

  .sidebar-brand-name {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  body.dashboard-active .video-grid,
  body.dashboard-active .videos-grid,
  body.dashboard-active .explore-grid,
  body.dashboard-active .media-grid,
  body.dashboard-active .friends-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ============================================================
   33. JELAJAHI — KATEGORI, DESKRIPSI, EMPTY STATE
   Melengkapi renderDashboardExplore di app.js
   Tidak menimpa .explore-grid yang sudah ada (section 32)
   ============================================================ */

/* ---------- Deskripsi di bawah judul Jelajahi ---------- */
body.dashboard-active .explore-description,
.explore-description {
  margin: 6px 0 18px;
  color: var(--text-secondary, #b8b9b9);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  max-width: 640px;
}

/* ---------- Bar kategori (horizontal scroll, chip) ---------- */
body.dashboard-active .explore-categories,
.explore-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 2px;
  max-width: 100%;
}
body.dashboard-active .explore-categories::-webkit-scrollbar,
.explore-categories::-webkit-scrollbar { display: none; }

/* ---------- Chip kategori individual ---------- */
body.dashboard-active .explore-category,
.explore-category {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #b8b9b9);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

body.dashboard-active .explore-category:hover,
.explore-category:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #fff);
  border-color: rgba(255, 255, 255, 0.20);
}

body.dashboard-active .explore-category:active,
.explore-category:active {
  transform: scale(0.97);
}

/* Penanda kategori aktif */
body.dashboard-active .explore-category.active,
.explore-category.active {
  background: var(--cyan, #00e5ff);
  border-color: var(--cyan, #00e5ff);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

body.dashboard-active .explore-category:focus-visible,
.explore-category:focus-visible {
  outline: 2px solid var(--cyan, #00e5ff);
  outline-offset: 2px;
}

/* ---------- Empty state per kategori ---------- */
body.dashboard-active .explore-empty,
.explore-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted, #7a7b7b);
  border: 1px dashed rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 8px;
}

body.dashboard-active .explore-empty svg,
.explore-empty svg {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  opacity: 0.5;
  stroke: var(--text-muted, #7a7b7b);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.dashboard-active .explore-empty h3,
.explore-empty h3 {
  color: var(--text-primary, #fff);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
}

body.dashboard-active .explore-empty p,
.explore-empty p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: var(--text-muted, #7a7b7b);
}

/* ---------- Grid Jelajahi: pastikan seragam & di tengah ---------- */
/* Tidak menimpa section 32 — hanya memastikan ada max-width & centering */
body.dashboard-active .explore-grid {
  max-width: 1100px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* Responsif chip kategori di layar kecil */
@media (max-width: 600px) {
  body.dashboard-active .explore-category,
  .explore-category {
    padding: 7px 14px;
    font-size: 12px;
  }
  body.dashboard-active .explore-categories,
  .explore-categories {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  body.dashboard-active .explore-empty,
  .explore-empty {
    padding: 48px 16px;
  }
}

/* Hormati preferensi pengurangan gerak */
@media (prefers-reduced-motion: reduce) {
  body.dashboard-active .explore-category,
  .explore-category {
    transition: none;
  }
}

/* ============================================================
   34. FULL-WIDTH LAYOUT — HAPUS PANEL PESAN KANAN
   Membuat area konten utama mengambil seluruh lebar layar
   ============================================================ */

/* 1. Sembunyikan panel kanan (Pesan) secara total */
body.dashboard-active .dashboard-panel-right {
  display: none !important;
}

/* 2. Paksa area utama mengambil sisa lebar penuh */
body.dashboard-active .dashboard-main {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 3. Perbaiki Grid Video agar mengisi ruang kosong dengan rapi */
body.dashboard-active .feed-grid {
  display: grid;
  /* Menggunakan auto-fill agar kolom menyesuaikan lebar layar secara otomatis */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px;
  width: 100%;
}

/* 4. Penyesuaian khusus untuk layar Desktop Besar */
@media (min-width: 1200px) {
  body.dashboard-active .feed-grid {
    /* Minimal 4 kolom, maksimal 6 kolom tergantung lebar layar */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
}

/* 5. Pastikan area konten (pageContent) memiliki padding yang proporsional */
body.dashboard-active #pageContent {
  padding: 24px 32px !important;
  max-width: 1600px; /* Agar tidak terlalu melebar di monitor ultrawide */
  margin: 0 auto;
}

/* ============================================================
   35. FIX RESPONSIVE DASHBOARD (MOBILE & TABLET)
   Memperbaiki tampilan yang hilang saat layar dikecilkan,
   menghapus panel kanan, dan membuat layout full screen.
   ============================================================ */

/* 1. Sembunyikan panel kanan (Pesan) di SEMUA UKURAN LAYAR */
body.dashboard-active .dashboard-panel-right {
  display: none !important;
}

/* 2. Pastikan area utama mengambil lebar penuh */
body.dashboard-active .dashboard-main {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

/* 3. Perbaikan Topbar agar tidak hilang */
body.dashboard-active .dashboard-topbar {
  display: flex !important;
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  padding: 12px 16px;
}

/* 4. Perbaikan Konten saat layar mengecil (Mobile/Tablet) */
@media (max-width: 900px) {
  /* Ubah layout utama jadi vertikal (atas-bawah) */
  body.dashboard-active .dashboard-layout {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
  }

  /* Paksa Sidebar jadi menu horizontal di atas (opsional) 
     ATAU sembunyikan jika Anda punya Bottom Nav */
  body.dashboard-active .sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    border-right: none !important;
    border-bottom: 1px solid var(--lv-border);
    overflow-x: auto;
    flex-direction: row !important;
    padding: 8px !important;
  }
  
  /* Sembunyikan tulisan di sidebar, sisakan icon */
  body.dashboard-active .sidebar-brand-name,
  body.dashboard-active .nav-item-label {
    display: none !important;
  }

  /* Konten Utama */
  body.dashboard-active .dashboard-main {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Grid Video Full Screen (Menyesuaikan Lebar Layar) */
  body.dashboard-active .feed-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 12px !important;
    padding: 0 12px 24px !important;
  }
}

/* 5. Fix untuk HP (Sangat Kecil) */
@media (max-width: 600px) {
  /* Pastikan body bisa di-scroll bebas */
  body.dashboard-active {
    overflow-y: auto !important;
    position: relative !important;
    height: auto !important;
  }

  /* Grid jadi 2 Kolom di HP */
  body.dashboard-active .feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Sesuaikan tinggi video card agar tidak terlalu lonjong */
  body.dashboard-active .feed-grid .video-card {
    aspect-ratio: 3 / 4 !important; 
    height: auto !important;
  }

  /* Sesuaikan font info video */
  body.dashboard-active .feed-grid .video-card .info {
    padding: 8px !important;
  }
  body.dashboard-active .feed-grid .video-card .username {
    font-size: 11px !important;
  }
  body.dashboard-active .feed-grid .video-card .video-title {
    font-size: 10px !important;
  }
}

/* ============================================================
   36. MOBILE-FIRST RESPONSIVE FIX (TIKTOK STYLE)
   Layar HP: Tampilkan Feed Vertikal, Sembunyikan Dashboard.
   Layar Desktop: Tampilkan Dashboard Grid, Sembunyikan Feed.
   ============================================================ */

/* ==========================================
   1. TAMPILAN DESKTOP (Layar Lebar >= 768px)
   ========================================== */
@media (min-width: 768px) {
  /* Tampilkan Layout Dashboard */
  body.dashboard-active .dashboard-layout {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* Sembunyikan Feed Mobile ala TikTok */
  body.dashboard-active .app,
  body.dashboard-active .bottom-nav {
    display: none !important;
  }

  /* Bersihkan Layar: Hilangkan Panel Pesan Kanan */
  body.dashboard-active .dashboard-panel-right {
    display: none !important;
  }

  /* Konten Utama Mengambil Penuh Sisa Ruang */
  body.dashboard-active .dashboard-main {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    overflow-y: auto;
  }

  /* Grid Video Rapi & Responsif */
  body.dashboard-active .feed-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    padding: 24px !important;
  }
}

/* ==========================================
   2. TAMPILAN MOBILE / ANDROID (Layar Kecil < 768px)
   ========================================== */
@media (max-width: 767px) {
  /* 1. Paksa Body Bisa Di-scroll & Tidak Terpotong */
  body.dashboard-active {
    height: auto !important;
    overflow-y: auto !important;
    position: relative !important;
  }

  /* 2. Tampilkan Layout Dashboard */
  body.dashboard-active .dashboard-layout {
    display: flex !important;
  }

  /* 3. Tampilkan Feed Mobile (jika ada) */
  body.dashboard-active .app {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
  }

  /* 4. Tampilkan Navigasi Bawah (jika ada) */
  body.dashboard-active .bottom-nav {
    display: flex !important;
  }

  /* 5. Topbar dashboard TETAP tampil di HP */
  body.dashboard-active .dashboard-topbar {
    display: flex !important;
  }

  /* 6. Kartu Video di HP (Full Height) */
  body.dashboard-active .video-card {
    height: 100dvh !important;
    width: 100% !important;
    scroll-snap-align: start;
  }
}

/* ============================================================
   37. FIX TAB MENU BERTABRAKAN & GRID KOSONG DI DESKTOP
   ============================================================ */

/* 1. Sembunyikan TOTAL tab menu versi Mobile saat di Desktop */
@media (min-width: 768px) {
  body.dashboard-active .tabs-overlay {
    display: none !important;
  }
}

/* 2. Rombak Tampilan Tab Khusus Dashboard (Di Bawah Judul Beranda) */
body.dashboard-active .tabs-overlay.desktop-tabs {
  position: relative !important;
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
  background: transparent !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  border-bottom: 1px solid var(--divider) !important;
  gap: 24px !important;
}

body.dashboard-active .tabs-overlay.desktop-tabs .tab {
  font-size: 14px !important;
  padding: 10px 0 !important;
  color: var(--text-secondary) !important;
  text-shadow: none !important;
  font-weight: 500 !important;
}

body.dashboard-active .tabs-overlay.desktop-tabs .tab.active {
  color: var(--cyan) !important;
  font-weight: 700 !important;
}

body.dashboard-active .tabs-overlay.desktop-tabs .tab.active::after {
  bottom: -1px !important;
  height: 2px !important;
  width: 100% !important;
  left: 0 !important;
  transform: none !important;
}

/* 3. Paksa Header Konten (Judul Beranda & Tab) Tampil Rapi */
body.dashboard-active .feed-header {
  display: block !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

body.dashboard-active .feed-header h2 {
  font-size: 24px !important;
  margin-bottom: 12px !important;
}

/* 4. Pastikan Grid Video Tidak Kosong / Hilang */
body.dashboard-active .feed-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  min-height: 200px !important; /* Jaga-jaga jika video loading */
}

/* 5. Sembunyikan ikon chat di pojok kanan atas (jika itu yang bikin berantakan) */
body.dashboard-active .topbar-actions .icon-btn[data-action="chat"] {
  display: none !important;
}

/* ============================================================
   38. FINAL DASHBOARD FIX (Bersih, Full Width, Tanpa Konflik)
   ============================================================ */

/* 1. Sembunyikan Panel Kanan "Pesan" di semua layar */
body.dashboard-active .dashboard-panel-right {
  display: none !important;
}

/* 2. Area Utama Ambil Lebar Penuh */
body.dashboard-active .dashboard-main {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 3. Perbaiki Grid Video Desktop & HP */
body.dashboard-active .feed-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  min-height: 200px !important;
}

/* 4. Perbaikan Tab Menu (Saran/Mengikuti/Terbaru) di Bawah Judul "Beranda" */
/* INI YANG PALING PENTING: Hanya menurunkan posisi tab, TIDAK menyembunyikannya (agar JS jalan) */
body.dashboard-active .feed-header .tabs-overlay {
  position: relative !important;
  display: flex !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 0 !important;
  margin-top: 12px !important;
  margin-bottom: 20px !important;
  background: transparent !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  border-bottom: 1px solid var(--divider) !important;
  gap: 24px !important;
  overflow: visible !important;
}

body.dashboard-active .feed-header .tabs-overlay .tab {
  font-size: 14px !important;
  padding: 8px 0 !important;
  color: var(--text-secondary) !important;
  text-shadow: none !important;
  font-weight: 500 !important;
}

body.dashboard-active .feed-header .tabs-overlay .tab.active {
  color: var(--cyan) !important;
  font-weight: 700 !important;
}

body.dashboard-active .feed-header .tabs-overlay .tab.active::after {
  bottom: 0 !important;
  height: 2px !important;
  width: 100% !important;
  left: 0 !important;
  transform: none !important;
  box-shadow: var(--glow-cyan) !important;
}

/* 5. Responsif untuk Layar Kecil (HP/Tablet) */
@media (max-width: 768px) {
  body.dashboard-active .feed-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* Atur ulang layout dashboard agar tidak tumpang tindih di HP */
  body.dashboard-active .dashboard-layout {
    flex-direction: column !important;
  }
  
  body.dashboard-active .sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 8px !important;
  }
  
  body.dashboard-active .sidebar-brand-name,
  body.dashboard-active .nav-item-label {
    display: none !important; /* Sembunyikan teks sidebar di HP */
  }
}
