:root {
  --orange: #f47b0a;
  --orange2: #ff952f;
  --teal: #006c64;
  --bg: #f3f1ee;
  --card: #ffffff;
  --text: #151515;
  --muted: #99938d;
  --red: #991633;
  --green: #169f45;
  --line: #ebe6e1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
}

html {
  background-color: var(--bg);
  transition: background .3s ease, color .3s ease;
}

body {
  background-color: transparent !important;
  transition: color .3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   3D ANIMATED BACKGROUND (CANVAS QATLAMI)
========================================================= */
#vp-3d-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity .3s ease;
}

/* =========================================================
   DARK / NIGHT MODE
========================================================= */
[data-theme="dark"] {
  --bg: #121212 !important;
  --card: #1e1e1e !important;
  --text: #f5f5f5 !important;
  --muted: #a09a93 !important;
  --line: #2c2c2c !important;
  background-color: #121212 !important;
  color: #f5f5f5 !important;
}

[data-theme="dark"] body {
  background-color: transparent !important;
  color: var(--text) !important;
}

[data-theme="dark"] #vp-3d-bg {
  opacity: 0.95;
}

[data-theme="dark"] .sj-card,
[data-theme="dark"] .vp-bottom-nav,
[data-theme="dark"] .vp-faq,
[data-theme="dark"] .vp-quick-card,
[data-theme="dark"] .vp-product-card,
[data-theme="dark"] .vp-membership-card,
[data-theme="dark"] .vp-shop-card,
[data-theme="dark"] .vp-commission-card,
[data-theme="dark"] .vp-team-tabs,
[data-theme="dark"] .vp-team-user,
[data-theme="dark"] .vp-profile-grid button,
[data-theme="dark"] .vp-menu-list button,
[data-theme="dark"] .vp-menu-list a,
[data-theme="dark"] .vp-inline-panel,
[data-theme="dark"] .vp-modal-card,
[data-theme="dark"] .vp-progress-card,
[data-theme="dark"] .vp-progress-stats div,
[data-theme="dark"] .vp-balance-grid .vp-balance,
[data-theme="dark"] .vp-card-box,
[data-theme="dark"] .vp-payment-form,
[data-theme="dark"] .vp-buy-method,
[data-theme="dark"] .vp-buy-summary,
[data-theme="dark"] .vp-payment-admin-card {
  color: var(--text) !important;
  border-color: var(--line) !important;
}

[data-theme="dark"] .vp-bottom-nav,
[data-theme="dark"] .vpp-nav {
  background: rgba(30, 30, 30, .98) !important;
  border-top-color: var(--line) !important;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #252525 !important;
  color: #f5f5f5 !important;
  border-color: var(--line) !important;
}

/* =========================================================
   1. GLASSMORPHISM (OYNASIMON SHAFFOF KARTALAR)
========================================================= */
.sj-card,
.vp-card-box,
.vp-product-card,
.vp-membership-card,
.vp-shop-card,
.vp-commission-card,
.vp-progress-card,
.vpm-referral,
.vpm-withdraw-rules,
.vpm-action,
.vpm-menu-item,
.vpm-inline,
.vpm-modal-card {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .sj-card,
[data-theme="dark"] .vp-card-box,
[data-theme="dark"] .vp-product-card,
[data-theme="dark"] .vp-membership-card,
[data-theme="dark"] .vp-shop-card,
[data-theme="dark"] .vp-commission-card,
[data-theme="dark"] .vp-progress-card,
[data-theme="dark"] .vpm-referral,
[data-theme="dark"] .vpm-withdraw-rules,
[data-theme="dark"] .vpm-action,
[data-theme="dark"] .vpm-menu-item,
[data-theme="dark"] .vpm-inline,
[data-theme="dark"] .vpm-modal-card {
  background: rgba(30, 30, 30, 0.78) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

/* =========================================================
   2. SHIMMER (DIAGONAL OLTIN NUR JILOSI)
========================================================= */
.vpm-balance strong,
.vp-balance strong,
.vp-buy-btn,
.vp-primary-btn,
.vpm-primary {
  position: relative;
  overflow: hidden;
}

.vpm-balance strong::after,
.vp-balance strong::after,
.vp-buy-btn::after,
.vp-primary-btn::after,
.vpm-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%
  );
  transform: rotate(25deg);
  animation: vp-shimmer 4.5s infinite ease-in-out;
  pointer-events: none;
}

