/* shared.css — Visoy Platform */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0f1117;
  --bg2: #161b24;
  --bg3: #1c2333;
  --card: #1a2030;
  --card2: #1e2638;
  --border: #2a3344;
  --green: #10b981;
  --green-dark: #059669;
  --green-dim: rgba(16,185,129,0.12);
  --green-dim2: rgba(16,185,129,0.2);
  --green-dim3: rgba(16,185,129,0.3);
  --accent: #10b981;
  --accent-dark: #059669;
  --text: #e8eaf0;
  --text2: #8b95a9;
  --text3: #5a6478;
  --yellow: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 14px;
}

/* ===== DARK MODE (default) ===== */
:root,
html[data-theme="dark"] {
  --bg:      #0f1117;
  --bg2:     #161b24;
  --bg3:     #1c2333;
  --card:    #1a2030;
  --card2:   #1e2638;
  --border:  #2a3344;
  --text:    #e8eaf0;
  --text2:   #8b95a9;
  --text3:   #5a6478;
}

/* ===== LIGHT MODE ===== */
html[data-theme="light"] {
  --bg:      #f0f2f5;
  --bg2:     #ffffff;
  --bg3:     #e8eaed;
  --card:    #ffffff;
  --card2:   #f5f7fa;
  --border:  #d1d9e0;
  --text:    #111827;
  --text2:   #4b5563;
  --text3:   #6b7280;
}
html[data-theme="light"] .balance-card {
  background: linear-gradient(135deg,#e6f4ee,#f0f9f4) !important;
}
html[data-theme="light"] tbody tr:hover {
  background: rgba(0,0,0,.03) !important;
}

/* ===== THEME TOGGLE ICON ===== */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== LIGHT MODE — logo, topbar, mobile menu ===== */

/* Logo text tetap terlihat */
html[data-theme="light"] .logo-text {
  background: linear-gradient(135deg, var(--green), #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Logo gambar (putih) diberi shadow agar terlihat */
html[data-theme="light"] .logo img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(400%) hue-rotate(115deg) brightness(95%);
}

/* Topbar shadow */
html[data-theme="light"] .topbar {
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

/* Nav links */
html[data-theme="light"] .nav a { color: var(--text2); }
html[data-theme="light"] .nav a:hover { background: var(--bg3); color: var(--text); }
html[data-theme="light"] .nav a.active { color: var(--green); }
html[data-theme="light"] .nav-dropdown-btn { color: var(--text2); }
html[data-theme="light"] .nav-dropdown-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
html[data-theme="light"] .user-pill { background: var(--bg3); }
html[data-theme="light"] .notif-btn { color: var(--text2); }

/* Mobile slide menu panel — override hardcoded dark colors */
html[data-theme="light"] .mobile-menu-panel {
  background: var(--bg2) !important;
  border-left: 1px solid var(--border) !important;
}
html[data-theme="light"] .mmp-nav-card {
  background: var(--card) !important;
}
html[data-theme="light"] .mmp-nav-card a {
  color: var(--text) !important;
  border-bottom-color: var(--border) !important;
}
html[data-theme="light"] .mmp-nav-card a:hover {
  background: var(--bg3) !important;
}
html[data-theme="light"] .mmp-nav-card a.active {
  color: var(--green) !important;
}
html[data-theme="light"] .mmp-ico svg {
  stroke: var(--text2) !important;
}
html[data-theme="light"] .mmp-nav-card a.active .mmp-ico svg {
  stroke: var(--green) !important;
}
html[data-theme="light"] .mmp-chev { color: var(--text3) !important; }
html[data-theme="light"] .mmp-user-card {
  background: var(--card) !important;
}
html[data-theme="light"] .mmp-user-row {
  border-bottom-color: var(--border) !important;
}
html[data-theme="light"] .mmp-uname { color: var(--text) !important; }
html[data-theme="light"] .mmp-x button {
  background: var(--bg3) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

/* Bottom nav */
html[data-theme="light"] .bottom-nav {
  background: var(--bg2) !important;
  border-top-color: var(--border) !important;
}
html[data-theme="light"] .bn-item { color: var(--text3); }
html[data-theme="light"] .bn-item.active { color: var(--green); }


/* ===== BODY — pakai var() tanpa !important ===== */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background .25s, color .25s;
}
a { text-decoration: none; color: inherit; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--green), #06b6d4);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: white;
}
.logo-text {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--green), #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.nav {
  display: flex; align-items: center; gap: 2px;
}
.nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--text2);
  transition: all 0.15s;
}
.nav a:hover { background: var(--bg3); color: var(--text); }
.nav a.active { color: var(--green); border-bottom: 2px solid var(--green); border-radius: 0; }
.nav-icon { font-size: 15px; }
.topbar-right {
  display: flex; align-items: center; gap: 12px;
}
.notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--text2); font-size: 18px; padding: 6px;
  border-radius: 8px; transition: background 0.15s;
}
.notif-btn:hover { background: var(--bg3); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 12px 6px 6px;
  cursor: pointer; transition: background 0.15s;
  font-size: 13px; font-weight: 600;
}
.user-pill:hover { background: var(--card); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: white;
}

