:root {
  --pb-yellow: #facc15;
  --pb-yellow-deep: #eab308;
  --pb-amber: #f59e0b;
  --pb-amber-ink: #b45309;
  --pb-yellow-soft: #fef9c3;
  --pb-yellow-glow: rgba(245, 158, 11, 0.28);
  --pb-bg: #e5e7eb;
  --pb-shell-bg: #f8fafc;
  --pb-surface: #ffffff;
  --pb-surface-2: #f1f5f9;
  --pb-border: #e2e8f0;
  --pb-border-yellow: #fde047;
  --pb-text: #0f172a;
  --pb-muted: #64748b;
  --pb-success: #16a34a;
  --pb-danger: #dc2626;
  --pb-info: #0284c7;
  --pb-radius: 16px;
  --pb-radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pb-amber-ink);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #92400e;
}

/* Mobile-First Centered App Shell */
.pb-app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--pb-shell-bg);
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pb-app-shell--with-nav {
  padding-bottom: 78px;
}

.pb-content {
  flex: 1;
  padding: 12px 14px 18px;
}

/* Top Bar */
.pb-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pb-border);
}

.pb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pb-text);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.pb-brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pb-yellow) 0%, var(--pb-amber) 100%);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--pb-yellow-glow);
  flex-shrink: 0;
}

.pb-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--pb-border);
  background: var(--pb-surface);
  color: var(--pb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pb-icon-btn:hover {
  border-color: var(--pb-amber);
  background: var(--pb-yellow-soft);
  color: var(--pb-amber-ink);
}

/* 4-Tab Yellow Bottom Navigation (Matching Reference Screenshot) */
.pb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 64px;
  background: linear-gradient(90deg, #facc15 0%, #eab308 50%, #f59e0b 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(245, 158, 11, 0.25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 100;
  padding: 5px 6px;
}

.pb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pb-nav-item i {
  font-size: 20px;
  width: 30px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pb-nav-item:hover {
  color: #111827;
}

.pb-nav-item.active {
  color: #111827;
}

.pb-nav-item.active i {
  background: #ffffff;
  color: #d97706;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Top Carousel Banner */
.pb-carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  background: #111827;
}

.pb-carousel-slide {
  position: relative;
  height: 158px;
}

.pb-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.18) 70%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.pb-carousel .carousel-indicators {
  margin-bottom: 6px;
}

.pb-carousel .carousel-indicators [data-bs-target] {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.65);
}

.pb-carousel .carousel-indicators .active {
  width: 18px;
  background-color: var(--pb-yellow);
}

/* 4 Round Quick Shortcuts */
.pb-shortcut-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 6px 2px;
}

.pb-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--pb-text);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.pb-shortcut-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  transition: transform 0.15s ease;
}

.pb-shortcut-item:hover .pb-shortcut-circle {
  transform: translateY(-2px);
}

.pb-circle-recharge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #111827;
}

.pb-circle-withdraw {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.pb-circle-account {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.pb-circle-team {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
}

/* Invite Friend Striped Banner */
.pb-invite-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(105deg, rgba(250, 204, 21, 0.92) 0%, rgba(254, 240, 138, 0.55) 26%, #ffffff 60%);
  border: 1px solid #fde047;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pb-invite-stripes {
  position: relative;
  z-index: 2;
}

.pb-invite-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56%;
  width: 34px;
  background: linear-gradient(
    90deg,
    #facc15 0 11px,
    transparent 11px 19px,
    #f59e0b 19px 30px
  );
  opacity: 0.85;
  pointer-events: none;
}

.pb-invite-img {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

/* Product Summary Cards (Balance & Total Withdraw) */
.pb-product-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--pb-amber-ink);
  margin: 4px 0 8px;
}

.pb-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pb-stat-striped {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(110deg, #facc15 0%, #fef08a 42%, #ffffff 74%);
  border: 1px solid #fde047;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.08);
  padding: 16px 12px;
  text-align: center;
}

.pb-stat-striped::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 16%;
  width: 24px;
  background: linear-gradient(
    90deg,
    #f59e0b 0 8px,
    transparent 8px 14px,
    #facc15 14px 22px
  );
  opacity: 0.85;
  pointer-events: none;
}

.pb-stat-striped > * {
  position: relative;
  z-index: 2;
}