@keyframes vp-shimmer {
  0% { left: -150%; }
  35%, 100% { left: 200%; }
}

/* =========================================================
   3. NEON PULSE GLOW (FAOL PAKETLAR UCHUN TO'Q SARIQ JILO)
========================================================= */
.vp-status-badge.active,
.vp-progress-card:has(.vp-status-badge.active) {
  animation: vp-pulse-glow 2.4s infinite alternate ease-in-out;
}

@keyframes vp-pulse-glow {
  0% {
    box-shadow: 0 4px 18px rgba(244, 123, 10, 0.15);
    border-color: rgba(244, 123, 10, 0.3);
  }
  100% {
    box-shadow: 0 4px 24px rgba(244, 123, 10, 0.42);
    border-color: rgba(244, 123, 10, 0.85);
  }
}

/* =========================================================
   4. RIPPLE CLICK WAVE (BOSGANDA TO'LQIN TARQALISHI)
========================================================= */
.vp-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(244, 123, 10, 0.28);
  transform: scale(0);
  animation: vp-ripple-anim 0.55s linear;
  pointer-events: none;
}

@keyframes vp-ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =========================================================
   KONTENT QATLAMI (BARGLAR KARTALAR TAGIDA BO'LISHI UCHUN)
========================================================= */
.vp-home,
.vp-page,
.vpm-page,
.vp-shop-page,
.vp-team-body,
.vp-profile-page,
.vp-payment-page,
.vp-membership-list,
.vp-progress-list,
.vp-page-title,
.vp-section-head,
.vpm-head,
.vpm-balance,
.vpm-balance-sub,
.vpm-referral,
.vpm-withdraw-rules,
.vpm-actions,
.vpm-menu,
.vpm-inline,
.sj-auth-stage,
.sj-card {
  position: relative;
  z-index: 1;
}

/* =========================================================
   AUTH (KIRISH VA RO'YXATDAN O'TISH)
========================================================= */
.sj-auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffa14b, #f27605);
  display: grid;
  place-items: center;
  padding: 20px;
}

.sj-auth-stage {
  width: 100%;
  display: grid;
  place-items: center;
}

.sj-card {
  width: min(452px, 100%);
  border-radius: 40px;
  padding: 32px 30px;
}

.sj-brand {
  text-align: center;
  font-size: 25px;
  font-weight: 900;
  color: #003a35;
  margin-bottom: 22px;
}

.sj-brand span {
  color: var(--orange);
}

.sj-form {
  display: grid;
  gap: 18px;
}

.sj-field label {
  display: block;
  font-weight: 800;
  margin: 0 0 8px 10px;
}

.sj-control {
  min-height: 56px;
  background: #fff0e3;
  border-radius: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sj-control input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 18px;
  outline: 0;
  font-size: 15px;
}

.sj-prefix {
  padding-left: 20px;
  padding-right: 14px;
  border-right: 1px solid #f0d5bf;
}

.sj-eye, .sj-get {
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.sj-primary, .sj-secondary {
  min-height: 52px;
  border: 0;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.sj-primary {
  background: #00776f;
  color: #fff;
}

.sj-secondary {
  background: #ffc52a;
  color: #073a38;
}

.sj-alert {
  background: #fff0ef;
  color: #a12620;
  padding: 12px 14px;
  border-radius: 14px;
}

.sj-code-message {
  font-size: 12px;
  color: #6f6f6f;
  margin: 7px 10px 0;
}

.sj-code-message.ok {
  color: var(--green);
}

.sj-code-message.bad {
  color: #b32f2f;
}

/* =========================================================
   COMMON (UMUMIY KOMPONENTLAR)
========================================================= */
.vp-flash {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.vp-flash.ok {
  background: #e9f8ef;
  color: #087a35;
}

.vp-flash.bad {
  background: #fff0ef;
  color: #a12620;
}

.vp-primary-btn, .vp-danger-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
}

.vp-primary-btn {
  background: var(--orange);
  color: #fff;
}

.vp-danger-btn {
  background: #b52d2d;
  color: #fff;
}

.vp-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px 12px;
}

.vp-form-label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 700;
}

/* =========================================================
   BOTTOM NAV
========================================================= */
.vp-bottom-nav,
.vpp-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: 66px;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  backdrop-filter: blur(14px);
}

.vp-bottom-nav a,
.vpp-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #c3bfbb;
  font-size: 10px;
}