/* ===== BANNERS ===== */
.banners { max-width: 1200px; margin: 0 auto; padding: 16px 24px 0; }
.banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-radius: 10px;
  margin-bottom: 8px; font-size: 13px;
}
.banner-tg { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); }
.banner-sys { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.dot-blue { background: var(--blue); }
.dot-yellow { background: var(--yellow); }
.banner-left { display: flex; align-items: center; gap: 0; }
.btn-join {
  background: var(--blue); color: white;
  border: none; border-radius: 8px; padding: 6px 16px;
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-join:hover { opacity: 0.85; }

/* ===== PAGE LAYOUT ===== */
.page {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 24px 48px;
}
.page-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--text2); margin-bottom: 24px; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative; overflow: hidden;
}
.stat-label {
  font-size: 12px; color: var(--text2); font-weight: 600;
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.stat-value { font-size: 24px; font-weight: 800; }
.stat-icon-bg {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 40px; opacity: 0.08;
}

/* ===== BALANCE CARD ===== */
.balance-card {
  background: linear-gradient(135deg, #1a2a1e 0%, #1a2030 60%);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.balance-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 8px;
}
.balance-amount { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.balance-rp { font-size: 13px; color: var(--text3); margin-top: 4px; }
.btn-withdraw {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; border: none; border-radius: 12px;
  padding: 12px 28px; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s, transform 0.1s;
}
.btn-withdraw:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== GRIDS ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title { font-size: 16px; font-weight: 800; }
.view-all { font-size: 13px; color: var(--green); font-weight: 600; }
.view-all:hover { text-decoration: underline; }

/* ===== TAB PILLS ===== */
.tab-pills { display: flex; gap: 4px; margin-bottom: 20px; }
.tab-pill {
  padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); transition: all 0.15s;
}
.tab-pill.active { background: var(--green); border-color: var(--green); color: white; }
.tab-pill:hover:not(.active) { background: var(--card); color: var(--text); }

/* ===== CHART AREA ===== */
.chart-wrap {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 28px;
}
.chart-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px;
}
.chart-meta-item label { font-size: 12px; color: var(--text2); font-weight: 600; }
.chart-meta-item .big { font-size: 28px; font-weight: 900; margin-top: 4px; }
.chart-canvas-wrap { position: relative; height: 200px; }
canvas { width: 100% !important; }
.chart-legend {
  display: flex; gap: 16px; justify-content: flex-end;
  margin-bottom: 10px; font-size: 12px;
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 56px 20px;
  color: var(--text3);
}
.empty-icon { font-size: 42px; margin-bottom: 14px; opacity: 0.4; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text2); margin-bottom: 6px; }
.empty-sub { font-size: 13px; margin-bottom: 20px; }
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white; border: none; border-radius: 10px;
  padding: 11px 24px; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-green:hover { opacity: 0.9; }

