@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #070a11;
  --bg-sidebar: #0b0f19;
  --bg-card: #101626;
  --bg-card-hover: #151d30;
  --bg-surface: #182033;
  --bg-input: #0e1322;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --border-light: rgba(255, 255, 255, 0.04);

  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-surface: rgba(37, 99, 235, 0.12);

  --success: #10b981;
  --success-surface: rgba(16, 185, 129, 0.12);

  --warning: #f59e0b;
  --warning-surface: rgba(245, 158, 11, 0.12);

  --danger: #ef4444;
  --danger-surface: rgba(239, 68, 68, 0.12);

  --cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --sidebar-width: 270px;
  --header-height: 74px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
}

/* Base Layout with Sidebar */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 16px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-grow: 1;
  background: transparent;
  overflow: visible;
  height: 100%;
}

.brand-video-box {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

.brand-video {
  height: 50px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: screen;
  background: transparent;
  transform: none;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cyan);
}

.sidebar-close-mobile {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

/* User Account Mini Card inside Sidebar */
.sidebar-user-card {
  margin: 16px 16px 8px 16px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-user-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
}

.user-display-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-display-balance {
  font-size: 0.78rem;
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 12px 4px 12px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.sidebar-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav-item:hover svg {
  color: #fff;
}

.sidebar-nav-item.active {
  color: #fff;
  background: var(--primary-surface);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.sidebar-nav-item.active svg {
  color: var(--primary-light);
}

.sidebar-badge-counter {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: pulse-sidebar-badge 2s infinite ease-in-out;
}

@keyframes pulse-sidebar-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
  }
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.simulation-selector-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.sim-select option {
  background: var(--bg-card);
  color: #fff;
}

/* Sidebar Backdrop on Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 90;
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-main);
}

/* Header Bar */
.top-header {
  height: var(--header-height);
  padding: 0 24px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  max-width: 500px;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 100%;
  transition: all 0.2s;
}

.header-search:focus-within {
  border-color: var(--border-focus);
  background: rgba(14, 19, 34, 0.95);
}

.header-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 100%;
}

.header-search input::placeholder {
  color: var(--text-dim);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.balance-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.balance-pill-label {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.balance-pill-value {
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.header-icon-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.badge-counter {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-main);
}

/* Page Views Content Container */
.page-container {
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Animation Banner (Autoplay & Loop) */
.banner-video-container {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  background: #000;
  box-shadow: var(--shadow-md);
}

.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 17, 0.05) 0%, rgba(7, 10, 17, 0.4) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .banner-video-container {
    height: 155px;
    margin-bottom: 16px;
  }
}

.stat-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Filter Bar & Categories */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.category-scroll-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.category-tabs.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-tabs.is-dragging .cat-tab-btn {
  pointer-events: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-scroll-btn {
  width: 30px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  z-index: 2;
}

.cat-scroll-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--primary);
}

.cat-scroll-left {
  margin-right: 6px;
}

.cat-scroll-right {
  margin-left: 6px;
}

.cat-tab-btn,
.cat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-x;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.cat-tab-btn:hover,
.cat-pill:hover {
  background: rgba(51, 65, 85, 0.85);
  color: #f8fafc;
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.cat-tab-btn.active,
.cat-pill.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.cat-tab-btn.active:hover,
.cat-pill.active:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Count badge inside filter pills */
.cat-pill span[id^="count-"],
.cat-tab-btn span[id^="count-"],
.cat-pill .pill-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cat-pill.active span[id^="count-"],
.cat-tab-btn.active span[id^="count-"],
.cat-pill.active .pill-counter {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.sort-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

/* PRODUCT GRID */
.products-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.pro-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-md);
}

.product-media-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  background: var(--bg-surface);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pro-product-card:hover .product-img {
  transform: scale(1.03);
}

.tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.delivery-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.4px;
}

.product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  gap: 6px;
  min-width: 0;
}

.product-store-name {
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 75px);
  min-width: 0;
  flex-shrink: 1;
  position: relative;
  transition: color 0.15s ease;
  flex-wrap: nowrap;
}

.product-store-name:hover {
  color: #93c5fd;
}

.product-store-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.product-store-rating-text {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Verified Store Badge with 3D Animated WebP & Hold Tooltip */
.verified-badge-holder {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
}

.verified-anim-badge {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(59, 130, 246, 0.45));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.verified-anim-badge.lg {
  width: 19px;
  height: 19px;
}

.verified-badge-holder:hover .verified-anim-badge,
.verified-badge-holder:active .verified-anim-badge,
.verified-badge-holder.active .verified-anim-badge {
  transform: scale(1.22);
}

/* Tooltip Popup on Hover / Hold */
.verified-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.92);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.2s ease;
  z-index: 9999;
}

