/* ═══════════════════════════════════════════════════════════════
   LI GAMING BD — PREMIUM PROFILE (FINAL LAYER)
   Loaded after every other stylesheet. Doubled-ID selectors
   (#profileModal#profileModal) beat all older single-ID rules.
   ═══════════════════════════════════════════════════════════════ */

#profileModal#profileModal {
  --pp-gold-1: #ffe08a;
  --pp-gold-2: #f6b90b;
  --pp-gold-3: #d48f00;
  --pp-text: #f3f5fa;
  --pp-muted: #98a1b3;
  --pp-surface: linear-gradient(180deg, rgba(255,255,255,.065) 0%, rgba(255,255,255,.03) 100%);
  --pp-raise: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.28);
}

/* ── CARD: brighter slate, no side borders ─────────────────────── */
#profileModal#profileModal .premium-profile-box-v2 {
  background:
    radial-gradient(120% 55% at 50% -5%, rgba(255,200,40,.10) 0%, transparent 60%),
    linear-gradient(165deg, #222a3b 0%, #1a2130 48%, #151b27 100%) !important;
  border: none !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09) !important;
  padding: 14px 10px 10px !important;
}
#profileModal#profileModal .premium-profile-box-v2::before,
#profileModal#profileModal .premium-profile-box-v2::after { display: none !important; }

#profileModal#profileModal .profile-scroll-container { padding: 6px 4px 8px !important; }

/* ── HERO: bigger name, lifted up ──────────────────────────────── */
#profileModal#profileModal .profile-hero-v3 {
  align-items: flex-start !important;
  padding: 0 4px 14px !important;
  margin-bottom: 12px !important;
  border: none !important;
  background: none !important;
  position: relative !important;
}
#profileModal#profileModal .profile-hero-v3::after { display: none !important; }
#profileModal#profileModal .profile-info-v3 { padding-top: 2px !important; }
#profileModal#profileModal .profile-name-row-v3 { margin: 0 0 8px !important; gap: 8px !important; }
#profileModal#profileModal .profile-name-row-v3 h2,
#profileModal#profileModal #profileName {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.2px !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow: none !important;
  max-width: calc(100% - 70px) !important;
}

#profileModal#profileModal .profile-edit-btn-v3 {
  background: rgba(255,214,90,.12) !important;
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
  color: var(--pp-gold-1) !important;
  border-radius: 8px !important;
  padding: 5px 9px !important;
}

/* Bronze badge — glow removed */
#profileModal#profileModal .badge-vip-v3 {
  background: rgba(255,214,90,.12) !important;
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
  filter: none !important;
  animation: none !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}
#profileModal#profileModal .badge-vip-v3::before,
#profileModal#profileModal .badge-vip-v3::after { display: none !important; }
#profileModal#profileModal .badge-vip-v3 *,
#profileModal#profileModal .vip-text {
  text-shadow: none !important;
  filter: none !important;
  color: var(--pp-gold-1) !important;
}
#profileModal#profileModal .badge-level-v3 {
  background: rgba(255,255,255,.07) !important;
  border: none !important;
  box-shadow: none !important;
  color: #c4cad6 !important;
  padding: 4px 10px !important;
}

/* ── VIP STRIP: shorter ────────────────────────────────────────── */
#profileModal#profileModal .profile-vip-progress-v3 {
  background: var(--pp-surface) !important;
  border: none !important;
  box-shadow: var(--pp-raise) !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  min-height: 0 !important;
}
#profileModal#profileModal .profile-vip-progress-v3::before,
#profileModal#profileModal .profile-vip-progress-v3::after { display: none !important; }
#profileModal#profileModal .vip-progress-icon-v3 {
  width: 38px !important; height: 38px !important;
  border-radius: 11px !important;
  border: none !important;
  background: linear-gradient(145deg, rgba(255,214,90,.26), rgba(212,143,0,.12)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
}
#profileModal#profileModal .vip-progress-icon-v3 span { font-size: 19px !important; }
#profileModal#profileModal .vip-label-small { font-size: 9px !important; letter-spacing: .8px !important; color: var(--pp-muted) !important; }
#profileModal#profileModal .vip-progress-title-row { margin: 1px 0 5px !important; }
#profileModal#profileModal .vip-progress-title-row strong { font-size: 15px !important; }
#profileModal#profileModal .vip-level-badge-small {
  background: rgba(255,214,90,.14) !important; color: var(--pp-gold-1) !important; border: none !important;
}
#profileModal#profileModal .vip-progress-bar-wrap {
  height: 5px !important; margin-bottom: 4px !important;
  background: rgba(0,0,0,.35) !important;
  box-shadow: none !important;
}
#profileModal#profileModal .vip-progress-bar-fill {
  background: linear-gradient(90deg, var(--pp-gold-1), var(--pp-gold-2)) !important;
}
#profileModal#profileModal .vip-progress-footer-row { font-size: 10px !important; color: var(--pp-muted) !important; }

