/* AUTO-GENERATED by build-assets.js — do not edit directly. Edit the source files in assets/css/ and re-run the script. */

/* ---- variables.css ---- */
/* ============ TOKENS ============ */
:root {
  --orange: #f97316;
  --orange-hi: #ff8d28;
  --orange-lo: #ed5804;
  --orange-text: var(--orange);
  --r-pill: 999px;
  --r-card: 16px;
  --r-sm: 10px;
  --maxw: 1240px;
  --error: #ef4444;

  /* Global font — change this to re-brand the whole site */
  --font-primary: "Poppins";
  --font-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-primary), var(--font-fallback);
}

html[data-theme="dark"] {
  --hero-bg: #000000;
  --bg-1: #1d1e20;
  --bg-2: #252627;
  --surface: #2a2b2e;
  --surface-2: #202123;
  --card: #252627;
  --card-border: #3a3b3e;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #a7a8ab;
  --pill-bg: #272727;
  --icon-tint: rgba(249, 115, 22, 0.14);
  --ctrl-bg: #39393c;
  --input-bg: #1c1d1f;
  --overlay: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] {
  /* darker than --orange: #f97316 (~2.8:1 on white) fails WCAG AA for text;
     this hits ~5:1, used only for standalone orange text/links (L-9) */
  --orange-text: #b45309;
  --hero-bg: #ffffff;
  --bg-1: #f6f7f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --card: #ffffff;
  --card-border: #e3e5e9;
  --text: #101114;
  --text-secondary: #4b4e57;
  --text-muted: #61646b;
  --pill-bg: #f0f1f3;
  --icon-tint: rgba(249, 115, 22, 0.1);
  --ctrl-bg: #e7e8eb;
  --input-bg: #f6f7f9;
  --overlay: rgba(20, 20, 22, 0.55);
}

/* ---- base.css ---- */
/* ============ BASE / RESET ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* theme-toggle.js suspends this while its own view-transition clip-path
   animation is running, so the two don't race and flash at hand-off. */
body.theme-switching {
  transition: none;
}

/* ============ THEME TOGGLE — icon/label swap ============
   Both states are always in the DOM; data-theme picks which one shows.
   Deliberately NOT done via JS innerHTML/textContent inside the
   view-transition callback — mutating child content there was found to
   abort the transition (view-transition-new never gets created), so
   theme-toggle.js only ever toggles the data-theme attribute and lets
   this CSS handle the rest. */
#themeIcon .icon-sun {
  display: none;
}

html[data-theme="light"] #themeIcon .icon-moon {
  display: none;
}

html[data-theme="light"] #themeIcon .icon-sun {
  display: block;
}

.theme-row-label .label-light {
  display: none;
}

html[data-theme="light"] .theme-row-label .label-dark {
  display: none;
}

html[data-theme="light"] .theme-row-label .label-light {
  display: inline;
}

/* ============ THEME TOGGLE — circular reveal (theme-toggle.js) ============
   Replaces the browser's default view-transition cross-fade so only the
   custom clip-path animation theme-toggle.js runs (always on
   ::view-transition-new, which the browser already stacks above old by
   default) is visible: switching to light grows a plain circle of the new
   snapshot out from the button; switching to dark clips new to "everywhere
   except a button-sized hole" and shrinks that hole away, so the old theme
   peeking through is what collapses into the button. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ BRAND (shared: top nav + dashboard sidebar) ============ */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand .word {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-text);
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

.brand .word::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.brand .sub {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.4px;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ BUTTONS (shared: hero CTAs, modals, onboarding, etc.) ============ */
.btn {
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 20px 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-lo);
}

.btn-ghost {
  border: 1.5px solid var(--orange);
  color: var(--orange-text);
}

.btn-ghost:hover {
  background: rgba(249, 115, 22, 0.1);
}

.btn-sm {
  height: 32px;
  padding: 6px 20px 5px;
  font-size: 14px;
}

/* ---- nav.css ---- */
/* ============ NAV ============ */

/* auth state toggle — see data-auth on <html> */
html[data-auth="guest"] .member-only {
  display: none;
}

html[data-auth="member"] .guest-only {
  display: none;
}

.nav-outer {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hero-bg);
  padding: 14px 0 0;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 26px;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
  font-size: 14px;
  font-weight: 400;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  opacity: 0.92;
}

.nav-links a:hover {
  color: var(--orange-text);
  opacity: 1;
}

.nav-links a.active {
  background: var(--orange);
  color: #fff;
  opacity: 1;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-weight: 500;
}

.caret {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-login {
  border: 1px solid var(--card-border);
  border-radius: var(--r-pill);
  padding: 11px 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.btn-login:hover {
  border-color: var(--orange);
  color: var(--orange-text);
}

.lang {
  display: flex;
  align-items: center;
  background: var(--pill-bg);
  border-radius: var(--r-pill);
  padding: 4px;
}

.lang[hidden] {
  display: none;
}

.lang span {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
}

.lang span.on {
  background: rgba(249, 115, 22, 0.18);
  color: var(--orange-text);
  position: relative;
}

.lang span.on::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.nav-toggle {
  display: none;
  font-size: 22px;
  padding: 6px 10px;
}

/* ---- dropdown.css ---- */
/* ============ NAV DROPDOWN (Produk mega menu) ============ */
.nav-link-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  opacity: 0.92;
  font-size: 14px;
  font-family: inherit;
}

.nav-link-trigger:hover {
  color: var(--orange-text);
  opacity: 1;
}

.has-dropdown {
  position: relative;
}

.has-dropdown .caret {
  transition: transform 0.2s ease;
}

.has-dropdown.open .caret {
  transform: rotate(180deg);
}

.nav-external {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ext-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 18px 12px 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;

  /* custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.dropdown-panel::-webkit-scrollbar {
  width: 6px;
}

.dropdown-panel::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-panel::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--r-pill);
}

.dropdown-panel:hover::-webkit-scrollbar-thumb {
  background: var(--orange);
}

.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}

.dropdown-group:first-child {
  padding-top: 0;
}

.dropdown-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dropdown-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.dg-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--icon-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dg-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
}

.dg-title {
  flex: 1;
  text-align: left;
}

.dg-chevron {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.dropdown-group.collapsed .dg-chevron {
  transform: rotate(180deg);
}

.dropdown-group-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding-left: 46px;
  overflow: hidden;
}

.dropdown-group.collapsed .dropdown-group-body {
  display: none;
}

.dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-muted);
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-text);
}

/* ---- user-menu.css ---- */
/* ============ USER MENU (logged-in nav) ============ */
.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    100deg,
    rgba(249, 115, 22, 0.9) 0%,
    rgba(154, 66, 16, 0.55) 45%,
    rgba(35, 22, 15, 0.9) 100%
  );
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.2s ease;
}

.user-trigger:hover {
  filter: brightness(1.1);
}

.user-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-badge svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: none;
}

.user-name {
  white-space: nowrap;
}

.user-trigger .caret {
  stroke: #fff;
}

.user-dropdown .dropdown-panel {
  left: auto;
  right: 0;
  transform: translateY(-8px);
  width: 190px;
  padding: 8px;
}

.user-dropdown.open .dropdown-panel {
  transform: translateY(0);
}

.user-menu-panel .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.di-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.8;
}

.dropdown-item:hover .di-icon,
.dropdown-item.active .di-icon {
  stroke: var(--orange);
}

@media (max-width: 620px) {
  .user-trigger {
    padding: 8px 12px;
  }
  .user-name {
    display: none;
  }
}

/* ---- sidebar.css ---- */
/* ============ DASHBOARD SIDEBAR ============ */
.dashboard-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.sidebar {
  flex: 0 0 217px;
  width: 217px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  height: calc(100vh - 40px);
  min-height: 320px;
  background: var(--surface);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 15px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--r-pill);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-brand {
  padding: 15px;
}

.sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-close {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  margin-right: 10px;
}

.sidebar-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sidebar-close:hover {
  color: var(--text);
  background: var(--pill-bg);
}

/* ---- mobile topbar: floating glass header (hidden on desktop) ---- */
.dash-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 15px;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border-radius: var(--r-card);
  box-shadow: 0 4px 50px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.mobile-bar-icons {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mobile-icon-btn[hidden] {
  display: none;
}

.mobile-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-divider {
  height: 1px;
  background: var(--card-border);
  border: none;
  margin: 0;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  font-family: inherit;
  list-style: none;
  cursor: pointer;
}

.side-link::-webkit-details-marker {
  display: none;
}

.side-link:hover {
  color: var(--text);
  background: var(--pill-bg);
}

.side-link.active {
  background: var(--icon-tint);
  color: var(--orange-text);
}

.side-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.side-link span:not(.side-icon) {
  flex: 1;
}

.side-chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
}

.side-group[open] > .side-link .side-chevron {
  transform: rotate(180deg);
}

.side-group-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 0 40px;
  transition: padding-top 0.24s ease;
}

.side-group:not([open]) > .side-group-body {
  height: 0;
  padding-top: 0;
  overflow: hidden;
}

.side-group[open] > .side-group-body {
  height: auto;
}

.side-group-body a {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-muted);
}

.side-group-body a:hover {
  color: var(--orange-text);
  background: var(--icon-tint);
}

.side-group-body a.active {
  color: var(--orange-text);
  background: var(--icon-tint);
  font-weight: 600;
}

