/* ============================================================
   BSC — styles.css
   Bullish Signal Community
   ============================================================ */

:root {
  --ink: #152036;
  --muted: #77839a;
  --line: #e8edf3;
  --paper: #f6f8fb;
  --green: #138a70;
  --mint: #65dfbc;
  --navy: #0c1526;
  --gold: #e9c771;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
}

/* ============================================================
   App shell & sidebar
   ============================================================ */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  background: var(--navy);
  color: #fff;
  width: 256px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 29px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar sidebar — tipis dan halus */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #2a3c54;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #3a4e6a;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand>span:last-child>span {
  color: var(--mint);
}

.brand-mark {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: inline-block;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
  background: var(--mint);
}

.nav-list {
  margin-top: 32px;
  display: grid;
  gap: 4px;
}

.nav-item {
  color: #aab6cc;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item span {
  display: inline-block;
  width: 27px;
  font-size: 18px;
}

.nav-item.active,
.nav-item:hover {
  color: white;
  background: #1a2941;
}

.vip-card {
  margin-top: 24px;
  background: linear-gradient(145deg, #263c58, #172740);
  border: 1px solid #3a516f;
  border-radius: 13px;
  padding: 16px;
  flex-shrink: 0;
}

.crown {
  color: var(--gold);
  font-size: 20px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #8390a5;
  margin: 0 0 7px;
}

.vip-card .eyebrow {
  margin-top: 8px;
  color: #aab7ca;
}

.vip-card strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.vip-card p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.5;
  color: #b8c3d5;
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-card b {
  color: #fff;
}

.ghost-btn {
  font: inherit;
  font-size: 11px;
  color: #fff;
  border: 1px solid #536681;
  background: transparent;
  border-radius: 6px;
  width: 100%;
  padding: 8px;
  cursor: pointer;
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all .2s ease;
}

.profile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Avatar / Simbol User — Ukuran Persegi Modern (Aspect Ratio 1:1) */
.avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  /* Persegi rapi dengan sudut tumpul halus */
  background: linear-gradient(135deg, #10b981 0%, #065f46 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  flex: 0 0 40px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  user-select: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.avatar svg,
.avatar .avatar-icon {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  fill: currentColor !important;
  pointer-events: none !important;
}

.avatar .avatar-text,
.avatar .avatar-initials {
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
}

/* Info Nama & Paket — Rapi, Terisolasi, Anti-Overflow */
.profile-info,
.profile>div:not(.avatar) {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.profile strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.profile small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Tombol Logout — Ukuran Persegi Selaras */
.profile button {
  margin-left: auto !important;
  flex: 0 0 38px !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 10px !important;
  /* Persegi rapi selaras dengan avatar */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px;
  cursor: pointer;
  transition: all .18s ease;
  box-sizing: border-box !important;
}

.profile button:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  transform: translateY(-1px);
}

/* ============================================================
   Main content & topbar
   ============================================================ */
.main-content {
  margin-left: 256px;
  padding: 31px 46px 35px;
  max-width: 1550px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
}

.topbar>div:first-of-type {
  min-width: 0;
  flex: 1;
}

.topbar h1 {
  font-size: 23px;
  letter-spacing: -.8px;
  margin: 0;
}

.topbar h1 span {
  color: var(--gold);
  font-size: 16px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  font-size: 17px;
  position: relative;
}

.icon-btn i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef6868;
  right: 8px;
  top: 8px;
}

.live-pill {
  border: 0;
  background: #e6f6ef;
  color: #16745d;
  border-radius: 30px;
  padding: 10px 16px;
  font: 700 11px Manrope;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  height: 36px;
}

.live-pill span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #25b98d;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-pill>span:last-child {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
}

/* ============================================================
   Statistik Admin
   ============================================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.admin-stats-5 {
  grid-template-columns: repeat(5, 1fr) !important;
}

.admin-stats-6 {
  grid-template-columns: repeat(6, 1fr) !important;
}

.admin-stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px;
}

.admin-stats span,
.admin-stats small {
  font-size: 10px;
  color: #7b879a;
  display: block;
}

.admin-stats strong {
  font: 700 26px 'DM Mono';
  display: block;
  margin: 7px 0;
  color: #263449;
}

.admin-stats .up {
  color: #147f65;
}

.gold-text {
  color: #b58624 !important;
}

.admin-stat-perlu {
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.admin-stat-perlu:hover {
  border-color: #f0d48a;
  box-shadow: 0 4px 14px rgba(233, 199, 113, .18);
}

.admin-stat-perlu>span {
  color: #a8690f;
  font-weight: 800;
}

.admin-stat-perlu strong {
  color: #8a5a10 !important;
}

.admin-stat-perlu small {
  color: #a8690f;
  font-weight: 700;
  line-height: 1.5;
}

.admin-stat-alert {
  background: linear-gradient(135deg, #fff9e9, #fff4dc) !important;
  border: 1px solid #f0d48a !important;
}

/* ============================================================
   Hero admin
   ============================================================ */
.admin-hero {
  background: linear-gradient(110deg, #142b42, #155761);
  color: white;
  border-radius: 13px;
  padding: 34px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-hero .eyebrow {
  color: #a4d4d0;
}

.admin-hero h2 {
  font-size: 29px;
  line-height: 1.26;
  letter-spacing: -1.3px;
  margin: 0;
}

.admin-hero p:not(.eyebrow) {
  color: #c5dadd;
  font-size: 12px;
  margin: 11px 0 0;
  max-width: 520px;
}

.admin-hero .primary-btn {
  background: #d5f7e9;
}

/* ============================================================
   Tombol
   ============================================================ */
.primary-btn {
  background: var(--mint);
  color: #102236;
  border: 0;
  border-radius: 7px;
  font: 800 12px Manrope;
  padding: 12px 17px;
  cursor: pointer;
}

.primary-btn span {
  font-size: 17px;
  margin-left: 14px;
}

.export-btn,
.mode-switch {
  border: 1px solid #ccd8e2;
  background: #fff;
  color: #40536b;
  border-radius: 7px;
  padding: 9px 12px;
  font: 700 11px Manrope;
  cursor: pointer;
}

.mode-switch {
  color: #187b64;
  border-color: #a9d8c9;
  background: #effaf6;
}

.edit-mode-btn {
  border: 1px solid #e1bc62;
  background: #fff9e9;
  color: #9c6d16;
  border-radius: 7px;
  padding: 9px 12px;
  font: 700 11px Manrope;
  cursor: pointer;
}

.editing .edit-mode-btn {
  background: #e1f5ee;
  border-color: #9dd8c7;
  color: #147f65;
}

/* ============================================================
   Directory & tabel
   ============================================================ */
.member-directory {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px 24px 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 17px;
}

.section-heading h2 {
  font-size: 19px;
  letter-spacing: -.6px;
  margin: 0;
}

.directory-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  align-items: center;
}

.member-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.member-tab {
  font: 700 11px Manrope;
  color: #667187;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
}

.member-tab b {
  font-size: 9px;
  margin-left: 5px;
}

.member-tab.selected {
  border-color: #a8d9cb;
  color: #15775f;
  background: #e6f6ef;
}

.directory-search {
  margin-left: auto;
  width: 260px;
}

.search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: #8793a5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: 11px Manrope;
  padding: 8px 0;
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px;
}

th {
  text-align: left;
  color: #8a95a7;
  font-size: 9px;
  letter-spacing: .6px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 14px 15px;
  border-bottom: 1px solid #eff2f6;
  font-size: 11px;
  color: #5b667a;
}

tr:last-child td {
  border: 0;
}

.stock-name,
.member-cell {
  display: flex;
  gap: 11px;
  align-items: center;
}