.vp-bottom-nav a.active,
.vpp-nav a.active {
  color: var(--orange);
}

.vp-nav-icon,
.vpp-nav-icon {
  font-size: 23px;
}

/* =========================================================
   HOME (ASOSIY SAHIFA)
========================================================= */
.vp-home-body {
  padding-bottom: 76px;
}

.vp-home {
  padding: 12px;
}

.vp-banner, .vp-banner-slider {
  height: 118px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.vp-banner {
  display: flex;
  align-items: center;
  background: linear-gradient(105deg, #ffb15d, #f2780b);
  color: #fff;
}

.vp-banner-gift {
  width: 32%;
  font-size: 78px;
  text-align: center;
}

.vp-banner-copy {
  flex: 1;
  text-align: center;
  padding: 15px;
}

.vp-banner-title {
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
}

.vp-banner-slider {
  position: relative;
  background: #eee;
}

.vp-banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: .3s;
}

.vp-banner-slide.active {
  opacity: 1;
}

.vp-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent);
  display: flex;
  align-items: center;
  padding: 25px;
  color: #fff;
  font-size: 30px;
}

.vp-faq {
  height: 43px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.vp-faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3d9de6;
  color: #fff;
}

.vp-faq-arrow {
  margin-left: auto;
  font-size: 24px;
}

.vp-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.vp-quick-card {
  height: 70px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.vp-quick-icon {
  color: #3485f2;
  font-size: 24px;
}

.vp-products {
  display: grid;
  gap: 14px;
}

.vp-product-card {
  position: relative;
  border-radius: 20px;
  padding: 16px 14px 12px;
}

.vp-duration {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 9px 13px;
  border-radius: 0 0 0 13px;
  font-size: 11px;
  font-weight: 800;
}

.vp-product-main {
  display: flex;
  gap: 12px;
  padding-right: 58px;
}

.vp-product-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 13px;
  background: #f6f4f2;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.vp-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-product-emoji {
  font-size: 42px;
}

.vp-product-info h3 {
  margin: 2px 0 6px;
  font-size: 15px;
}

.vp-product-meta {
  display: grid;
  gap: 3px;
  color: var(--orange);
  font-size: 11px;
}

.vp-product-meta span {
  font-weight: 700;
}

.vp-product-meta .stock {
  color: var(--green);
}

.vp-product-separator {
  border-top: 1px dashed var(--line);
  margin: 12px 0 10px;
}

.vp-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vp-price {
  font-size: 12px;
  font-weight: 800;
}

.vp-price strong {
  color: var(--orange);
  margin-left: 4px;
}

.vp-buy-btn, .vp-view-only {
  border: 0;
  border-radius: 24px;
  padding: 10px 18px;
  font-weight: 800;
}

.vp-buy-btn {
  background: var(--orange);
  color: #fff;
  cursor: pointer;
}

.vp-view-only {
  background: #eee;
  color: #aaa;
}

.vp-empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: #aaa;
}

.vp-empty-box {
  font-size: 72px;
  opacity: .35;
}

.vp-empty-large {
  min-height: 58vh;
}

.vp-empty-small {
  min-height: 260px;
}

/* =========================================================
   PACKAGES
========================================================= */
.vp-page-body {
  padding-bottom: 76px;
}

.vp-page-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  padding: 25px 15px;
}

.vp-page {
  padding: 0 16px;
}

.vp-section-head {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.vp-section-head span {
  color: #666;
}

.vp-membership-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.vp-membership-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
}

.vp-membership-img {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f5f4f2;
  overflow: hidden;
  font-size: 35px;
}

.vp-membership-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-membership-card h3 {
  margin: 0 0 7px;
}

.vp-membership-card p {
  margin: 3px 0;
  font-size: 13px;
  color: #666;
}

/* =========================================================
   SHOP
========================================================= */
.vp-shop-page {
  padding: 8px 10px 80px;
}

.vp-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vp-shop-card {
  border-radius: 10px;
  overflow: hidden;
}

.vp-shop-image {
  aspect-ratio: 1.25/1;
  background: #f2f2f2;
  display: grid;
  place-items: center;
  font-size: 70px;
  overflow: hidden;
}

.vp-shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-shop-info {
  padding: 11px;
}

.vp-shop-info h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.vp-shop-info p {
  margin: 0 0 8px;
  color: #666;
  font-size: 12px;
}