.verified-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(59, 130, 246, 0.5) transparent transparent transparent;
}

.verified-badge-holder:hover .verified-tooltip-bubble,
.verified-badge-holder:active .verified-tooltip-bubble,
.verified-badge-holder.active .verified-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}


.product-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-pricing-box {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

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

.strike-price {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: 'JetBrains Mono', monospace;
}

.current-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.stock-indicator {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* User Profile & Account Details (As Requested: username, userid, riwayat transaksi, saldo) */
.profile-view-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.account-identity-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.account-header-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.account-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.account-names-col {
  display: flex;
  flex-direction: column;
}

.account-username-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.account-id-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.account-role-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-surface);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  margin-top: 6px;
}

/* Balance Card Component */
.account-balance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
}

.balance-card-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.balance-card-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
  margin: 4px 0 14px 0;
}

.btn-topup-action {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.btn-topup-action:hover {
  background: #1d4ed8;
}

/* Transactions Table / List */
.account-history-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.panel-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.panel-title-info {
  flex: 1;
  min-width: 0;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.panel-subtitle {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 3px;
  line-height: 1.4;
}

.panel-action-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.8rem;
  padding: 8px 14px;
}

.pro-table-wrapper {
  overflow-x: auto;
}

table.pro-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

table.pro-data-table th {
  padding: 10px 12px;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

table.pro-data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

table.pro-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* Status Badges */
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pill.completed {
  background: var(--success-surface);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.processing {
  background: var(--warning-surface);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.disputed {
  background: var(--danger-surface);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.refunded {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Common Buttons */
.btn-solid-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-solid-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-outline:hover {
  background: var(--bg-surface);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-solid-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-solid-success {
  background: var(--success, #10b981);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-solid-warning {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Forms */
.form-field {
  margin-bottom: 16px;
}

.form-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pro-input,
.pro-textarea,
.pro-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.15s;
  box-sizing: border-box;
}

.pro-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.pro-input:focus,
.pro-textarea:focus,
.pro-select:focus {
  border-color: var(--border-focus);
}

.pro-textarea {
  min-height: 80px;
  resize: vertical;
}

/* MODAL SYSTEM */
.pro-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pro-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pro-modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px);
  transition: transform 0.2s ease;
}

.pro-modal-backdrop.active .pro-modal-window {
  transform: translateY(0);
}

.modal-header-bar {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.modal-header-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.modal-close-icon {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.modal-close-icon:hover {
  color: #fff;
}

.modal-body-content {
  padding: 20px;
}

/* TOAST ALERTS */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.pro-toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-xs);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  min-width: 280px;
  pointer-events: auto;
  animation: slideInRight 0.2s ease-out;
}

.pro-toast.success {
  border-left-color: var(--success);
}

.pro-toast.error {
  border-left-color: var(--danger);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Empty States */
.pro-empty-state {
  text-align: center;
  padding: 38px 18px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

.pro-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.35rem;
}

.pro-empty-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pro-empty-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.45;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .profile-view-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay.mobile-open {
    display: block;
  }

  .sidebar-close-mobile {
    display: block;
  }

  .main-wrapper {
    margin-left: 0;
  }

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

  .page-container {
    padding: 16px;
  }

  .products-grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .category-scroll-wrapper {
    width: 100%;
  }

  .sort-container {
    align-self: flex-end;
  }

  .panel-title-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .panel-title {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .panel-subtitle {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .panel-action-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 700;
  }
}

/* Direct File Upload & Multi-Image Gallery Styles */
.pro-file-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pro-file-input:hover {
  border-color: var(--border-focus);
}

.multi-upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.multi-upload-dropzone:hover {
  border-color: var(--primary-light);
  background: rgba(37, 99, 235, 0.08);
}

.prod-images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.prod-img-preview-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
}

.prod-img-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-img-preview-card .img-primary-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prod-img-preview-card .img-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.75);
  color: #ef4444;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.prod-img-preview-card .img-delete-btn:hover {
  background: #ef4444;
  color: #fff;
}

.prod-img-preview-card .img-set-primary-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.85);
  color: var(--text-main);
  font-size: 0.62rem;
  padding: 3px 0;
  text-align: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.prod-img-preview-card:hover .img-set-primary-btn {
  opacity: 1;
}

/* Product Detail Gallery */
.product-gallery-wrap {
  margin-bottom: 16px;
}

.product-gallery-main {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  background: #090d16;
  touch-action: pan-y;
  user-select: none;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease-in-out;
  display: block;
}

/* Gallery Navigation Arrows */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 15, 29, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.gallery-nav-btn:hover {
  background: rgba(59, 130, 246, 0.9);
  border-color: #60a5fa;
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

/* Slide Counter Badge */
.gallery-counter-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 5;
  pointer-events: none;
}

/* Carousel Indicators (Dots) */
.gallery-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
  background: rgba(10, 15, 29, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-block;
}

.gallery-dot.active {
  width: 18px;
  border-radius: 8px;
  background: var(--primary-light, #60a5fa);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.8);
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.gallery-thumb-item {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  background: var(--bg-surface);
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb-item:hover {
  opacity: 0.9;
}

.gallery-thumb-item.active {
  border-color: var(--primary-light);
  opacity: 1;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* Product Detail Store Card (Clickable to Store Profile) */
.product-detail-shop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-width: 0;
}

.product-detail-shop-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.product-detail-shop-card:active {
  transform: scale(0.99);
}

.product-detail-shop-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
  background: var(--bg-input);
  flex-shrink: 0;
}

.product-detail-shop-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.product-detail-shop-name {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

.product-detail-shop-meta {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-shop-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}

.product-detail-shop-card:hover .product-detail-shop-arrow {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Public Shop Profile Header Title Row */
.public-shop-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
}

.public-shop-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}

/* ---------------- SENGKETA / DISPUTE SYSTEM ---------------- */
.dispute-escrow-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.dispute-escrow-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--danger);
  margin-top: 2px;
}
.dispute-escrow-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.dispute-escrow-desc {
  font-size: 0.76rem;
  color: #fca5a5;
  line-height: 1.4;
}

.dispute-reasons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .dispute-reasons-container {
    grid-template-columns: 1fr;
  }
}
.dispute-reason-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.dispute-reason-option:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}
.dispute-reason-option.selected {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}
.dispute-reason-option input[type="radio"] {
  accent-color: var(--danger);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.dispute-reason-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dispute-evidence-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 520px) {
  .dispute-evidence-slots {
    grid-template-columns: repeat(2, 1fr);
  }
}
.evidence-upload-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.evidence-upload-slot:hover {
  border-color: var(--primary-light);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.evidence-upload-slot svg {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
  margin-bottom: 6px;
}
.evidence-slot-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.evidence-slot-hint {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.evidence-preview-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.evidence-preview-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
}
.evidence-chip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.evidence-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.evidence-type-badge.screenshot {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.evidence-type-badge.video {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.evidence-type-badge.chat {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.evidence-type-badge.transaksi {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.evidence-file-name {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.evidence-remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}
.evidence-remove-btn:hover {
  opacity: 0.8;
}

/* Admin Evidence Gallery */
.admin-evidence-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
}
.admin-evidence-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.admin-evidence-media {
  width: 100%;
  height: 90px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-evidence-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.admin-evidence-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-evidence-footer {
  padding: 6px 8px;
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Seller Hub Responsive Grid */
.seller-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .seller-columns-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row-grid-2col {
    gap: 10px;
  }
  .pro-modal-backdrop {
    padding: 14px 10px;
  }
  .pro-modal-window {
    max-height: 92vh;
  }
  .modal-body-content {
    padding: 16px 14px;
  }
  .modal-header-bar {
    padding: 14px 16px;
  }
}

/* ========================================================
   BINANCE-STYLE P2P LIVE CHAT ROOM & ESCROW SYSTEM
======================================================== */
.p2p-modal-window {
  max-width: 620px;
  width: 100%;
  height: 90vh;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.15);
}

.p2p-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0d1527;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  gap: 10px;
}

.p2p-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.p2p-badge-tag {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  padding: 4px 7px;
  border-radius: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.p2p-order-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

#p2p-order-id-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.2;
}

.p2p-role-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-block;
}

.p2p-role-badge.buyer {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.p2p-role-badge.seller {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

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

/* Binance Countdown Timer Box */
.p2p-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 9px;
  border-radius: 16px;
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.p2p-timer-box.urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
  animation: p2pPulse 1.2s infinite;
}

.p2p-timer-box.expired {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

@keyframes p2pPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0.4); }
}

.p2p-modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #090e1a;
}

/* Meta Banner (Clean 3-Column Info) */
.p2p-meta-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #0b111e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.p2p-meta-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.p2p-meta-label {
  color: var(--text-dim);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
  margin-bottom: 2px;
}