/* ---- bottom: user card + theme toggle ---- */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-user-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  color: #fff;
}

.side-user-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #3b3b3b url("../prog/dashboard/user-card-bg.jpeg") center/cover;
}

.side-user-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.side-user-top .side-icon {
  color: #fff;
}

.side-user-name {
  font-size: 14px;
  font-weight: 700;
}

.side-user-menu {
  position: relative;
  background: #3b3b3b;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.side-user-menu .side-link {
  color: var(--text-secondary);
  padding: 0;
}

.side-user-menu .side-link:hover {
  background: none;
  color: var(--orange-text);
}

.side-divider-sm {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  margin: 0;
}

html[data-theme="light"] .side-user-card {
  border: 0.5px solid var(--card-border);
}

html[data-theme="light"] .side-user-menu {
  background: var(--surface);
}

html[data-theme="light"] .side-divider-sm {
  background: var(--card-border);
}

.theme-row {
  background: var(--surface);
  justify-content: space-between;
}

html[data-theme="light"] .theme-row {
  border: 0.5px solid var(--card-border);
}

.theme-row .side-icon {
  background: var(--ctrl-bg);
  border-radius: var(--r-sm);
  width: 34px;
  height: 34px;
}

.theme-row svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ---- dashboard.css ---- */
/* ============ DASHBOARD MAIN ============ */
.dashboard-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ---- header: greeting + quick values ---- */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dash-greeting p {
  font-size: 14px;
  color: var(--text-secondary);
}

.dash-greeting h1 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 2px;
}

/* ---- greeting date row: "Senin, 8 Juni 2026 · Data diperbaharui 09:30" ---- */
.dash-date-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.dash-date-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.dash-date-item svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.dash-date-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: 0 0 auto;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.dash-divider {
  flex: 0 0 auto;
  width: 1px;
  align-self: stretch;
  background: var(--card-border);
}

.dash-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 620px;
}

.quick-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}

.quick-pill .qp-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-pill .qp-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.quick-pill span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.quick-pill .qp-arrow {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

.dash-bell {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
}

.dash-bell[hidden] {
  display: none;
}

.dash-bell svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ---- stat cards ---- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.stat-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.stat-card strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.trend-up,
.trend-down {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.trend-up {
  fill: #4caf50;
}

.trend-down {
  fill: #ff4c4c;
  transform: rotate(180deg);
}

.stat-trend .value.up {
  color: #4caf50;
  font-weight: 600;
}

.stat-trend .value.down {
  color: #ff4c4c;
  font-weight: 600;
}

/* ---- two column: portfolio + side panel ---- */
.dash-columns {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.panel {
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 20px;
}

.panel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title h2 {
  font-size: 18px;
  font-weight: 700;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-text);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 6px 0;
  white-space: nowrap;
}

.panel-link:hover {
  gap: 8px;
}

/* ---- portfolio chart ---- */
.chart-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-wrap {
  display: flex;
  gap: 10px;
}

.chart-yaxis {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}

.chart-canvas {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-canvas svg {
  width: 100%;
  height: 250px;
  display: block;
}

.chart-xaxis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- portfolio tabs: Stock / Historical / Gain-Loss ----
   Reuses .fund-table-card/.fund-table-scroll/.fund-table (fund-portfolio.css)
   for every tab's table, .input-icon-wrap/.input-icon-btn (modal.css) for the
   search field, and .ipo-pagination/.ipo-page-btn (ipo.css) for pagination.
   Geometry/colors pulled from the Figma "01.0 Dashboard" frame's
   Stock/Historical/Gain-Loss tab states. */
.dtab-group {
  display: flex;
  align-self: flex-start;
  gap: 1px;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.dtab {
  padding: 5px 15px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.dtab.active {
  background: var(--orange);
}

.dtab-panel {
  display: none;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.dtab-panel.active {
  display: flex;
}

.dtab-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dtab-toolbar .field {
  flex: 0 0 200px;
}

.dtab-toolbar .field input {
  height: 40px;
  background: var(--surface-2);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 10px 40px 9px 12px;
  font-size: 14px;
  color: var(--text);
}

.dtab-daterange {
  flex: 0 0 300px;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 10px 12px 9px 12px;
  font-size: 14px;
  color: var(--text);
}

.dtab-daterange svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.dtab-date-input {
  flex: 1 1 0;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text);
  color-scheme: dark;
}

.dtab-date-input:focus {
  outline: none;
}

.dtab-toolbar .btn {
  flex: 0 0 auto;
  min-width: 200px;
  justify-content: center;
}

/* .fund-table's default min-width (920px) assumes the wider report pages —
   in this panel it's routinely narrower than that, which forced a
   horizontal scroll on every tab and clipped the card's own right-side
   corners at the scroll boundary. Each tab's columns are already kept on one
   line (white-space: nowrap), so dropping the min-width lets every table
   fall back to its own natural content width instead of an arbitrary shared
   number — no tab scrolls (and loses its rounded corner) until the panel is
   actually narrower than that tab's own content needs. */
.dtab-panel .fund-table {
  min-width: 0;
}

@media (max-width: 620px) {
  .dtab-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dtab-toolbar .field,
  .dtab-daterange,
  .dtab-toolbar .btn {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ---- top pick side panel ---- */
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pick-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.pick-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pick-head strong {
  font-size: 14px;
  font-weight: 700;
}

.pick-row > span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -8px;
}

.pick-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.pick-tag.buy {
  background: rgba(76, 175, 80, 0.18);
  color: #4caf50;
}

.pick-tag.hold {
  background: var(--ctrl-bg);
  color: var(--text-muted);
}

/* ---- extra status colors (New/In-Process/Rejected) — Right Issue/Warrant order list
   needs 4 distinct states at a glance, .buy/.hold alone only cover 2 ---- */
.pick-tag.info {
  background: rgba(26, 129, 246, 0.15);
  color: #1a81f6;
}

.pick-tag.warn {
  background: rgba(255, 176, 32, 0.18);
  color: #ffb020;
}

.pick-tag.reject {
  background: rgba(255, 76, 76, 0.15);
  color: #ff4c4c;
}

.pick-levels {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.pick-levels strong {
  color: var(--text);
  font-weight: 600;
}

.pick-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.pick-row-fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 95%);
}

/* ---- exclusive content card ---- */
.promo-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--icon-tint);
  border-radius: var(--r-card);
  padding: 15px;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.08);
}

.promo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

.promo-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.promo-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---- program unggulan ---- */
.dash-programs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dash-programs h2 {
  font-size: 18px;
  font-weight: 700;
}

.program-grid {
  display: flex;
  gap: 20px;
}

.program-card {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 20px;
  min-height: 130px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.program-art {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 55%;
}

.program-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--surface-2) 0%,
    rgba(32, 33, 35, 0) 55%
  );
}

.program-card .title {
  position: relative;
  z-index: 2;
}

.program-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.program-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---- modal.css ---- */
/* ============ LOGIN MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-modal {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;

  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.modal-overlay.open .login-modal {
  transform: translateY(0) scale(1);
}

.login-modal::-webkit-scrollbar {
  width: 6px;
}

.login-modal::-webkit-scrollbar-track {
  background: transparent;
}

.login-modal::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--r-pill);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 26px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.modal-close:hover {
  background: var(--pill-bg);
  color: var(--text);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-modal-actions .btn {
  width: 100%;
  height: 48px;
}

/* ---- form ---- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s ease;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  outline: none;
  border-color: var(--orange);
}

.field input.invalid {
  border-color: var(--error);
}

.field input.invalid:focus {
  border-color: var(--error);
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--error);
}

.field-error.show {
  display: block;
}

/* ---- telegram-join modal ---- */
.telegram-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
}

.telegram-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.telegram-channel-name {
  font-size: 14px;
  font-weight: 600;
}

.telegram-channel-joined {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--pill-bg);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

.telegram-loading,
.telegram-empty {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 24px 0;
}

.telegram-join-form {
  flex-direction: column;
  gap: 20px;
}

.telegram-join-target {
  font-size: 14px;
  color: var(--text-secondary);
}

.telegram-join-actions {
  display: flex;
  gap: 12px;
}

.telegram-join-actions .btn {
  flex: 1;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap input {
  padding-right: 48px;
}

.input-icon-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-icon-btn:hover {
  color: var(--text);
}

.input-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.captcha-wrap {
  position: relative;
  width: 100%;
}

.captcha-box {
  display: block;
  width: 100%;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
}

.captcha-refresh-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.captcha-refresh-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.login-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: 4px;
}

.login-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--orange-text);
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 620px) {
  .login-modal {
    padding: 28px 24px;
  }
}

/* ---- ipo.css ---- */
/* ============ IPO / E-IPO ============ */
/* Reuses .dash-header/.dash-greeting/.dash-bell (dashboard.css), .stat-card
   (dashboard.css), .pick-tag (dashboard.css), .panel (dashboard.css),
   .input-icon-wrap/.field input (modal.css) and .btn* (base.css) for shared
   chrome — only the components below are new to this page. Geometry/colors
   pulled from the Figma "02.0 Transaksi IPO" / "02.0.1 Detail IPO" frames. */