.stock-logo {
  height: 29px;
  width: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Logo / Avatar Member di Tabel — Persegi Presisi & Elegan */
.member-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 34px !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 2px 6px rgba(16, 133, 106, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  user-select: none !important;
}

.member-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.stock-name strong,
.member-cell strong {
  display: block;
  color: #263449;
  font-size: 12px;
}

.stock-name small,
.member-email {
  display: block;
  font-size: 9px;
  color: #8c96a7;
  margin-top: 2px;
}

.mono {
  font-family: 'DM Mono';
  font-size: 11px !important;
  color: #344157 !important;
}

.current {
  color: #188a6f !important;
  font-weight: 700;
}

.stop-loss {
  color: #bc5356 !important;
}

.up {
  color: #159273 !important;
}

.down {
  color: #e06066 !important;
}

.neutral {
  color: #94a3b8 !important;
}

.telegram-link {
  color: #2783c2 !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.telegram-link:hover {
  text-decoration: underline;
}

.more {
  border: 0;
  background: #edf1f5;
  color: #617089;
  width: auto;
  min-width: 24px;
  height: 24px;
  border-radius: 5px;
  cursor: pointer;
  padding: 0 8px;
  font: 700 10px Manrope;
}

.row-delete {
  margin-left: 4px;
  background: #fee8e8;
  color: #bc5356;
}

.row-delete:hover {
  background: #fdd3d3;
}

.row-edit {
  color: #147f65;
  background: #e1f5ee;
}

/* ============================================================
   Badge kategori
   ============================================================ */
.kategori-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 5px;
  letter-spacing: .3px;
  white-space: nowrap;
}

.kategori-blue,
.kategori-blue-chip,
.kategori-bluechip {
  color: #1e5aa8;
  background: #e4ecfa;
  border: 1px solid #c3d5f2;
}

.kategori-mid,
.kategori-mid-cap,
.kategori-midcap {
  color: #16856a;
  background: #e1f5ee;
  border: 1px solid #a3e0ce;
}

.kategori-small,
.kategori-small-cap,
.kategori-smallcap {
  color: #bc5356;
  background: #fae5e5;
  border: 1px solid #f0c3c3;
}

/* ============================================================
   Status & tag
   ============================================================ */
.tag {
  font-size: 9px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.tag.buy {
  color: #147f65;
  background: #e1f5ee;
}

.tag.speculative-buy {
  color: #b0781e;
  background: #fff4d9;
}

.tag.hold {
  color: #5c6d88;
  background: #edf1f6;
}

/* Status rekomendasi — warna baru */
.status-reko-buy {
  color: #147f65;
  background: #e1f5ee;
  border: 1px solid #a8d9cb;
}

.status-reko-floating-profit {
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93b4f5;
}

.status-reko-take-profit {
  color: #f9fcfe;
  background: #059332;
  border: 1px solid #0b915b;
  font-weight: 800;
}

.status-reko-stop-loss {
  color: #bc5356;
  background: #fee8e8;
  border: 1px solid #f3c6c6;
}

.status-active {
  color: #147f65;
  background: #e1f5ee;
  border: 1px solid #a8d9cb;
}

.status-suspended {
  color: #bc5356;
  background: #fee8e8;
  border: 1px solid #f3c6c6;
}

/* ============================================================
   Badge paket
   ============================================================ */
.paket-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 5px;
  letter-spacing: .3px;
  white-space: nowrap;
}

