/**
 * Profile & Account View Styles (Apple iOS 18 & VisionOS Glassmorphism)
 */

.profile-section {
  display: none;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 96px;
  animation: fadeIn 0.25s ease-out;
  box-sizing: border-box;
  position: relative;
}

.profile-section.active {
  display: block;
}

/* Ambient VisionOS Background Orbs for the Entire Profile */
.prof-global-ambient-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.prof-ambient-orb-top {
  top: -40px;
  left: -20px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 70%);
  filter: blur(60px);
  -webkit-filter: blur(60px);
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.prof-ambient-orb-mid {
  top: 260px;
  right: -40px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
  filter: blur(65px);
  -webkit-filter: blur(65px);
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

.prof-ambient-orb-bottom {
  bottom: 80px;
  left: 20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.22) 0%, rgba(14, 165, 233, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  -webkit-filter: blur(60px);
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
}

[data-theme="light"] .prof-ambient-orb-top {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(37, 99, 235, 0.15) 50%, transparent 70%);
}

[data-theme="light"] .prof-ambient-orb-mid {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.3) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
}

[data-theme="light"] .prof-ambient-orb-bottom {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, rgba(14, 165, 233, 0.12) 50%, transparent 70%);
}

/* 1. Profile User Card (Apple Glass) */
.profile-user-card {
  position: relative;
  z-index: 1;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 22px 22px 20px;
  margin-bottom: 14px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
}

.profile-user-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .profile-user-card::before {
  display: none !important;
}

.profile-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
  background: linear-gradient(135deg, #007aff, #8b5cf6);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #0a0f1d;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  z-index: 2;
}

[data-theme="light"] .profile-avatar-status-dot {
  border-color: #ffffff;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-user-meta {
  flex: 1;
  min-width: 160px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-display-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.profile-badge-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
}

.profile-username-tag {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
  font-family: var(--font-mono, monospace);
  transition: color 0.15s ease;
}

.profile-username-tag:hover {
  color: #38bdf8;
}

/* Header Actions Cluster */
.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-sound-btn,
.profile-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.profile-sound-btn:hover,
.profile-logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.profile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* 1.1 User Stats Strip (Quick Activity Metrics) */
.profile-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prof-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 10px 8px;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prof-stat-box:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.prof-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prof-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  margin-top: 3px;
}

.prof-stat-val.cases-val {
  color: #c084fc;
}

.prof-stat-val.friends-val {
  color: #38bdf8;
}

/* 2. UNIFIED WALLET HUB CARD (Apple Glass Wallet) */
.profile-wallet-card {
  position: relative;
  z-index: 1;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 20px 20px 18px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  margin-bottom: 14px;
}

.prof-wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.prof-wallet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prof-wallet-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 122, 255, 0.18);
  border: 1px solid rgba(0, 122, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.prof-currency-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.prof-wallet-bal-wrap {
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  backdrop-filter: blur(20px);
}

.prof-wallet-bal-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.prof-wallet-active-dot {
  font-size: 10px;
  font-weight: 700;
  color: #30d158;
  font-family: var(--font-mono, monospace);
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.25);
  padding: 1px 6px;
  border-radius: 9999px;
}

.prof-wallet-bal-num {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.prof-wallet-bal-num .currency {
  font-size: 22px;
  color: #94a3b8;
  font-weight: 700;
}

/* Micro Welcome Bonus Row */
.prof-wallet-bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  font-size: 11.5px;
  backdrop-filter: blur(16px);
}

.prof-wb-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

.prof-wb-left .val {
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
}

.prof-wb-status.claimed {
  font-size: 10.5px;
  font-weight: 700;
  color: #30d158;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.25);
  padding: 2px 7px;
  border-radius: 9999px;
}

.prof-wb-claim-btn {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(48, 209, 88, 0.2);
  border: 1px solid rgba(48, 209, 88, 0.45);
  color: #30d158;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(48, 209, 88, 0.2);
}

.prof-wb-claim-btn:hover {
  background: rgba(48, 209, 88, 0.3);
}

.prof-wb-claim-btn:active {
  transform: scale(0.95);
}