.ipo-updated {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ipo-updated svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

/* ---- dismissible notice shown above the stat row ---- */
.fixed-allotment-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(26, 129, 246, 0.12);
  border: 1px solid rgba(26, 129, 246, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.fixed-allotment-badge[hidden] {
  display: none;
}

.fixed-allotment-badge-close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--text-muted);
}

.fixed-allotment-badge-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.fixed-allotment-badge-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ---- stat row: same .stat-card as dashboard, 3 columns instead of 4 ---- */
.dash-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---- section heading ---- */
.ipo-section-title {
  font-size: 18px;
  font-weight: 700;
}

.ipo-list-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- tabs + search row ---- */
.ipo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ipo-tabs {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.ipo-tab {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--pill-bg);
  border: 0.5px solid transparent;
}

.ipo-tab:hover {
  color: var(--text);
}

.ipo-tab.active {
  color: var(--orange-text);
  background: var(--icon-tint);
  border-color: var(--orange);
}

.ipo-search {
  width: 300px;
  max-width: 100%;
}

.ipo-search input {
  height: 40px;
  padding: 10px 44px 10px 14px;
  border-radius: var(--r-sm);
}

/* ---- IPO list ---- */
.ipo-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ipo-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ipo-row-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ipo-logo {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
}

.ipo-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ipo-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ipo-info strong {
  font-size: 14px;
  font-weight: 600;
}

.ipo-info .ipo-ticker {
  font-size: 12px;
  color: var(--text-muted);
}

.ipo-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.ipo-price {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.ipo-price .ipo-price-label {
  font-size: 14px;
  color: var(--text-muted);
}

.ipo-price strong {
  font-size: 20px;
  font-weight: 600;
}

.ipo-price .ipo-price-min {
  font-size: 12px;
  color: var(--text-muted);
}

.ipo-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 0.5px solid var(--card-border);
}

.ipo-progress {
  flex: 1;
  min-width: 0;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ipo-progress span {
  font-size: 12px;
  color: var(--text-muted);
}

.ipo-progress-track {
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--ctrl-bg);
  overflow: hidden;
}

.ipo-progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: #4caf50;
}

.ipo-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ---- pagination ---- */
.ipo-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ipo-pagination-summary {
  font-size: 14px;
  color: var(--text-secondary);
}

.ipo-pages {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ipo-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--icon-tint);
}

.ipo-page-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.ipo-page-btn.active {
  background: var(--orange);
  color: #fff;
}

.ipo-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ============ DETAIL IPO ============ */
.ipo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.ipo-breadcrumb a {
  color: var(--orange-text);
}

.ipo-breadcrumb svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
}

.ipo-breadcrumb span {
  color: var(--text-muted);
}

.ipo-company-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ipo-company-name h1 {
  font-size: 18px;
  font-weight: 600;
}

.ipo-company-name span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.ipo-detail-columns {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ipo-detail-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ipo-detail-side {
  flex: 0 0 343px;
  width: 343px;
}

.ipo-field-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ipo-field-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.ipo-field-row dt {
  flex: 0 0 135px;
  color: var(--text-muted);
}

.ipo-field-row dd {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ipo-field-row dd a {
  color: var(--orange-text);
}

.ipo-overview-title {
  font-size: 14px;
  font-weight: 600;
}

.ipo-overview-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ipo-overview-divider {
  height: 1px;
  border: none;
  background: var(--card-border);
}

/* ---- summary sidebar ---- */
.ipo-summary-title {
  font-size: 16px;
  font-weight: 600;
}

.ipo-summary-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ipo-summary-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ipo-summary-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.ipo-summary-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.ipo-summary-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ipo-summary-body.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ipo-summary-label {
  font-size: 12px;
  color: var(--text-muted);
}

.ipo-summary-value {
  font-size: 14px;
  text-align: right;
}

.ipo-summary-body.stacked .ipo-summary-value {
  text-align: left;
}

.ipo-summary-value a {
  color: var(--orange-text);
}

/* ---- disclaimer notice ---- */
.ipo-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: var(--r-card);
  background: rgba(26, 129, 246, 0.1);
  border: 0.5px solid rgba(26, 129, 246, 0.5);
  color: #1a81f6;
}

.ipo-notice svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.ipo-notice p {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .ipo-detail-columns {
    flex-direction: column;
  }

  .ipo-detail-side {
    width: 100%;
  }
}

@media (max-width: 620px) {
  /* .dash-greeting h1/p mobile sizing now lives in responsive.css (shared
     across every dashboard page, not just IPO) */
  .dash-stats-3 {
    grid-template-columns: 1fr;
  }

  /* tabs + search stack, search goes full width and taller */
  .ipo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ipo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ipo-tabs::-webkit-scrollbar {
    display: none;
  }

  .ipo-search {
    width: 100%;
  }

  .ipo-search input {
    height: 48px;
    font-size: 16px;
  }

  /* row: price drops to its own full-width line below a divider instead of
     sitting beside the logo/info */
  .ipo-row-top {
    flex-wrap: wrap;
  }

  .ipo-price {
    flex: 1 1 100%;
    align-items: flex-start;
    text-align: left;
    padding-top: 15px;
    border-top: 0.5px solid var(--card-border);
  }

  /* progress + CTA: stacked, buttons full width and reversed (filled
     "Pesan Sekarang" above outline "Lihat Detail") */
  .ipo-row-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .ipo-progress {
    max-width: none;
  }

  .ipo-cta {
    flex-direction: column-reverse;
  }

  .ipo-cta .btn {
    width: 100%;
  }

  .ipo-cta .btn-sm {
    height: 40px;
    padding: 10px 20px 9px;
  }

  /* pagination: summary above, page buttons row below */
  .ipo-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .ipo-company-head .ipo-logo {
    width: 60px;
    height: 60px;
  }
}

/* ---- datepicker.css ---- */
/* ============ DATE FIELD + DATEPICKER ============
   Reusable date-range filter field (label + input + calendar dropdown).
   Panel visual language (surface card, border, shadow, open-state fade)
   mirrors .dropdown-panel in dropdown.css so it reads as the same "floating
   panel" pattern as the nav mega-menu / user menu. */

.date-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-field-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.field-required {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
}

.date-field-control {
  position: relative;
}

.date-input {
  width: 100%;
  height: 40px;
  background: var(--surface-2);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 10px 44px 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.date-input::placeholder {
  color: var(--text-muted);
}

.date-input:focus {
  outline: none;
  border-color: var(--orange);
}

.date-field-trigger {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.date-field-trigger svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.date-field-helper {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- calendar dropdown panel ---- */
.datepicker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 15px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.date-field.open .datepicker-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.datepicker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.datepicker-title {
  font-size: 14px;
  font-weight: 700;
}

.datepicker-nav {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.datepicker-nav:hover {
  color: var(--text);
  background: var(--pill-bg);
}

.datepicker-nav svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.datepicker-weekdays,
.datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.datepicker-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 8px;
}

.datepicker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
}

.datepicker-day:hover {
  background: var(--pill-bg);
}

.datepicker-day.is-outside {
  color: var(--text-muted);
  opacity: 0.5;
}

.datepicker-day.is-today {
  border: 1px solid var(--orange);
  color: var(--orange-text);
  font-weight: 700;
}

.datepicker-day.is-selected {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.datepicker-day.is-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.datepicker-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: center;
}

.datepicker-today {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-text);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: inherit;
}

.datepicker-today:hover {
  background: var(--icon-tint);
}

@media (max-width: 620px) {
  .date-input {
    height: 44px;
    font-size: 14px;
    padding: 10px 40px 10px 12px;
  }

  .date-field-trigger {
    right: 12px;
    width: 20px;
    height: 20px;
  }

  .date-field-trigger svg {
    width: 18px;
    height: 18px;
  }

  .date-field-helper {
    font-size: 12px;
  }

  .datepicker-panel {
    left: auto;
    right: 0;
    width: min(280px, 88vw);
  }
}

/* ---- fund-portfolio.css ---- */
/* ============ FUND PORTFOLIO (MutualFund) ============
   Reuses .dash-header/.dash-greeting/.dash-date-row/.dash-bell/.panel
   (dashboard.css), .ipo-notice/.ipo-field-list/.ipo-field-row (ipo.css) for
   the info banners + label:value grid, .btn/.btn-primary/.btn-ghost/.btn-sm
   (base.css) for buttons, and .date-field/.datepicker-* (datepicker.css) for
   the date range filter. Only the pieces below are new to this page.
   Geometry/colors pulled from the Figma "02.1 Fund Portfolio" /
   "02.1 Fund Portfolio Mobile" frames. */

/* ---- date filter row: Date From / Date To / Tampilkan ---- */
.date-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.date-filter-row .date-field {
  flex: 1;
  min-width: 0;
}

.date-filter-btn-wrap {
  flex: 1;
  min-width: 0;
  padding-top: 22px;
}

.date-filter-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.date-filter-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ---- mutualfund activity card ---- */
.mf-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mf-activity-head h2 {
  font-size: 14px;
  font-weight: 600;
}

.mf-activity-head p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.mf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mf-download-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.mf-divider {
  height: 1px;
  border: none;
  background: var(--card-border);
  margin: 15px 0;
}

.mf-info-columns {
  display: flex;
  gap: 20px;
}

.mf-info-columns .ipo-field-list {
  flex: 1;
  min-width: 0;
}

/* ---- top holding table ---- */
.fund-table-card {
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  overflow: hidden;
}

.fund-table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.fund-table-scroll::-webkit-scrollbar {
  height: 6px;
}

.fund-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.fund-table-scroll::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--r-pill);
}

