:root {
  --primary: #3c70f9;
  --primary-dark: #2755d6;
  --secondary: #00c087;
  --orange: #ff7d3b;
  --purple: #7a5af8;
  --bg-main: #f5f7fb;
  --bg-card: #ffffff;
  --text-main: #1e2432;
  --text-muted: #8b95a5;
  --border-color: #edf1f7;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(60, 112, 249, 0.12);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #0b0e17;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* App Viewport Container (True Native App Frame) */
.app-viewport {
  width: 100%;
  max-width: 440px;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 481px) {
  .app-viewport {
    height: 94vh;
    max-height: 880px;
    border-radius: 36px;
    border: 7px solid #1e293b;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  }
}

@media (max-width: 480px) {
  html, body {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden !important;
    background-color: var(--bg-main);
  }

  .app-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
}

/* Header */
.app-header {
  height: 56px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 40;
  position: relative;
}

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

.app-logo,
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s var(--ease-spring);
}

.app-logo:hover,
.brand-logo:hover {
  transform: scale(1.06) rotate(2deg);
}

.app-brand,
.brand-title {
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(135deg, var(--primary) 0%, #1742c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  line-height: 1;
}

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

.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-text {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  letter-spacing: 0.2px;
}

.header-icon-btn,
.icon-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: #475569;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  padding: 0;
  outline: none;
}

.header-icon-btn:active,
.icon-btn:active {
  transform: scale(0.88);
  background: #e2e8f0;
}

.header-icon-btn img {
  width: 24px;
  height: 24px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.header-icon-btn:hover img {
  opacity: 1;
}

/* Main Content Area (Scrolls independently between Top Header & Bottom Nav) */
.app-content,
.app-content-body {
  flex: 1 1 0%;
  height: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.custom-scroll::-webkit-scrollbar {
  width: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* Screen Views with Fluid Transitions */
.screen-view {
  display: none;
  padding: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  will-change: transform, opacity;
}

.screen-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.screen-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.screen-title-bar h2 {
  font-size: 20px;
  font-weight: 700;
}

.tag-status {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}

/* Banner */
.banner-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  position: relative;
}

.banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}

.banner-carousel:active .banner-img {
  transform: scale(0.98);
}

/* Notice Ticker */
.notice-ticker {
  background: #ffffff;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.notice-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(60, 112, 249, 0.3);
}

/* Asset Card with Shimmer Effect */
.asset-card {
  background: linear-gradient(135deg, #285ce6 0%, #173eb8 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: 0 10px 25px rgba(39, 85, 214, 0.28);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* Light shimmer sweep */
.asset-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg);
  animation: card-shimmer 6s infinite ease-in-out;
}

@keyframes card-shimmer {
  0% { left: -150%; }
  30% { left: 150%; }
  100% { left: 150%; }
}

.asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.asset-label {
  font-size: 12px;
  opacity: 0.85;
}

.asset-amount {
  font-size: 27px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.5px;
  transition: transform 0.2s var(--ease-spring);
}

.recharge-btn {
  background: #ffffff;
  color: var(--primary);
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s ease;
  will-change: transform;
}

.recharge-btn:active {
  transform: scale(0.93);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.asset-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 14px;
  position: relative;
  z-index: 2;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  opacity: 0.85;
}

.stat-ic {
  width: 14px;
  height: 14px;
}

.stat-val {
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.text-green { color: #00e89d !important; }

/* Quick Action Grid with Micro-Interactions */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #ffffff;
  padding: 16px 12px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 6px;
  transition: transform 0.15s var(--ease-spring);
  will-change: transform;
}

.action-item:active {
  transform: scale(0.90);
}

.action-ic-box, .action-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s ease;
}

.action-icon-wrap i {
  font-size: 20px;
}

.action-item:hover .action-ic-box, .action-item:hover .action-icon-wrap {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.action-ic-box img, .action-icon-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s var(--ease-spring);
}

.action-item:active .action-ic-box img, .action-item:active .action-icon-wrap img {
  transform: scale(0.92);
}

.bg-blue { background: rgba(60, 112, 249, 0.12); }
.bg-green { background: rgba(0, 192, 135, 0.12); }
.bg-orange { background: rgba(255, 125, 59, 0.12); }
.bg-purple { background: rgba(122, 90, 248, 0.12); }

.action-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
}

/* Promo Sections */
.promo-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.promo-img {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.promo-img:active {
  transform: scale(0.98);
}

/* Section Card */
.section-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #171d2d;
}

.card-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.card-link:active {
  opacity: 0.6;
}

.reward-banner-box {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.reward-img {
  width: 100%;
  display: block;
}

/* Buy Screen Matching Radar Wave Animation */
.order-matching-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.match-circle {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(60, 112, 249, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Radar wave ring */
.match-circle::before, .match-circle::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(60, 112, 249, 0.35);
  animation: radar-pulse 2.4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.match-circle::after {
  animation-delay: 1.2s;
}

@keyframes radar-pulse {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.match-icon-pulse {
  width: 44px;
  height: 44px;
  animation: float-icon 3s infinite ease-in-out;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.match-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Chips with tactile bouncy tap */
.amount-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.amt-chip {
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  padding: 10px 0;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring), border-color 0.15s ease, background 0.15s ease;
  will-change: transform;
}

.amt-chip:active {
  transform: scale(0.93);
}

.amt-chip.active {
  background: rgba(60, 112, 249, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(60, 112, 249, 0.15);
}

.custom-amt-input {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-amt-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 112, 249, 0.15);
}

.curr-sign {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 8px;
}

.custom-amt-input input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

/* Primary Button with Tactile Feedback & Glow */
.primary-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(60, 112, 249, 0.32);
  transition: transform 0.12s var(--ease-spring), box-shadow 0.15s ease, opacity 0.15s ease;
  will-change: transform;
}

.primary-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(60, 112, 249, 0.2);
}

.btn-green {
  background: linear-gradient(135deg, #00c087 0%, #029468 100%);
  box-shadow: 0 6px 18px rgba(0, 192, 135, 0.32);
}

.btn-green:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(0, 192, 135, 0.2);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.order-row:last-child {
  border-bottom: none;
}

.order-id {
  font-size: 13px;
  font-weight: 600;
}

.order-time {
  font-size: 11px;
  color: var(--text-muted);
}

.order-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.badge-success {
  background: rgba(0, 192, 135, 0.12);
  color: #00c087;
}

.badge-pending {
  background: rgba(255, 171, 0, 0.15);
  color: #ffab00;
}

/* Sell Screen Styles */
.sell-overview-card {
  background: linear-gradient(135deg, #18233c 0%, #293859 100%);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-white { color: #fff; }

.sd-icon {
  width: 48px;
  height: 48px;
}

.sell-limits {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.sell-action-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.max-btn {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  border: none;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring);
}

.max-btn:active {
  transform: scale(0.9);
}

.card-selector {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  gap: 10px;
  transition: transform 0.15s ease;
}

.card-selector:active {
  transform: scale(0.98);
}

.card-icon {
  width: 28px;
  height: 28px;
}

.card-details {
  flex: 1;
}

.bank-name {
  font-size: 13px;
  font-weight: 700;
}

.bank-acc {
  font-size: 11px;
  color: var(--text-muted);
}

.change-card-btn {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* Offline / Team Screen */
.team-banner-card {
  background: linear-gradient(135deg, #7a5af8 0%, #4a2ec4 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 10px 25px rgba(122, 90, 248, 0.28);
}

.ref-code-box {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.copy-btn {
  background: #fff;
  color: var(--purple);
  border: none;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring);
}

.copy-btn:active {
  transform: scale(0.88);
}

.share-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.social-share-btn {
  height: 44px;
  border-radius: var(--radius-md);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s ease;
  will-change: transform;
}

.social-share-btn:active {
  transform: scale(0.94);
}

.ws-btn {
  background: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.tg-btn {
  background: #229ed9;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.28);
}

.team-stats-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.team-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.tstat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.tstat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.level-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
}

/* Mine / Profile Screen */
.profile-header-card {
  background: linear-gradient(135deg, #1e2432 0%, #2f374a 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.user-phone {
  font-size: 16px;
  font-weight: 700;
}

.user-badge {
  font-size: 11px;
  color: #f7ba2a;
  font-weight: 600;
}

.user-id {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.mine-wallet-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.border-lr {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.mw-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.mw-val {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.menu-group-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 4px 14px;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s;
}

.menu-item:active {
  transform: translateX(4px);
  opacity: 0.7;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.menu-ic {
  width: 22px;
  height: 22px;
}

.menu-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

.logout-btn {
  width: 100%;
  height: 44px;
  background: #feecef;
  color: #f53f5f;
  border: none;
  border-radius: 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring);
}

.logout-btn:active {
  transform: scale(0.96);
}

/* Bottom Navigation Bar with Springy Bouncy Icons (Always Fixed at Bottom) */
.bottom-nav {
  position: relative;
  flex-shrink: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
  padding-left: 4px;
  padding-right: 4px;
}

button.nav-tab,
.nav-tab {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  width: 20%;
  padding: 6px 0;
  margin: 0;
  transition: transform 0.15s var(--ease-spring);
  will-change: transform;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button.nav-tab:focus,
.nav-tab:focus {
  outline: none;
}

button.nav-tab:active,
.nav-tab:active {
  transform: scale(0.88);
}

.tab-ic {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.25s var(--ease-spring);
}

.nav-tab .active-ic { display: none; }
.nav-tab .inactive-ic { display: block; opacity: 0.55; }

.nav-tab.active .active-ic {
  display: block;
  animation: tab-bounce 0.35s var(--ease-spring);
}

@keyframes tab-bounce {
  0% { transform: scale(0.7) translateY(4px); }
  50% { transform: scale(1.15) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}

.nav-tab.active .inactive-ic { display: none; }

.nav-tab span {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s ease;
  line-height: 1.2;
}

.nav-tab.active span {
  color: var(--primary);
  font-weight: 700;
}

/* Modals with Apple-style Fluid Spring Slide-Up */
.modal-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 32, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  width: 100%;
  background: #ffffff;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 24px 20px 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.28s var(--ease-sheet);
  will-change: transform;
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 14px rgba(60, 112, 249, 0.25);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 48px;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 112, 249, 0.15);
}

.input-ic {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 500;
}

.toggle-pwd {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.6;
}

.auth-switch-row {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
  color: var(--text-muted);
}

.auth-switch-row a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

/* Toast with Dynamic Spring Bounce - 100% Mobile & Desktop Responsive */
.toast-box {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px) scale(0.92);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  max-width: calc(100vw - 32px);
  width: max-content;
  text-align: center;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
  will-change: transform, opacity;
}

.toast-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (max-width: 480px) {
  .toast-box {
    top: 16px;
    font-size: 12px;
    padding: 10px 18px;
    max-width: calc(100vw - 28px);
  }
}

.mt-3 { margin-top: 12px !important; }

/* Channel Switcher (UPI vs USDT) */
.channel-switch-bar {
  display: flex;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.channel-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.channel-btn.active {
  background: var(--bg-main);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.channel-btn.disabled-chan {
  opacity: 0.55;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

.maintenance-alert {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #b45309;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

.channel-ic {
  width: 18px;
  height: 18px;
}

.bonus-badge {
  background: #00c087;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 6px;
}

/* USDT Calculator card */
.usdt-calc-box {
  background: rgba(0, 192, 135, 0.08);
  border: 1px dashed #00c087;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
}

.uc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.uc-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

.mb-3 { margin-bottom: 12px !important; }

/* ================= 2026 CLIENT DEMO UI ENHANCEMENTS ================= */

/* Center Floating Action Tab (Buy / Market) */
.nav-fa-ic {
  font-size: 19px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.nav-tab.active .nav-fa-ic {
  color: var(--primary);
  transform: scale(1.15);
}

.buy-center-tab {
  position: relative;
  overflow: visible !important;
}

.center-bubble-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3c70f9, #2563eb);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 18px rgba(60, 112, 249, 0.45);
  margin-top: -14px;
  margin-bottom: 2px;
  transition: transform 0.2s var(--ease-spring);
}

.nav-tab.active .center-bubble-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(60, 112, 249, 0.6);
}

/* Payout Method Cards (Bank vs UPI in Sell Tab) */
.payout-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.payout-card.active {
  border-color: var(--primary);
  background: #f0f5ff;
  box-shadow: 0 4px 14px rgba(60, 112, 249, 0.12);
}

.payout-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.payout-card-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Team Segment Buttons */
.t-seg-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.t-seg-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(60, 112, 249, 0.25);
}

/* Profile Menu Groups */
.menu-group-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.menu-group-title {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.menu-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.menu-nav-item:active {
  opacity: 0.7;
}

.menu-nav-item:not(:last-child) {
  border-bottom: 1px solid #f8fafc;
}

.mn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mn-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.mn-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.mn-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.mn-arrow {
  font-size: 11px;
  color: #cbd5e1;
}

/* Copy Tiny Buttons */
.copy-tiny-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
}

.copy-tiny-btn:active {
  transform: scale(0.9);
}

.text-purple { color: #8b5cf6 !important; }
.bg-purple-tint { background: rgba(139, 92, 246, 0.1) !important; }
.text-orange { color: #f97316 !important; }
.bg-orange-tint { background: rgba(249, 115, 22, 0.1) !important; }



/* ================= 2026 MODULAR FRONTEND UI COMPONENTS ================= */

/* Payout Methods Grid & Cards (Sell Tab) */
.sell-methods-section {
  margin-bottom: 16px;
}

.grid-payout-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.payout-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

/* Wallets Screen Components */
.wallet-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-card-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.wallets-status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-pill-btn {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.status-pill-btn:active {
  transform: scale(0.93);
}

/* Team Screen Components */
.team-overview-card {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.team-segment-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.team-segment-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-segment-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.responsive-invite-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.invite-share-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

/* Profile Screen Components */
.user-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.profile-balance-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.profile-menu-groups {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 16px;
}

.logout-red-btn {
  background: #fee2e2;
  color: #ef4444;
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 14px;
  border: none;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-red-btn:active {
  transform: scale(0.96);
  background: #fecaca;
}

.small-pill-btn,
.copy-pill-btn {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}

.small-pill-btn:active,
.copy-pill-btn:active {
  transform: scale(0.92);
  background: rgba(60, 112, 249, 0.2);
}

/* Home Task Banner */
.task-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  margin-top: 10px;
  gap: 10px;
}

.tb-left {
  flex: 1;
}

.tb-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.tb-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Modals & Inputs */
.phone-input-wrap,
.pwd-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 12px;
  height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-wrap:focus-within,
.pwd-input-wrap:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(60, 112, 249, 0.12);
}

.phone-input-wrap input,
.pwd-input-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 14px;
  color: var(--text-main);
  padding: 0 8px;
  box-shadow: none !important;
}

.country-code {
  font-weight: 700;
  color: #334155;
  font-size: 13.5px;
  padding-right: 10px;
  border-right: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pwd-toggle {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

.pay-qr-box {
  text-align: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
}

.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 0 auto 10px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pay-amt-highlight {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.utr-section {
  margin-top: 14px;
}

.utr-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.pay-upi-detail {
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.order-info {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}


/* ================= MODAL & WALLETS ENHANCEMENTS (Zero Horizontal Overflow) ================= */

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-bottom: 12px;
  text-align: left;
  box-sizing: border-box;
}

.modal-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: block;
}

.modal-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  height: 48px;
  padding: 0 12px;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.modal-input-wrap:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(60, 112, 249, 0.12);
}

.modal-input-wrap input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 15px !important;
  color: var(--text-main);
  box-shadow: none !important;
  padding: 0;
  margin: 0;
}

.modal-input-wrap .input-ic {
  font-size: 15px;
  color: #94a3b8;
  width: 20px;
  text-align: center;
}

/* Dynamic Wallets Cards (Bank & UPI Separated) */
.wallet-bound-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.bank-gradient-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.upi-gradient-card {
  background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
}

.w-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.w-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  flex-shrink: 0;
}

.w-card-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.w-card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

.w-status-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  flex-shrink: 0;
}

.w-card-body {
  margin-bottom: 14px;
}

.w-acc-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}

.w-acc-num {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: monospace;
}

.w-ifsc-row {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.w-card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 10px;
}

.w-action-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.w-action-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

/* Empty State Card */
.wallet-empty-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.w-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.bank-icon-bg {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
}

.upi-icon-bg {
  background: rgba(0, 192, 135, 0.1);
  color: var(--secondary);
}

.w-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.w-empty-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 280px;
  line-height: 1.4;
}

.w-add-btn {
  width: auto !important;
  padding: 8px 24px !important;
  font-size: 12.5px !important;
  border-radius: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
/* ================= TEAM SCREEN RESPONSIVE FIXES ================= */

/* Hide text on very small screens */
@media (max-width: 360px) {
  .hide-on-xs {
    display: none;
  }
}

/* Team Stats Card */
.team-stats-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.team-4grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-stat-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
  overflow: hidden;
}

.team-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-stat-value {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 360px) {
  .team-stat-box {
    padding: 8px;
  }
  .team-stat-value {
    font-size: 12px;
  }
}

/* Invite Share Card */
.invite-share-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.invite-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsive Invite Code Box */
.responsive-invite-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.copy-pill-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-spring);
}

.copy-pill-btn:active {
  transform: scale(0.92);
}

/* Social Share Grid */
.social-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.social-share-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #fff;
  min-width: 0;
  transition: transform 0.15s var(--ease-spring);
  overflow: hidden;
  white-space: nowrap;
}

.social-share-btn:active {
  transform: scale(0.94);
}

.share-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 360px) {
  .social-share-btn {
    font-size: 10px;
    padding: 8px 2px;
    gap: 2px;
  }
  .social-share-btn .share-label {
    font-size: 9px;
  }
}

@media (max-width: 300px) {
  .share-label {
    display: none;
  }
  .social-share-btn {
    padding: 10px 0;
    font-size: 14px;
  }
}

/* Team Overview Card */
.team-overview-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.team-overview-inner {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.rate-badge {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.team-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}

.team-sub-grid > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .team-sub-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .rate-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* Team Segment Tabs - proper active state */
.team-segment-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.t-seg-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.t-seg-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(60, 112, 249, 0.25);
}

@media (max-width: 360px) {
  .t-seg-btn {
    font-size: 10.5px;
    padding: 6px 2px;
  }
}

/* Small pill button responsive */
.small-pill-btn {
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.small-pill-btn:active {
  transform: scale(0.92);
  background: rgba(60, 112, 249, 0.2);
}

.team-stat-box.highlight .team-stat-label { color: #00c087; }
.team-stat-box.highlight .team-stat-value { color: #00c087; }

.invite-share-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px !important;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
}

.responsive-invite-box {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}

.social-share-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: 8px !important;
}

.invite-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.copy-pill-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-pill-btn:active {
  transform: scale(0.92);
}

.social-share-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #fff;
  min-width: 0;
  transition: transform 0.15s var(--ease-spring);
  overflow: hidden;
  white-space: nowrap;
}

.social-share-btn:active {
  transform: scale(0.94);
}

.share-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

@media (max-width: 360px) {
  .social-share-btn {
    font-size: 10px;
    padding: 8px 2px;
    gap: 2px;
  }
  .social-share-btn .share-label {
    font-size: 9px;
  }
}

@media (max-width: 300px) {
  .share-label { display: none; }
  .social-share-btn { padding: 10px 0; font-size: 14px; }
}

.team-members-list { padding-top: 4px; }

.team-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.team-member-row:last-child { border-bottom: none; }

.team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.team-member-info { flex: 1; min-width: 0; }

.team-member-name {
  font-weight: 700;
  font-size: 12.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-meta {
  font-size: 10.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-member-bal { text-align: right; flex-shrink: 0; }
.team-member-bal .lbl { font-size: 10px; color: #64748b; }
.team-member-bal .val { font-size: 12px; font-weight: 800; color: #00c087; }

.team-empty {
  text-align: center;
  padding: 28px 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.team-empty i {
  font-size: 22px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 8px;
}

.team-loading {
  text-align: center;
  padding: 24px 0;
  color: #64748b;
  font-size: 12px;
}

.team-level-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.team-level-row:last-of-type { margin-bottom: 0; }

.team-level-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.team-level-num.l1 { background: rgba(60,112,249,0.12); color: var(--primary); }
.team-level-num.l2 { background: rgba(34,158,217,0.12); color: #229ed9; }
.team-level-num.l3 { background: rgba(245,158,11,0.12); color: #f59e0b; }

.team-level-info { flex: 1; min-width: 0; }

.team-level-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.team-level-desc {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

.team-level-right { text-align: right; flex-shrink: 0; }

.team-level-rate {
  font-size: 14px;
  font-weight: 800;
  color: #00c087;
}

.team-level-count {
  font-size: 10px;
  color: #64748b;
}

.team-total-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 2px;
  border-top: 1px dashed #e2e8f0;
}
.team-total-row .lbl { font-size: 11.5px; color: #64748b; font-weight: 600; }
.team-total-row .val { font-size: 13px; font-weight: 800; color: #0f172a; }

.header-dark {
  background: #0f172a;
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-dark-title {
  color: #fff;
  font-size: 18px;
  margin: 0;
}
.header-dark-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.profile-sell-pill {
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
}
.profile-balance-card {
  background: #0f172a;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.15);
}
.balance-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.bal-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}
.bal-value-main {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 2px;
}
.bal-value-green {
  font-size: 18px;
  font-weight: 800;
  color: #4ade80;
  margin-top: 2px;
}
.balance-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 11px;
}
.bal-bottom-row {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}
.text-white { color: #fff; }
.text-yellow { color: #fbbf24; }
.user-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}
.user-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}
.ui-row.no-border {
  border-bottom: none;
  padding-bottom: 0;
}
.ui-label {
  color: #64748b;
  font-weight: 600;
}
.ui-val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-menu-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.logout-red-btn {
  width: 100%;
  height: 46px;
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(239,68,68,0.25);
  cursor: pointer;
  margin-bottom: 24px;
}
.logout-red-btn:active {
  transform: scale(0.96);
}
.orders-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  margin-top: 14px;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f8fafc;
}

.orders-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.orders-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* List Item Style */
.deposit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  animation: fadeIn 0.4s ease-out forwards;
}

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

.deposit-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.deposit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Status Colors */
.icon-success { background: #e6f7ec; color: #15803d; }
.icon-pending { background: #fff7ed; color: #d97706; }
.icon-rejected { background: #fef2f2; color: #dc2626; }

.deposit-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.deposit-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-meta {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deposit-amt {
  font-size: 14px;
  font-weight: 800;
}
.deposit-amt.success { color: #15803d; }
.deposit-amt.pending { color: #1e293b; }
.deposit-amt.rejected { color: #64748b; text-decoration: line-through; }

.deposit-status-text {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.deposit-status-text.success { color: #15803d; }
.deposit-status-text.pending { color: #d97706; }
.deposit-status-text.rejected { color: #dc2626; }

/* Empty State */
.empty-deposit-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}
.empty-deposit-state i {
  font-size: 28px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
/* ================= COMPLETE BUY SCREEN UI FIX ================= */

.buy-header-left {
  min-width: 0;
  flex: 1;
  text-align: left;
}
.buy-title {
  font-size: 18px;
  font-weight: 700;
  color: #171d2d;
  margin: 0;
}
.buy-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.channel-switch-bar {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.channel-btn {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.channel-btn.active {
  background: var(--bg-main);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.buy-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.buy-icon-circle {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(60, 112, 249, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
}
.buy-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.buy-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 14px;
}

.buy-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.buy-chip {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 8px 0;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}
.buy-chip:active {
  transform: scale(0.95);
}
.buy-chip.active {
  background: rgba(60, 112, 249, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.buy-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  margin-bottom: 12px;
}
.buy-input-wrap:focus-within {
  border-color: var(--primary);
}
.buy-input-sign {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 8px;
}
.buy-input-sign.green {
  font-size: 10px;
  font-weight: 800;
  color: var(--secondary);
}
.buy-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  color: #000;
}

.buy-submit-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(60, 112, 249, 0.25);
}
.buy-submit-btn.btn-green {
  background: linear-gradient(135deg, #00c087 0%, #029468 100%);
  box-shadow: 0 4px 12px rgba(0, 192, 135, 0.25);
}

.usdt-steps-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 8px;
}
.usdt-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.usdt-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.usdt-step.active .usdt-step-num {
  background: #00c087;
  color: #fff;
}
.usdt-step-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
}
.usdt-step.active .usdt-step-label {
  color: #00c087;
  font-weight: 700;
}
.usdt-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 6px;
  margin-bottom: 14px;
}
.usdt-step-line.active {
  background: rgba(0, 192, 135, 0.3);
}

.usdt-rate-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.usdt-rate-info {
  min-width: 0;
  text-align: left;
}
.usdt-rate-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.usdt-rate-value {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usdt-badge {
  background: #00c087;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.usdt-calc-box {
  background: rgba(0, 192, 135, 0.08);
  border: 1px dashed #00c087;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  margin-bottom: 12px;
}
.usdt-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.uc-sub {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================= PAYTM STYLE DEPOSIT HISTORY ================= */

.orders-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  margin-top: 14px;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f8fafc;
}

.orders-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.orders-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.deposit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  animation: fadeIn 0.4s ease-out forwards;
}

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

.deposit-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.deposit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.icon-success { background: #e6f7ec; color: #15803d; }
.icon-pending { background: #fff7ed; color: #d97706; }
.icon-rejected { background: #fef2f2; color: #dc2626; }

.deposit-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.deposit-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-meta {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deposit-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deposit-amt {
  font-size: 14px;
  font-weight: 800;
}
.deposit-amt.success { color: #15803d; }
.deposit-amt.pending { color: #1e293b; }
.deposit-amt.rejected { color: #64748b; text-decoration: line-through; }

.deposit-status-text {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.deposit-status-text.success { color: #15803d; }
.deposit-status-text.pending { color: #d97706; }
.deposit-status-text.rejected { color: #dc2626; }

.empty-deposit-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}
.empty-deposit-state i {
  font-size: 28px;
  color: #cbd5e1;
  margin-bottom: 8px;
}
/* ================= PAYTM STYLE TEAM SCREEN ================= */

.team-title-left { flex: 1; min-width: 0; }
.team-title-left h2 { font-size: 20px; font-weight: 700; color: #171d2d; margin: 0; }
.team-title-left p { font-size: 11px; color: #64748b; margin-top: 2px; }

.team-share-pill {
  background: rgba(60,112,249,0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.team-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Tabs */
  background: #ffffff;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid #edf1f7;
}

.t-seg-btn {
  padding: 8px 0;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
}
.t-seg-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(60, 112, 249, 0.3);
}

/* Base Card */
.team-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #edf1f7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* Header within cards */
.tc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.tc-header.flex-between { justify-content: space-between; }
.flex-center { display: flex; align-items: center; gap: 6px; }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; }
.tc-dot.amber { background: #f59e0b; }
.tc-dot.blue { background: var(--primary); }
.tc-dot.green { background: #00c087; }
.tc-title { font-size: 13px; font-weight: 700; color: #1e293b; }

.tc-dot.purple { background: #8b5cf6; }
.view-all-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.commission-list {
  display: flex;
  flex-direction: column;
}
.comm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.comm-item:last-child {
  border-bottom: none;
}
.comm-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.comm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(60, 112, 249, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.comm-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.comm-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.comm-sub {
  font-size: 10.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-right {
  text-align: right;
  flex-shrink: 0;
}
.comm-amt {
  font-size: 14px;
  font-weight: 800;
  color: #00c087;
}
.comm-level {
  font-size: 9px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  display: inline-block;
}

/* Stats */
.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ts-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
}
.ts-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.ts-value {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
}
.ts-box.highlight .ts-label,
.ts-box.highlight .ts-value { color: #00c087; }

/* Invite Box */
.invite-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.ic-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ic-label { font-size: 12px; color: #64748b; }
.ic-value { font-size: 14px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.ic-copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Social Buttons */
.social-share-grid {
  display: flex;
  gap: 8px;
}
.social-btn {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.social-btn.tg { background: #229ed9; }
.social-btn.fb { background: #1877f2; }
.social-btn.wa { background: #25d366; }

/* Team Overview Grid */
.team-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.to-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}
.to-label { font-size: 11px; color: #64748b; font-weight: 600; }
.to-value { font-size: 16px; font-weight: 800; color: #0f172a; margin-top: 4px; }
.team-total-members { font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(60,112,249,0.1); padding: 3px 8px; border-radius: 6px; }

/* Members List (NO BALANCE) */
.member-list { padding-top: 4px; }
.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.member-item:last-child { border-bottom: none; }
.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(60,112,249,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.member-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
.member-right { text-align: right; }
.member-status { font-size: 10px; font-weight: 700; color: #00c087; background: #e6f7ec; padding: 2px 8px; border-radius: 10px; }

/* Levels */
.level-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.level-item:last-child { margin-bottom: 0; }
.level-num {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.level-num.bg-blue { background: rgba(60,112,249,0.12); color: var(--primary); }
.level-num.bg-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.level-num.bg-orange { background: rgba(249,115,22,0.12); color: #f97316; }
.level-info { flex: 1; min-width: 0; }
.level-title { font-size: 13px; font-weight: 700; color: #0f172a; }
.level-desc { font-size: 11px; color: #64748b; margin-top: 2px; }
.level-right { text-align: right; }
.level-rate { font-size: 14px; font-weight: 800; color: #00c087; }
.level-count { font-size: 10px; color: #64748b; margin-top: 2px; }

.team-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.team-total-row span:last-child { font-size: 14px; font-weight: 800; color: #0f172a; }

.team-loading { text-align: center; padding: 24px 0; color: #64748b; font-size: 12px; }

/* ================= PAYTM STYLE WALLETS UI ================= */

.wallets-status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(60, 112, 249, 0.08);
  color: var(--primary);
}

.wallet-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Compact Wallet Card */
.wallet-compact-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.wallet-compact-card:active {
  transform: scale(0.98);
}

.wc-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wc-icon.bank { background: #eff6ff; color: #3b82f6; }
.wc-icon.upi { background: #ecfdf5; color: #10b981; }

.wc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wc-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-desc {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-badge {
  font-size: 9px;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 2px;
  display: inline-block;
  width: fit-content;
}

.wc-action-btn {
  background: #f1f5f9;
  color: #475569;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
}

.wc-action-btn:active {
  background: #e2e8f0;
}

/* Add Button Empty State */
.wallet-add-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.wallet-add-card:active {
  background: #f8fafc;
  border-color: var(--primary);
}

.wallet-add-card i {
  font-size: 16px;
  color: var(--primary);
}

.wallet-add-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ================= PAYTM STYLE RECORD LISTS ================= */
.back-btn {
  background: #f1f5f9;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.back-btn:active { background: #e2e8f0; }

.record-list-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  min-height: 200px;
}

.rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.rec-item:last-child { border-bottom: none; }

.rec-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rec-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.rec-icon.credit { background: #ecfdf5; color: #10b981; }
.rec-icon.debit { background: #fef2f2; color: #ef4444; }
.rec-icon.pending { background: #fff7ed; color: #f59e0b; }

.rec-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rec-title { font-size: 13px; font-weight: 700; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-sub { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rec-right { text-align: right; flex-shrink: 0; }
.rec-amt { font-size: 14px; font-weight: 800; }
.rec-amt.plus { color: #10b981; }
.rec-amt.minus { color: #ef4444; }
.rec-status { font-size: 9.5px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.rec-status.success { color: #10b981; }
.rec-status.failed { color: #ef4444; }
.rec-status.pending { color: #f59e0b; }

/* Sell Active Button Dynamic Colors */
.pill-green {
  background: rgba(0, 192, 135, 0.15) !important;
  border: 1px solid rgba(0, 192, 135, 0.4) !important;
  color: #00c087 !important;
}
.pill-green .pulse-dot { background: #00c087 !important; }

/* ================= PAYTM STYLE SELL SCREEN ================= */
.section-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  margin-top: 6px;
}

.sell-balance-card {
  background: linear-gradient(135deg, #18233c 0%, #293859 100%);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(24, 35, 60, 0.2);
}

.sb-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sb-amount {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.sb-limits {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

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

.payout-compact-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payout-compact-card.active {
  border-color: var(--primary);
  background: rgba(60, 112, 249, 0.04);
}

.pc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.pc-icon.bank { background: #eff6ff; color: #3b82f6; }
.pc-icon.upi { background: #ecfdf5; color: #10b981; }

.pc-info {
  min-width: 0;
}

.pc-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-sub {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.bind-prompt-bar {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bind-prompt-bar span {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.bind-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.sell-amount-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  margin-bottom: 14px;
}
