/* ==========================================================================
   ALMERE & CO — STYLESHEET
   Brand Guideline: Strict Monochrome (Hitam, Abu-abu, Putih),
   Editorial Typography (Fraunces & Inter), Minimalis, Cinematic, Whitespace Luas.
   ========================================================================== */

:root {
  /* Core Monochrome Palette */
  --bg-black: #080808;
  --bg-surface: #0e0e0e;
  --panel: #131313;
  --panel-elevated: #181818;
  --panel-hover: #1f1f1f;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(255, 255, 255, 0.35);

  /* Monochrome Typography Shades */
  --text-pure: #ffffff;
  --text-primary: #f2f1ee;
  --text-secondary: #b5b3ad;
  --text-muted: #85837e;
  --text-faint: #575551;
  --text-ghost: #3a3936;

  /* Asset Allocation Grayscales */
  --alloc-btc: #f0eeea;
  --alloc-hype: #8c8a84;
  --alloc-cash: #4b4946;
  --track-bg: rgba(255, 255, 255, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 0.15s var(--ease-out);
  --trans-medium: 0.25s var(--ease-out);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-black);
  overflow-x: hidden;
}

/* Global Modern Sleek Scrollbar (Eliminates ugly Windows default scrollbars & arrow buttons) */
::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Completely remove all horizontal scrollbars across all browsers & containers */
*::-webkit-scrollbar:horizontal,
::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

/* Hide scrollbars for all scrollable sections while retaining drag & touch swipe */
.no-scrollbar,
.tx-table-container,
.asset-view-tabs,
.ticker-items-scroll,
.tx-filter-group,
.pgp-box pre {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.no-scrollbar::-webkit-scrollbar,
.tx-table-container::-webkit-scrollbar,
.asset-view-tabs::-webkit-scrollbar,
.ticker-items-scroll::-webkit-scrollbar,
.tx-filter-group::-webkit-scrollbar,
.pgp-box pre::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  min-height: 100vh;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background Cinematic Ambient Mesh */
.background-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 520px at 15% -8%, rgba(255, 255, 255, 0.045), transparent 70%),
    radial-gradient(ellipse 700px 450px at 85% 45%, rgba(255, 255, 255, 0.02), transparent 60%),
    radial-gradient(ellipse 600px 300px at 50% 100%, rgba(255, 255, 255, 0.015), transparent 50%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 28px 100px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-pure);
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #888888 75%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.07);
}

#sentinel-sub-menu {
  width: 220px;
}

.sentinel-install-item {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

/* Nav Aset Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-chevron {
  opacity: 0.6;
  transition: transform var(--trans-fast);
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.open .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 250px;
  background: #141414;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 150;
}

.nav-item-dropdown:hover .nav-sub-menu,
.nav-item-dropdown:focus-within .nav-sub-menu,
.nav-item-dropdown.open .nav-sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.nav-sub-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-pure);
}

.sub-icon {
  font-size: 14px;
  opacity: 0.8;
  flex-shrink: 0;
}

.sub-text {
  display: flex;
  flex-direction: column;
}

.sub-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-pure);
}

.sub-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.cta-pill {
  background: var(--text-pure);
  color: var(--bg-black);
  border: none;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
  white-space: nowrap;
}

.cta-pill:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cta-pill:active {
  transform: translateY(0);
}

/* (Currency Switcher has been moved to Rincian Aset as an interactive dropdown) */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 30px 4px 40px;
}

.hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 58px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-pure);
  max-width: 860px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: #b8b6b0;
}

.hero-tagline {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 580px;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.panel-eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  color: var(--text-pure);
  line-height: 1.25;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SUMMARY CARD & ALLOCATION PANEL
   ========================================================================== */
.summary-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.summary-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 38px 40px;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  background: var(--panel);
  background: linear-gradient(180deg, #161616 0%, #111111 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.summary-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-left .section-title {
  font-size: 24px;
  color: var(--text-secondary);
}

.total-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 58px;
  line-height: 1;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

/* The motion is JS (requestAnimationFrame easing), the type
   treatment keeps digits from shifting width as they change. */
.odometer {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: inline-block;
  will-change: contents;
}

.currency-symbol {
  font-size: 38px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Monochrome Live Pulse (Spesifikasi Poin F & Brand Guideline) */
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse-ring 2.2s infinite cubic-bezier(0.25, 0, 0, 1);
  display: inline-block;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.sync-divider {
  color: var(--text-ghost);
}

.sync-status {
  color: var(--text-secondary);
  font-size: 12px;
  border: 1px solid var(--border-subtle);
  padding: 1px 8px;
  border-radius: 999px;
}

.summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  text-align: right;
}

.summary-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 260px;
}