.fund-table-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.fund-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.fund-table th {
  background: var(--surface);
  border-bottom: 0.5px solid var(--card-border);
  padding: 16px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.fund-table th:first-child,
.fund-table td:first-child {
  padding-left: 16px;
}

.fund-table th:last-child,
.fund-table td:last-child {
  padding-right: 16px;
}

.fund-table th svg {
  width: 8px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  margin-left: 5px;
  vertical-align: middle;
}

.fund-table td {
  padding: 16px 10px;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

.fund-table tbody tr:nth-child(odd) {
  background: var(--surface-2);
}

.fund-table tbody tr:nth-child(even) {
  background: var(--bg-1);
}

.fund-table td:nth-child(2) {
  white-space: normal;
  min-width: 220px;
}

@media (max-width: 620px) {
  .date-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .date-filter-btn-wrap {
    padding-top: 0;
  }

  .date-filter-btn {
    height: 44px;
    font-size: 14px;
  }

  .mf-activity-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-download-btn {
    justify-content: center;
  }

  .mf-info-columns {
    flex-direction: column;
    gap: 15px;
  }

  /* label:value rows stack instead of squeezing into two narrow columns */
  .mf-info-columns .ipo-field-row {
    flex-direction: column;
    gap: 2px;
  }

  .mf-info-columns .ipo-field-row dt {
    flex: none;
    font-size: 12px;
  }
}

/* ---- client-portfolio.css ---- */
/* ============ TRADE ACTIVITY + CLIENT PORTFOLIO (+ Empty State) ============
   Shared by trade-activity.html/-empty.html (Figma "03.0 Client Portfolio",
   mislabeled — its sidebar siblings are Confirmation/History under
   Transaksi) and client-portfolio.html (Figma "04.0 Client Portfolio",
   whose siblings 04.2 SBN Portfolio / 04.3 Stock Profit match the sidebar's
   Portfolio group, so this is the real Client Portfolio page).

   Reuses .dash-header/.dash-greeting/.dash-date-row/.dash-bell/.panel/
   .dash-stats/.stat-card/.stat-icon (dashboard.css), .holding-logo/
   .stat-trend/.trend-up/.trend-down/.value (dashboard.css) for gain/loss,
   .ipo-notice/.ipo-field-list/.ipo-field-row/.ipo-pagination/.ipo-page-btn
   (ipo.css), .btn/.btn-primary/.btn-ghost (base.css), and the
   date-filter-row/.mf-activity-head/.mf-divider/.mf-info-columns/
   .fund-table-card/.fund-table-scroll/.fund-table/.date-field/.datepicker-*
   layout shell (fund-portfolio.css + datepicker.css). Only the pieces below
   are new. */

.dd-highlight {
  color: var(--orange-text);
  font-weight: 700;
}

/* ---- ticker cell: small logo + code, reuses .holding-logo sizing ---- */
.ticker-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.ticker-logo {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}

.ticker-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fund-table .stat-trend {
  justify-content: flex-start;
}

/* ============ CLIENT PORTFOLIO: TOP FILTER (Date / Nasabah ID / Search) ====
   Matches the old app's plain label:field layout — native date input instead
   of this project's usual .date-field calendar-popup widget, per revision
   client_portofolio_design.png. ============ */
.cp-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cp-filter-label {
  flex: 0 0 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cp-filter-input {
  height: 40px;
  min-width: 220px;
  background: var(--surface-2);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  color-scheme: dark;
}

.cp-filter-input:focus {
  outline: none;
  border-color: var(--orange);
}

.cp-filter-helper {
  margin-left: 112px;
}

.cp-filter-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.field-select {
  width: 100%;
  height: 40px;
  background: var(--surface-2);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 10px 36px 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fafafa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.field-select:focus {
  outline: none;
  border-color: var(--orange);
}

.btn-outline-light {
  border: 1.5px solid var(--text);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-light:hover {
  background: var(--pill-bg);
}

.btn-outline-light svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* ============ COMPOSITION: DONUT CHART + LEGEND ============ */
.cp-data-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 20px;
}

.cp-chart-col {
  flex: 0 0 276px;
  width: 276px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cp-table-col {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cp-table-col .fund-table-card,
.cp-table-col .fund-table-scroll {
  width: 100%;
  min-width: 0;
}

.donut-chart {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--surface-2);
}

.donut-center {
  position: absolute;
  inset: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.donut-center strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.donut-center span {
  font-size: 12px;
  color: var(--text-muted);
}

.portfolio-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
}

.legend-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-ticker {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.legend-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ============ HOLDINGS TABLE ============ */
.stock-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stock-cell img {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: #fff;
}

.stock-cell .stock-meta {
  display: flex;
  flex-direction: column;
}

.stock-cell strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.stock-cell span {
  font-size: 12px;
  color: var(--text-muted);
}

.price-trend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.holdings-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--orange);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: #fff;
}

.holdings-total-row strong {
  font-size: 14px;
  font-weight: 600;
}

.holdings-total-row .value {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .cp-data-row {
    flex-direction: column;
  }

  .cp-chart-col {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .cp-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cp-filter-label {
    flex: 0 0 auto;
  }

  .cp-filter-input {
    min-width: 0;
    width: 100%;
  }

  .cp-filter-helper {
    margin-left: 0;
  }

  .cp-filter-actions {
    flex-direction: column;
  }

  .field-select {
    height: 44px;
    font-size: 14px;
  }
}

/* ============ EMPTY STATE ============ */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 60px 20px;
}

.empty-state-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.empty-state-text h2 {
  font-size: 20px;
  font-weight: 600;
}

.empty-state-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
}

.empty-state-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.empty-state-cta .btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.empty-state-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 620px) {
  .empty-state-card {
    padding: 40px 15px;
  }

  .empty-state-img {
    width: 160px;
    height: 160px;
  }

  .empty-state-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .empty-state-cta .btn {
    width: 100%;
    justify-content: center;
    height: 46px;
  }
}

/* ---- stock-profit.css ---- */
/* ============ STOCK PROFIT ============
   Reuses .dash-header/.dash-greeting/.dash-date-row/.dash-bell/.panel
   (dashboard.css), .ipo-notice/.ipo-field-list/.ipo-field-row (ipo.css),
   .btn/.btn-primary (base.css), .date-field/.datepicker-* (datepicker.css),
   and .mf-activity-head/.mf-divider/.mf-download-btn/.mf-info-columns/
   .fund-table-card/.fund-table-scroll/.fund-table/.holdings-total-row
   (fund-portfolio.css + client-portfolio.css). Only the single-date filter
   row below is new (the rest of the page reuses the two-date filter row's
   sizing needs, but this page only has one date + one button). Geometry/
   colors pulled from the Figma "04.3 Stock Profit" (+ Mobile) frames. */

.sp-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.sp-filter-row .date-field {
  width: 300px;
}

.sp-filter-row .date-filter-btn {
  width: 150px;
  /* lines the button up with the input row, ignoring the label above and
     helper text below it (same offset as .date-filter-btn-wrap) */
  margin-top: 22px;
}

@media (max-width: 620px) {
  .sp-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-filter-row .date-field,
  .sp-filter-row .date-filter-btn {
    width: 100%;
  }

  .sp-filter-row .date-filter-btn {
    margin-top: 0;
  }
}

/* ---- client-fund.css ---- */
/* ============ CLIENT FUND ============
   Reuses .dash-header/.dash-greeting/.dash-date-row/.dash-bell/.panel
   (dashboard.css), .ipo-notice/.ipo-field-list/.ipo-field-row (ipo.css),
   .btn/.btn-primary (base.css), .date-field/.datepicker-* (datepicker.css),
   .mf-activity-head/.mf-divider/.mf-download-btn/.mf-info-columns/
   .fund-table-card/.fund-table-scroll/.fund-table (fund-portfolio.css +
   client-portfolio.css), and .sp-filter-row (stock-profit.css) for the
   single Date From + Tampilkan row. Only the total-row styling below is
   new — the Figma "Total" row sits inside the same table (not a separate
   orange banner like other pages) with a few columns intentionally blank
   (No./Average NAV/Close NAV/% don't sum meaningfully). Geometry/colors
   pulled from the Figma "05.1 Client Fund" (+ Mobile) frames. */

.fund-table tfoot td {
  font-weight: 600;
  color: var(--text);
  border-top: 0.5px solid var(--card-border);
}

/* ---- confirmation.css ---- */
/* ============ TRADE CONFIRMATION ============
   Reuses .dash-header/.dash-greeting/.dash-bell/.panel (dashboard.css),
   .date-field/.date-input/.datepicker-* (datepicker.css), .btn/.btn-primary/
   .btn-ghost/.btn-sm (base.css), .ipo-notice (ipo.css) for the blue
   "Informasi Penting" box, and .fund-table-card/.fund-table-scroll/
   .fund-table (fund-portfolio.css) for the trade breakdown table. Only the
   pieces below are new to this page. Geometry/colors pulled from the Figma
   "03.1 Confirmation" / "03.1.1 Confirmation - Empty State" (+ Mobile)
   frames. */

/* ---- single-field date filter row (Confirmation only has one date, not a
   range, so it doesn't reuse the 2-field .date-filter-row) ---- */
.confirm-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.confirm-filter-row .date-field {
  width: 300px;
  max-width: 100%;
}

.confirm-filter-btn {
  flex: 0 0 auto;
  width: 150px;
}

/* ---- trade confirmation card: title + Download PDF + two-column detail grid ---- */
.confirm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.confirm-card-head h2 {
  font-size: 14px;
  font-weight: 600;
}

.confirm-card-head p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.confirm-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.confirm-download-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ---- note row: instruction text + Ref/Channel pills ---- */
.confirm-note-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.confirm-note-row p {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  font-weight: 500;
}

.confirm-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 10px;
  font-size: 14px;
  white-space: nowrap;
}

.confirm-pill dt {
  color: var(--text-muted);
}

.confirm-pill dd {
  font-weight: 600;
}

/* ---- trade table: Securities column (ticker + company name stack) ---- */
.confirm-security {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.confirm-security strong {
  font-weight: 600;
  color: var(--text);
}

.confirm-security span {
  color: var(--text-muted);
}

.fund-table.confirm-table td:nth-child(2) {
  white-space: nowrap;
  min-width: 0;
}

/* ---- Buy/Sell status pill (also reused by History Transaction for
   Accepted/Rejected order status) ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.status-pill.buy,
.status-pill.accepted {
  background: rgba(76, 175, 80, 0.18);
  color: #4caf50;
}

.status-pill.sell,
.status-pill.rejected {
  background: rgba(255, 76, 76, 0.15);
  color: #ff4c4c;
}

/* ---- trade breakdown summary rows (tfoot): label spans the leading
   columns, amounts sit right-aligned under Buy/Sell ---- */
.confirm-table tfoot td {
  font-weight: 600;
  color: var(--text);
  border-top: 0.5px solid var(--card-border);
  text-align: right;
  white-space: nowrap;
}

.confirm-table tfoot td.cf-label {
  text-align: left;
  white-space: normal;
}

.confirm-table tfoot .cf-label small {
  font-weight: 400;
  color: var(--text-muted);
}

.confirm-table tfoot tr.confirm-due td {
  background: var(--icon-tint);
  color: var(--orange-text);
  font-size: 15px;
}

.confirm-table tfoot tr.confirm-due td.cf-label {
  font-size: 14px;
}

/* ---- footer: transfer info card + Informasi Penting notice ---- */
.confirm-footer-grid {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.confirm-footer-grid > .panel {
  flex: 1;
  min-width: 0;
}

.confirm-transfer-title {
  font-size: 14px;
  font-weight: 600;
}

.confirm-transfer-divider {
  height: 1px;
  border: none;
  background: var(--card-border);
  margin: 15px 0;
}

.confirm-transfer-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.confirm-transfer-text strong {
  color: var(--text);
  font-weight: 700;
}

.confirm-bank-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--icon-tint);
  border-radius: var(--r-sm);
  padding: 15px;
}

.confirm-bank-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.confirm-bank-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.confirm-bank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.confirm-bank-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.confirm-bank-info strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-text);
}