.p2p-meta-val {
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.74rem;
}

/* Security Escrow Banner */
.p2p-security-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.07);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
}

.p2p-security-icon {
  color: #34d399;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.p2p-security-text {
  font-size: 0.7rem;
  color: #a7f3d0;
  line-height: 1.35;
}

/* Chat Messages Scroll Container */
.p2p-messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #080d16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  scrollbar-width: thin;
}

.p2p-messages-container::-webkit-scrollbar {
  width: 5px;
}

.p2p-messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.p2p-loading-state {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin: auto;
}

/* Chat Message Rows (WhatsApp Pattern) */
.p2p-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  width: fit-content;
  position: relative;
  animation: p2pMsgFade 0.18s ease;
}

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

/* Current User ('Anda') -> ALWAYS RIGHT SIDE (WhatsApp Emerald) */
.p2p-msg-row.me {
  align-self: flex-end;
  margin-left: auto;
  align-items: flex-end;
}

/* Counterparty ('Lawan Transaksi') -> ALWAYS LEFT SIDE (WhatsApp Slate) */
.p2p-msg-row.them {
  align-self: flex-start;
  margin-right: auto;
  align-items: flex-start;
}

/* System Notifications -> CENTERED */
.p2p-msg-row.system {
  align-self: center;
  margin: 6px auto;
  align-items: center;
  max-width: 90%;
}