/* Main Topup CTA Button (Neon Apple Glass) */
.prof-wallet-topup-btn {
  width: 100%;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.prof-wallet-topup-btn:hover {
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.prof-wallet-topup-btn:active {
  transform: scale(0.98);
}

/* 2.5 Promotional Referral Banner (Ultra-Glass) */
.profile-promo-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(14, 165, 233, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.profile-promo-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-promo-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 4px;
}

.profile-promo-btn {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.profile-promo-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

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

/* 3. Sliding Segmented Control (Apple Sliding Pill Track) */
.profile-nav-tabs-wrapper {
  position: relative;
  z-index: 1;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 20px;
  margin-bottom: 14px;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.prof-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 3px;
  width: calc(20% - 6px);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}

.profile-nav-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: transparent;
  padding: 0;
  border: none;
  margin-bottom: 0;
}

.prof-tab-btn {
  width: 100%;
  min-height: 38px;
  padding: 6px 2px;
  border-radius: 14px;
  border: none;
  background: transparent !important;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  transition: color 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
}

.prof-tab-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.prof-tab-btn.active {
  color: #ffffff;
}

.prof-tab-badge {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 0 4.5px;
  min-width: 13px;
  height: 14px;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  flex-shrink: 0;
}

.prof-tab-btn.active .prof-tab-badge {
  background: rgba(0, 122, 255, 0.25);
  color: #38bdf8;
}

/* 4. Tab Views */
.prof-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

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

/* 5. Guest / Site Login Banner */
/* 5. Guest / Site Login Card */
.profile-login-card {
  max-width: 440px;
  margin: 32px auto;
  background: var(--bg-surface-elevated, #1a2233);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

[data-theme="light"] .profile-login-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.08) !important;
}

.profile-login-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(0, 122, 255, 0.25);
  color: #007aff;
}

[data-theme="light"] .profile-login-icon {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
}

.profile-login-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

[data-theme="light"] .profile-login-title {
  color: #0f172a !important;
}

.profile-login-desc {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  max-width: 320px;
  margin: 0 auto 22px auto;
}

[data-theme="light"] .profile-login-desc {
  color: #64748b !important;
}

.auth-tabs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

[data-theme="light"] .auth-tabs-row {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.auth-tab-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .auth-tab-btn {
  color: #64748b !important;
}

.auth-tab-btn.active {
  background: #242c3d;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-tab-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.profile-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.profile-fast-tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0088cc 0%, #00a8ff 100%);
  border-radius: 14px;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.profile-fast-tg-btn:hover {
  box-shadow: 0 6px 22px rgba(0, 136, 204, 0.45);
  transform: translateY(-1px);
}

.profile-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.profile-auth-divider::before,
.profile-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .profile-auth-divider::before,
[data-theme="light"] .profile-auth-divider::after {
  background: #e2e8f0;
}

.profile-auth-divider span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.profile-field-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.profile-field-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

[data-theme="light"] .profile-field-icon {
  color: #64748b;
}

.profile-login-input {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.profile-login-input.with-icon {
  padding-left: 40px;
}

.profile-login-input.code-input {
  text-align: center;
  letter-spacing: 0.2em;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 16px;
}

[data-theme="light"] .profile-login-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.profile-login-input:focus {
  border-color: #007aff !important;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

[data-theme="light"] .profile-login-input:focus {
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15) !important;
}

.profile-btn-send-code {
  height: 48px;
  padding: 0 16px;
  flex-shrink: 0;
  background: rgba(0, 122, 255, 0.12);
  border: 1px solid rgba(0, 122, 255, 0.28);
  border-radius: 14px;
  color: #38bdf8;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

[data-theme="light"] .profile-btn-send-code {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #2563eb !important;
}

.profile-btn-send-code:hover {
  background: rgba(0, 122, 255, 0.2);
}

[data-theme="light"] .profile-btn-send-code:hover {
  background: #dbeafe !important;
}

.profile-login-btn-primary {
  height: 48px;
  padding: 0 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #007aff 0%, #6366f1 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.28);
  transition: all 0.2s ease;
}

.profile-login-btn-primary:hover {
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.4);
  transform: translateY(-1px);
}

.profile-login-btn-primary:active {
  transform: scale(0.98);
}

.profile-auth-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  text-align: left;
  margin-top: 2px;
}

.profile-auth-tip svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #007aff;
}

[data-theme="light"] .profile-auth-tip {
  color: #64748b !important;
}

.profile-auth-tip a {
  color: #007aff;
  text-decoration: none;
  font-weight: 700;
}

.profile-auth-tip code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 5px;
  border-radius: 5px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

[data-theme="light"] .profile-auth-tip code {
  background: #f1f5f9;
  color: #0f172a;
}

.profile-fast-tg-btn:active {
  transform: scale(0.98);
}

.profile-bot-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  background: rgba(0, 136, 204, 0.18);
  border: 1px solid rgba(0, 136, 204, 0.35);
  border-radius: var(--radius-md, 16px);
  color: #00a8ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.profile-bot-link-btn:hover {
  background: rgba(0, 136, 204, 0.28);
}

/* 6. Referral Card in Profile */
.profile-ref-card {
  position: relative;
  z-index: 1;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
}

.profile-ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-ref-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.prof-stat-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 8px 10px;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prof-stat-mini:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.prof-stat-mini-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  font-family: var(--font-mono, monospace);
}