.confirm-copy-btn {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.confirm-copy-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.confirm-copy-btn:hover,
.confirm-copy-btn.copied {
  color: var(--orange-text);
}

.confirm-notice-title {
  font-weight: 700;
  margin-bottom: 4px;
}

@media (max-width: 620px) {
  .confirm-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-filter-row .date-field {
    width: 100%;
  }

  .confirm-filter-btn {
    width: 100%;
  }

  .confirm-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-download-btn {
    justify-content: center;
  }

  .confirm-note-row {
    flex-direction: column;
    align-items: stretch;
  }

  .confirm-pill {
    justify-content: space-between;
  }

  .confirm-footer-grid {
    flex-direction: column;
  }
}

/* ---- history-transaction.css ---- */
/* ============ HISTORY TRANSACTION ============
   Reuses .dash-header/.dash-greeting/.dash-bell/.dtab-panel/.dtab-panel.active
   (dashboard.css) to swap between the Right Issue / IPO tables, .date-field/
   .date-input (datepicker.css) for the Type dropdown's visual shell,
   .fund-table-card/.fund-table-scroll/.fund-table (fund-portfolio.css) for
   both tables, .ipo-pagination/.ipo-page-btn (ipo.css) for pagination, and
   .status-pill (confirmation.css) for the Accepted/Rejected order status.
   Only the pieces below are new to this page. Geometry/colors pulled from
   the Figma "03.2.1 History - Right Issue" / "03.2.2 History - IPO" /
   "03.2.3 History - Empty State" (+ Mobile) frames. */

.date-filter-row.ht-filter-row {
  flex-wrap: wrap;
}

.ht-filter-row .date-field {
  flex: 1 1 200px;
  min-width: 0;
}

.ht-filter-row .date-filter-btn-wrap {
  flex: 0 0 170px;
}

/* ---- Type dropdown: same shell as .date-field/.date-input, but a native
   <select> instead of a text input driving the datepicker panel ---- */
.type-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.type-select::-ms-expand {
  display: none;
}

.date-field-trigger.type-chevron {
  pointer-events: none;
}

/* ---- selling-tax.css ---- */
/* ============ SELLING TAX (+ similar Pajak & Lainnya letter-style pages) ============
   Reuses .dash-header/.dash-greeting/.dash-date-row/.dash-bell/.panel
   (dashboard.css), .ipo-notice (ipo.css), .mf-activity-head/.mf-divider/
   .mf-download-btn (fund-portfolio.css), and .sp-filter-row (stock-profit.css)
   for the single Year + Tampilkan row. Only the formal-letter text block
   below is new — Summary Dividen / Statement look likely to reuse it too.
   Geometry/colors pulled from the Figma "06.1 Selling Tax" (+ Mobile) frames. */

.tax-letter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tax-letter p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tax-letter p.tax-letter-strong {
  font-weight: 600;
}

/* ---- sbn-portfolio.css ---- */
/* ============ SBN PORTFOLIO ============
   Reuses .dash-header/.dash-greeting/.dash-date-row/.dash-bell/.panel
   (dashboard.css), .ipo-notice/.ipo-field-list/.ipo-field-row (ipo.css),
   .btn/.btn-outline-light (base.css + client-portfolio.css). Only the owner
   bar below is new. Geometry/colors pulled from the Figma "04.2 SBN
   Portfolio" (+ Mobile) frames. */

.sbn-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sbn-owner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  background: var(--orange);
  border-radius: var(--r-card);
  padding: 15px;
}

.sbn-owner-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sbn-owner-info strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.sbn-owner-info span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 620px) {
  .sbn-owner-bar .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- form-center.css ---- */
/* ============ FORM CENTER ============
   Reuses .dash-header/.dash-greeting/.dash-bell (dashboard.css),
   .field/.input-icon-wrap/.input-icon-btn (modal.css), .ipo-search width
   (ipo.css), .btn/.btn-primary/.btn-sm (base.css) and .ipo-pagination/
   .ipo-page-btn (ipo.css) for the pagination bar. Only the form-row list
   below is new to this page. Geometry/colors pulled from the Figma
   "08.1 Form Center" frame. */

.fc-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fc-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
}

.fc-row-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--icon-tint);
  color: var(--orange-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-row-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.fc-row-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
}

.fc-row .btn {
  flex: 0 0 auto;
}

@media (max-width: 620px) {
  .fc-row {
    flex-wrap: wrap;
  }

  .fc-row-title {
    flex: 1 1 auto;
  }

  .fc-row .btn {
    flex: 1 1 100%;
  }
}

/* ---- calendar-event.css ---- */
/* ============ CALENDAR EVENT ============
   Reuses .dash-header/.dash-greeting/.dash-bell/.panel (dashboard.css) for
   shared chrome. Only the calendar toolbar/grid + upcoming-events panel
   below are new to this page. Geometry/colors pulled from the Figma
   "08.0 Calendar Event" frame (the fictional "today" was normalized to
   Senin, 8 Juni 2026 to match the date every other dashboard page uses —
   Figma's own mock mixed "Juli 2026" with April/May day numbers). */

.cal-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* ---- toolbar: prev/today/next · month label · Month/Week/Day ---- */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.cal-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.cal-today-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.cal-month-label {
  font-size: 18px;
  font-weight: 700;
}

.cal-view-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-view-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 0.5px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.cal-view-btn.active {
  background: var(--icon-tint);
  border-color: var(--orange);
  color: var(--orange-text);
}