/* Strict Monochrome Performance Badge */
.performance-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-pure);
  border: 1px solid var(--border-strong);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-arrow {
  font-size: 11px;
}

.badge-period {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Allocation Breakdown Panel (Spesifikasi Poin 3I) */
.allocation-panel {
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--panel);
  padding: 28px 32px;
}

.allocation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.panel-heading {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.allocation-total-note {
  font-size: 12px;
  color: var(--text-faint);
}

.allocation-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 40px;
}

.donut-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 18;
}

.donut-segment {
  fill: none;
  stroke-width: 18;
  stroke-linecap: butt;
  transition: stroke-width var(--trans-fast), opacity var(--trans-fast);
  cursor: pointer;
}

.donut-segment:hover {
  stroke-width: 21;
  opacity: 0.95;
}

.segment-btc {
  stroke: var(--alloc-btc);
}

.segment-hype {
  stroke: var(--alloc-hype);
}

.segment-cash {
  stroke: var(--alloc-cash);
}

.donut-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-val {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--text-pure);
  line-height: 1;
}

.donut-center-sub {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.allocation-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: background var(--trans-fast), border-color var(--trans-fast);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.swatch-btc { background: var(--alloc-btc); }
.swatch-hype { background: var(--alloc-hype); }
.swatch-cash { background: var(--alloc-cash); }

.legend-info {
  display: flex;
  flex-direction: column;
}

.legend-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.legend-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.legend-pct {
  font-size: 16px;
  font-family: 'Fraunces', serif;
  color: var(--text-pure);
}

/* ==========================================================================
   GRAFIK HISTORIS (Spesifikasi Poin 3A - Prioritas Tinggi)
   ========================================================================== */
.history-section {
  margin-top: 72px;
}

.timeframe-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.time-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.time-tab:hover {
  color: var(--text-pure);
}

.time-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chart-container-card {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  background: var(--panel);
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  padding: 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.chart-meta-bar {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.chart-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-caption {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--text-pure);
}

.badge-mono {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
}

#portfolioChart {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(22, 22, 22, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-pure);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -120%);
  transition: opacity 0.1s ease;
  white-space: nowrap;
  z-index: 20;
}

.chart-tooltip-date {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 2px;
}

.chart-tooltip-val {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: #ffffff;
}

.chart-footer-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   HOLDINGS & ASSET VIEW TABS SECTION
   ========================================================================== */
.holdings-section {
  margin-top: 56px;
  position: relative;
}

.scroll-anchor {
  position: relative;
  top: -100px;
  visibility: hidden;
  display: block;
  height: 0;
}

/* Asset View Tabs */
.asset-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.asset-view-tabs::-webkit-scrollbar {
  display: none;
}

.asset-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--trans-fast);
}

.asset-view-tab:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.asset-view-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
  border-color: var(--border-medium);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tab-icon-svg {
  opacity: 0.7;
  transition: opacity var(--trans-fast);
  flex-shrink: 0;
}

.asset-view-tab.active .tab-icon-svg {
  opacity: 1;
}

/* Section Controls Group (Tabs + Currency Dropdown) */
.section-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Searchable Currency Dropdown in Rincian Aset */
.currency-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.currency-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.currency-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
  color: var(--text-pure);
}

.currency-dropdown-trigger.open {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
  color: var(--text-pure);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.currency-globe-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.currency-trigger-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.currency-trigger-prefix {
  color: var(--text-faint);
  font-size: 12px;
}

.currency-trigger-current {
  color: var(--text-pure);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.currency-chevron {
  color: var(--text-muted);
  transition: transform var(--trans-fast);
}

.currency-dropdown-trigger.open .currency-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Popover (Vertikal & Searchable) */
.currency-dropdown-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.currency-dropdown-popover.show {
  display: flex;
}

@keyframes dropdownPopIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.currency-dropdown-search-box {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.currency-dropdown-search-box .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 10px;
}

.currency-dropdown-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 13px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.currency-dropdown-search-box input::placeholder {
  color: var(--text-faint);
  font-size: 12.5px;
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.clear-search-btn:hover {
  color: var(--text-pure);
}

/* Vertical Scrollable Currency List ("Nge-baris ke bawah") */
.currency-list-vertical {
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.currency-list-vertical::-webkit-scrollbar {
  width: 5px;
}

.currency-list-vertical::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.currency-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--trans-fast);
  color: var(--text-secondary);
}

.currency-item-row:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-pure);
}