/* ── ORDERS SECTION ────────────────────────────────────────────── */
#profileModal#profileModal .profile-orders-section-v3 {
  background: rgba(255,255,255,.03) !important;
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  border-radius: 18px !important;
  padding: 10px !important;
  margin-bottom: 12px !important;
  min-height: 0 !important;
  height: auto !important;
}
#profileModal#profileModal .profile-orders-section-v3::before,
#profileModal#profileModal .profile-orders-section-v3::after { display: none !important; }

/* 3D segmented tabs */
#profileModal#profileModal .orders-tabs-v3 {
  display: flex !important;
  gap: 4px !important;
  padding: 4px !important;
  margin: 0 0 10px !important;
  border: none !important;
  border-radius: 14px !important;
  background: rgba(0,0,0,.30) !important;
  box-shadow: none !important;
}
#profileModal#profileModal .orders-tabs-v3::before,
#profileModal#profileModal .orders-tabs-v3::after { display: none !important; }
#profileModal#profileModal .order-tab-item {
  flex: 1 1 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 6px !important;
  border: none !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #a3abbb !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  text-shadow: none !important;
  transform: none !important;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}
#profileModal#profileModal .order-tab-item:hover { color: #e6e9f0 !important; }
#profileModal#profileModal .order-tab-item.active {
  background: linear-gradient(180deg, var(--pp-gold-1) 0%, var(--pp-gold-2) 55%, var(--pp-gold-3) 100%) !important;
  color: #231800 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6) !important;
  transform: translateY(-1px) !important;
}
#profileModal#profileModal .order-tab-item:active { transform: translateY(0) scale(.98) !important; }
#profileModal#profileModal .orders-badge-v3 {
  margin: 0 !important;
  min-width: 18px !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
}
#profileModal#profileModal .order-tab-item.active .orders-badge-v3 {
  background: rgba(35,24,0,.85) !important;
  color: var(--pp-gold-1) !important;
}

#profileModal#profileModal .orders-list-v3,
#profileModal#profileModal .profile-completed-wrap {
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
#profileModal#profileModal .orders-list-v3.hidden,
#profileModal#profileModal .profile-completed-wrap.hidden { display: none !important; }

/* Empty states */
#profileModal#profileModal .order-empty,
#profileModal#profileModal .empty-orders-text,
#profileModal#profileModal .empty-orders-state-v3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 18px 14px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  text-align: center !important;
  color: #e9ecf3 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
#profileModal#profileModal .order-empty::before,
#profileModal#profileModal .empty-orders-text::before {
  content: '' !important;
  display: block !important;
  width: 42px !important; height: 42px !important;
  margin-bottom: 8px !important;
  border-radius: 13px !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd24d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E") center / 21px no-repeat,
    linear-gradient(145deg, rgba(255,214,90,.22), rgba(212,143,0,.08)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16) !important;
}
#profileModal#profileModal .order-empty::after,
#profileModal#profileModal .empty-orders-text::after { display: none !important; }
#profileModal#profileModal .order-empty b { color: #fff !important; font-size: 13.5px !important; font-weight: 800 !important; }
#profileModal#profileModal .order-empty span { color: var(--pp-muted) !important; font-size: 11px !important; font-weight: 500 !important; }
#profileModal#profileModal .order-empty + .customer-order-card { margin-top: 10px !important; }
#profileModal#profileModal .empty-orders-state-v3 .empty-box-icon { font-size: 26px !important; }
#profileModal#profileModal .empty-orders-state-v3 .empty-sub { color: var(--pp-muted) !important; font-size: 11px !important; font-weight: 500 !important; }