/* Bubble Styling */
.p2p-msg-bubble {
  position: relative;
  padding: 8px 12px 6px 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ffffff;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ME (Right - WhatsApp emerald) */
.p2p-msg-row.me .p2p-msg-bubble {
  background: #005c4b; /* WhatsApp Sent Bubble */
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 12px 12px 2px 12px;
  color: #e9edef;
}

/* THEM (Left - WhatsApp dark slate) */
.p2p-msg-row.them .p2p-msg-bubble {
  background: #202c33; /* WhatsApp Received Bubble */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 12px 2px;
  color: #e9edef;
}

/* SYSTEM (Center - Info chip) */
.p2p-msg-row.system .p2p-msg-bubble {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.72rem;
  text-align: center;
  border-radius: 10px;
  padding: 6px 14px;
  box-shadow: none;
}

/* Sender Name Header (Only for counterparty on left) */
.p2p-sender-header {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.p2p-sender-header.seller-name {
  color: #fbbf24; /* Amber if counterparty is Seller */
}

.p2p-sender-header.buyer-name {
  color: #38bdf8; /* Sky blue if counterparty is Buyer */
}

/* WhatsApp Time & Checkmark Footer inside bubble */
.p2p-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
  user-select: none;
}

.p2p-msg-row.me .p2p-msg-footer {
  color: rgba(255, 255, 255, 0.7);
}

.p2p-checkmarks {
  display: inline-flex;
  color: #53bdeb; /* WhatsApp Blue Double Tick */
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
}

.p2p-msg-img {
  width: 100%;
  max-width: 240px;
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, filter 0.15s ease;
  display: block;
}

.p2p-msg-img:hover {
  filter: brightness(1.05);
}

/* Quick Action Chips */
.p2p-quick-chips-wrapper {
  display: flex;
  gap: 6px;
  padding: 6px 14px;
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.p2p-quick-chips-wrapper::-webkit-scrollbar {
  display: none;
}

.p2p-chip {
  padding: 4px 10px;
  border-radius: 14px;
  background: #182234;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.p2p-chip:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

/* Attachment Preview Box */
.p2p-attachment-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #111a2e;
  border-top: 1px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.p2p-attachment-box img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #3b82f6;
}

.p2p-attachment-text {
  font-size: 0.75rem;
  color: #93c5fd;
  flex: 1;
}

.p2p-remove-attachment-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Chat Input Bar */
.p2p-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #0d1527;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.p2p-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #182236;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.p2p-action-btn:hover {
  background: #1e293b;
  border-color: #38bdf8;
  color: #fff;
}

.p2p-input-field {
  flex: 1;
  background: #182236;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #ffffff;
  padding: 9px 14px;
  font-size: 0.82rem;
  outline: none;
  min-width: 0;
  transition: border-color 0.2s;
}

.p2p-input-field:focus {
  border-color: #25d366;
}

.p2p-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #00a884; /* WhatsApp Emerald Send Button */
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 168, 132, 0.35);
}

.p2p-send-btn:hover {
  background: #029070;
  transform: scale(1.05);
}

.p2p-send-btn:active {
  transform: scale(0.95);
}

/* Complete Order Bottom Bar */
.p2p-bottom-bar {
  padding: 8px 14px;
  background: #090e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  display: flex;
  gap: 10px;
}

.p2p-complete-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
}

.p2p-complete-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Status Pill for P2P in Catalog */
.status-pill.p2p {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
}