.vp-shop-info > strong {
  color: var(--orange);
}

.vp-shop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
}

.vp-shop-actions button {
  border: 0;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  padding: 8px 13px;
  font-weight: 800;
}

/* =========================================================
   TEAM
========================================================= */
.vp-team-body {
  padding-bottom: 76px;
  background: transparent;
}

.vp-team-hero {
  background: var(--orange);
  padding: 18px 16px 14px;
  color: #fff;
  text-align: center;
}

.vp-team-hero h2 {
  margin: 0 0 20px;
}

.vp-team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.vp-team-stats div {
  display: grid;
  gap: 7px;
}

.vp-team-stats span {
  font-size: 11px;
}

.vp-team-stats strong {
  font-size: 15px;
}

.vp-invite-btn {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 20px;
  background: #006a66;
  color: #fff;
  font-weight: 800;
}

.vp-commission-card {
  margin-top: 14px;
  color: #111;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
}

.vp-commission-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vp-commission-card > button {
  float: right;
  margin-top: -40px;
  border: 0;
  border-radius: 25px;
  padding: 12px 30px;
  background: #ccc;
  color: #fff;
  font-weight: 800;
}

.vp-commission-grid {
  clear: both;
  border-top: 1px solid #eee;
  margin-top: 14px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-size: 12px;
}

.vp-commission-grid div {
  display: grid;
  gap: 6px;
}

.vp-team-main {
  padding: 0 10px;
}

.vp-team-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
}

.vp-team-tabs button {
  height: 54px;
  border: 0;
  background: #fff;
  color: #aaa;
}

.vp-team-tabs button.active {
  color: #00645e;
  border-bottom: 3px solid #00645e;
  font-weight: 800;
}

.vp-team-list {
  display: none;
}

.vp-team-list.active {
  display: block;
}

.vp-team-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.vp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f1ef;
  display: grid;
  place-items: center;
}

.vp-team-user div:nth-child(2) {
  display: grid;
}

.vp-team-user span, .vp-team-user small {
  color: #888;
  font-size: 12px;
}

.vp-team-user small {
  margin-left: auto;
}

/* =========================================================
   PROFILE
========================================================= */
.vp-profile-body {
  padding-bottom: 76px;
}

.vp-profile-page {
  padding: 16px 12px 85px;
}

.vp-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.vp-avatar-large {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eee;
  display: grid;
  place-items: center;
}

.vp-profile-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.vp-profile-tools span:first-child {
  background: var(--orange);
  color: #fff;
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 12px;
}