.currency-item-row.selected {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
}

.currency-item-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}

.currency-item-code {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-pure);
  min-width: 36px;
}

.currency-item-name {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-item-row.selected .currency-item-name {
  color: var(--text-secondary);
}

.currency-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.currency-item-symbol {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--text-secondary);
}

.currency-item-check {
  font-size: 12px;
  color: var(--text-pure);
  opacity: 0;
}

.currency-item-row.selected .currency-item-check {
  opacity: 1;
}

.currency-empty-state {
  padding: 24px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Tab Panes */
.asset-tab-pane {
  display: none;
}

.asset-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pane-caption-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.allocation-panel.tab-embedded {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.chart-container-card.tab-embedded {
  margin-top: 0;
}

.verification-panel.tab-embedded {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  background: linear-gradient(180deg, #151515 0%, #101010 100%);
  padding: 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.verification-embedded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-embedded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.embedded-chart-h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-pure);
  margin-top: 4px;
}

.table-legend-caption {
  font-size: 13px;
  color: var(--text-muted);
}

.holdings-panel {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.holding-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 1.4fr;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--trans-fast);
}

.holding-row:last-child {
  border-bottom: none;
}

.holding-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.col-asset {
  display: flex;
  align-items: center;
  gap: 16px;
}

.asset-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
}

.asset-details {
  display: flex;
  flex-direction: column;
}

.asset-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-pure);
}

.asset-units {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.col-metric {
  display: flex;
  flex-direction: column;
}

.col-label {
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.col-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Monochrome Trend Changes (Tanpa Hijau/Merah sesuai Guideline Poin 4) */
.change-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

.mono-up {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-medium);
}

.mono-down {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.change-arrow {
  font-size: 10px;
}

.col-allocation {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alloc-num {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.track {
  height: 4px;
  border-radius: 2px;
  background: var(--track-bg);
  overflow: hidden;
  width: 100%;
}

.fill {
  height: 100%;
  border-radius: 2px;
  background: var(--text-primary);
  transition: width 0.4s ease;
}

/* Specific Shading for Allocation Bars */
[data-holding="btc"] .fill { background: var(--alloc-btc); }
[data-holding="hype"] .fill { background: var(--alloc-hype); }
[data-holding="cash"] .fill { background: var(--alloc-cash); }

/* ==========================================================================
   BUKTI KEPEMILIKAN / VERIFIKASI (Spesifikasi Poin 3B)
   ========================================================================== */
.verification-section {
  margin-top: 80px;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.shield-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.verification-intro {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 28px;
}

.attestation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.attestation-card {
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  background: var(--panel);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.attestation-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.highlight-card {
  background: linear-gradient(180deg, #171717 0%, #111111 100%);
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-pure);
  border: 1px solid var(--border-medium);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.status-marker {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.card-date {
  font-size: 12px;
  color: var(--text-faint);
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-pure);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.attestation-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.meta-key {
  color: var(--text-faint);
}

.meta-val {
  color: var(--text-secondary);
}

.font-mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.btn-subtle {
  background: transparent;
  color: var(--text-pure);
  border: 1px solid var(--border-medium);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background var(--trans-fast), border-color var(--trans-fast);
  margin-top: auto;
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

/* ==========================================================================
   TENTANG / SIAPA DI BALIK ALMERE & CO (Spesifikasi Poin 3D)
   ========================================================================== */
.about-section {
  margin-top: 80px;
}

.about-card {
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  background: var(--panel);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-pure);
}

.about-text {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-primary);
  max-width: 820px;
}

.about-text em {
  font-style: normal;
  color: var(--text-pure);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
}

.about-subtext {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 700px;
  margin-top: 8px;
}

/* ==========================================================================
   FOOTER & LEGAL DISCLAIMER (Spesifikasi Poin 3C)
   ========================================================================== */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 56px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 4px;
  font-weight: 600;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color var(--trans-fast);
}

.footer-col a:hover {
  color: var(--text-pure);
}

/* Legal Disclaimer */
.footer-disclaimer {
  padding: 22px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.disclaimer-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.disclaimer-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-telemetry {
  display: flex;
  align-items: center;
  gap: 20px;
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pulse-tiny {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
}

/* ==========================================================================
   MODAL STYLES (Community & Currencies)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #141414;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-currency-card {
  max-width: 640px;
}

@keyframes modal-pop {
  from {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--trans-fast);
}

.modal-close-btn:hover {
  color: var(--text-pure);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Modal Forms */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #1b1b1b;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-pure);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--trans-fast), background var(--trans-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--border-glow);
  background: #202020;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-cancel:hover {
  color: var(--text-pure);
  border-color: var(--border-strong);
}

.btn-submit {
  background: var(--text-pure);
  color: var(--bg-black);
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--trans-fast);
}

.btn-submit:hover {
  opacity: 0.9;
}

/* Form Success */
.form-success-notice {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 16px;
}

.success-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.success-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Extended Currency Modal */
.currency-search-box input {
  width: 100%;
  background: #1c1c1c;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-pure);
  font-size: 14px;
  margin-bottom: 18px;
}

.currency-search-box input:focus {
  outline: none;
  border-color: var(--border-glow);
}

.currency-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.currency-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.currency-select-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text-pure);
}

.currency-select-item.selected {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-strong);
  color: var(--text-pure);
  font-weight: 500;
}

.curr-code {
  font-weight: 600;
}

.curr-sym {
  color: var(--text-muted);
  font-size: 12px;
}

.pgp-box pre {
  background: #0d0d0d;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  font-size: 11.5px;
  color: var(--text-secondary);
  overflow-x: auto;
  line-height: 1.5;
}

/* Modal Terminal & Sentinel Suite */
.modal-terminal-card {
  max-width: 520px;
}

.terminal-container {
  background: #090909;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #121212;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal-title {
  font-family: 'Inter', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.terminal-prompt {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 13px;
}

.terminal-cmd {
  font-family: monospace;
  font-size: 12.5px;
  color: var(--text-pure);
  flex: 1;
  word-break: break-all;
}

.copy-cmd-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.copy-cmd-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-pure);
}

.sentinel-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.feat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-primary);
  flex-shrink: 0;
}