/* ---- month grid ---- */
.cal-grid-card {
  flex: 1;
  min-width: 0;
  border: 0.5px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-weekday {
  background: var(--surface);
  border: 0.5px solid var(--card-border);
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.cal-day {
  height: 124px;
  padding: 12px;
  border: 0.5px solid var(--card-border);
  background: var(--surface);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-day.is-outside {
  background: var(--bg-1);
  opacity: 0.4;
}

.cal-day-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cal-day.is-today {
  background: var(--orange);
  color: #fff;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.cal-day.is-today .cal-day-label {
  font-size: 13px;
  font-weight: 500;
}

/* ---- week/day view: hourly time grid ----
   Month keeps the dot grid above; Week/Day switch to a Google-Calendar-style
   time grid (sticky day header + all-day row, scrollable hour rows) per the
   reference screenshots the user supplied. --cal-cols is set inline by JS:
   "60px repeat(7, 1fr)" for Week, "60px 1fr" for Day. */
.cal-timegrid {
  display: none;
}

.cal-grid-card[data-view="month"] .cal-timegrid {
  display: none;
}

.cal-grid-card[data-view="week"] .cal-timegrid,
.cal-grid-card[data-view="day"] .cal-timegrid {
  display: block;
}

.cal-grid-card[data-view="week"] .cal-weekdays,
.cal-grid-card[data-view="week"] .cal-days,
.cal-grid-card[data-view="day"] .cal-weekdays,
.cal-grid-card[data-view="day"] .cal-days {
  display: none;
}

.cal-timegrid-header,
.cal-timegrid-allday,
.cal-timegrid-row {
  display: grid;
  grid-template-columns: var(--cal-cols, 60px repeat(7, 1fr));
}

.cal-timegrid-header {
  border-bottom: 0.5px solid var(--card-border);
}

.cal-tg-gutter {
  border-right: 0.5px solid var(--card-border);
}

.cal-tg-col-header {
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-left: 0.5px solid var(--card-border);
}

.cal-tg-col-header .cal-tg-col-date {
  display: block;
  font-size: 15px;
  margin-top: 2px;
}

.cal-tg-col-header.is-today {
  color: var(--orange-text);
}

.cal-timegrid-allday {
  min-height: 44px;
  border-bottom: 0.5px solid var(--card-border);
}

.cal-tg-gutter-label {
  padding: 10px 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.cal-tg-allday-cell {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 0.5px solid var(--card-border);
}

.cal-tg-allday-cell.is-today {
  background: color-mix(in srgb, var(--orange) 10%, transparent);
}

.cal-tg-chip {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-timegrid-scroll {
  max-height: 480px;
  overflow-y: auto;
}

.cal-timegrid-row {
  height: 24px;
}

.cal-timegrid-row.is-hour {
  border-top: 0.5px solid var(--card-border);
}

.cal-timegrid-row.is-half {
  border-top: 0.5px dashed var(--card-border);
}

.cal-tg-time-label {
  position: relative;
  top: -8px;
  padding-right: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.cal-tg-day-cell {
  border-left: 0.5px solid var(--card-border);
}

.cal-tg-day-cell.is-today {
  background: color-mix(in srgb, var(--orange) 6%, transparent);
}

/* ---- upcoming events panel ---- */
.cal-upcoming {
  position: relative;
  flex: 0 0 276px;
  width: 276px;
  max-height: 739px;
  overflow-y: auto;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cal-upcoming h2 {
  font-size: 18px;
  font-weight: 700;
}

.cal-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cal-upcoming-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.cal-upcoming-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cal-upcoming-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cal-upcoming-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.cal-upcoming-body {
  flex: 1;
  min-width: 0;
}

.cal-upcoming-body strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.cal-upcoming-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cal-upcoming-body .cal-upcoming-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .cal-layout {
    flex-direction: column;
  }

  .cal-upcoming {
    width: 100%;
    max-height: none;
  }

  .cal-day {
    height: auto;
    min-height: 64px;
  }
}

@media (max-width: 620px) {
  .cal-toolbar {
    align-items: stretch;
  }

  .cal-nav {
    justify-content: space-between;
  }

  .cal-today-btn {
    flex: 1;
  }

  .cal-month-label {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .cal-view-toggle {
    order: 4;
    width: 100%;
  }

  .cal-view-btn {
    flex: 1;
    padding: 0 8px;
  }

  .cal-weekday {
    padding: 8px 4px;
    font-size: 12px;
  }

  .cal-day {
    padding: 6px;
    font-size: 12px;
    gap: 4px;
  }

  .cal-day.is-today .cal-day-label {
    font-size: 10px;
  }
}

/* ---- pengkinian-data.css ---- */
/* ============ PENGKINIAN DATA NASABAH ============
   Reuses .dash-header/.dash-greeting/.dash-bell (dashboard.css), .ipo-notice
   (ipo.css) for the info banner, and .btn/.btn-primary (base.css) for the
   submit button. Only the info cards / data rows / radio pairs below are
   new to this page. Geometry/colors pulled from the Figma
   "08.2 Pengkinian Data Nasabah" frame. */

.pk-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pk-info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 0.5px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.pk-info-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.pk-info-body {
  flex: 1;
  min-width: 0;
}

.pk-info-body span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.pk-info-body strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

.pk-info-card > svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  color: var(--text-muted);
}

/* ---- data category rows ---- */
.pk-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pk-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
  flex-wrap: wrap;
}

.pk-row-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--icon-tint);
  color: var(--orange-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-row-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.pk-row-body {
  flex: 1;
  min-width: 200px;
}

.pk-row-body strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.pk-row-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---- expandable detail body (shown when a category is "Ya") ----
   Animated via JS (pengkinian-data.js) toggling the .is-open class and an
   inline max-height — see openCollapse()/closeCollapse() there. Starts
   collapsed (max-height: 0) to match every category's default "Tidak". */
.pk-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease;
}

.pk-collapse.is-open {
  opacity: 1;
}

.pk-card-body {
  margin-top: 10px;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.pk-field {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}

.pk-field:first-child {
  padding-top: 0;
}

.pk-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pk-field-label {
  flex: 0 0 220px;
  padding-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pk-field-control {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pk-field-control > select,
.pk-field-control > input,
.pk-field-control > .pk-input-addon-group,
.pk-field-control > .date-field,
.pk-field-control > .pk-combobox {
  flex: 1 1 160px;
  min-width: 0;
}

/* the shared .date-input already matches .pk-input's look, just swap its
   background so it reads against the card body's surface-2 the same way
   every other field in this form does */
.pk-field-control .date-input {
  background: var(--surface);
}

.pk-subheading {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 -5px;
}

.pk-input {
  width: 100%;
  height: 40px;
  background: var(--surface);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 10px 12px 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}

.pk-input::placeholder {
  color: var(--text-muted);
}

.pk-input:focus {
  outline: none;
  border-color: var(--orange);
}

.pk-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pk-input-addon-group {
  display: flex;
}

.pk-input-addon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--ctrl-bg);
  border: 0.5px solid var(--text-muted);
  border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  font-size: 14px;
  color: var(--text-muted);
}

.pk-input-addon-group .pk-input {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.pk-field-suffix {
  flex: 0 0 auto;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- searchable select ("select2-like") for Kewarganegaraan / Nama Bank ---- */
.pk-combobox {
  position: relative;
}

.pk-combobox-input {
  cursor: text;
}

.pk-combobox-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pk-combobox-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.pk-combobox.open .pk-combobox-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pk-combobox-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.pk-combobox-option:hover,
.pk-combobox-option.is-active {
  background: var(--pill-bg);
}

.pk-combobox-empty {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.pk-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease;
}

.pk-reveal.is-open {
  opacity: 1;
}

.pk-final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  flex-wrap: wrap;
}

/* ---- Ya/Tidak radio pair ---- */
.pk-radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.pk-radio {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  cursor: pointer;
}

.pk-radio input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid var(--card-border);
  display: grid;
  place-content: center;
  flex: 0 0 auto;
}

.pk-radio input[type="radio"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.pk-radio input[type="radio"]:checked {
  border-color: var(--orange);
}

.pk-radio input[type="radio"]:checked::before {
  transform: scale(1);
}

/* ---- submit ---- */
.pk-submit-row {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 620px) {
  .pk-cards {
    grid-template-columns: 1fr;
  }

  .pk-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pk-radio-group {
    width: 100%;
    justify-content: flex-start;
  }

  .pk-final-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pk-submit-row .btn {
    width: 100%;
  }

  .pk-card-body {
    padding: 15px;
  }

  .pk-field {
    flex-direction: column;
    gap: 8px;
  }

  .pk-field-label {
    flex: none;
    padding-top: 0;
  }

  .pk-field-control {
    width: 100%;
    min-width: 0;
  }

  .pk-field-control > select,
  .pk-field-control > input,
  .pk-field-control > .pk-input-addon-group,
  .pk-field-control > .date-field,
  .pk-field-control > .pk-combobox {
    flex: 1 1 100%;
  }
}

/* ---- onboarding.css ---- */
/* ============ DASHBOARD ONBOARDING ============ */
/* Reuses .modal-overlay + .login-modal (modal.css) for the dim backdrop and
   card shell, and .btn / .btn-primary / .btn-ghost (base.css) for actions.
   Sizing/spacing below is pulled directly from the Figma "daftar" card
   component (Onboarding 1-5 frames) so it matches 1:1 at the 1440 desktop
   canvas width the frames were designed at. */

.onboard-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 700px;
  max-width: calc(100vw - 48px);
  padding: 30px;
  border-radius: var(--r-card);
  text-align: left;
}

.onboard-art {
  flex: 0 0 200px;
  display: block;
  width: 200px;
  height: 300px;
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #000;
}

.onboard-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.onboard-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.onboard-welcome h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.onboard-welcome h2 span {
  color: var(--orange-text);
}

.onboard-welcome p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.onboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.onboard-actions .btn {
  flex: 1;
  font-weight: 700;
}

/* ---- mobile-only "best on desktop" advisory (shown before the welcome
   step on small viewports; never appears in the desktop flow) ---- */
.onboard-advisory {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 400px;
  max-width: calc(100vw - 48px);
  padding: 30px 15px 15px;
  border-radius: var(--r-card);
  text-align: left;
}

.onboard-advisory h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.onboard-advisory p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.onboard-advisory .btn {
  width: 100%;
}

/* ---- mobile-only: self-contained preview cards for steps 2-4 (image +
   text + button, no live spotlight — the sidebar/stats/chart/top-pick
   sections can be scrolled well out of view on a phone, so instead of
   highlighting the live element the card just shows a snapshot of it) ---- */
.onboard-preview {
  display: none;
  flex-direction: column;
  gap: 15px;
  width: 400px;
  max-width: calc(100vw - 48px);
  padding: 15px;
  border-radius: var(--r-card);
  text-align: left;
}

.onboard-preview-img {
  display: block;
  width: 100%;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.onboard-preview .onboard-next {
  width: 100%;
  height: 48px;
}

/* ---- spotlight: box-shadow cutout dims everything except the target rect,
   so the real target shows through at full brightness with no z-index
   fighting against the tour card ---- */
.modal-overlay.tour-active {
  background: transparent;
}

.onboard-spotlight-hole {
  display: none;
  position: fixed;
  border-radius: var(--r-card);
  box-shadow: 0 0 0 9999px var(--overlay);
  pointer-events: none;
  transition:
    top 0.3s ease,
    left 0.3s ease,
    width 0.3s ease,
    height 0.3s ease;
}

/* ---- guided tour steps ---- */
.onboarding-tour-card {
  display: none;
  flex-direction: column;
  position: fixed;
  width: 500px;
  max-width: calc(100vw - 48px);
  max-height: none;
  overflow: visible;
  padding: 30px;
  border-radius: var(--r-card);
  text-align: left;
  transform: none;
  gap: 30px;
  transition:
    top 0.3s ease,
    left 0.3s ease;
}

.modal-overlay.open .onboarding-tour-card {
  transform: none;
}

.tour-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tour-step-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--orange-text);
}

.onboarding-tour-card h3,
.onboard-preview h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.onboarding-tour-card p,
.onboard-preview p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.onboarding-tour-card .onboard-next {
  align-self: flex-start;
  font-weight: 700;
}

@media (max-width: 760px) {
  .onboard-welcome {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 15px 15px;
    gap: 20px;
  }

  .onboard-art {
    flex: 0 0 auto;
    width: 160px;
    height: 240px;
    margin: 0 auto;
  }

  .onboard-welcome h2 {
    font-size: 20px;
  }

  .onboard-welcome p {
    font-size: 16px;
    line-height: 1.5;
  }

  .onboard-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .onboard-actions .btn {
    width: 100%;
    height: 48px;
    padding: 12px 20px;
  }

  .onboarding-tour-card {
    padding: 20px 15px;
    gap: 15px;
  }

  .onboarding-tour-card h3 {
    font-size: 20px;
  }

  .onboarding-tour-card .onboard-next {
    align-self: stretch;
    width: 100%;
    height: 48px;
  }
}

/* ---- hero.css ---- */
/* ============ HERO ============ */
.hero {
  background: var(--hero-bg);
  padding: 56px 0 42px;
  position: relative;
}

.hero-grid {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 530px;
  padding: 20px 0 20px 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 26px;
}

.badge svg {
  flex-shrink: 0;
}

.hero-slides {
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  flex: 1;
}

.hero-actions .btn:only-child {
  flex: 0 0 auto;
}

/* hero art — floating mockup type (default) */
.phones {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.phones img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 105%;
  width: auto;
  max-width: none;
}

/* hero art — full-bleed background type */
.phones.art-bg img {
  position: absolute;
  inset: 0;
  right: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.phones.art-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.05) 75%
  );
}

/* carousel controls */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
}

.dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: #4a4b4e;
  display: block;
  cursor: pointer;
  transition:
    width 0.35s ease,
    background 0.35s ease;
}