.vp-balance {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.vp-balance span {
  color: #777;
}

.vp-balance strong {
  font-size: 28px;
}

.vp-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vp-profile-grid button,
.vp-menu-list button,
.vp-menu-list a {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.vp-profile-grid b,
.vp-menu-list b {
  margin-left: auto;
  color: var(--orange);
}

.vp-menu-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.vp-logout {
  display: grid;
  place-items: center;
  height: 44px;
  background: #ddd;
  border-radius: 22px;
  margin-top: 22px;
  font-weight: 800;
}

.vp-inline-panel {
  border-radius: 15px;
  padding: 14px;
  margin-top: 14px;
}

.vp-inline-panel h3 {
  margin-top: 0;
}

.vp-tx {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.vp-tx .credit {
  color: var(--green);
}

.vp-tx .debit {
  color: #c23b3b;
}

/* =========================================================
   MODAL
========================================================= */
.vp-modal[hidden] {
  display: none;
}

.vp-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.vp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.vp-modal-card {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  width: min(390px, 100%);
  padding: 24px;
}

.vp-modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
}

/* =========================================================
   ADMIN PANEL
========================================================= */
.vp-admin-body {
  background: #f5f6f8;
  min-height: 100vh;
}

.vp-admin-side {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: #101826;
  color: #d9e0ea;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vp-admin-brand {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}

.vp-admin-brand span {
  color: var(--orange);
}

.vp-admin-side a {
  padding: 11px 12px;
  border-radius: 9px;
}

.vp-admin-side a.active,
.vp-admin-side a:hover {
  background: #1f2b3f;
  color: #fff;
}

.vp-admin-main {
  margin-left: 220px;
  padding: 24px;
}

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

.vp-admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.vp-admin-stats div {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.vp-admin-stats strong {
  font-size: 28px;
}

.vp-admin-table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 14px;
}

.vp-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.vp-admin-table th,
.vp-admin-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.vp-admin-table img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.vp-admin-table form {
  display: flex;
  gap: 6px;
}

.vp-admin-table button {
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  cursor: pointer;
}

.vp-admin-form {
  max-width: 760px;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.vp-admin-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.vp-admin-form input,
.vp-admin-form textarea,
.vp-admin-form select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 9px;
  padding: 10px;
}

.vp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vp-check {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.vp-check input {
  width: auto;
}

.vp-preview {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.vp-banner-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.vp-banner-admin-grid article {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.vp-banner-admin-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.vp-banner-admin-grid article div {
  padding: 10px;
}

@media(max-width: 900px) {
  .vp-admin-side {
    position: static;
    width: auto;
    flex-direction: row;
    overflow: auto;
  }
  .vp-admin-main {
    margin-left: 0;
  }
  .vp-admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 620px) {
  .sj-card {
    border-radius: 28px;
    padding: 26px 18px;
  }
  .vp-banner-title {
    font-size: 22px;
  }
  .vp-banner-gift {
    font-size: 58px;
  }
  .vp-product-image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .vp-product-info h3 {
    font-size: 13px;
  }
  .vp-team-stats span {
    font-size: 9px;
  }
  .vp-commission-grid {
    font-size: 10px;
  }
  .vp-admin-stats {
    grid-template-columns: 1fr;
  }
  .vp-form-grid {
    grid-template-columns: 1fr;
  }
  .vp-banner-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PAKET PROGRESS QO'SHIMCHASI
========================================================= */
.vp-progress-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 12px;
}

.vp-progress-card {
  border-radius: 18px;
  padding: 16px;
}

.vp-progress-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vp-progress-main {
  flex: 1;
  min-width: 0;
}

.vp-progress-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vp-progress-title-row h3 {
  margin: 0;
  font-size: 16px;
}

.vp-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
}

.vp-status-badge.active {
  color: #087a35;
  background: #e6f8ed;
}

.vp-status-badge.finished {
  color: #005f99;
  background: #e8f4ff;
}

.vp-status-badge.cancelled {
  color: #9e2525;
  background: #fff0ef;
}

.vp-progress-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: #777;
  font-size: 11px;
}

.vp-progress-bar-wrap {
  margin-top: 16px;
}

.vp-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
}

.vp-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 20px;
  background: #ece9e5;
}

.vp-progress-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #f47b0a, #ffaf45);
}

.vp-progress-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.vp-progress-stats div {
  background: #f8f6f3;
  border-radius: 12px;
  padding: 11px;
  display: grid;
  gap: 5px;
}

.vp-progress-stats span {
  color: #807b76;
  font-size: 10px;
}

.vp-progress-stats strong {
  font-size: 13px;
}

.vp-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}

.vp-balance-grid .vp-balance {
  margin: 0;
  background: #fff;
  border-radius: 15px;
  padding: 14px;
}

.vp-indicator-balance strong {
  color: #f47b0a;
}

.vp-indicator-balance small {
  color: #999;
  font-size: 10px;
}

.vp-admin-progress {
  width: 150px;
  height: 7px;
  border-radius: 20px;
  overflow: hidden;
  background: #eee;
  margin-top: 6px;
}

.vp-admin-progress span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: #f47b0a;
}

@media(max-width: 620px) {
  .vp-progress-stats {
    grid-template-columns: 1fr 1fr;
  }
  .vp-balance-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MANUAL PAYMENT / RECEIPT WORKFLOW
========================================================= */
.vp-payment-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 14px 90px;
}

.vp-card-box {
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 7px;
}

.vp-card-box span {
  color: #777;
  font-size: 12px;
}

.vp-card-box strong {
  font-size: 24px;
  letter-spacing: .04em;
}

.vp-card-box small {
  color: #666;
}

.vp-payment-note {
  color: #666;
  line-height: 1.5;
  margin: 14px 2px;
}

.vp-payment-form,
.vp-buy-method {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.vp-payment-form {
  display: grid;
  gap: 14px;
}

.vp-payment-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.vp-payment-form input,
.vp-payment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.vp-buy-summary {
  background: #fff;
  border-radius: 18px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.vp-buy-summary img {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.vp-buy-summary h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.vp-buy-summary p {
  margin: 4px 0;
  color: #666;
}

.vp-buy-method h3 {
  margin-top: 0;
}

.vp-primary-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.vp-payment-admin-list {
  display: grid;
  gap: 14px;
}

.vp-payment-admin-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.vp-receipt-link img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
}

.vp-payment-admin-info h3 {
  margin-top: 0;
}

.vp-payment-admin-info p {
  margin: 7px 0;
}

.vp-payment-admin-info textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
}

.vp-admin-action-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.vp-payment-history-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #eee;
}