/* ── ORDER CARDS: neutral premium, no blue, no side borders ───── */
#profileModal#profileModal .customer-order-card {
  --st-a: var(--pp-gold-1);
  --st-b: var(--pp-gold-2);
  --st-ink: #231800;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 0 10px !important;
  padding: 15px 14px 12px !important;
  border: none !important;
  border-radius: 16px !important;
  background: linear-gradient(160deg, #283043 0%, #1e2534 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
  color: var(--pp-text) !important;
  filter: none !important;
}
#profileModal#profileModal .customer-order-card:last-child { margin-bottom: 0 !important; }
#profileModal#profileModal .customer-order-card::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  width: auto !important;
  height: 3px !important;
  border: none !important;
  background: linear-gradient(90deg, var(--st-a), var(--st-b)) !important;
  opacity: .95 !important;
}
#profileModal#profileModal .customer-order-card::after { display: none !important; }

#profileModal#profileModal .customer-order-card.status-processing { --st-a: #ffc078; --st-b: #f08a24; --st-ink: #2a1300; }
#profileModal#profileModal .customer-order-card.status-completed  { --st-a: #6ee7a8; --st-b: #1fae6b; --st-ink: #03271a; }
#profileModal#profileModal .customer-order-card.status-refund     { --st-a: #ff9b9b; --st-b: #e04848; --st-ink: #2a0505; }
#profileModal#profileModal .customer-order-card.status-cancelled  { --st-a: #c9ced8; --st-b: #8a92a3; --st-ink: #15181e; }

#profileModal#profileModal .customer-order-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
#profileModal#profileModal .customer-order-head > div { min-width: 0 !important; }
#profileModal#profileModal .customer-order-head strong {
  display: block !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #fff !important;
  text-shadow: none !important;
}
#profileModal#profileModal .customer-order-head small {
  display: block !important;
  margin-top: 3px !important;
  font-size: 10.5px !important;
  letter-spacing: .3px !important;
  color: var(--pp-muted) !important;
}
#profileModal#profileModal .customer-order-card .status-pill {
  flex-shrink: 0 !important;
  padding: 5px 10px !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .3px !important;
  white-space: nowrap !important;
  color: var(--st-ink) !important;
  background: linear-gradient(180deg, var(--st-a), var(--st-b)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
  text-shadow: none !important;
}

#profileModal#profileModal .customer-order-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
#profileModal#profileModal .customer-order-meta span {
  padding: 6px 10px !important;
  border: none !important;
  border-radius: 9px !important;
  background: rgba(0,0,0,.26) !important;
  box-shadow: none !important;
  color: #cdd3de !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#profileModal#profileModal .customer-order-meta span:first-child {
  color: var(--pp-gold-1) !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
}
#profileModal#profileModal .customer-order-note {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: #aab2c2 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

#profileModal#profileModal .customer-order-card .completion-message,
#profileModal#profileModal .customer-order-card .completion-proof,
#profileModal#profileModal .customer-order-card .refund-proof {
  margin-top: 9px !important;
  padding: 10px !important;
  border: none !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,.22) !important;
  box-shadow: none !important;
  color: #d5dae4 !important;
  font-size: 12px !important;
}
#profileModal#profileModal .completion-proof-title,
#profileModal#profileModal .refund-proof-title {
  font-size: 11.5px !important; font-weight: 800 !important; color: #fff !important; margin-bottom: 8px !important;
}
#profileModal#profileModal .completion-gallery { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
#profileModal#profileModal .completion-gallery-img,
#profileModal#profileModal .refund-proof img {
  width: 64px !important; height: 64px !important;
  object-fit: cover !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  cursor: zoom-in !important;
}

#profileModal#profileModal .customer-order-card details {
  margin-top: 10px !important;
  border: none !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,.22) !important;
  overflow: hidden !important;
}
#profileModal#profileModal .customer-order-card summary {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 9px 12px !important;
  list-style: none !important;
  cursor: pointer !important;
  color: var(--pp-gold-1) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  background: none !important;
  border: none !important;
}
#profileModal#profileModal .customer-order-card summary::-webkit-details-marker { display: none !important; }
#profileModal#profileModal .customer-order-card summary::after {
  content: '›' !important;
  font-size: 16px !important;
  line-height: 1 !important;
  transition: transform .2s ease !important;
}
#profileModal#profileModal .customer-order-card details[open] summary::after { transform: rotate(90deg) !important; }
#profileModal#profileModal .order-history { padding: 0 12px 8px !important; border: none !important; background: none !important; }
#profileModal#profileModal .order-history-item {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 7px 0 !important;
  border: none !important;
  border-top: 1px solid rgba(255,255,255,.05) !important;
  background: none !important;
  color: #cdd3de !important;
  font-size: 11px !important;
}
#profileModal#profileModal .order-history-item small { color: var(--pp-muted) !important; }