.dots i.on {
  width: 44px;
  background: var(--orange);
}

.arrows {
  display: flex;
  gap: 12px;
}

.arrows button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ctrl-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.arrows button:hover {
  background: var(--orange);
  color: #fff;
}

/* ---- features.css ---- */
/* ============ FEATURE STRIP ============ */
.features {
  background: var(--bg-1);
  padding: 62px 0 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.f-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
}

.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---- programs.css ---- */
/* ============ SECTIONS (shared) ============ */
.section {
  background: var(--bg-1);
  padding: 26px 0 54px;
}

.section.alt {
  background: var(--bg-2);
}

.section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 26px;
}

/* ============ PROGRAM CARDS ============ */
.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.programs:has(.prog:only-child) {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.prog {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 20px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prog h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.prog p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 30ch;
  position: relative;
  z-index: 2;
}

.prog .meta {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.prog .meta small {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.prog .meta strong {
  font-size: 14.5px;
  font-weight: 600;
}

.prog .link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--orange-text);
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.prog .link:hover {
  gap: 13px;
}

.prog-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.prog-art svg {
  width: 100%;
  height: 100%;
}

.prog-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prog-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.05) 75%
  );
}

html[data-theme="light"] .prog-art::after {
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.05) 75%
  );
}

/* ---- products.css ---- */
/* ============ PRODUCT CARDS ============ */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.prod {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 24px;
  min-height: 230px;
  overflow: hidden;
  cursor: pointer;
}

.p-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 2;
}

.p-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

.prod h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.prod p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.prod-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
}

.prod-art svg {
  width: 100%;
  height: 100%;
}

.prod-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme="light"] .prod-art {
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(115deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(115deg, transparent 0%, #000 55%);
}

/* ---- about.css ---- */
/* ============ ABOUT US ============ */
.nav-outer {
  background: var(--bg-1);
}

.about-hero {
  padding: 40px 0 0;
}

.about-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  display: block;
}

.about-content {
  padding: 50px 0 70px;
}

.about-content h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 62em;
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .about-content h2 {
    font-size: 24px;
  }
}

/* ---- faq.css ---- */
/* ============ FAQ ============ */
.nav-outer {
  background: var(--bg-1);
}

.faq-section {
  background: var(--bg-1);
  padding: 40px 0 70px;
}

.faq-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 26px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.faq-item {
  border-radius: var(--r-card);
  border: 1px solid transparent;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--orange);
  background: var(--icon-tint);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 1px;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.faq-answer-inner a {
  color: var(--orange-text);
  text-decoration: underline;
}

/* ============ FAQ HELP BANNER ============ */
.faq-help {
  border-radius: var(--r-card);
  background: linear-gradient(135deg, var(--orange-hi), var(--orange-lo));
  padding: 34px 40px;
}

.faq-help h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-help p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
}

.faq-help-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  border: 1.5px solid #fff;
  color: #fff;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.help-btn:hover {
  opacity: 0.9;
}

.help-btn.primary {
  background: #fff;
  color: var(--orange-lo);
  border-color: #fff;
}

@media (max-width: 620px) {
  .faq-title {
    font-size: 24px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .faq-answer-inner {
    padding: 0 18px 18px;
  }
  .faq-help {
    padding: 26px 22px;
  }
  .faq-help-actions {
    flex-direction: column;
  }
  .help-btn {
    width: 100%;
  }
}

/* ---- stock-wars.css ---- */
/* ============ STOCK WARS (07.1 / 07.1 Tnc Pop up / 07.2 Hadiah) ============
   Reuses .nav-outer/.nav (nav.css), .hero/.hero-grid/.hero-copy/.badge/
   .phones.art-bg (hero.css), .section/.section.alt (programs.css),
   .btn/.btn-primary/.btn-ghost/.wrap (base.css), .modal-overlay/.modal-header/
   .modal-close (modal.css), .foot/.foot-links (footer.css) and the login
   modal markup/JS as-is. Only the pieces below are new to this page.
   Geometry/colors pulled from the Figma "07.1 STOCK WARS",
   "07.1 STOCK WARS- Tnc Pop up" and "07.2 STOCK WARS- Hadiah" frames. */

/* ---- shared eyebrow/heading block ---- */
.sw-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.sw-heading .eyebrow {
  font-size: 14px;
  color: var(--orange-text);
}

.sw-heading h2 {
  font-size: 24px;
  font-weight: 700;
}

.sw-heading p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 60ch;
}

/* ---- 01. "Mulai Stock Wars dalam 3 Langkah" ---- */
.sw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sw-step {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.sw-step-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--icon-tint);
  color: var(--orange-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-step-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.sw-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.sw-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- 02. "Siap Masuk Arena Stock Wars?" registration card ---- */
.sw-arena {
  position: relative;
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 20px;
  overflow: hidden;
}

.sw-arena-art {
  position: absolute;
  top: -40px;
  right: -1px;
  width: 380px;
  max-width: 45%;
  height: 302px;
  z-index: 0;
}

.sw-arena-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sw-arena-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    91deg,
    var(--surface-2) 38%,
    rgba(32, 33, 35, 0) 87%
  );
}

html[data-theme="light"] .sw-arena-art::after {
  background: linear-gradient(
    91deg,
    var(--surface-2) 38%,
    rgba(246, 247, 249, 0) 87%
  );
}