/* ===== TABLE ===== */
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 12px; font-weight: 700;
  color: var(--text3); padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.5px;
}
tbody tr {
  border-bottom: 1px solid rgba(42,51,68,0.5);
  transition: background 0.1s;
}
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 14px 16px; font-size: 14px; }
.rank { font-weight: 800; color: var(--text2); }
.rank-1 { color: var(--yellow); }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #cd7f32; }
.username { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.verified { color: var(--blue); font-size: 14px; }
.earning { font-weight: 800; color: var(--green); }

/* ===== LEADERBOARD TABS ===== */
.lb-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.lb-tab {
  padding: 9px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  transition: all 0.15s;
}
.lb-tab.active { background: var(--green); border-color: var(--green); color: white; }

/* ===== EVENTS ===== */
.featured-event {
  background: linear-gradient(135deg, #1a2a22 0%, #1e2638 100%);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius); padding: 28px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.featured-event::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
}
.featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
  border-radius: 6px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: var(--green);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.featured-event h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.featured-event p { font-size: 13px; color: var(--text2); }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.program-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.program-card:hover { border-color: var(--green); transform: translateY(-2px); }
.program-icon { font-size: 22px; margin-bottom: 10px; }
.program-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.program-link { font-size: 12px; color: var(--green); font-weight: 600; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rule-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.rule-icon { font-size: 20px; margin-bottom: 8px; }
.rule-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.rule-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ===== WITHDRAW ===== */
.withdraw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.w-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.w-card label { font-size: 12px; color: var(--text2); font-weight: 600; margin-bottom: 8px; display: block; }
.w-card .amount { font-size: 28px; font-weight: 900; color: var(--green); }
.request-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.request-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.input-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.input-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.withdraw-all { font-size: 13px; color: var(--green); font-weight: 600; cursor: pointer; }
.amount-input-wrap { position: relative; margin-bottom: 8px; }
.amount-input-wrap .dollar {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--text2); font-weight: 700;
}
.amount-input-wrap input {
  width: 100%; padding: 13px 14px 13px 30px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 700; outline: none;
  transition: border-color 0.2s;
}
.amount-input-wrap input:focus { border-color: var(--green); }
.input-hint { font-size: 12px; color: var(--text3); margin-bottom: 16px; }
.input-hint span { color: var(--green); }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border: none; border-radius: 12px;
  color: white; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }

/* ===== MY VIDEOS ===== */
.videos-toolbar {
  display: flex; gap: 12px; margin-bottom: 20px; align-items: center;
}
.search-input-wrap { flex: 1; position: relative; }
.search-input-wrap input {
  width: 100%; padding: 11px 14px 11px 42px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.search-input-wrap input:focus { border-color: var(--green); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text3); font-size: 16px;
}
.btn-search {
  background: none; border: none; cursor: pointer; color: var(--text3);
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
}
.videos-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.videos-meta h2 { font-size: 20px; font-weight: 800; }
.storage-info { font-size: 13px; color: var(--text2); text-align: right; }
.storage-amount { font-size: 18px; font-weight: 800; color: var(--text); }
.action-btns { display: flex; gap: 12px; margin-bottom: 14px; }
.btn-yellow {
  flex: 1; padding: 12px;
  background: var(--yellow); color: #111; border: none; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity 0.2s;
}
.btn-yellow:hover { opacity: 0.9; }
.btn-green-outline {
  flex: 1; padding: 12px;
  background: var(--green); color: white; border: none; border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity 0.2s;
}
.btn-green-outline:hover { opacity: 0.9; }
.secondary-btns { display: flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sec-btn {
  flex: 1; padding: 10px; background: var(--card2); border: none;
  color: var(--text2); font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.15s;
  border-right: 1px solid var(--border);
}
.sec-btn:last-child { border-right: none; }
.sec-btn:hover { background: var(--bg3); color: var(--text); }
.select-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding: 0 4px;
}
.select-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
.select-label input { width: 15px; height: 15px; }
.hide-folder { font-size: 13px; color: var(--text2); }

/* ===== UPLOAD ===== */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 64px 20px; text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--green); background: var(--green-dim); }
.upload-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.6; }
.upload-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.upload-sub { font-size: 13px; color: var(--text3); }
.dest-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.dest-label {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 6px;
}
.dest-select {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
  font-family: inherit; cursor: pointer; outline: none;
  appearance: none; padding-right: 28px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }


/* ============================================================
   MOBILE RESPONSIVE + BOTTOM NAVBAR
   ============================================================ */


/* ============================================================
   MOBILE RESPONSIVE — Visoy
   ============================================================ */

/* Hide mobile-only elements on desktop */
.bottom-nav            { display: none !important; }
.mobile-menu-overlay   { display: none; }
.mobile-menu-panel     { display: none; }