/* New-status alert wrapper */
#profileModal#profileModal .profile-status-alert {
  border: none !important;
  border-radius: 16px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  background: linear-gradient(160deg, rgba(255,214,90,.12), rgba(255,214,90,.03)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
  color: var(--pp-text) !important;
}
#profileModal#profileModal .profile-status-alert::before,
#profileModal#profileModal .profile-status-alert::after { display: none !important; }
#profileModal#profileModal .profile-status-alert-order { margin-top: 10px !important; }
#profileModal#profileModal .profile-status-more {
  margin-top: 8px !important; padding: 8px !important; border: none !important; border-radius: 10px !important;
  background: rgba(255,255,255,.04) !important; color: var(--pp-muted) !important; font-size: 11px !important; text-align: center !important;
}

/* ── STATS: compact ────────────────────────────────────────────── */
#profileModal#profileModal .profile-stats-v3 {
  gap: 8px !important;
  margin-bottom: 12px !important;
}
#profileModal#profileModal .stat-card-v3 {
  padding: 8px 4px 7px !important;
  min-height: 0 !important;
  border: none !important;
  border-radius: 12px !important;
  background: var(--pp-surface) !important;
  box-shadow: var(--pp-raise) !important;
  gap: 0 !important;
}
#profileModal#profileModal .stat-card-v3::before,
#profileModal#profileModal .stat-card-v3::after { display: none !important; }
#profileModal#profileModal .stat-icon-v3 { font-size: 14px !important; margin: 0 0 3px !important; line-height: 1 !important; }
#profileModal#profileModal .stat-card-v3 b { font-size: 14px !important; line-height: 1.2 !important; margin: 0 0 1px !important; color: #fff !important; }
#profileModal#profileModal .stat-card-v3 small {
  font-size: 8.5px !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
  color: var(--pp-muted) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* ── LOGOUT: 3D button, no glow ────────────────────────────────── */
#profileModal#profileModal .profile-logout-wrap-v3 {
  margin: 4px 0 8px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}
#profileModal#profileModal .profile-logout-wrap-v3::before,
#profileModal#profileModal .profile-logout-wrap-v3::after { display: none !important; }
#profileModal#profileModal .logout-btn-v3 {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  border: none !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #f25f5f 0%, #d93a3a 55%, #b52a2a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35) !important;
  color: #fff !important;
  font-size: 15px !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
  transform: translateY(0) !important;
  transition: transform .12s ease, box-shadow .12s ease !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
#profileModal#profileModal .logout-btn-v3::before,
#profileModal#profileModal .logout-btn-v3::after { display: none !important; }
#profileModal#profileModal .logout-btn-v3:hover {
  background: linear-gradient(180deg, #f56b6b 0%, #de4444 55%, #bb2f2f 100%) !important;
}
#profileModal#profileModal .logout-btn-v3:active {
  transform: translateY(3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3) !important;
}
#profileModal#profileModal .logout-btn-v3 b {
  flex: 1 !important;
  text-align: center !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .4px !important;
  text-shadow: none !important;
}
#profileModal#profileModal .logout-icon-left,
#profileModal#profileModal .logout-icon-right {
  width: 32px !important; height: 32px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: rgba(0,0,0,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18) !important;
  border: none !important;
  color: #fff !important;
  font-size: 16px !important;
  text-shadow: none !important;
  filter: none !important;
}
#profileModal#profileModal .logout-icon-right { font-size: 20px !important; font-weight: 700 !important; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE HEADER: close button, full name, contact line
   ═══════════════════════════════════════════════════════════════ */
body.li-scroll-locked { position: fixed !important; left: 0; right: 0; width: 100%; overflow: hidden !important; }
.toast { z-index: 2147483100 !important; }