.modal-actions-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version-tag {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-disclaimer {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   COMING SOON BADGES & SENTINEL MODAL PREVIEW
   ========================================================================== */
.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 6px;
  vertical-align: middle;
}

.badge-coming-soon-lg {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-pure);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sentinel-coming-soon-card {
  max-width: 580px;
}

.coming-soon-preview-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md, 10px);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.cs-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #38ef7d;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cs-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 8px #38ef7d;
  animation: pulse-live 1.8s infinite;
}

.cs-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   24/7 LIVE CRYPTO MARKET TICKER
   ========================================================================== */
.market-ticker-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticker-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 6px #38ef7d;
  animation: pulse-live 1.5s infinite;
}

.ticker-title {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ticker-items-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
  flex: 1;
  scrollbar-width: none;
}
.ticker-items-scroll::-webkit-scrollbar {
  display: none;
}

.ticker-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  white-space: nowrap;
  font-size: 12px;
}

.chip-coin {
  font-weight: 500;
  color: var(--text-secondary);
}

.chip-price {
  font-weight: 600;
  color: var(--text-pure);
}

.chip-change {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.mono-up {
  color: #38ef7d;
  background: rgba(56, 239, 125, 0.1);
}

.mono-down {
  color: #ff5e62;
  background: rgba(255, 94, 98, 0.1);
}

.mono-neutral {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
}

.ticker-badge {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   RIWAYAT TRANSAKSI (TRANSACTION HISTORY & LEDGER)
   ========================================================================== */
.transactions-panel {
  padding: 32px 36px;
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.transactions-embedded-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.transactions-subtext {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 620px;
  margin-top: 6px;
  line-height: 1.5;
}

.tx-filter-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.tx-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.tx-filter-btn:hover {
  color: var(--text-primary);
}

.tx-filter-btn.active {
  background: var(--panel-hover);
  color: var(--text-pure);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Stats Summary Bar */
.tx-stats-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.tx-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tx-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tx-stat-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-pure);
}

/* Table styling */
.tx-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: grab;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch;
}

.tx-table-container.is-dragging {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
  user-select: none !important;
}

.tx-table-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.tx-table thead {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-medium);
}

.tx-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tx-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--trans-fast);
}

.tx-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tx-table tbody tr:last-child {
  border-bottom: none;
}

.tx-table td {
  padding: 14px 18px;
  color: var(--text-primary);
  white-space: nowrap;
  vertical-align: middle;
}