.paket-vip {
  color: #8a5a10;
  background: linear-gradient(135deg, #fff4dc, #fbe9c0);
  border: 1px solid #e9c771;
}

.paket-premium {
  color: #1e5aa8;
  background: #e4ecfa;
  border: 1px solid #c3d5f2;
}

.paket-basic {
  color: #6b7280;
  background: #f0f3f6;
  border: 1px solid #d8dfe5;
}

/* ============================================================
   MASA AKTIF — 3 warna
   ============================================================ */
.masa-aktif {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.masa-aman {
  color: #147f65;
  background: #e1f5ee;
  border: 1px solid #a8d9cb;
}

.masa-warning {
  color: #a8690f;
  background: #fff2cf;
  border: 1px solid #f0d48a;
  font-weight: 800;
}

.masa-expired {
  color: #bc5356;
  background: #fee8e8;
  border: 1px solid #f3c6c6;
  font-weight: 800;
}

/* ============================================================
   Form tambah/edit
   ============================================================ */
.add-member-form {
  background: #fff;
  border: 1px solid #c4ded6;
  border-radius: 10px;
  margin-top: 15px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.4fr 1fr;
  gap: 12px;
  align-items: end;
}

.add-member-form h3 {
  font-size: 15px;
  margin: 0;
}

.add-member-form label {
  font-size: 10px;
  font-weight: 800;
  color: #657188;
  display: block;
}

.add-member-form input,
.add-member-form select,
.add-member-form textarea {
  display: block;
  width: 100%;
  padding: 9px 10px;
  margin-top: 6px;
  border: 1px solid #dbe3ea;
  border-radius: 6px;
  background: #fff;
  font: 11px Manrope;
  outline-color: #67c8ac;
}

.add-member-form textarea {
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-actions .primary-btn,
.form-actions .cancel-edit-btn {
  width: auto;
  min-width: 200px;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-actions .cancel-edit-btn {
  min-width: 130px;
  background: #fff;
  border: 1px solid #d8e0e8;
  color: #69768a;
  font: 700 12px Manrope;
  cursor: pointer;
}

.form-actions .cancel-edit-btn:hover {
  background: #f3f6f9;
}

.add-member-form .save-status {
  grid-column: 1 / -1;
  text-align: center;
  margin: 6px 0 0;
  color: #16856a;
  font-size: 10px;
  font-weight: 800;
}

.cancel-edit-btn {
  height: 37px;
  border: 1px solid #d8e0e8;
  background: #fff;
  color: #69768a;
  border-radius: 7px;
  font: 700 11px Manrope;
  padding: 0 11px;
  cursor: pointer;
}

/* ============================================================
   Account panel
   ============================================================ */
.account-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 21px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
}

.account-panel h2 {
  font-size: 17px;
  margin: 0;
}

.account-panel p:not(.eyebrow) {
  font-size: 11px;
  color: #7c8799;
  margin: 5px 0 0;
}

.account-access {
  margin-left: auto;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.account-access span,
.account-access small {
  font-size: 10px;
  color: #7d899a;
  display: block;
}

.account-access strong {
  display: block;
  color: #16856a;
  font-size: 13px;
  margin: 4px 0;
}

.account-access i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #25b98d;
  border-radius: 50%;
  margin-right: 5px;
}

/* ============================================================
   Log aktivitas
   ============================================================ */
.log-waktu {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #4b566a;
  white-space: nowrap;
}

.log-actor {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.log-admin {
  color: #1e5aa8;
  background: #e4ecfa;
  border: 1px solid #c3d5f2;
}

.log-member {
  color: #147f65;
  background: #e1f5ee;
  border: 1px solid #a8d9cb;
}

.log-aksi {
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
  color: #3a475c;
}

.log-aksi-buka-portal {
  color: #8a5a10;
}

.log-aksi-tambah {
  color: #147f65;
}

.log-aksi-edit {
  color: #1e5aa8;
}

.log-aksi-hapus {
  color: #bc5356;
}

/* ============================================================
   Portal member
   ============================================================ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 29px;
}

.summary-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.summary-text>span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .3px;
}

.summary-text>strong {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: #152036;
  margin: 0;
}

.summary-text>small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

.summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.green {
  color: #138d70;
  background: #e1f5ee;
}

.blue {
  color: #466ed3;
  background: #e9eeff;
}

.gold {
  color: #b58624;
  background: #fff4d9;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter {
  font: 700 11px Manrope;
  color: #667187;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 8px 11px;
  cursor: pointer;
}

.filter.selected {
  border-color: #a8d9cb;
  color: #15775f;
  background: #e6f6ef;
}

/* ============================================================
   Modal konfirmasi & overlay
   ============================================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 27, .72);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 30;
}

.confirm-overlay.hidden {
  display: none !important;
}

.confirm-box {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fee8e8;
  color: #bc5356;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.confirm-box h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #152036;
}

.confirm-box p {
  font-size: 12px;
  color: #77839a;
  line-height: 1.7;
  margin: 0 0 22px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-cancel,
.confirm-ok {
  border-radius: 8px;
  padding: 12px;
  font: 700 12px Manrope;
  cursor: pointer;
  border: 1px solid;
}

.confirm-cancel {
  background: #fff;
  border-color: #d8e0e8;
  color: #69768a;
}

.confirm-cancel:hover {
  background: #f3f6f9;
}

.confirm-ok {
  background: #bc5356;
  border-color: #bc5356;
  color: #fff;
}

.confirm-ok:hover {
  background: #a84548;
}

/* ============================================================
   Hidden
   ============================================================ */
.hidden {
  display: none !important;
}

/* ============================================================
   Input date
   ============================================================ */
input[type="date"] {
  font-family: 'DM Mono', monospace;
  letter-spacing: -0.2px;
  color: #2c3a4f;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(35%) sepia(45%) saturate(400%) hue-rotate(120deg);
}

/* ============================================================
   Kartu rekomendasi portal
   ============================================================ */
.recommendation-card {
  background: #fff;
  border: 1px solid #e1e7e8;
  border-radius: 11px;
  padding: 19px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.recommendation-card .price-row {
  margin: 16px 0 12px;
}

.recommendation-card .potential {
  margin-top: auto;
}

.kategori-line {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}

.recommendation-empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #dbe3ea;
  border-radius: 11px;
  padding: 40px 24px;
  text-align: center;
}

.recommendation-empty p {
  margin: 0;
  color: #77839a;
  font-size: 13px;
}

.recommendation-empty b {
  color: #152036;
}

/* ============================================================
   LANDING PAGE — Public view
   ============================================================ */
.landing-body {
  background: #faf9f6;
  color: #152036;
}

.landing-body .brand-mark {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--mint);
}

.public-nav {
  height: 78px;
  max-width: 1220px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.public-brand {
  color: #152036;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-body .public-brand>span:last-child>span,
.public-brand>span:last-child>span {
  color: var(--green);
}

.public-links {
  display: flex;
  gap: 29px;
  margin-left: 76px;
}

.public-links a {
  font-size: 12px;
  font-weight: 700;
  color: #667188;
  text-decoration: none;
}

.public-links a:hover,
.text-link:hover {
  color: #18826a;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-link {
  border: 0;
  background: none;
  color: #26384e;
  font: 700 12px Manrope;
  cursor: pointer;
}

.join-btn {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  background: #172c40;
  color: #fff;
  padding: 11px 15px;
  font: 800 11px Manrope;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.join-btn span {
  font-size: 15px;
  margin-left: 11px;
}

.join-btn.large {
  padding: 14px 18px;
}

.public-hero {
  max-width: 1220px;
  min-height: 465px;
  margin: auto;
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(115deg, #102033 0%, #173e4a 100%);
  color: #fff;
  position: relative;
  padding: 76px 80px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(178, 244, 221, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(178, 244, 221, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.public-hero-copy {
  position: relative;
  max-width: 620px;
}

.landing-kicker {
  color: #7d8c9d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.25px;
  margin: 0 0 14px;
}

.public-hero .landing-kicker {
  color: #a6d5c9;
}

.landing-kicker i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #6ee1be;
  border-radius: 50%;
  margin-right: 7px;
}

.public-hero h1 {
  font-size: 47px;
  line-height: 1.16;
  letter-spacing: -2.5px;
  margin: 0;
}

.public-hero h1 em {
  color: #81e8c8;
  font-family: Georgia, serif;
  font-weight: 400;
}

.public-hero-copy>p:not(.landing-kicker) {
  max-width: 530px;
  color: #b7c9d3;
  font-size: 13px;
  line-height: 1.8;
  margin: 19px 0 26px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.text-link {
  font-size: 11px;
  color: #237b69;
  font-weight: 800;
  text-decoration: none;
}

.public-hero .text-link {
  color: #d5f7e9;
}

.text-link span {
  font-size: 15px;
  margin-left: 5px;
}

.signal-card {
  position: absolute;
  right: 80px;
  bottom: 49px;
  width: 246px;
  padding: 18px 20px;
  border: 1px solid rgba(179, 238, 222, .25);
  background: rgba(8, 27, 43, .48);
  backdrop-filter: blur(8px);
  border-radius: 11px;
}

.signal-head,
.signal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signal-head span,
.signal-foot span {
  font-size: 9px;
  font-weight: 800;
  color: #adbdc8;
  letter-spacing: .7px;
}

.signal-head b {
  font: 800 8px Manrope;
  color: #67dfbb;
  background: #174d50;
  border-radius: 4px;
  padding: 4px 5px;
}

.signal-score {
  margin: 15px 0 2px;
}

.signal-score strong {
  font: 500 44px 'DM Mono';
  color: #7ce7c4;
}

.signal-score span {
  font-size: 12px;
  color: #aabdc8;
}

.signal-card>p {
  font-weight: 800;
  font-size: 14px;
  margin: 0;
}

.signal-card small {
  color: #a8bac5;
  font-size: 10px;
  font-weight: 500;
}

.score-bar {
  height: 5px;
  background: #395665;
  border-radius: 5px;
  margin: 18px 0 12px;
}

.score-bar i {
  display: block;
  width: 68%;
  height: 100%;
  background: #6ee1be;
  border-radius: 5px;
}

.signal-foot strong {
  font-size: 10px;
  color: #e3f6f1;
}

.ticker-row {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.45fr;
  align-items: center;
}

.ticker-row>div {
  border-right: 1px solid #dce3e5;
  padding: 0 25px;
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.ticker-row>div:first-child {
  padding-left: 0;
}

.ticker-row small {
  font-size: 9px;
  color: #7d8999;
  font-weight: 800;
}

.ticker-row strong {
  font: 500 12px 'DM Mono';
}

.ticker-row b {
  font-size: 9px;
}

.ticker-row p {
  font-size: 9px;
  color: #94a0af;
  text-align: right;
  margin: 0;
}

.content-section {
  max-width: 1160px;
  margin: 68px auto;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}

.section-intro h2,
.member-banner h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin: 0;
}

.section-intro>p {
  width: 300px;
  color: #778496;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}

.update-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 17px;
}

.feature-update {
  background: #e5f4ed;
  border-radius: 13px;
  padding: 31px;
  min-height: 318px;
  position: relative;
  overflow: hidden;
}

.feature-update:after {
  display: none !important;
  content: none !important;
}

.update-label,
.article-tag {
  font-size: 9px;
  letter-spacing: .7px;
  font-weight: 800;
  color: #198269;
}

.feature-update h3 {
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1.32;
  max-width: 480px;
  margin: 19px 0 10px;
}

.feature-update p {
  max-width: 430px;
  font-size: 11px;
  color: #637889;
  line-height: 1.7;
  margin: 0 0 15px;
}

.feature-update a {
  font-size: 11px;
  font-weight: 800;
  color: #167d64;
  text-decoration: none;
}

.feature-stat {
  position: absolute;
  bottom: 24px;
  right: 27px;
  z-index: 1;
  text-align: right;
}

.feature-stat span {
  display: block;
  color: #718f8e;
  font-size: 9px;
}

.feature-stat strong {
  color: #16846a;
  font: 600 17px 'DM Mono';
}

.feature-stat i {
  color: #16846a;
  font-style: normal;
  margin-left: 5px;
}

.update-list {
  border-top: 1px solid #dbe2e6;
}

.update-list article {
  min-height: 106px;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid #dbe2e6;
}

.article-number {
  font: 500 13px 'DM Mono';
  color: #aab4bd;
}

.update-list p {
  font-size: 9px;
  color: #79907f;
  letter-spacing: .6px;
  font-weight: 800;
  margin: 0 0 6px;
}

.update-list h3 {
  font-size: 13px;
  letter-spacing: -.4px;
  margin: 0;
}

.update-list small {
  display: block;
  font-size: 9px;
  color: #8b96a5;
  margin-top: 7px;
}

.update-list a,
.opinion-card a {
  color: #20836c;
  text-decoration: none;
  font-size: 19px;
}

/* ============ Section Rekomendasi (Landing) ============ */
.recommendation-section {
  max-width: 1160px;
  margin: 0 auto 68px;
  padding: 47px 0;
  border-top: 1px solid #dce3e5;
}

.vip-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff4dc;
  border-radius: 8px;
  padding: 9px 12px;
}

.vip-preview span {
  color: #ad7d1c;
  font-size: 17px;
}

.vip-preview p {
  margin: 0;
  font-size: 9px;
  color: #967846;
  line-height: 1.55;
}

.vip-preview b {
  font-size: 9px;
}

/* ============================================================
   Kartu rekomendasi — DINAMIS (auto-fit)
   Kartu melebar otomatis mengisi ruang, berapapun jumlahnya
   ============================================================ */
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

/* Kalau cuma 1 kartu — biarkan tidak melebar full, batasi max 320px */
.recommendation-grid:has(> :only-child) {
  grid-template-columns: minmax(240px, 320px);
}

/* Kalau 2 kartu — biarkan 2 kolom seimbang */
.recommendation-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Kalau 3 kartu — 3 kolom seimbang */
.recommendation-grid:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Kalau 4 kartu — 4 kolom seimbang */
.recommendation-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Kartu rekomendasi — tampilan premium */
.recommendation-card {
  background: #fff;
  border: 1px solid #e1e7e8;
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

/* Aksen garis atas berwarna */
.recommendation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #65dfbc, #138a70);
}

.recommendation-card:hover {
  border-color: #a8d9cb;
  box-shadow: 0 8px 24px rgba(22, 133, 106, .12);
  transform: translateY(-3px);
}

.recommendation-card .stock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.recommendation-card .stock-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 11px;
}

.recommendation-card .stock-top b {
  font-size: 15px;
  letter-spacing: -.3px;
}

.recommendation-card .stock-top small {
  font-size: 10px;
  color: #8b97a5;
}

.recommendation-card .stock-top em {
  margin-left: auto;
  background: linear-gradient(135deg, #e1f5ee, #d1efe4);
  color: #147d65;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .3px;
}

.recommendation-card .stock-top em.spec {
  background: linear-gradient(135deg, #fff4d9, #ffecc0);
  color: #aa7620;
}

.recommendation-card .kategori-line {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.recommendation-card .price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 12px 0;
  border-top: 1px dashed #eef2f6;
  border-bottom: 1px dashed #eef2f6;
}

.recommendation-card .price-row span {
  font-size: 9px;
  color: #8c98a5;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.recommendation-card .price-row strong {
  display: block;
  color: #152036;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.recommendation-card .potential {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 10px;
  color: #87939f;
}

.recommendation-card .potential b {
  color: #147f65;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
}

/* Kalau 5 kartu — 5 kolom seimbang */
.recommendation-grid:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Responsive */
@media(max-width: 1300px) {
  .recommendation-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media(max-width: 900px) {

  .recommendation-grid,
  .recommendation-grid:has(> :nth-child(2):last-child),
  .recommendation-grid:has(> :nth-child(3):last-child),
  .recommendation-grid:has(> :nth-child(4):last-child),
  .recommendation-grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 600px) {

  .recommendation-grid,
  .recommendation-grid:has(> :nth-child(2):last-child),
  .recommendation-grid:has(> :nth-child(3):last-child),
  .recommendation-grid:has(> :nth-child(4):last-child),
  .recommendation-grid:has(> :nth-child(5):last-child),
  .recommendation-grid:has(> :only-child) {
    grid-template-columns: 1fr;
  }
}

.recommendation-grid .recommendation-card {
  background: #fff;
  border: 1px solid #e1e7e8;
  border-radius: 11px;
  padding: 19px;
  min-height: 174px;
  position: relative;
  display: block;
}

.stock-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stock-badge {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.stock-badge.bbca {
  background: #2365af;
}

.stock-badge.antm {
  background: #be9130;
}

.stock-badge.tlkm {
  background: #c63e3e;
}

.stock-top b,
.stock-top small {
  display: block;
}

.stock-top b {
  font-size: 13px;
}

.stock-top small {
  font-size: 9px;
  color: #8b97a5;
  margin-top: 2px;
}

.stock-top em {
  margin-left: auto;
  background: #e1f5ee;
  color: #147d65;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.stock-top em.spec {
  background: #fff4d9;
  color: #aa7620;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 27px 0 17px;
}

.price-row span {
  color: #8c98a5;
  font-size: 9px;
}

.price-row strong {
  display: block;
  color: #344156;
  font: 500 13px 'DM Mono';
  margin-top: 4px;
}

.potential {
  border-top: 1px solid #edf0f2;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #87939f;
}

.potential b {
  color: #16846a;
  font-size: 10px;
}

.recommendation-note {
  font-size: 9px;
  color: #8b97a5;
  margin: 13px 0 0;
}

/* Preview terkunci (blur) */
.recommendation-card.locked-preview {
  overflow: hidden;
}

.blur-content {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}

.preview-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, .35) 0%,
      rgba(255, 255, 255, .85) 45%,
      rgba(255, 255, 255, .95) 100%);
  text-align: center;
  padding: 20px;
}

.preview-lock>span {
  font-size: 26px;
  color: #e9c771;
  line-height: 1;
}

.preview-lock>p {
  font-size: 11px;
  font-weight: 700;
  color: #4b5567;
  letter-spacing: .3px;
  margin: 0;
}

.preview-lock button {
  border: 1px solid #79d8bd;
  background: transparent;
  color: #147f65;
  border-radius: 6px;
  padding: 8px 14px;
  font: 800 10px Manrope;
  cursor: pointer;
}

.preview-lock button:hover {
  background: #e1f5ee;
  color: #0e6650;
}

.locked {
  overflow: hidden;
}

.lock-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(16, 36, 51, .93);
  color: white;
  display: grid;
  place-content: center;
  text-align: center;
}

.lock-cover span {
  color: #e8c46d;
  font-size: 20px;
}

.lock-cover p {
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.lock-cover button {
  border: 1px solid #79d8bd;
  border-radius: 6px;
  background: transparent;
  color: #a7eed8;
  padding: 8px 11px;
  font: 700 10px Manrope;
  cursor: pointer;
}

/* ============ Testimoni Member VIP (Infinite Marquee — Light Theme BSC) ============ */
.testimonial-section {
  position: relative;
  background: #f4f6fa;
  color: var(--ink);
  padding: 68px 0 74px;
  margin: 0 0 60px;
  border-top: 1px solid #dce3e5;
  border-bottom: 1px solid #dce3e5;
  overflow: hidden;
}

.testimonial-header {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
  padding: 0 20px;
}

.testimonial-header .landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: #7d8c9d;
  margin: 0 0 10px;
}

.testimonial-header .landing-kicker i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #6ee1be;
  border-radius: 50%;
}

.testimonial-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 10px;
  color: #152036;
}

.testimonial-title em {
  color: #138a70;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.testimonial-subtitle {
  font-size: 12.5px;
  line-height: 1.7;
  color: #738193;
  max-width: 580px;
  margin: 0 auto;
}

/* Marquee Track */
.testimonial-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  cursor: grab;
}

.testimonial-marquee-wrapper:active {
  cursor: grabbing;
}

.testimonial-marquee-track {
  display: flex;
  width: max-content;
  animation: testimonialMarquee 52s linear infinite;
  will-change: transform;
}

.testimonial-marquee-wrapper:hover .testimonial-marquee-track,
.testimonial-marquee-wrapper.is-paused .testimonial-marquee-track {
  animation-play-state: paused;
}

.testimonial-group {
  display: flex;
  gap: 18px;
  margin-right: 18px;
  flex-shrink: 0;
}

@keyframes testimonialMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Card Styling — Terang / Model Website BSC */
.testimonial-card {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  min-height: 270px;
  background: #ffffff;
  border: 1px solid #e4e8ea;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 14px rgba(16, 32, 51, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: #a8d9cb;
  box-shadow: 0 8px 24px rgba(22, 133, 106, 0.1);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 13.5px;
  letter-spacing: 2px;
  line-height: 1;
  user-select: none;
}

.testimonial-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #147d65;
  background: #e1f5ee;
  border: 1px solid #c2ebd9;
  padding: 3px 8px;
  border-radius: 5px;
}

.testimonial-body {
  color: #445468;
  font-size: 12px;
  line-height: 1.75;
  font-style: italic;
  margin: 0 0 18px;
  flex-grow: 1;
}

.testimonial-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2f6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial-name {
  font-size: 12px;
  font-weight: 700;
  color: #152036;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #7d8c9d;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff4dc;
  color: #8a5a10;
  border: 1px solid #e9c771;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.testimonial-badge .crown-icon {
  font-size: 10px;
  color: #b58624;
}

.testimonial-footer-hint {
  text-align: center;
  margin-top: 22px;
  font-size: 11px;
  color: #7b8898;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dce3e5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  color: #647184;
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee1be;
  display: inline-block;
}

.hint-stat {
  font-size: 11px;
  color: #778496;
}

@media (max-width: 768px) {
  .testimonial-section {
    padding: 45px 0 50px;
    margin: 0 0 45px;
  }

  .testimonial-title {
    font-size: 24px;
    letter-spacing: -0.8px;
  }

  .testimonial-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    min-height: 250px;
    padding: 18px 16px;
  }

  .testimonial-body {
    font-size: 11.5px;
    margin-bottom: 14px;
  }

  .testimonial-marquee-track {
    animation-duration: 40s;
  }
}

/* ============ Member banner ============ */
.member-banner {
  max-width: 1160px;
  margin: 0 auto 60px;
  padding: 49px 57px;
  border-radius: 14px;
  background: linear-gradient(105deg, #1b3544, #1c635b);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.member-banner>div {
  flex: 1;
}

.member-banner .landing-kicker {
  color: #a3d9cb;
}

.member-banner>div>p:not(.landing-kicker) {
  max-width: 720px;
  color: #c7dddc;
  font-size: 12.5px;
  line-height: 1.75;
  margin: 13px 0 0;
}

.member-banner .join-btn {
  background: #d8f6e8;
  color: #173645;
  flex-shrink: 0;
}

/* ============ Footer ============ */
.public-footer {
  max-width: 1160px;
  margin: auto;
  border-top: 1px solid #dce3e5;
  padding: 25px 28px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.public-footer .brand {
  font-size: 15px;
  color: #152036;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-footer .brand-mark {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 6px;
  background: var(--mint);
}

.public-footer .brand>span:last-child>span {
  color: var(--green);
}

.public-footer p {
  color: #8490a0;
  font-size: 11px;
  margin: 0;
}

.public-footer>a:last-child {
  font-size: 10px;
  color: #667889;
  text-decoration: none;
}

/* ============ Modal publik (Login/Register) ============ */
.public-modal {
  display: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(9, 20, 33, .62);
  place-items: center;
  padding: 20px;
}

.public-modal.open {
  display: grid;
}

.modal-box {
  width: min(410px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.modal-box h2 {
  font-size: 23px;
  letter-spacing: -1px;
  margin: 0;
}

.modal-box>p:not(.landing-kicker) {
  font-size: 12px;
  line-height: 1.7;
  color: #778496;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  background: transparent;
  border: 0;
  color: #718095;
  font-size: 25px;
  cursor: pointer;
}

.modal-box label {
  display: block;
  margin: 13px 0;
  font-size: 10px;
  color: #607088;
  font-weight: 800;
}

.modal-box input {
  display: block;
  width: 100%;
  border: 1px solid #dce3e9;
  border-radius: 6px;
  margin-top: 6px;
  padding: 10px;
  font: 12px Manrope;
}

.modal-box .join-btn {
  width: 100%;
  margin-top: 5px;
}

.modal-box small {
  display: block;
  margin-top: 13px;
  color: #177d66;
  font-size: 10px;
  font-weight: 700;
}

/* Khusus halaman admin — sidebar lebih compact */
.admin-body .nav-list {
  margin-top: 24px;
  gap: 2px;
}

.admin-body .nav-item {
  padding: 10px 14px;
  font-size: 12.5px;
}

.admin-body .vip-card {
  margin-top: 16px;
  padding: 12px;
}

.admin-body .profile {
  padding: 10px 12px;
  margin-top: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media(max-width: 1200px) {

  .admin-stats-5,
  .admin-stats-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media(max-width: 1000px) {
  .sidebar {
    width: 210px;
  }

  .main-content {
    margin-left: 210px;
    padding: 26px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .add-member-form {
    grid-template-columns: 1fr 1fr;
  }

  .ticker-row>div {
    padding: 0 12px;
  }

  .signal-card {
    width: 270px;
  }

  .summary-grid article {
    grid-template-columns: 37px 1fr;
  }

  .summary-grid article p {
    display: none;
  }
}

@media(max-width: 800px) {
  .public-nav {
    height: 60px;
    padding: 0 16px;
  }

  .public-brand {
    font-size: 15px;
    gap: 8px;
    flex-shrink: 1;
  }

  .public-brand .brand-mark {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .public-links {
    display: none;
  }

  .public-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .login-link {
    padding: 6px 8px;
    font-size: 12px;
  }

  .join-btn {
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .join-btn span {
    font-size: 12px;
    margin-left: 6px;
  }

  .public-hero {
    border-radius: 0;
    padding: 36px 20px 30px;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .public-hero-copy {
    position: relative;
    max-width: 100%;
  }

  .public-hero .landing-kicker {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .public-hero h1 {
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -1px;
  }

  .public-hero-copy>p:not(.landing-kicker) {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.7;
    margin: 14px 0 20px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .hero-actions .join-btn.large {
    padding: 11px 16px;
    font-size: 11.5px;
  }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    box-sizing: border-box;
  }

  .ticker-row {
    padding: 18px 20px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .ticker-row>div {
    padding: 0;
    border: 0;
  }

  .ticker-row p {
    display: none;
  }

  .content-section,
  .opinion-section {
    margin: 40px 20px;
  }

  .section-intro {
    display: block;
  }

  .section-intro>p {
    width: auto;
    margin-top: 12px;
  }

  .update-layout,
  .opinion-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .feature-update {
    padding: 24px 20px 28px;
    min-height: auto;
  }

  .feature-update:after {
    display: none !important;
    content: none !important;
  }

  .feature-update h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 12px 0 10px;
  }

  .feature-update p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .member-banner {
    margin: 0 20px 38px;
    padding: 28px 20px;
    display: block;
  }

  .member-banner h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  .member-banner>div>p:not(.landing-kicker) {
    font-size: 12px;
    line-height: 1.7;
    max-width: 100%;
  }

  .member-banner .join-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }

  .public-footer {
    margin: 0 20px;
    display: block;
  }

  .public-footer p {
    margin: 15px 0;
  }
}

@media(max-width: 440px) {
  .public-nav {
    padding: 0 12px;
  }

  .public-brand {
    font-size: 14px;
    gap: 6px;
  }

  .public-actions {
    gap: 6px;
  }

  .login-link {
    padding: 6px 5px;
    font-size: 11px;
  }

  .join-btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  .public-hero {
    padding: 30px 16px 26px;
  }

  .public-hero h1 {
    font-size: 25px;
    letter-spacing: -0.7px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .join-btn.large {
    width: 100%;
    text-align: center;
  }

  .hero-actions .text-link {
    text-align: center;
    padding: 6px 0;
  }
}

@media(max-width: 720px) {
  .add-member-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
    width: 100%;
  }

  .form-actions .primary-btn,
  .form-actions .cancel-edit-btn {
    width: 100%;
    min-width: 0;
  }

  .directory-tools {
    flex-wrap: wrap;
  }

  .directory-search {
    margin-left: 0;
    width: 100%;
  }

  .account-panel {
    align-items: flex-start;
    display: grid;
    gap: 15px;
  }

  .account-access {
    margin: 0;
    border: 0;
    padding: 0;
  }

  .edit-mode-btn {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats,
  .admin-stats-5,
  .admin-stats-6 {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   Section Analisa & Berita (Portal Member)
   ============================================================ */
.article-section {
  margin-bottom: 40px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.article-card {
  background: #fff;
  border: 1px solid #e1e7e8;
  border-radius: 11px;
  padding: 22px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: #a8d9cb;
  box-shadow: 0 4px 16px rgba(22, 133, 106, .08);
}

.article-card .article-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: 16px;
  letter-spacing: -.5px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #152036;
}

.article-excerpt {
  font-size: 11px;
  line-height: 1.7;
  color: #6e7c8f;
  margin: 0 0 12px;
}

.article-meta {
  font-size: 10px;
  color: #8793a5;
  margin: 0 0 14px;
}

.article-read {
  font-size: 10px;
  font-weight: 800;
  color: #16856a;
  margin-top: auto;
}

/* Modal artikel */
.article-modal-box {
  width: min(680px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 34px 38px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.modal-close-btn {
  position: absolute;
  right: 16px;
  top: 14px;
  background: none;
  border: 0;
  font-size: 26px;
  color: #718095;
  cursor: pointer;
}

.article-modal-box h2 {
  font-size: 22px;
  letter-spacing: -.7px;
  line-height: 1.35;
  margin: 10px 0 8px;
}

.article-body {
  font-size: 13px;
  line-height: 1.85;
  color: #3d4a5e;
  margin-top: 18px;
}

.article-body p {
  margin: 0 0 14px;
}

@media(max-width: 800px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-modal-box {
    padding: 26px 22px;
  }
}

/* Section Market Update — bisa diklik */
.feature-update {
  transition: box-shadow .15s;
}

.feature-update:hover {
  box-shadow: 0 6px 20px rgba(22, 133, 106, .12);
}

.update-list article {
  transition: background .15s;
}

.update-list article:hover {
  background: #f6f8fb;
}

/* Section Market Update — bisa diklik */
.feature-update {
  transition: box-shadow .15s;
}

.feature-update:hover {
  box-shadow: 0 6px 20px rgba(22, 133, 106, .12);
}

.update-list article {
  transition: background .15s;
}

.update-list article:hover {
  background: #f6f8fb;
}

/* ============================================================
   KALKULATOR SAHAM
   ============================================================ */
.kalk-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.kalk-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 700 12px Manrope;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kalk-tab span {
  font-size: 14px;
  color: #a8b2c2;
}

.kalk-tab:hover {
  color: var(--ink);
}

.kalk-tab.active {
  color: #138a70;
  border-bottom-color: #138a70;
}

.kalk-tab.active span {
  color: #138a70;
}

.kalk-panel {
  display: none;
}

.kalk-panel.active {
  display: block;
}

.kalk-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media(max-width: 900px) {
  .kalk-layout {
    grid-template-columns: 1fr;
  }
}

.kalk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 24px 26px;
}

.kalk-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -.4px;
}

.kalk-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.kalk-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #566178;
  margin: 14px 0;
}

.kalk-card input[type="number"],
.kalk-card select {
  display: block;
  width: 100%;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  padding: 11px 12px;
  margin-top: 6px;
  font: 13px 'DM Mono', monospace;
  outline-color: #65cbb1;
}

.kalk-card input[type="number"]:focus,
.kalk-card select:focus {
  border-color: #65cbb1;
}

.kalk-inline {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.kalk-inline input {
  flex: 1;
}

.kalk-inline select {
  width: 90px !important;
  margin-top: 6px;
  font-family: Manrope !important;
}

.kalk-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 600 !important;
  color: #566178 !important;
  font-size: 11px !important;
  margin: 14px 0 !important;
  cursor: pointer;
}

.kalk-check input {
  width: auto !important;
  margin: 0 !important;
}

.kalk-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.kalk-actions .primary-btn {
  flex: 1;
  min-width: 160px;
}

.kalk-actions .cancel-edit-btn {
  min-width: 100px;
}

.kalk-result {
  background: #fbfdfc;
}

.kalk-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.kalk-empty b {
  color: var(--ink);
}

.kalk-error {
  padding: 16px 18px;
  background: #fee8e8;
  border: 1px solid #f3c6c6;
  border-radius: 8px;
  color: #bc5356;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.kalk-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e8edf3;
  font-size: 12px;
  gap: 10px;
}

.kalk-result-row:last-of-type {
  border-bottom: 0;
}

.kalk-result-row span {
  color: var(--muted);
  font-size: 11px;
}

.kalk-result-row strong {
  color: #152036;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.kalk-result-highlight {
  background: #e1f5ee;
  border: 1px solid #a8d9cb;
  border-radius: 9px;
  padding: 16px 18px;
  margin: 12px 0;
}

.kalk-result-highlight span {
  display: block;
  font-size: 10px;
  color: #147f65;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kalk-big {
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  font-weight: 600;
  color: #147f65;
}

.kalk-big small {
  font-size: 12px;
  color: #4b7d70;
  font-weight: 400;
}

.kalk-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.kalk-profit {
  color: #147f65 !important;
}

.kalk-loss {
  color: #bc5356 !important;
}

.kalk-result-row.kalk-loss strong,
.kalk-result-row.kalk-profit strong {
  font-weight: 700;
}

.kalk-note {
  background: #fff9e9;
  border-left: 3px solid #e9c771;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.7;
  color: #7a5a1c;
  margin-top: 16px;
}

.kalk-note b {
  color: #152036;
}

/* Contoh hasil saat kosong */
.kalk-example {
  opacity: 0.85;
}

.kalk-example-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a8690f;
  text-transform: uppercase;
  margin: 0 0 14px;
  background: #fff9e9;
  border: 1px dashed #f0d48a;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
}

/* Riwayat contoh */
.kalk-riwayat-example {
  opacity: 0.65;
  font-style: italic;
}

.kalk-riwayat-example::after {
  content: ' (contoh)';
  color: #a8690f;
  font-weight: 700;
  font-size: 9px;
}

@media(max-width: 720px) {
  .kalk-card {
    padding: 20px;
  }

  .kalk-big {
    font-size: 22px;
  }

  .kalk-tabs {
    overflow-x: auto;
  }

  .kalk-tab {
    white-space: nowrap;
  }
}

/* ============================================================
   Notifikasi & Masa Aktif
   ============================================================ */
.notif-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 11px;
  border: 1px solid;
  margin-bottom: 20px;
}

.notif-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.notif-banner h3 {
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}

.notif-banner p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.notif-banner-action {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.notif-success {
  background: #e1f5ee;
  border-color: #a8d9cb;
  color: #147f65;
}

.notif-success .notif-banner-icon {
  background: #147f65;
  color: #fff;
}

.notif-success a {
  color: #147f65;
}

.notif-info {
  background: #e4ecfa;
  border-color: #c3d5f2;
  color: #1e5aa8;
}

.notif-info .notif-banner-icon {
  background: #1e5aa8;
  color: #fff;
}

.notif-info a {
  color: #1e5aa8;
}

.notif-warning {
  background: #fff2cf;
  border-color: #f0d48a;
  color: #a8690f;
}

.notif-warning .notif-banner-icon {
  background: #e9a83b;
  color: #fff;
}

.notif-warning a {
  color: #a8690f;
}

.notif-danger {
  background: #fee8e8;
  border-color: #f3c6c6;
  color: #bc5356;
}

.notif-danger .notif-banner-icon {
  background: #bc5356;
  color: #fff;
}

.notif-danger a {
  color: #bc5356;
}

/* Daftar notifikasi */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}

.notif-item:hover {
  border-color: #a8d9cb;
  box-shadow: 0 2px 8px rgba(22, 133, 106, .06);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #e1f5ee;
  color: #147f65;
  flex-shrink: 0;
}

.notif-item-warning .notif-item-icon {
  background: #fff2cf;
  color: #a8690f;
}

.notif-item-content {
  flex: 1;
}

.notif-item-content h4 {
  font-size: 13px;
  margin: 0 0 4px;
  color: #152036;
  letter-spacing: -.2px;
}

.notif-item-content p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.notif-item-action {
  font-size: 10px;
  font-weight: 800;
  color: #16856a;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
}

.notif-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* Ringkasan notifikasi pakai summary-grid */
.notif-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.notif-summary article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-summary .summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notif-summary .summary-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.notif-summary .summary-text>span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.notif-summary .summary-text>strong {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 500;
  color: #152036;
}

.notif-summary .summary-text>small {
  font-size: 10px;
  color: var(--muted);
}

@media(max-width: 900px) {
  .notif-summary {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 720px) {
  .notif-item {
    flex-wrap: wrap;
  }

  .notif-item-action {
    width: 100%;
    text-align: right;
  }

  .notif-banner {
    flex-direction: column;
  }
}

/* ============================================================
   LOCKED STATE untuk Basic/Premium
   ============================================================ */
.locked-section {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(246, 248, 251, .4) 0%,
      rgba(246, 248, 251, .9) 40%,
      rgba(246, 248, 251, 1) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  text-align: center;
  z-index: 10;
}

.locked-overlay-crown {
  font-size: 42px;
  color: #e9c771;
  line-height: 1;
}

.locked-overlay h3 {
  font-size: 20px;
  letter-spacing: -.5px;
  margin: 0;
  color: #152036;
}

.locked-overlay p {
  font-size: 12px;
  line-height: 1.7;
  color: #77839a;
  max-width: 400px;
  margin: 0;
}

.locked-overlay-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-upgrade {
  background: linear-gradient(135deg, #e9c771, #d4a93c);
  color: #102236;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font: 800 12px Manrope;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s;
}

.btn-upgrade:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: #40536b;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  padding: 12px 20px;
  font: 700 12px Manrope;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #f3f6f9;
}

/* Banner Upgrade di Dashboard */
.upgrade-banner {
  background: linear-gradient(105deg, #1b3544, #1c635b);
  color: #fff;
  border-radius: 14px;
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.upgrade-banner-content {
  max-width: 600px;
}

.upgrade-banner .landing-kicker {
  color: #a3d9cb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin: 0 0 10px;
}

.upgrade-banner h3 {
  font-size: 22px;
  letter-spacing: -.7px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.upgrade-banner p {
  color: #c7dddc;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.upgrade-banner .btn-upgrade {
  background: #d8f6e8;
  color: #173645;
  flex-shrink: 0;
}

@media(max-width: 800px) {
  .upgrade-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .upgrade-banner h3 {
    font-size: 18px;
  }
}

/* Preview fitur VIP di Dashboard */
.vip-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.vip-preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 130px;
}

.vip-preview-card-lock {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #e9c771;
}

.vip-preview-card h4 {
  font-size: 13px;
  margin: 0 0 6px;
  color: #152036;
}

.vip-preview-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media(max-width: 720px) {
  .vip-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Kartu terkunci di daftar */
.card-locked {
  filter: blur(3px);
  pointer-events: none;
  opacity: .5;
}

/* ============================================================
   QUICK AKSES GRID (VIP & non-VIP)
   ============================================================ */
.quick-akses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-akses-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  min-height: 140px;
}

.quick-akses-card:hover {
  border-color: #a8d9cb;
  box-shadow: 0 4px 14px rgba(22, 133, 106, .08);
  transform: translateY(-2px);
}

.quick-akses-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}

.quick-akses-card h4 {
  font-size: 14px;
  margin: 0;
  color: #152036;
  letter-spacing: -.3px;
}

.quick-akses-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.quick-akses-card.locked-card {
  opacity: .85;
  cursor: not-allowed;
  pointer-events: none;
}

.locked-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  font-weight: 800;
  color: #8a5a10;
  background: #fff4dc;
  border: 1px solid #e9c771;
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: .3px;
}

@media(max-width: 900px) {
  .quick-akses-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .quick-akses-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HALAMAN LOCKED (khusus non-VIP)
   ============================================================ */
.locked-fullpage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 80px 30px;
  text-align: center;
  margin-top: 20px;
}

.locked-fullpage-inner {
  max-width: 520px;
  margin: 0 auto;
}

.locked-fullpage-crown {
  font-size: 64px;
  color: #e9c771;
  line-height: 1;
  margin-bottom: 24px;
}

.locked-fullpage h2 {
  font-size: 26px;
  letter-spacing: -.7px;
  margin: 0 0 14px;
  color: #152036;
}

.locked-fullpage p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 8px;
}

.locked-fullpage-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ============================================================
   KALENDER EKONOMI — Versi Rapi
   ============================================================ */
.kal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kal-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.kal-stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.kal-stat-blue::before {
  background: #1e5aa8;
}

.kal-stat-red::before {
  background: #bc5356;
}

.kal-stat-green::before {
  background: #147f65;
}

.kal-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.kal-stat-blue .kal-stat-icon {
  background: #e4ecfa;
  color: #1e5aa8;
}

.kal-stat-red .kal-stat-icon {
  background: #fee8e8;
  color: #bc5356;
}

.kal-stat-green .kal-stat-icon {
  background: #e1f5ee;
  color: #147f65;
}

.kal-stat-content span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.kal-stat-content strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  font-weight: 600;
  color: #152036;
  margin: 4px 0;
}

.kal-stat-content small {
  font-size: 10px;
  color: var(--muted);
}

/* Event Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  position: relative;
  transition: box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid;
}

.event-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  transform: translateY(-2px);
}

.event-high {
  border-top-color: #bc5356;
}

.event-medium {
  border-top-color: #e9a83b;
}

.event-low {
  border-top-color: #1e5aa8;
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-card-date {
  background: linear-gradient(135deg, #f6f8fb, #eef2f6);
  border-radius: 9px;
  padding: 10px 12px;
  text-align: center;
  min-width: 58px;
  border: 1px solid var(--line);
}

.event-card-date>span {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #152036;
  line-height: 1;
}

.event-card-date>small {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #a8690f;
  letter-spacing: .5px;
  margin-top: 3px;
}

.event-card-date>em {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
  font-style: normal;
  margin-top: 1px;
}

.event-card-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.event-card h3 {
  font-size: 14px;
  margin: 0;
  color: #152036;
  letter-spacing: -.2px;
  line-height: 1.4;
}

.event-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.event-card-footer {
  border-top: 1px solid #f0f3f6;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-countdown {
  font-size: 10px;
  font-weight: 700;
  color: #a8690f;
  background: #fff9e9;
  border: 1px solid #f0d48a;
  border-radius: 5px;
  padding: 4px 8px;
}

@media(max-width: 900px) {
  .kal-summary {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RAPOR PERFORMA — Versi Rapi
   ============================================================ */
.rapor-hero {
  background: linear-gradient(115deg, #142b42 0%, #155761 100%);
  color: #fff;
  border-radius: 14px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 24px;
}

.rapor-hero-left {
  border-right: 1px solid rgba(255, 255, 255, .15);
  padding-right: 40px;
}

.rapor-hero .landing-kicker {
  color: #a4d4d0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin: 0 0 8px;
}

.rapor-hero-big {
  font-family: 'DM Mono', monospace;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: #7ce7c4;
  margin: 4px 0 8px;
}

.rapor-hero-sub {
  font-size: 11px;
  color: #b7c9d3;
  margin: 0;
}

.rapor-hero-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rapor-hero-stat span {
  display: block;
  font-size: 10px;
  color: #a4d4d0;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rapor-hero-stat strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.rapor-hero-stat small {
  font-size: 10px;
  color: #b7c9d3;
}

.rapor-hero-rate {
  color: #7ce7c4 !important;
}

.rapor-hero-pot {
  color: #a5f3d5 !important;
}

.rapor-hero-best {
  color: #e9c771 !important;
}

@media(max-width: 900px) {
  .rapor-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .rapor-hero-left {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    padding: 0 0 24px;
  }

  .rapor-hero-right {
    grid-template-columns: 1fr 1fr;
  }
}

/* Top 5 Rank Cards */
.rapor-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.rapor-rank-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}

.rapor-rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.rapor-rank-badge {
  position: absolute;
  top: -8px;
  left: 14px;
  background: linear-gradient(135deg, #e9c771, #d4a93c);
  color: #102236;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: .5px;
}

.rapor-rank-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.rapor-rank-info strong {
  display: block;
  font-size: 14px;
  color: #152036;
  letter-spacing: -.2px;
}

.rapor-rank-info small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.rapor-rank-potential {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #147f65;
}

/* Distribusi */
.rapor-dist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.rapor-dist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.rapor-dist-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.rapor-dist-green::before {
  background: #147f65;
}

.rapor-dist-blue::before {
  background: #1e5aa8;
}

.rapor-dist-navy::before {
  background: #152036;
}

.rapor-dist-red::before {
  background: #bc5356;
}

.rapor-dist-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.rapor-dist-green .rapor-dist-icon {
  background: #e1f5ee;
  color: #147f65;
}

.rapor-dist-blue .rapor-dist-icon {
  background: #e4ecfa;
  color: #1e5aa8;
}

.rapor-dist-navy .rapor-dist-icon {
  background: #eef2f6;
  color: #152036;
}

.rapor-dist-red .rapor-dist-icon {
  background: #fee8e8;
  color: #bc5356;
}

.rapor-dist-info span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.rapor-dist-info strong {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: #152036;
  margin: 3px 0 2px;
}

.rapor-dist-info small {
  font-size: 10px;
  color: var(--muted);
}

@media(max-width: 900px) {
  .rapor-dist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 500px) {
  .rapor-dist-grid {
    grid-template-columns: 1fr;
  }

  .rapor-hero-big {
    font-size: 48px;
  }
}

/* Kamus Saham */
.kamus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.kamus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}

.kamus-card:hover {
  border-color: #a8d9cb;
  box-shadow: 0 6px 18px rgba(22, 133, 106, .08);
  transform: translateY(-2px);
}

.kamus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.kamus-card h3 {
  font-size: 16px;
  margin: 0;
  color: #152036;
  letter-spacing: -.3px;
  line-height: 1.3;
}

.kamus-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.kamus-read {
  font-size: 10px;
  font-weight: 800;
  color: #16856a;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e8edf3;
}

.kamus-contoh {
  background: #fff9e9;
  border-left: 3px solid #e9c771;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  margin-top: 18px;
}

.kamus-contoh>span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #a8690f;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.kamus-contoh p {
  font-size: 12px;
  color: #7a5a1c;
  line-height: 1.7;
  margin: 0;
}

@media(max-width: 700px) {
  .kamus-grid {
    grid-template-columns: 1fr;
  }
}

/* Section label di dalam kartu hasil */
.kalk-section-label {
  font-size: 11px;
  font-weight: 800;
  color: #566178;
  letter-spacing: .3px;
  margin: 4px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e8edf3;
}

/* ============================================================
   Tombol Copy & Toast
   ============================================================ */
.kalk-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.kalk-result-header h3 {
  margin: 0;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #65dfbc, #4ac9a4);
  color: #102236;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font: 800 11px Manrope;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(101, 223, 188, .3);
}

.btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(101, 223, 188, .4);
}

.btn-copy:active {
  transform: translateY(0);
}

/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #152036;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font: 700 13px Manrope;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  z-index: 999;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.copy-toast.hidden {
  display: none;
}

/* ============================================================
   Admin Role Badge & Menu Super Only
   ============================================================ */
.super-only.hidden,
.super-or-admin.hidden {
  display: none !important;
}

/* Modal konversi posisi relative */
#konversiModal .confirm-box {
  position: relative;
}

/* Link user yang sudah login */
.login-link.user-logged {
  font-weight: 700;
  color: #138a70;
  text-decoration: none;
  padding: 8px 14px;
  background: #e1f5ee;
  border-radius: 7px;
  font-size: 12px;
  transition: background .15s;
}

.login-link.user-logged:hover {
  background: #d0eee1;
}

.login-link.hidden,
.join-btn.hidden {
  display: none !important;
}

/* ============================================================
   Dropdown User di Landing Page
   ============================================================ */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-greeting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #138a70;
  padding: 8px 14px;
  background: #e1f5ee;
  border: 1px solid #a8d9cb;
  border-radius: 7px;
  font: 700 12px Manrope;
  cursor: pointer;
  transition: background .15s;
}

.user-greeting span#userGreeting {
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.user-greeting:hover {
  background: #d0eee1;
}

.user-caret {
  font-size: 10px;
  transition: transform .15s;
}

.user-dropdown.open .user-caret {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  padding: 6px;
  z-index: 100;
  animation: dropdownIn .15s ease-out;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-menu.hidden {
  display: none !important;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: #263449;
  font: 600 12px Manrope;
  text-decoration: none;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}

.user-dropdown-item:hover {
  background: #f6f8fb;
}

.user-dropdown-item>span {
  font-size: 14px;
  color: #138a70;
}

.user-dropdown-logout {
  color: #bc5356;
}

.user-dropdown-logout>span {
  color: #bc5356;
}

.user-dropdown-logout:hover {
  background: #fee8e8;
}

/* Utility */
.hidden {
  display: none !important;
}

/* ============================================================
   Modal Konfirmasi (Logout Landing)
   ============================================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 27, .72);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 9999;
}

.confirm-overlay.hidden {
  display: none !important;
}

.confirm-box {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: confirmPop .2s ease-out;
}

@keyframes confirmPop {
  from {
    transform: scale(.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fee8e8;
  color: #bc5356;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.confirm-box h2 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #152036;
  letter-spacing: -.3px;
}

.confirm-box p {
  font-size: 12px;
  color: #77839a;
  line-height: 1.7;
  margin: 0 0 22px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-cancel,
.confirm-ok {
  border-radius: 8px;
  padding: 12px;
  font: 700 12px Manrope;
  cursor: pointer;
  border: 1px solid;
  transition: background .15s;
}

.confirm-cancel {
  background: #fff;
  border-color: #d8e0e8;
  color: #69768a;
}

.confirm-cancel:hover {
  background: #f3f6f9;
}

.confirm-ok {
  background: #bc5356;
  border-color: #bc5356;
  color: #fff;
}

.confirm-ok:hover {
  background: #a84548;
}

/* ============================================================
   MOBILE RESPONSIVE ENHANCEMENTS (HP / SMARTPHONE)
   ============================================================ */
/* Desktop: Sembunyikan tombol navigasi toggle secara mutlak */
.mobile-menu-toggle,
#mobileDrawerBtn,
.mobile-drawer-close {
  display: none !important;
}

#mobileDrawerOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.mobile-sidebar-open #mobileDrawerOverlay {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {

  /* Tampilkan tombol menu hamburger di HP di semua halaman */
  .mobile-menu-toggle,
  #mobileDrawerBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
    transition: background 0.15s, transform 0.15s !important;
    z-index: 10 !important;
  }

  .mobile-menu-toggle:active,
  #mobileDrawerBtn:active {
    background: #f1f5f9 !important;
    transform: scale(0.95) !important;
  }

  .mobile-drawer-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -290px !important;
    width: 270px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    z-index: 9999 !important;
    background: #0b1220 !important;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    padding: 20px 16px 90px 16px !important;
    margin: 0 !important;
  }

  body.mobile-sidebar-open .sidebar {
    left: 0 !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 16px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .topbar {
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    box-sizing: border-box !important;
  }

  .topbar>div:first-of-type {
    min-width: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .topbar h1 {
    font-size: 16px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.25 !important;
  }

  .topbar .eyebrow {
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
  }

  .topbar .top-actions {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .topbar .top-actions .mode-switch {
    padding: 7px 10px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .summary-grid,
  .admin-stats,
  .admin-stats-5,
  .kal-summary {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 -12px !important;
    padding: 0 12px !important;
    width: calc(100% + 24px) !important;
    box-sizing: border-box !important;
  }

  .table-wrap table {
    min-width: 620px !important;
  }

  .filters {
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    margin-bottom: 12px !important;
  }

  .filters .filter {
    display: inline-block !important;
    white-space: nowrap !important;
  }

  .confirm-box,
  .article-modal-box {
    width: 92vw !important;
    max-width: 420px !important;
    padding: 20px 16px !important;
    box-sizing: border-box !important;
  }

  .add-member-form,
  .add-member-form grid {
    grid-template-columns: 1fr !important;
  }

  .profile {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 12px 14px !important;
    margin-top: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 10px !important;
    aspect-ratio: 1 / 1 !important;
  }

  .profile button {
    margin-left: auto !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 10px !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* ============================================================
   ADMIN MARKET OVERVIEW PREVIEW
   Perbaikan tampilan live preview ticker & badge sentimen admin
   ============================================================ */
#adminTickerPreview {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 14px 22px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) 1.45fr !important;
  align-items: center !important;
  margin-bottom: 22px !important;
}

#adminTickerPreview > div {
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0 18px !important;
  display: flex !important;
  gap: 8px !important;
  align-items: baseline !important;
}

#adminTickerPreview > div:first-child {
  padding-left: 0 !important;
}

#adminTickerPreview small {
  color: #94a3b8 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

#adminTickerPreview strong {
  color: #ffffff !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

#adminTickerPreview b.up {
  color: #10b981 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#adminTickerPreview b.down {
  color: #ef4444 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#adminTickerPreview b.neutral {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#adminTickerPreview p,
#adminTickerPreview #prevTickerNote {
  color: #94a3b8 !important;
  font-size: 11px !important;
  margin: 0 !important;
  text-align: right !important;
  padding-left: 14px !important;
  white-space: nowrap !important;
}

#adminSentimentPreviewBox {
  position: static !important;
  inset: auto !important;
  margin: 0 0 0 auto !important;
  float: none !important;
  z-index: auto !important;
}

/* ============================================================
   DASHBOARD VISUAL GRAFIK & ANALITIK (Chart.js)
   ============================================================ */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

@media(max-width: 960px) {
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}

.chart-card-header h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-header p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

.chart-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  display: block;
}

.chart-canvas-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* 1-Click Backup Card */
.backup-card {
  background: linear-gradient(135deg, #0c1526 0%, #17324d 100%);
  border: 1px solid #2b4363;
  border-radius: 14px;
  padding: 26px 28px;
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.backup-card-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
}

.backup-card-info p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
}

.backup-btn-main {
  background: #10b981;
  color: #ffffff;
  border: 0;
  border-radius: 9px;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.backup-btn-main:hover {
  background: #059669;
  transform: translateY(-2px);
}

.backup-btn-main:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}