#profileModal#profileModal .premium-profile-box-v2 { position: relative !important; padding-top: 4px !important; padding-bottom: 6px !important; }
#profileModal#profileModal .profile-close-v2 {
  position: absolute !important; top: 8px !important; right: 8px !important; left: auto !important;
  width: 26px !important; height: 26px !important; padding: 0 !important;
  display: grid !important; place-items: center !important;
  font-size: 18px !important; line-height: 1 !important; color: #e9ecf3 !important;
  border: none !important; border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  z-index: 30 !important; transition: transform .18s, background .18s !important;
}
#profileModal#profileModal .profile-close-v2:hover { background: linear-gradient(160deg,#ff6b6b,#d63a3a) !important; transform: scale(1.06) !important; }
#profileModal#profileModal .profile-close-v2:active { transform: scale(.94) !important; }
#profileModal#profileModal .profile-hero-v3 {
  align-items: center !important;
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
}

#profileModal#profileModal .profile-avatar-frame-v3 {
  position: relative !important;
  width: 66px !important;
  height: 66px !important;
  flex: none !important;
  margin-right: 2px !important;
}
#profileModal#profileModal .profile-avatar-wrap-v3 {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  position: relative !important;
  padding: 2px !important;
  background: linear-gradient(135deg, var(--pp-gold-1), #ffb800) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
#profileModal#profileModal .profile-avatar-v3 {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #111 !important;
  box-shadow: none !important;
}
#profileModal#profileModal .profile-avatar-v3 img {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
}
#profileModal#profileModal .profile-avatar-camera-icon-v3 {
  position: absolute !important;
  bottom: -2px !important; right: -4px !important;
  width: 22px !important; height: 22px !important;
  background: linear-gradient(135deg, var(--pp-gold-1), #ffb800) !important;
  border-radius: 50% !important;
  display: grid !important; place-items: center !important;
  box-shadow: none !important;
  border: 1.5px solid #1a2130 !important;
}
#profileModal#profileModal .profile-avatar-camera-icon-v3 svg {
  width: 10px !important; height: 10px !important; stroke: #1a2130 !important; stroke-width: 2.5px !important; fill: none !important;
}

#profileModal#profileModal .profile-info-v3 { min-width: 0 !important; flex: 1 1 auto !important; }
#profileModal#profileModal .profile-name-row-v3 { 
  flex-wrap: nowrap !important; align-items: center !important; margin: 0 0 1px !important; 
}
#profileModal#profileModal .profile-name-row-v3 h2,
#profileModal#profileModal #profileName {
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
  font-size: 18.5px !important; max-width: calc(100% - 76px) !important;
}
#profileModal#profileModal .profile-edit-btn-v3 {
  flex-shrink: 0 !important; padding: 4px 8px !important; font-size: 11px !important;
  display: flex !important; align-items: center !important; gap: 4px !important;
  margin-left: auto !important; margin-right: 12px !important;
}
#profileModal#profileModal .profile-contact-v3 {
  display: flex !important; align-items: center !important; gap: 6px !important; margin: 0 0 2px !important;
  color: #aab2c3 !important; font-size: 11.5px !important; font-weight: 500 !important; min-width: 0 !important; max-width: 100% !important;
}
#profileModal#profileModal .profile-contact-v3[hidden] { display: none !important; }
#profileModal#profileModal .profile-contact-v3 svg { flex: none !important; color: var(--pp-gold-2) !important; }
#profileModal#profileModal .profile-contact-v3[data-kind="email"] .pc-ico-phone,
#profileModal#profileModal .profile-contact-v3[data-kind="phone"] .pc-ico-mail { display: none !important; }
#profileModal#profileModal .profile-contact-v3 span { 
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; min-width: 0 !important;
}
#profileModal#profileModal .profile-badges-v3 {
  display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important;
}

/* ═══════════════════════════════════════════════════════════════
   SHARED 3D POPUP LANGUAGE (logout confirm + photo cropper)
   ═══════════════════════════════════════════════════════════════ */
.lgo-overlay, .pcr-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  display: none; align-items: center; justify-content: center;
  padding: 18px; box-sizing: border-box;
  background: radial-gradient(90% 70% at 50% 40%, rgba(24,30,46,.72), rgba(4,6,12,.9));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  overscroll-behavior: none; touch-action: none;
}
.lgo-overlay.show, .pcr-overlay.show { display: flex; animation: lgoFade .22s ease both; }
@keyframes lgoFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgoPop { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }

