/* css/private-desk.css */
/* GOLD EMPEROR PRIVATE DESK — Dark Fintech Premium UI (Fasa 3: Full Customer View) */

.ge-pd-shell {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.96) 0%, rgba(11, 12, 16, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 22px;
  box-shadow: 0 26px 65px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.ge-pd-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09) 0%, rgba(16, 18, 23, 0.95) 65%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.ge-pd-body {
  padding: 20px;
}

.ge-pd-card {
  background: #12141A;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ge-pd-card:hover {
  border-color: rgba(212, 175, 55, 0.52);
}

.ge-pd-level-box {
  background: #0B0C10;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 9px 11px;
}

/* Input Penapis & Carian Dark Fintech */
.ge-pd-control {
  background: #0D0F14;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 11px;
  color: #FFFFFF;
  font-size: 12px;
  padding: 8px 11px;
  outline: none;
  transition: border-color 0.2s ease;
}

.ge-pd-control:focus {
  border-color: rgba(212, 175, 55, 0.7);
}

.ge-pd-control::placeholder {
  color: #7E828E;
}

/* Lencana Status Konsisten (10 Status Trading) */
.ge-pd-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ge-pd-pill-gold    { background: rgba(212, 175, 55, 0.16); color: #F5E6B8; border: 1px solid rgba(212, 175, 55, 0.42); }
.ge-pd-pill-blue    { background: rgba(59, 130, 246, 0.16); color: #93C5FD; border: 1px solid rgba(59, 130, 246, 0.4); }
.ge-pd-pill-emerald { background: rgba(16, 185, 129, 0.16); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.4); }
.ge-pd-pill-red     { background: rgba(239, 68, 68, 0.15);  color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.36); }
.ge-pd-pill-muted   { background: rgba(255, 255, 255, 0.07); color: #B4B4B4; border: 1px solid rgba(255, 255, 255, 0.14); }

/* Cip Penapis Instrumen & Tab Mod */
.ge-pd-filter-chip {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #A5A5A5;
  background: #14161B;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.ge-pd-filter-chip:hover {
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.42);
}

.ge-pd-filter-chip.active {
  background: linear-gradient(135deg, #E5C76B 0%, #D4AF37 55%, #B89123 100%);
  color: #0B0C0E;
  border-color: #F5E6B8;
  font-weight: 700;
}

/* Pratonton Carta pada Kad */
.ge-pd-chart-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: #090A0E;
  cursor: zoom-in;
}

.ge-pd-chart-thumb img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.ge-pd-chart-thumb:hover img {
  transform: scale(1.015);
}

/* Loading Skeleton */
.ge-pd-skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #16181F 25%, #22252F 50%, #16181F 75%);
  background-size: 200% 100%;
  animation: gePdShimmer 1.4s infinite linear;
}

@keyframes gePdShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modal Analisis Penuh (Di atas semua navigasi & butang terapung) */
.ge-pd-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(5, 6, 9, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ge-pd-modal-backdrop.open {
  display: flex;
}

.ge-pd-modal-panel {
  width: 100%;
  max-width: 780px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #13151B;
  border: 1px solid rgba(212, 175, 55, 0.36);
  box-shadow: 0 30px 75px -20px rgba(0, 0, 0, 0.95);
}

.ge-pd-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}

/* Lightbox Gambar Carta Skrin Penuh */
.ge-pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 4, 6, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ge-pd-lightbox.open {
  display: flex;
}

.ge-pd-lightbox img {
  max-width: 100%;
  max-height: 85dvh;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  object-fit: contain;
}

/* Garis Masa Analysis Update History */
.ge-pd-timeline-item {
  position: relative;
  padding-left: 18px;
  border-left: 1.5px solid rgba(212, 175, 55, 0.3);
}

.ge-pd-timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.ge-pd-disclaimer {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 10, 14, 0.72);
}

@media (max-width: 640px) {
  .ge-pd-header,
  .ge-pd-body {
    padding: 15px;
  }
  .ge-pd-modal-body {
    padding: 14px;
  }
}