.pb-stat-amount {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.pb-stat-label {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2px;
}

/* 2-Column VIP Section Cards */
.pb-vip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pb-vip-card {
  background: #ffffff;
  border: 1px solid var(--pb-border);
  border-radius: 16px;
  padding: 8px 8px 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.pb-vip-img {
  width: 100%;
  height: 106px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.pb-vip-title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 6px;
}

.pb-vip-specs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  padding: 0 2px;
}

.pb-vip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.pb-vip-key {
  color: var(--pb-muted);
  font-weight: 500;
}

.pb-vip-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.pb-vip-price {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0;
}

.pb-vip-cta {
  display: block;
  width: 84%;
  margin: auto auto 0;
  padding: 7px 12px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 55%, #f59e0b 100%);
  color: #111827 !important;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--pb-yellow-glow);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.pb-vip-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #111827 !important;
}

/* General Cards & Surfaces */
.pb-card,
.custom--card,
.card {
  background: var(--pb-surface) !important;
  border: 1px solid var(--pb-border) !important;
  border-radius: var(--pb-radius) !important;
  color: var(--pb-text) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.pb-card {
  padding: 15px;
}

.pb-card--yellow {
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  border: none !important;
  box-shadow: 0 8px 22px var(--pb-yellow-glow);
}

.pb-card--yellow .pb-muted {
  color: rgba(17, 24, 39, 0.76) !important;
}

.pb-card--outline-yellow {
  border-color: #fde047 !important;
}

.card-header,
.custom--card .card-header {
  background: var(--pb-surface-2) !important;
  border-bottom: 1px solid var(--pb-border) !important;
  color: var(--pb-text) !important;
  padding: 12px 15px;
  font-weight: 700;
}

.card-body {
  padding: 15px;
}

.pb-muted {
  color: var(--pb-muted);
}

.pb-text-yellow {
  color: var(--pb-amber-ink) !important;
}

.text-white {
  color: var(--pb-text) !important;
}

.pb-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--pb-text);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--pb-yellow-soft);
  color: var(--pb-amber-ink);
  border: 1px solid var(--pb-border-yellow);
}

.pb-pill--dark {
  background: rgba(17, 24, 39, 0.14);
  color: #111827;
  border-color: rgba(17, 24, 39, 0.22);
}

/* Buttons */
.pb-btn,
.btn--base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.15s ease;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  box-shadow: 0 5px 14px var(--pb-yellow-glow);
}

.pb-btn:hover,
.btn--base:hover {
  filter: brightness(1.04);
  color: #111827 !important;
  transform: translateY(-1px);
}

.pb-btn--outline {
  background: var(--pb-surface) !important;
  color: var(--pb-amber-ink) !important;
  border: 1px solid #f59e0b !important;
  box-shadow: none;
}

.pb-btn--outline:hover {
  background: var(--pb-yellow-soft) !important;
}

.pb-btn--dark {
  background: #111827 !important;
  color: #facc15 !important;
  border: 1px solid #111827 !important;
  box-shadow: none;
}

.pb-btn--sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 999px !important;
}

/* Forms */
.form-label,
.form--label,
label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-control,
.form--control,
.form-select {
  background-color: var(--pb-surface-2) !important;
  border: 1px solid var(--pb-border) !important;
  border-radius: var(--pb-radius-sm) !important;
  color: var(--pb-text) !important;
  padding: 10px 13px;
  font-size: 14px;
  box-shadow: none !important;
}

.form-control:focus,
.form--control:focus,
.form-select:focus {
  border-color: var(--pb-amber) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
}

.input-group-text {
  background: var(--pb-yellow-soft) !important;
  border: 1px solid var(--pb-border) !important;
  color: var(--pb-amber-ink) !important;
  font-weight: 700;
}

/* Quick Chips */
.pb-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pb-chip {
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid var(--pb-border);
  background: var(--pb-surface-2);
  color: var(--pb-text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.pb-chip:hover,
.pb-chip.active {
  background: var(--pb-yellow-soft);
  border-color: var(--pb-amber);
  color: var(--pb-amber-ink);
}

/* Menu List Rows */
.pb-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pb-yellow-soft);
  color: var(--pb-amber-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pb-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pb-surface);
  border: 1px solid var(--pb-border);
  border-radius: 14px;
  color: var(--pb-text);
  text-decoration: none;
}

.pb-list-item:hover {
  border-color: var(--pb-amber);
  background: #fffbeb;
  color: var(--pb-text);
}

.pb-list-item + .pb-list-item {
  margin-top: 8px;
}

/* Badges */
.badge--success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge--warning {
  background: #fef9c3 !important;
  color: #b45309 !important;
  border: 1px solid #fde047;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge--danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge--info,
.badge--primary,
.badge--dark {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* Alerts */
.pb-alert {
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid #fde047;
  background: #fefce8;
  color: #854d0e;
}

.pb-alert--danger {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

/* Modals, Tables & TreeView */
.modal-content {
  background: #ffffff !important;
  border: 1px solid var(--pb-border) !important;
  border-radius: 18px !important;
  color: var(--pb-text) !important;
}

.table {
  color: var(--pb-text) !important;
}

.table thead th {
  background: var(--pb-surface-2) !important;
  color: var(--pb-text) !important;
  font-size: 12px;
}

.list-group-item {
  background: var(--pb-surface-2) !important;
  border-color: var(--pb-border) !important;
  color: var(--pb-text) !important;
}

.treeview,
.treeview ul {
  list-style: none;
  padding-left: 16px;
}

.treeview li {
  padding: 5px 0;
  color: var(--pb-text);
}

.pagination .page-item.active .page-link {
  background: var(--pb-yellow);
  border-color: var(--pb-amber);
  color: #111827;
  font-weight: 700;
}