.lgo-card, .pcr-card {
  position: relative; box-sizing: border-box; width: 100%; text-align: center; color: #f3f5fa;
  border-radius: 24px; padding: 26px 22px 22px;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,200,40,.16), transparent 62%),
    linear-gradient(165deg, #2a3348 0%, #1b2231 52%, #131824 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14);
  animation: lgoPop .32s cubic-bezier(.2,.9,.3,1.15) both;
  touch-action: auto;
}
.lgo-card { max-width: 340px; }
.pcr-card { max-width: 380px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }

.lgo-icon {
  width: 70px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 22px;
  color: #fff;
  background: linear-gradient(150deg, #ff8a7a 0%, #e5484d 55%, #b3202a 100%);
  box-shadow: none;
  transform: rotate(-4deg);
}
.lgo-card h3, .pcr-card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.lgo-card p { margin: 0 0 20px; color: #a3acbe; font-size: 13.5px; line-height: 1.5; }

.lgo-actions, .pcr-actions { display: flex; gap: 12px; }
.lgo-btn, .pcr-btn {
  flex: 1; height: 48px; border: none; border-radius: 15px; cursor: pointer;
  font: 800 15px/1 inherit; letter-spacing: .2px; position: relative;
  transition: transform .12s ease, box-shadow .12s ease, filter .15s;
  -webkit-tap-highlight-color: transparent;
}
.lgo-no, .pcr-cancel {
  color: #e6e9f1;
  background: linear-gradient(180deg, #3a445b, #283043);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.lgo-yes {
  color: #fff;
  background: linear-gradient(180deg, #ff7a70, #e5484d 55%, #c22a34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  text-shadow: none;
}
.pcr-save {
  color: #2a1b00;
  background: linear-gradient(180deg, #ffe9a0, #fbc531 52%, #e09a00);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.lgo-btn:hover, .pcr-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lgo-btn:active, .pcr-btn:active { transform: translateY(4px); box-shadow: none; }
.pcr-btn:disabled { opacity: .65; cursor: progress; }

/* ── Cropper ─────────────────────────────────────────────────── */
.pcr-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; line-height: 1; color: #e9ecf3; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.pcr-x:hover { background: linear-gradient(160deg,#ff6b6b,#d63a3a); }
.pcr-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--pp-gold-2, #f6b90b); margin-bottom: 4px; }
.pcr-hint { margin: 0 0 16px; color: #98a1b3; font-size: 12.5px; }
.pcr-stage {
  position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto 16px;
  border-radius: 20px; overflow: hidden; background: #0b1019; cursor: grab; touch-action: none; user-select: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.1);
}
.pcr-stage:active { cursor: grabbing; }
.pcr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pcr-mask {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) 33.33% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) 66.66% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) 0 33.33% / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) 0 66.66% / 100% 1px no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0, transparent 69.5%, rgba(6,9,16,.72) 70.5%);
}
.pcr-ring {
  position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  box-shadow: inset 0 0 0 2.5px rgba(255,214,90,.95), 0 0 0 1px rgba(0,0,0,.3);
  clip-path: circle(50% at 50% 50%);
}
.pcr-zoom {
  display: flex; align-items: center; gap: 12px; margin: 0 auto 18px; max-width: 300px; color: #c9cfdb;
  padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pcr-zoom svg { flex: none; }
.pcr-zoom input[type=range] { flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-x; cursor: pointer; }
.pcr-zoom input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #fbc531, #3a445b); box-shadow: none; }
.pcr-zoom input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #fbc531, #3a445b); }
.pcr-zoom input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; border: none; background: radial-gradient(circle at 35% 30%, #fff, #ffe08a 45%, #f6b90b); box-shadow: 0 0 0 3px rgba(246,185,11,.25); }
.pcr-zoom input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: none; background: radial-gradient(circle at 35% 30%, #fff, #ffe08a 45%, #f6b90b); box-shadow: none; }

@media (max-width: 380px) { .pcr-card { padding: 22px 16px 18px; } .pcr-stage { width: min(100%, 260px); } }

/* ═══════════════════════════════════════════════════════
   PREMIUM LOGIN SUCCESS NOTIFICATION - 3D Gold Style
   ═══════════════════════════════════════════════════════ */
.login-flash-premium {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 2147483200;
  pointer-events: none;
  width: min(340px, calc(100vw - 32px));
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.28s ease;
}
.login-flash-premium.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lfp-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a2340 0%, #0e1628 60%, #1a1f35 100%);
  border: 1px solid rgba(245, 197, 24, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}
/* 3D shimmer top edge */
.lfp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.7), rgba(255,149,0,0.5), transparent);
}
/* Glow background */
.lfp-glow-ring {
  position: absolute;
  top: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.18) 0%, transparent 70%);
  pointer-events: none;
}
/* Icon */
.lfp-icon-wrap {
  flex-shrink: 0;
}
.lfp-icon-inner {
  position: relative;
  width: 52px; height: 52px;
  filter: none;
}
.lfp-check-svg {
  width: 52px; height: 52px;
}
.lfp-check-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: lfp-circle-draw 0.5s 0.1s cubic-bezier(0.4,0,0.2,1) forwards;
}
.login-flash-premium.show .lfp-check-circle {
  animation: lfp-circle-draw 0.5s 0.15s cubic-bezier(0.4,0,0.2,1) forwards;
}
.lfp-check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: lfp-check-draw 0.35s 0.5s ease forwards;
}
.login-flash-premium.show .lfp-check-path {
  animation: lfp-check-draw 0.35s 0.5s ease forwards;
}
@keyframes lfp-circle-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes lfp-check-draw {
  to { stroke-dashoffset: 0; }
}
/* Sparkles */
.lfp-sparkle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #f5c518;
  opacity: 0;
}
.lfp-s1 { top: 2px; right: 6px; animation: lfp-spark 0.6s 0.6s ease-out forwards; }
.lfp-s2 { bottom: 4px; right: 2px; animation: lfp-spark 0.5s 0.75s ease-out forwards; width:4px;height:4px; background:#ff9500; }
.lfp-s3 { top: 10px; left: 0; animation: lfp-spark 0.55s 0.65s ease-out forwards; width:3px;height:3px; }
.lfp-s4 { bottom: 2px; left: 8px; animation: lfp-spark 0.6s 0.8s ease-out forwards; width:4px;height:4px; background:#ffd700; }
@keyframes lfp-spark {
  0%   { opacity: 1; transform: scale(0) translate(0,0); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5) translate(var(--tx,6px), var(--ty,-8px)); }
}
.lfp-s1 { --tx: 8px; --ty: -10px; }
.lfp-s2 { --tx: 10px; --ty: 6px; }
.lfp-s3 { --tx: -8px; --ty: -8px; }
.lfp-s4 { --tx: -6px; --ty: 8px; }
/* Text */
.lfp-text { flex: 1; min-width: 0; }
.lfp-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4ff;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: none;
}
.lfp-sub {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(245,197,24,0.8);
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* Progress bar */
.lfp-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5px;
  background: rgba(255,255,255,0.06);
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.lfp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5c518, #ff9500);
  border-radius: inherit;
}
.login-flash-premium.show .lfp-progress-fill {
  animation: lfp-progress 2.8s 0.1s linear forwards;
}
@keyframes lfp-progress {
  from { width: 0%; }
  to { width: 100%; }
}


/* Profile icons use inline SVG rather than corrupted emoji/font glyphs. */
#profileModal#profileModal .vip-icon svg,
#profileModal#profileModal .vip-progress-icon-v3 svg,
#profileModal#profileModal .empty-box-icon svg,
#profileModal#profileModal .stat-icon-v3 svg,
#profileModal#profileModal .logout-icon-left svg,
#profileModal#profileModal .logout-icon-right svg,
#profileModal#profileModal .profile-close-v2 svg {
  display: block !important;
  flex: 0 0 auto !important;
}
#profileModal#profileModal .vip-progress-icon-v3 {
  display: flex !important; align-items: center !important; justify-content: center !important;
}
#profileModal#profileModal .empty-orders-state-v3 .empty-box-icon {
  display: flex !important; align-items: center !important; justify-content: center !important;
}
#profileModal#profileModal .profile-stats-v3 .stat-icon-v3 {
  display: flex !important; align-items: center !important; justify-content: center !important;
}