.vp-payment-history-row > div {
  display: grid;
  gap: 4px;
}

.vp-payment-history-row > div:last-child {
  text-align: right;
}

.vp-payment-history-row span {
  color: #888;
  font-size: 11px;
}

.vp-payment-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.vp-payment-status.pending {
  color: #9a6900;
  background: #fff5d8;
}

.vp-payment-status.approved {
  color: #087a35;
  background: #e8f8ee;
}

.vp-payment-status.rejected {
  color: #a22626;
  background: #fff0ef;
}

@media(max-width: 720px) {
  .vp-payment-admin-card {
    grid-template-columns: 1fr;
  }
  .vp-receipt-link img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }
}

/* =========================================================
   UNIVERSAL RESPONSIVE / MOBILE WEBAPP LAYER
========================================================= */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

img, video, canvas, iframe, svg {
  max-width: 100%;
}

button, input, textarea, select {
  max-width: 100%;
}

button, a, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

.vp-home,
.vp-page,
.vp-shop-page,
.vp-profile-page,
.vp-payment-page,
.vp-admin-main,
.vp-product-main,
.vp-product-info,
.vp-membership-card,
.vp-buy-summary,
.vp-payment-history-row {
  min-width: 0;
}

/* Katta monitorlarda kontent chegarasi */
@media(min-width: 1440px) {
  .vp-home,
  .vp-page,
  .vp-shop-page,
  .vp-profile-page,
  .vp-payment-page {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Laptop / Planshet */
@media(max-width: 1024px) {
  .vp-home {
    padding: 12px 14px 92px;
  }
  .vp-page {
    padding-left: 14px;
    padding-right: 14px;
  }
  .vp-shop-page {
    padding-left: 12px;
    padding-right: 12px;
  }
  .vp-banner-overlay {
    padding: 18px;
    font-size: clamp(18px, 3vw, 28px);
  }
  .vp-admin-main {
    min-width: 0;
  }
  .vp-admin-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile / Telegram WebApp */
@media(max-width: 768px) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .sj-auth-body {
    min-height: 100dvh;
    padding: 14px;
  }
  .sj-card {
    width: 100%;
    max-width: 480px;
    border-radius: 26px;
    padding: 24px 18px;
  }
  .sj-control,
  .sj-primary,
  .sj-secondary {
    min-height: 52px;
  }
  .vp-home,
  .vp-page,
  .vp-shop-page,
  .vp-profile-page,
  .vp-payment-page {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .vp-home,
  .vp-shop-page,
  .vp-profile-page,
  .vp-payment-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .vp-page-title {
    padding: 18px 12px 14px;
    font-size: clamp(19px, 5vw, 24px);
  }
  .vp-bottom-nav,
  .vpp-nav {
    height: calc(66px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .vp-bottom-nav a,
  .vpp-nav a {
    min-width: 0;
  }
  .vp-banner,
  .vp-banner-slider {
    height: clamp(100px, 28vw, 150px);
    border-radius: 14px;
  }
  .vp-banner-copy {
    padding: 10px;
  }
  .vp-banner-title {
    font-size: clamp(20px, 6vw, 28px);
  }
  .vp-banner-gift {
    font-size: clamp(46px, 14vw, 72px);
  }
  .vp-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .vp-quick-card {
    min-width: 0;
    height: auto;
    min-height: 68px;
    padding: 9px 6px;
  }
  .vp-product-card {
    border-radius: 16px;
    padding: 13px 11px 11px;
  }
  .vp-product-main {
    padding-right: 48px;
    gap: 10px;
  }
  .vp-product-image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .vp-product-info {
    min-width: 0;
  }
  .vp-product-info h3 {
    overflow-wrap: anywhere;
  }
  .vp-product-footer {
    flex-wrap: wrap;
  }
  .vp-buy-btn,
  .vp-view-only {
    min-height: 42px;
    padding: 9px 15px;
  }
  .vp-membership-card {
    min-width: 0;
    padding: 12px;
  }
  .vp-membership-card > div:last-child {
    min-width: 0;
  }
  .vp-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .vp-shop-info h3 {
    overflow-wrap: anywhere;
  }
  .vp-shop-actions {
    align-items: flex-end;
    gap: 6px;
  }
  .vp-shop-actions button {
    min-height: 38px;
    padding: 7px 10px;
  }
  .vp-team-stats {
    gap: 6px;
  }
  .vp-commission-card {
    border-radius: 15px;
    padding: 12px;
  }
  .vp-profile-page {
    padding-top: 12px;
  }
  .vp-profile-head {
    align-items: flex-start;
  }
  .vp-profile-tools {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .vp-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .vp-profile-grid button,
  .vp-menu-list button,
  .vp-menu-list a {
    min-width: 0;
    min-height: 50px;
  }

  /* WebApp bottom-sheet modal */
  .vp-modal {
    place-items: end center;
    padding: 0;
  }
  .vp-modal-card {
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 760px);
    overflow: auto;
    border-radius: 24px 24px 0 0;
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  }
  .vp-payment-page {
    width: 100%;
  }
  .vp-card-box strong {
    font-size: clamp(19px, 6vw, 24px);
    overflow-wrap: anywhere;
  }
  .vp-buy-summary {
    align-items: flex-start;
  }
  .vp-buy-summary img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
  }
  .vp-payment-admin-card {
    grid-template-columns: 1fr;
  }
  .vp-admin-action-row {
    flex-wrap: wrap;
  }

  /* Admin panel — mobil gorizontal bar */
  body.vp-admin-body {
    min-width: 0;
  }
  .vp-admin-side {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 8px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .vp-admin-side::-webkit-scrollbar {
    display: none;
  }
  .vp-admin-brand {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 10px;
    font-size: 18px;
    white-space: nowrap;
  }
  .vp-admin-side a {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0;
    white-space: nowrap;
    padding: 9px 11px;
  }
  .vp-admin-main {
    margin-left: 0;
    width: 100%;
    min-width: 0;
    padding: 16px 10px calc(28px + env(safe-area-inset-bottom));
  }
  .vp-admin-top {
    gap: 10px;
    flex-wrap: wrap;
  }
  .vp-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .vp-admin-stats > div {
    min-width: 0;
  }
  .vp-admin-table {
    min-width: 720px;
  }
  .vp-admin-form {
    width: 100%;
    max-width: 100%;
  }
  .vp-form-grid {
    grid-template-columns: 1fr;
  }
  .vp-banner-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vp-payment-admin-card {
    grid-template-columns: 1fr;
  }
  .vp-receipt-link img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }
  .vp-progress-title-row {
    gap: 7px;
  }
  .vp-progress-title-row h3 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Kichik smartfonlar (max-width: 520px) */
@media(max-width: 520px) {
  input, textarea, select {
    font-size: 16px;
  }
  .vp-shop-grid {
    grid-template-columns: 1fr;
  }
  .vp-shop-card {
    border-radius: 14px;
  }
  .vp-shop-image {
    aspect-ratio: 16/10;
  }
  .vp-profile-grid {
    grid-template-columns: 1fr;
  }
  .vp-product-main {
    padding-right: 42px;
  }
  .vp-duration {
    padding: 7px 9px;
    font-size: 9px;
  }
  .vp-banner-admin-grid {
    grid-template-columns: 1fr;
  }
  .vp-admin-stats {
    grid-template-columns: 1fr;
  }
  .vp-admin-action-row {
    flex-direction: column;
  }
  .vp-admin-action-row .vp-primary-btn,
  .vp-admin-action-row .vp-danger-btn,
  .vp-admin-action-row button {
    width: 100%;
  }
  .vp-progress-stats {
    grid-template-columns: 1fr 1fr;
  }
  .vp-balance-grid {
    grid-template-columns: 1fr;
  }
}

/* Juda tor ekranlar (max-width: 360px) */
@media(max-width: 360px) {
  .vp-home,
  .vp-page,
  .vp-shop-page,
  .vp-profile-page,
  .vp-payment-page {
    padding-left: 7px;
    padding-right: 7px;
  }
  .vp-quick-grid {
    grid-template-columns: 1fr;
  }
  .vp-team-stats {
    grid-template-columns: 1fr;
  }
  .vp-commission-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Telefon landscape holatida modal balandligi */
@media(max-height: 520px) and (orientation: landscape) {
  .vp-modal-card {
    max-height: 96dvh;
  }
}