/* Type Badges */
.badge-tx {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-tx-buy {
  background: rgba(56, 239, 125, 0.12);
  color: #38ef7d;
  border: 1px solid rgba(56, 239, 125, 0.25);
}

.badge-tx-sell {
  background: rgba(255, 94, 98, 0.12);
  color: #ff5e62;
  border: 1px solid rgba(255, 94, 98, 0.25);
}

.badge-tx-deposit {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
  border: 1px solid var(--border-medium);
}

.badge-tx-withdraw {
  background: rgba(255, 180, 0, 0.12);
  color: #ffb400;
  border: 1px solid rgba(255, 180, 0, 0.25);
}

.tx-ref-code {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.tx-sale-note {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

/* Mobile Transaction Cards (Hidden by default on desktop) */
.tx-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tx-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.tx-card-time {
  font-size: 11px;
  color: var(--text-muted);
}

.tx-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tx-card-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-card-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tx-card-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.tx-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & HAMBURGER
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: all var(--trans-fast);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-pure);
  border-radius: 1px;
  transition: all var(--trans-fast);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  z-index: 9999;
  display: none;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 340px;
  height: 100%;
  height: 100dvh;
  background: #111111;
  border-left: 1px solid var(--border-medium);
  padding: max(24px, env(safe-area-inset-top, 24px)) 20px max(24px, env(safe-area-inset-bottom, 24px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
  animation: slideDrawer 0.25s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  z-index: 10000;
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all var(--trans-fast);
}

.mobile-nav-item:hover {
  background: var(--panel-hover);
  border-color: var(--border-medium);
}

.m-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.m-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-pure);
}

.m-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-pure);
}

.m-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.mobile-nav-link-anchor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 8px;
  transition: all var(--trans-fast);
}

.mobile-nav-link-anchor:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
}

.mobile-nav-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 960px) {
  .hero-headline {
    font-size: 46px;
  }
  .allocation-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .holding-row {
    grid-template-columns: 1.8fr 1fr 0.9fr 1.2fr;
    padding: 20px 24px;
  }
  .tx-stats-summary-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px 80px;
  }

  .header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: calc(100% + 32px);
    margin: 0 -16px 24px -16px;
    padding: max(14px, env(safe-area-inset-top, 14px)) 16px 14px;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    box-sizing: border-box;
  }

  .nav-container {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 16px 0 28px;
  }

  .hero-headline {
    font-size: 36px;
  }

  .summary-card {
    padding: 24px 18px;
    gap: 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .summary-right {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .summary-note {
    max-width: 100%;
  }

  .market-ticker-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin-top: 16px;
    overflow: hidden;
  }

  .ticker-items-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ticker-items-scroll::-webkit-scrollbar {
    display: none;
  }

  .ticker-badge {
    font-size: 10.5px;
    opacity: 0.6;
    margin-top: 2px;
    align-self: flex-start;
  }

  .total-display {
    font-size: 42px;
  }

  .currency-symbol {
    font-size: 28px;
  }

  .chart-container-card,
  .transactions-panel {
    padding: 20px 16px;
  }

  .canvas-wrapper {
    height: 260px;
  }

  .section-controls-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .currency-dropdown-wrap {
    width: 100%;
  }

  .currency-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .currency-dropdown-popover {
    width: 100%;
    right: 0;
    left: 0;
  }

  .asset-view-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .asset-view-tab {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 12px;
  }

  .holding-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "asset asset"
      "value change"
      "alloc alloc";
    row-gap: 16px;
    padding: 18px 16px;
  }

  .col-asset { grid-area: asset; }
  .holding-row > div:nth-child(2) { grid-area: value; }
  .holding-row > div:nth-child(3) { grid-area: change; }
  .col-allocation { grid-area: alloc; }

  /* Switch Table to Cards on Mobile */
  .tx-table-container {
    display: none;
  }

  .tx-mobile-cards {
    display: flex;
  }

  .tx-stats-summary-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .transactions-embedded-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .tx-filter-group {
    overflow-x: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 14px 80px;
  }

  .header {
    width: calc(100% + 28px);
    margin: 0 -14px 20px -14px;
    padding: max(12px, env(safe-area-inset-top, 12px)) 14px 12px;
  }

  .hero-headline {
    font-size: 30px;
  }

  .total-display {
    font-size: 34px;
  }

  .currency-symbol {
    font-size: 24px;
  }

  .asset-view-tab span:last-child {
    font-size: 11px;
  }

  .asset-view-tab {
    padding: 7px 10px;
    gap: 5px;
  }

  .modal-card {
    padding: 20px 16px;
  }
}

/* Empty Holdings & Zero Ledger State */
.empty-holdings-card {
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 4px;
}

.empty-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-pure);
}

.empty-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

.empty-desc a {
  color: var(--text-pure);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-legend {
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
  padding: 16px 0;
}