.prof-stat-mini-val.is-green {
  color: #10b981 !important;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .prof-stat-mini-val.is-green {
  color: #059669 !important;
  text-shadow: none;
}

.prof-stat-mini-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-ref-link-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 6px 6px 6px 14px;
  gap: 8px;
  backdrop-filter: blur(16px);
}

.profile-ref-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary, #ffffff);
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.profile-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

/* ==========================================================================
   PROFILE STACK LAYOUT (Clean Single Column Stack)
   ========================================================================== */
.profile-dashboard-layout,
.profile-dash-main,
.profile-dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* ==========================================================================
   EMPTY STATES & ORDER ITEMS
   ========================================================================== */
.prof-empty-card,
.inv-empty-wrap {
  text-align: center;
  padding: 40px 20px 32px;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.prof-empty-vault-illustration,
.prof-empty-card .inv-empty-mascot-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-empty-card .inv-empty-mascot-aura {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(0, 122, 255, 0.15) 50%, transparent 70%);
  filter: blur(20px);
  animation: pulseAura 3s ease-in-out infinite alternate;
}

.prof-empty-card .inv-empty-mascot-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
  animation: floatMascot 4s ease-in-out infinite;
}

.vault-glow-disc {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.3) 0%, rgba(168, 85, 247, 0.15) 50%, transparent 70%);
  filter: blur(14px);
  animation: pulse 3s infinite ease-in-out;
  pointer-events: none;
}

.prof-empty-vault-svg {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 8px 24px rgba(0, 194, 255, 0.35));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prof-empty-card:hover .prof-empty-vault-svg,
.inv-empty-wrap:hover .prof-empty-vault-svg {
  transform: translateY(-4px) scale(1.04);
}

.prof-empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1;
}

.prof-empty-title,
.inv-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.prof-empty-desc,
.inv-empty-desc {
  font-size: 13px;
  color: var(--text-secondary, #9aa0a6);
  margin-bottom: 18px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.prof-empty-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 390px;
  margin: 16px auto 18px;
}

.prof-empty-case-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.prof-empty-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.15);
}

.prof-empty-case-card:active {
  transform: scale(0.96);
}

.pe-case-icon {
  font-size: 24px;
  margin-bottom: 3px;
  line-height: 1.2;
}

.pe-case-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 2px;
}

.pe-case-price {
  font-size: 10.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.pe-case-price.free {
  color: #10b981;
}

.pe-case-price.blue {
  color: #00c2ff;
}

.pe-case-price.gold {
  color: #fbbf24;
}

/* 4. Orders Quick Filters */
.prof-orders-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.prof-filter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-right: 2px;
}

.prof-filter-chip {
  padding: 5px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  transition: all 0.15s ease;
}

.prof-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.prof-filter-chip.active {
  background: rgba(0, 122, 255, 0.2);
  border-color: rgba(0, 122, 255, 0.4);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.2);
}

/* 4.1 Order Cards (Ultra-Glass Apple Cards) */
.prof-order-item {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prof-order-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 15, 29, 0.75);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.prof-order-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prof-order-copy-id {
  cursor: pointer;
  transition: color 0.15s ease;
}

.prof-order-copy-id:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.prof-order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.prof-order-status-badge.is-action:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 152, 234, 0.25);
}

.prof-order-status-badge.is-action:active {
  transform: scale(0.96);
}

.prof-order-ton-link {
  color: #00c2ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.prof-order-ton-link:hover {
  text-decoration: underline;
  color: #38bdf8;
}