/* ── MOBILE ≤768px ─────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hide desktop nav */
  .topbar .nav       { display: none; }
  .topbar .user-pill { display: none; }
  .topbar .notif-btn { display: none; }

  .topbar-inner {
    padding: 0 16px;
    height: 56px;
    justify-content: space-between;
  }

  /* Show notif + user on mobile topbar */
  .mobile-topbar-right {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .banners { padding: 10px 14px 0; }
  .banner  { font-size: 12px; padding: 8px 12px; flex-wrap: wrap; gap: 6px; }

  .page { padding: 18px 14px 90px; }

  /* Balance */
  .balance-card {
    padding: 20px 18px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .balance-amount { font-size: 30px; }
  .btn-withdraw   { width: 100%; padding: 13px; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-card  { padding: 14px 14px; }
  .stat-value { font-size: 20px; }

  /* Chart */
  .chart-meta-item .big { font-size: 22px; }
  .chart-canvas-wrap    { height: 160px; }

  /* Table scroll */
  .card        { overflow-x: auto; }
  table        { min-width: 380px; }
  thead th, tbody td { padding: 10px 12px; font-size: 13px; }

  /* Events */
  .programs-grid   { grid-template-columns: repeat(2,1fr); }
  .rules-grid      { grid-template-columns: 1fr; }
  .featured-event  { flex-direction: column; gap: 14px; align-items: flex-start; }
  .featured-event h2         { font-size: 20px; }
  .featured-event .btn-green { width: 100%; }

  /* Withdraw */
  .withdraw-cards { grid-template-columns: 1fr; }

  /* Upload */
  .upload-zone { padding: 40px 14px; }

  /* Videos */
  .action-btns { flex-direction: column; gap: 8px; }
  .btn-yellow, .btn-green-outline { width: 100%; }

  .page-title { font-size: 20px; }

  /* ── BOTTOM NAV ──────────────────────────────────────────── */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    z-index: 200;
    align-items: stretch;
  }

  /* Each tab item */
  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text3);
    font-size: 10px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 2px 4px;
    transition: color 0.15s;
  }
  .bn-item svg {
    width: 24px; height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bn-item.active       { color: var(--green); }
  .bn-item.active svg   { stroke: var(--green); }
  .bn-item:hover        { color: var(--text); }

  /* Center upload — plain + icon */
  .bn-item.bn-upload svg { stroke: var(--text3); }
  .bn-item.bn-upload     { color: var(--text3); }

  /* ── SLIDE MENU OVERLAY ──────────────────────────────────── */
  .mobile-menu-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
  }
  .mobile-menu-overlay.open { display: block; }

  /* Panel */
  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 82%;
    max-width: 310px;
    background: var(--bg2);
    z-index: 301;
    transform: translateX(110%);
    transition: transform 0.26s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden; /* panel tidak scroll — nav card yang scroll */
    padding: 12px 12px 0;
    gap: 10px;
  }
  .mobile-menu-panel.open { transform: translateX(0); }

  /* X button */
  .mmp-x {
    display: flex; justify-content: flex-start;
    margin-bottom: 2px;
  }
  .mmp-x button {
    width: 30px; height: 30px;
    background: var(--bg3);
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }

  /* Nav card — bisa scroll jika konten panjang */
  .mmp-nav-card {
    background: var(--card2);
    border-radius: 16px;
    overflow-y: auto; /* nav card yang scroll */
    flex: 1 1 auto;   /* ambil sisa ruang */
    min-height: 0;    /* wajib agar flex child bisa scroll */
  }

  /* Each nav row */
  .mmp-nav-card a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
  }
  .mmp-nav-card a:last-child { border-bottom: none; }
  .mmp-nav-card a:hover      { background: var(--bg3); }
  .mmp-nav-card a.active     { color: var(--green); }
  .mmp-nav-card a.active .mmp-ico svg { stroke: var(--green); }

  /* Icon in menu */
  .mmp-ico {
    width: 26px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .mmp-ico svg {
    width: 22px; height: 22px;
    fill: none;
    stroke: var(--text);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Chevron */
  .mmp-chev {
    margin-left: auto;
    color: #5a6478;
    font-size: 18px;
    line-height: 1;
  }

  /* User + logout card — selalu di bawah, tidak ikut scroll */
  .mmp-user-card {
    background: var(--card2);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;      /* tidak menyusut */
    margin-bottom: 12px; /* jarak dari bottom nav */
  }
  .mmp-user-row {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .mmp-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: white;
  }
  .mmp-uname { font-size: 15px; font-weight: 700; color: var(--text); }
  .mmp-logout-btn {
    display: block; padding: 15px 20px;
    color: #ef4444; font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: background 0.12s;
  }
  .mmp-logout-btn:hover { background: rgba(239,68,68,0.08); }
}

/* ── TABLET 769–1024px ─────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .page { padding: 20px 18px 40px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .programs-grid { grid-template-columns: repeat(2,1fr); }
  .topbar .nav a { padding: 8px 9px; font-size: 12.5px; }
}