.sw-arena-head {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.sw-arena-head .eyebrow {
  font-size: 14px;
  color: var(--orange-text);
  display: block;
}

.sw-arena-head h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.sw-arena-head p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.sw-arena-values {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
}

.sw-arena-value {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sw-arena-value:hover,
.sw-arena-value:focus-visible {
  border-color: var(--orange);
}

.sw-arena-value h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.sw-arena-value p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- 03. "Kenali Aturannya Sebelum Bertanding" terms teaser ---- */
.sw-terms-card {
  background: var(--surface-2);
  border: 0.5px solid var(--card-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sw-terms-list-wrap {
  position: relative;
}

.sw-terms-list {
  list-style: decimal;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
}

.sw-terms-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent 0%, var(--surface-2) 92%);
  pointer-events: none;
}

.sw-terms-card > .btn {
  align-self: center;
  width: 200px;
}

/* ---- 04. "Yang Kamu Kejar di Stock Wars" goal cards ---- */
.sw-goals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sw-goal {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 20px;
}

.sw-goal-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
}

.sw-goal-icon.is-blue {
  background: #1a81f6;
}

.sw-goal-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.sw-goal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.sw-goal p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sw-goal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-text);
  font-size: 14px;
  font-weight: 700;
}

.sw-goal-link:hover {
  gap: 10px;
}

/* ---- 05. final CTA ---- */
.sw-cta {
  position: relative;
  border: 0.5px solid var(--card-border);
  border-radius: var(--r-card);
  overflow: hidden;
  padding: 20px;
  color: #fff;
}

.sw-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #010407 url("../prog/stockwars/final-cta-bg.png") center /
    cover no-repeat;
}

.sw-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(1, 4, 7, 0.9) 0%,
    rgba(1, 4, 7, 0.55) 55%,
    rgba(1, 4, 7, 0.25) 100%
  );
}

.sw-cta-inner {
  position: relative;
  z-index: 1;
}

.sw-cta h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sw-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.sw-cta .btn {
  width: 300px;
}

/* ---- Terms & Condition modal ---- */
.tnc-modal {
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.modal-overlay.open .tnc-modal,
.modal-overlay.open .hadiah-modal {
  transform: translateY(0) scale(1);
}

.tnc-list {
  list-style: decimal;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 2;
}

.tnc-list li {
  margin-bottom: 2px;
}

.tnc-list a {
  color: var(--orange-text);
  text-decoration: underline;
}

.tnc-subheading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 6px;
}

/* ---- Hadiah (prizes) modal ---- */
.hadiah-modal {
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.hadiah-banner {
  position: relative;
  height: 260px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.hadiah-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hadiah-banner .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.hadiah-banner .modal-close:hover {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.hadiah-body {
  padding: 24px 32px 32px;
}

.hadiah-body h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hadiah-body > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hadiah-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 28px;
}

.hadiah-period svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.hadiah-section + .hadiah-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
}

.hadiah-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hadiah-section > p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hadiah-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hadiah-card {
  background: var(--surface-2);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}

.hadiah-card.is-first {
  background: rgba(249, 115, 22, 0.1);
  border-color: var(--orange);
}

.hadiah-card img {
  width: 64px;
  height: auto;
  margin: 0 auto 12px;
  mix-blend-mode: screen;
}

.hadiah-card.is-first img {
  width: 84px;
}

.hadiah-card .amount {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hadiah-card.is-first .amount {
  color: var(--orange-text);
}

.hadiah-card .rank {
  font-size: 13px;
  color: var(--text-muted);
}

.hadiah-card.is-first .rank {
  color: var(--text);
  font-weight: 600;
}

/* ---- mobile modals: full-screen sheet, matches the Figma mobile Tnc/Hadiah frames ---- */
@media (max-width: 620px) {
  .modal-overlay:has(.tnc-modal),
  .modal-overlay:has(.hadiah-modal) {
    padding: 0;
  }

  .tnc-modal {
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    padding: 20px;
  }

  .hadiah-modal {
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .hadiah-banner {
    height: 200px;
    border-radius: 0;
  }

  .hadiah-body {
    padding: 20px 18px 28px;
  }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .sw-steps,
  .sw-goals {
    grid-template-columns: 1fr;
  }

  .sw-arena-values {
    grid-template-columns: 1fr;
  }

  .sw-arena-art {
    max-width: 60%;
    opacity: 0.5;
  }

  .hadiah-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .sw-heading h2 {
    font-size: 20px;
  }

  .sw-arena {
    padding: 16px;
  }

  .sw-arena-art {
    display: none;
  }

  .sw-cta {
    padding: 24px 20px;
  }

  .sw-cta .btn {
    width: 100%;
  }

  .sw-terms-card > .btn {
    width: 100%;
  }
}

/* ---- appcta.css ---- */
/* ============ APP CTA ============ */
.appcta-wrap {
  background: var(--bg-2);
  padding: 130px 0 40px;
  position: relative;
  overflow-x: hidden;
}

.appcta {
  position: relative;
  border-radius: 18px;
  background: var(--orange) url("../prog/svg/footer.webp") center / cover
    no-repeat;
  padding: 52px 56px;
  min-height: 250px;
}

.appcta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(
    circle at 78% 40%,
    rgba(255, 180, 120, 0.35),
    transparent 55%
  );
}

.appcta-inner {
  position: relative;
  z-index: 2;
  max-width: 62%;
}

.appcta h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.appcta p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 30px;
}

.stores {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store {
  display: flex;
  transition: transform 0.2s;
}

.store:hover {
  transform: translateY(-2px);
}

.store img {
  height: 36px;
  width: auto;
  display: block;
}

.appcta-phones {
  position: absolute;
  right: -50px;
  top: -120px;
  z-index: 2;
  width: 660px;
}

.appcta-phones img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- footer.css ---- */
/* ============ FOOTER ============ */
footer {
  background: var(--surface);
  padding: 26px 0;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.foot-links {
  display: flex;
  gap: 44px;
  font-size: 14px;
}

.foot-links a:hover {
  color: var(--orange-text);
}

.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.theme-btn:hover {
  background: var(--pill-bg);
}

.theme-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

/* ---- responsive.css ---- */
/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero h1 {
    font-size: 42px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs {
    grid-template-columns: 1fr;
  }
  .appcta-phones {
    display: none;
  }
  .appcta-inner {
    max-width: 100%;
  }
  .hero-grid {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-copy {
    max-width: 100%;
    order: 2;
  }
  .phones {
    order: 1;
    position: static;
    inset: auto;
    margin-top: 0;
  }
  .phones img,
  .phones.art-bg img {
    position: static;
    inset: auto;
    transform: none;
    object-fit: contain;
    height: auto;
    width: 100%;
    max-width: 420px;
  }
  .phones.art-bg::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }
  .nav {
    padding: 10px 10px 10px 18px;
  }
  .btn-login {
    padding: 9px 20px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-actions .btn {
    flex: 1;
    padding: 5px 10px;
    text-align: center;
  }
  .feature-grid,
  .products {
    grid-template-columns: 1fr;
  }
  .appcta {
    padding: 32px 24px;
  }
  .appcta h2 {
    font-size: 22px;
  }
  .foot {
    flex-direction: column;
    text-align: center;
  }
  .foot-links {
    flex-direction: column;
    gap: 14px;
  }
}

/* ============ DASHBOARD ============ */
@media (max-width: 1180px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-columns {
    flex-direction: column;
  }
  .dash-actions {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
  .dash-quick {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-mobile-bar {
    display: flex;
    width: 100%;
  }
  .dash-actions {
    display: none;
  }
  .sidebar-close {
    display: flex;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open {
    overflow: hidden;
  }
  .sidebar-top {
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .dashboard-shell {
    padding: 14px;
  }
  .dash-stats {
    grid-template-columns: 1fr;
  }
  .stat-card,
  .panel {
    padding: 15px;
  }
  .program-grid {
    flex-direction: column;
  }
  .dash-greeting h1 {
    font-size: 20px;
  }
  .dash-greeting p {
    font-size: 16px;
  }
}

/* ---- search-select.js ---- */
/* ============ SEARCHABLE SELECT ("Nasabah ID" dropdowns) ============
   Progressive enhancement for a plain <select> inside a .date-field: the
   native select is hidden and replaced with a button styled like the page's
   own select (.date-input/.type-select or .field-select — whichever class
   the original select had), which opens a floating filter+list panel using
   the same open-state mechanics as .datepicker-panel (datepicker.css). Used
   by report pages' sales "Nasabah ID" client picker (member-area.js's
   SearchSelect), a select2-like combobox without a jQuery dependency. */

.ss-display {
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-display:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

.ss-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.date-field.open .ss-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ss-search {
  width: 100%;
  height: 36px;
  background: var(--surface-2);
  border: 0.5px solid var(--text-muted);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  margin-bottom: 8px;
}

.ss-search:focus {
  outline: none;
  border-color: var(--orange);
}

.ss-options {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}

.ss-options::-webkit-scrollbar {
  width: 6px;
}

.ss-options::-webkit-scrollbar-track {
  background: transparent;
}

.ss-options::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: var(--r-pill);
}

.ss-options::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.ss-option {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  cursor: pointer;
}

.ss-option:hover,
.ss-option.is-active {
  background: var(--surface-2);
}

.ss-option.is-selected {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange-text);
  font-weight: 600;
}

.ss-empty {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