.prof-order-cancel-btn {
  margin-top: 4px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prof-order-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ffffff;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

/* 4.2 Transaction Items (Apple Ultra-Glass Rows) */
.prof-tx-item {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prof-tx-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 15, 29, 0.75);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.prof-tx-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-tx-desc {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin-bottom: 2px;
}

.prof-tx-time {
  font-size: 11px;
  color: var(--text-secondary, #94a3b8);
  font-family: var(--font-mono, monospace);
}

.prof-tx-amount {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}

.prof-tx-amount.positive {
  color: #30d158;
}

.prof-tx-amount.negative {
  color: #f87171;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Clean, high-contrast Apple UI)
   ========================================================================== */
[data-theme="light"] .profile-user-card,
[data-theme="light"] .profile-wallet-card,
[data-theme="light"] .profile-promo-banner,
[data-theme="light"] .profile-balance-box,
[data-theme="light"] .profile-login-card,
[data-theme="light"] .profile-ref-card,
[data-theme="light"] .prof-empty-card,
[data-theme="light"] .inv-empty-wrap,
[data-theme="light"] .prof-order-item,
[data-theme="light"] .prof-tx-item {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

[data-theme="light"] .profile-user-card::before {
  display: none !important;
}

[data-theme="light"] .profile-display-name {
  color: #0f172a !important;
}

[data-theme="light"] .profile-username-tag {
  color: #64748b !important;
}

[data-theme="light"] .profile-username-tag:hover {
  color: #007aff !important;
}

[data-theme="light"] .profile-sound-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

[data-theme="light"] .profile-sound-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .profile-logout-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #64748b !important;
}

[data-theme="light"] .profile-logout-btn:hover {
  background: rgba(255, 59, 48, 0.12) !important;
  border-color: rgba(255, 59, 48, 0.3) !important;
  color: #ff3b30 !important;
}

/* 1.1 Header Stats Strip */
[data-theme="light"] .profile-stats-strip {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .prof-stat-box {
  background: rgba(0, 0, 0, 0.025) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .prof-stat-label {
  color: #64748b !important;
}

[data-theme="light"] .prof-stat-val {
  color: #0f172a !important;
}

/* 2. Unified Wallet Card */
[data-theme="light"] .prof-wallet-title {
  color: #0f172a !important;
}

[data-theme="light"] .prof-wallet-icon {
  background: rgba(0, 122, 255, 0.1) !important;
  border-color: rgba(0, 122, 255, 0.25) !important;
  color: #007aff !important;
}

[data-theme="light"] .prof-currency-tag {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

[data-theme="light"] .prof-wallet-bal-wrap {
  background: rgba(0, 0, 0, 0.025) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .prof-wallet-bal-label {
  color: #64748b !important;
}

[data-theme="light"] .prof-wallet-active-dot {
  color: #10b981 !important;
}

[data-theme="light"] .prof-wallet-bal-num {
  color: #0f172a !important;
}

[data-theme="light"] .prof-wallet-bal-num .currency {
  color: #64748b !important;
}

[data-theme="light"] .prof-wallet-bonus-row {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .prof-wb-left {
  color: #64748b !important;
}

[data-theme="light"] .prof-wb-left .val {
  color: #0f172a !important;
}

[data-theme="light"] .prof-wb-status.claimed {
  color: #059669 !important;
}

/* 2.5 Promo Referral Banner */
[data-theme="light"] .profile-promo-banner {
  background: linear-gradient(135deg, rgba(88, 86, 214, 0.08) 0%, rgba(0, 122, 255, 0.06) 100%) !important;
  border: 1px solid rgba(88, 86, 214, 0.18) !important;
  box-shadow: 0 4px 16px rgba(88, 86, 214, 0.04) !important;
}

[data-theme="light"] .profile-promo-title {
  color: #0f172a !important;
}

[data-theme="light"] .profile-promo-desc {
  color: #475569 !important;
}

[data-theme="light"] .profile-promo-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .profile-promo-btn:hover {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

/* 3. Sliding Segmented Control Tabs */
[data-theme="light"] .profile-nav-tabs-wrapper {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

[data-theme="light"] .prof-tab-indicator {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .prof-tab-btn {
  color: #64748b !important;
}

[data-theme="light"] .prof-tab-btn:hover {
  color: #0f172a !important;
}

[data-theme="light"] .prof-tab-btn.active {
  color: #0f172a !important;
}

[data-theme="light"] .prof-tab-badge {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}

[data-theme="light"] .prof-tab-btn.active .prof-tab-badge {
  background: rgba(0, 122, 255, 0.12) !important;
  color: #007aff !important;
}

/* 4. Quick Filters */
[data-theme="light"] .prof-filter-label {
  color: #64748b !important;
}

[data-theme="light"] .prof-filter-chip {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  color: #64748b !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .prof-filter-chip:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .prof-filter-chip.active {
  background: #007aff !important;
  border-color: #007aff !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25) !important;
}

/* 4.1 Order Cards */
[data-theme="light"] .prof-order-item {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .prof-order-item:hover {
  border-color: rgba(0, 0, 0, 0.14) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07) !important;
}

[data-theme="light"] .prof-order-title {
  color: #0f172a !important;
}

[data-theme="light"] .prof-order-price {
  color: #0f172a !important;
}

[data-theme="light"] .prof-order-copy-id {
  color: #64748b !important;
}

[data-theme="light"] .prof-order-copy-id:hover {
  color: #007aff !important;
}

[data-theme="light"] .prof-order-ton-link {
  color: #007aff !important;
}

[data-theme="light"] .prof-order-type-icon {
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .prof-order-status-badge {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .prof-order-status-badge.is-action {
  background: rgba(0, 122, 255, 0.08) !important;
  color: #0284c7 !important;
  border-color: rgba(0, 122, 255, 0.22) !important;
}

[data-theme="light"] .prof-order-status-badge.is-action:hover {
  background: rgba(0, 122, 255, 0.14) !important;
}

/* 4.2 Transactions List */
[data-theme="light"] .prof-tx-item {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .prof-tx-desc {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .prof-tx-time {
  color: #64748b !important;
}

[data-theme="light"] .prof-tx-amount.positive {
  color: #059669 !important;
}

[data-theme="light"] .prof-tx-amount.negative {
  color: #dc2626 !important;
}

/* 4.3 Referrals & Empty States */
[data-theme="light"] .prof-empty-title,
[data-theme="light"] .inv-empty-title {
  color: #0f172a !important;
}

[data-theme="light"] .prof-empty-desc,
[data-theme="light"] .inv-empty-desc {
  color: #64748b !important;
}

[data-theme="light"] .profile-login-input {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #000000 !important;
}

[data-theme="light"] .prof-stat-mini {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .prof-stat-mini-val {
  color: #0f172a !important;
}

[data-theme="light"] .prof-stat-mini-lbl {
  color: #64748b !important;
}

[data-theme="light"] .profile-ref-link-box {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .profile-ref-input {
  color: #0f172a !important;
}

[data-theme="light"] .profile-copy-btn {
  background: rgba(0, 122, 255, 0.12) !important;
  color: #007aff !important;
}

[data-theme="light"] .profile-copy-btn:hover {
  background: rgba(0, 122, 255, 0.2) !important;
}

/* Pending Order Cancellation Button & Countdown */
.prof-order-cancel-btn {
  font-size: 11px;
  font-weight: 700;
  color: #ff453a;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.25);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  cursor: pointer;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.prof-order-cancel-btn:hover {
  background: rgba(255, 69, 58, 0.2);
  border-color: rgba(255, 69, 58, 0.5);
  transform: translateY(-1px);
}

.prof-order-cancel-btn:active {
  transform: scale(0.94);
}

.prof-order-track-btn {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(0, 152, 234, 0.12);
  border: 1px solid rgba(0, 152, 234, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  cursor: pointer;
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.prof-order-track-btn:hover {
  background: rgba(0, 152, 234, 0.22);
  border-color: rgba(0, 152, 234, 0.55);
  transform: translateY(-1px);
}

.prof-order-track-btn:active {
  transform: scale(0.94);
}

.poc-timer {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.02em;
}

[data-theme="light"] .prof-order-cancel-btn {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #dc2626 !important;
}

[data-theme="light"] .prof-empty-case-card {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .prof-empty-case-card:hover {
  border-color: #007aff !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.12) !important;
}

[data-theme="light"] .pe-case-title {
  color: #0f172a !important;
}

[data-theme="light"] .pe-case-price.blue {
  color: #0284c7 !important;
}

[data-theme="light"] .pe-case-price.gold {
  color: #d97706 !important;
}

/* ─── Cheques & Promo Code Styles (Apple iOS 18 & VisionOS Glassmorphism) ─── */
.prof-cheques-ambient-pane {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background-color: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 20px 18px;
  margin-bottom: 24px;
}

[data-theme="light"] .prof-cheques-ambient-pane {
  background-color: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.06);
}

/* Ambient VisionOS Lighting Orbs */
.prof-cq-ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  -webkit-filter: blur(64px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.prof-cq-orb-blue {
  top: -48px;
  left: -48px;
  width: 288px;
  height: 288px;
  background: #60a5fa;
  opacity: 0.35;
}

.prof-cq-orb-indigo {
  top: 30%;
  right: -64px;
  width: 320px;
  height: 320px;
  background: #818cf8;
  opacity: 0.35;
}

.prof-cq-orb-cyan {
  bottom: -64px;
  left: 25%;
  width: 320px;
  height: 320px;
  background: #67e8f9;
  opacity: 0.35;
}

[data-theme="light"] .prof-cq-orb-blue {
  background: #38bdf8;
  opacity: 0.45;
}

[data-theme="light"] .prof-cq-orb-indigo {
  background: #818cf8;
  opacity: 0.4;
}

[data-theme="light"] .prof-cq-orb-cyan {
  background: #22d3ee;
  opacity: 0.45;
}

.prof-cheques-content-relative {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cheques Pane Top Header */
.prof-cq-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .prof-cq-top-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.prof-cq-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prof-cq-top-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .prof-cq-top-icon {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.prof-cq-main-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

[data-theme="light"] .prof-cq-main-title {
  color: #0f172a;
}

.prof-cq-main-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 2px 0 0 0;
  line-height: 1.2;
}

[data-theme="light"] .prof-cq-main-subtitle {
  color: #64748b;
}

/* Glass Cards Base with Top Specular Border */
.profile-redeem-card,
.profile-cheque-create-hero,
.prof-cheque-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}

[data-theme="light"] .profile-redeem-card,
[data-theme="light"] .profile-cheque-create-hero,
[data-theme="light"] .prof-cheque-card {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px -4px rgba(0, 102, 255, 0.05), 0 2px 10px rgba(0, 0, 0, 0.03), inset 0 1px 1px 0 #ffffff;
}

/* Subtle Specular top reflection */
.profile-redeem-card::before,
.profile-cheque-create-hero::before,
.prof-cheque-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.profile-redeem-card {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.prof-redeem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prof-redeem-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.prof-redeem-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary, #fff);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prof-redeem-badge-instant {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.prof-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: profPulse 2s infinite ease-in-out;
}

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

.prof-redeem-input-wrap {
  display: flex;
  gap: 8px;
}

.prof-redeem-input-inner {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.prof-redeem-input-ic {
  position: absolute;
  left: 12px;
  color: var(--text-secondary, #94a3b8);
  pointer-events: none;
  opacity: 0.7;
}

.prof-redeem-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px 10px 36px;
  font-size: 13px;
  color: var(--text-primary, #fff);
  outline: none;
  font-family: var(--font-mono, monospace);
  transition: border-color 0.2s, background 0.2s;
}

[data-theme="light"] .prof-redeem-input {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.prof-redeem-input:focus {
  border-color: #007aff;
}

.prof-redeem-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

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

/* Create Cheque Hero Card */
.profile-cheque-create-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.prof-cq-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prof-cq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

[data-theme="light"] .prof-cq-hero-badge {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
}

.prof-cq-hero-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}

.prof-cq-hero-desc {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.4;
}

.prof-cq-create-btn {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.prof-cq-create-btn:active {
  transform: scale(0.98);
}

/* Cheques List Section Header & Filters */
.prof-cq-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.prof-cq-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prof-cq-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #94a3b8);
}

.prof-cq-count-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #94a3b8);
  padding: 2px 7px;
  border-radius: 6px;
}

[data-theme="light"] .prof-cq-count-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.prof-cq-filters {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
  border-radius: 10px;
  gap: 2px;
}

[data-theme="light"] .prof-cq-filters {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.prof-cq-filter-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.prof-cq-filter-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  padding: 1px 5px;
  border-radius: 9999px;
  line-height: 1.2;
}

.prof-cq-filter-btn.active .prof-cq-filter-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

[data-theme="light"] .prof-cq-filter-badge {
  background: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .prof-cq-filter-btn.active .prof-cq-filter-badge {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
}

.prof-cq-filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .prof-cq-filter-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Empty state for filtered cheque tabs */
.prof-cq-tab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-glass, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md, 20px);
  box-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.25s ease-out;
}

[data-theme="light"] .prof-cq-tab-empty {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 25px -4px rgba(0, 102, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.prof-cq-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

[data-theme="light"] .prof-cq-empty-icon {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.18);
  color: #0284c7;
}

.prof-cq-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 6px;
}

.prof-cq-empty-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #94a3b8);
  max-width: 340px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.prof-cq-empty-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.prof-cq-empty-btn:active {
  transform: scale(0.96);
}

.prof-cheques-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Cheque Cards (Individual VisionOS Glassmorphism Lighting) */
.prof-cheque-card {
  padding: 14px 16px;
  transition: border-color 0.2s, opacity 0.2s, transform 0.15s;
}

.prof-cheque-card.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.prof-cheque-card.is-completed {
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}

.prof-cheque-card.is-cancelled {
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.75;
}

[data-theme="light"] .prof-cheque-card.is-active {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .prof-cheque-card.is-completed {
  background: rgba(255, 255, 255, 0.88);
  opacity: 0.9;
}

[data-theme="light"] .prof-cheque-card.is-cancelled {
  background: rgba(255, 255, 255, 0.88);
  opacity: 0.75;
}

.prof-cq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

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

.prof-cq-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-cq-type-icon.is-balance {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.prof-cq-type-icon.is-nft {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.prof-cq-type-icon.is-cancelled-icon {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.prof-cq-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prof-cq-amount-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary, #fff);
}

.prof-cq-sub-meta {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-top: 2px;
}

.prof-cq-sub-meta b {
  color: var(--text-primary, #fff);
}

.prof-cq-date-meta {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
}

.prof-cq-status-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prof-cq-status-active {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.prof-cq-status-completed {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.prof-cq-status-cancelled {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.prof-cq-token-badge {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  padding: 3px 7px;
  border-radius: 6px;
}

[data-theme="light"] .prof-cq-token-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}

/* Progress Bar */
.prof-cq-progress-wrap {
  margin-bottom: 10px;
}

.prof-cq-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 4px;
}

.prof-cq-pct {
  font-weight: 700;
  color: #38bdf8;
}

.prof-cq-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="light"] .prof-cq-progress-bar {
  background: #e2e8f0;
}

.prof-cq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.prof-cq-note {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  font-style: italic;
  margin-bottom: 8px;
}

.prof-cq-activations {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

[data-theme="light"] .prof-cq-activations {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.act-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.act-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
}

.act-amount-sub {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  font-family: var(--font-mono, monospace);
}

.act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.act-tag {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #fff);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: var(--font-mono, monospace);
}

[data-theme="light"] .act-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.act-tag-empty {
  font-size: 11.5px;
  color: var(--text-secondary, #94a3b8);
  font-style: italic;
  padding: 2px 2px;
}

[data-theme="light"] .act-tag-empty {
  color: #64748b;
}

/* Compact archive line for completed and cancelled cheques */
.prof-cq-compact-info {
  font-size: 12px;
  color: var(--text-secondary, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  line-height: 1.4;
}

[data-theme="light"] .prof-cq-compact-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.prof-cq-compact-info b {
  color: var(--text-primary, #fff);
}

[data-theme="light"] .prof-cq-compact-info b {
  color: #0f172a;
}

.prof-cq-user-highlight {
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

[data-theme="light"] .prof-cq-user-highlight {
  color: #0284c7;
}

/* Actions Row */
.prof-cq-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .prof-cq-actions {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.prof-cq-btn-primary-copy {
  flex: 2;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.prof-cq-btn-primary-copy:active {
  transform: scale(0.97);
}

.prof-cq-btn-cancel-action {
  flex: 1;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}

.prof-cq-btn-cancel-action:hover {
  background: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .prof-cq-btn-cancel-action {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Modal Overlay & Card for Cheque Creation */
.prof-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.prof-modal-card {
  position: relative;
  overflow: hidden;
  background: rgba(13, 18, 30, 0.92);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .prof-modal-card {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 102, 255, 0.12), inset 0 1px 1px 0 #ffffff;
}

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

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

.prof-modal-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.prof-modal-header-title {
  font-weight: 700;
  font-size: 16px;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

[data-theme="light"] .prof-modal-header-title {
  color: #0f172a;
}

.prof-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.prof-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  transform: scale(1.05);
}

[data-theme="light"] .prof-modal-close {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.prof-modal-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Apple Segmented Switcher */
.prof-cq-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 2px;
}

[data-theme="light"] .prof-cq-type-toggle {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.prof-cq-type-btn {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.prof-cq-type-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .prof-cq-type-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
}

.prof-input-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prof-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prof-input-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.prof-lbl-bal {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

.prof-lbl-bal b {
  color: #38bdf8;
}

.prof-cq-calc-pill {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  font-family: var(--font-mono, monospace);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 1px 7px;
  border-radius: 6px;
}

.prof-form-input, .prof-form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  font-family: var(--font-mono, monospace);
  transition: border-color 0.2s, background 0.2s;
}

[data-theme="light"] .prof-form-input,
[data-theme="light"] .prof-form-select {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.prof-form-input:focus, .prof-form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Hide native up/down number spin buttons */
.prof-form-input::-webkit-outer-spin-button,
.prof-form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.prof-form-input[type=number] {
  -moz-appearance: textfield;
}

.prof-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.prof-input-suffix {
  position: absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  pointer-events: none;
}

[data-theme="light"] .prof-input-suffix {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

/* Quick Chips Presets */
.prof-cq-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  margin-bottom: 2px;
}

.prof-cq-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.prof-cq-chip-btn:hover, .prof-cq-chip-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.prof-cq-chip-btn:active {
  transform: scale(0.95);
}

[data-theme="light"] .prof-cq-chip-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .prof-cq-chip-btn:hover,
[data-theme="light"] .prof-cq-chip-btn.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

.prof-input-hint {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

.prof-modal-footer {
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.prof-modal-submit-btn {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.prof-modal-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.prof-modal-submit-btn:active {
  transform: scale(0.98);
}

/* Success Share Modal */
.prof-modal-success-card {
  text-align: center;
  max-width: 420px;
  padding: 24px 22px;
}

.prof-cq-success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.prof-cq-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .prof-cq-success-icon {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(37, 99, 235, 0.12));
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

.prof-cq-success-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  margin-bottom: 6px;
}

.prof-cq-success-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin-bottom: 18px;
}

.prof-cq-success-link-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}

[data-theme="light"] .prof-cq-success-link-box {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.prof-cq-success-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-mono, monospace);
  color: var(--text-primary, #fff);
  outline: none;
  min-width: 0;
}

[data-theme="light"] .prof-cq-success-input {
  color: #0f172a;
}

.prof-cq-success-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #fff);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

[data-theme="light"] .prof-cq-success-copy-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.prof-cq-success-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.prof-cq-success-btn-share {
  flex: 1;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, opacity 0.15s;
  box-sizing: border-box;
}

.prof-cq-success-btn-share:active {
  transform: scale(0.97);
}

.prof-cq-success-btn-close {
  width: 90px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-sizing: border-box;
}

.prof-cq-success-btn-close:hover {
  color: var(--text-primary, #fff);
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .prof-cq-success-btn-close {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .prof-cq-success-btn-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Custom Apple Glass Confirmation Modal */
.prof-modal-confirm-card {
  text-align: center;
  max-width: 380px;
  padding: 24px 20px;
}

.prof-cq-confirm-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.prof-cq-confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .prof-cq-confirm-icon {
  background: #fef2f2;
  border-color: #fecaca;
  color: #ef4444;
}

.prof-cq-confirm-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary, #fff);
  margin-bottom: 8px;
}

.prof-cq-confirm-desc {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin-bottom: 20px;
}

.prof-cq-confirm-actions {
  display: flex;
  gap: 10px;
}

.prof-cq-confirm-btn-cancel {
  flex: 1;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary, #94a3b8);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.prof-cq-confirm-btn-cancel:hover {
  color: var(--text-primary, #fff);
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .prof-cq-confirm-btn-cancel {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.prof-cq-confirm-btn-danger {
  flex: 1;
  height: 44px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: #fff;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.prof-cq-confirm-btn-danger:active {
  transform: scale(0.97);
}

/* ─── Mobile Compact ─── */
@media (max-width: 480px) {
  .profile-user-card {
    padding: 14px;
    border-radius: 18px;
    margin-bottom: 12px;
  }

  .profile-header-row {
    gap: 10px;
  }

  .profile-avatar-wrap {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-width: 1.5px;
  }

  .profile-display-name {
    font-size: 15px;
  }

  .profile-badge-verified {
    width: 15px;
    height: 15px;
  }

  .profile-badge-verified svg {
    width: 15px;
    height: 15px;
  }

  .profile-username-tag {
    font-size: 11.5px;
    margin-top: 1px;
  }

  .profile-sound-btn {
    padding: 4px 9px;
    font-size: 11px;
    gap: 4px;
  }

  .profile-sound-btn svg {
    width: 11px;
    height: 11px;
  }

  .profile-logout-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .profile-user-card::before {
    width: 120px;
    height: 120px;
    top: -40px;
    right: -30px;
  }

  .profile-nav-tabs-wrapper {
    padding: 3px;
    border-radius: 16px;
  }

  .prof-tab-indicator {
    top: 3px;
    bottom: 3px;
    border-radius: 13px;
  }

  .prof-tab-btn {
    min-height: 36px;
    padding: 5px 2px;
    font-size: 11.5px;
    gap: 4px;
  }

  .prof-tab-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 390px) {
  .profile-nav-tabs-wrapper {
    padding: 2.5px;
    border-radius: 14px;
  }

  .prof-tab-indicator {
    top: 2.5px;
    bottom: 2.5px;
    border-radius: 12px;
  }

  .prof-tab-btn {
    min-height: 34px;
    padding: 4px 1px;
    font-size: 10.5px;
    gap: 3px;
    letter-spacing: -0.01em;
  }

  .prof-tab-btn svg {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 350px) {
  .prof-tab-btn {
    font-size: 10px;
    gap: 2px;
  }

  .prof-tab-btn svg {
    display: none;
  }
}

