/* Asan VPN — iOS 26 Liquid Glass redesign
   Glass = navigation / controls only. Content stays solid. */

:root {
  /* Brand identity */
  --brand: #6B21A8;
  --brand-deep: #4C1D7A;
  --brand-soft: #8B5CF6;
  --brand-tint: rgba(107, 33, 168, 0.14);
  --system-blue: #007AFF;
  --system-magenta: #BF5AF2;

  /* Surfaces */
  --bg: #F2F0F7;
  --bg-elevated: #FFFFFF;
  --label: #1C1C1E;
  --secondary: rgba(60, 60, 67, 0.6);
  --tertiary: rgba(60, 60, 67, 0.3);
  --separator: rgba(60, 60, 67, 0.12);

  /* Liquid Glass */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-stroke: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(28, 28, 30, 0.12), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  --glass-blur: 28px;
  --specular: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 42%);

  /* Geometry */
  --radius-continuous: 28px;
  --radius-group: 22px;
  --radius-symbol: 12px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font: "Vazirmatn", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--label);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

[hidden] {
  display: none !important;
}

.app {
  min-height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

/* ========== Login ========== */
.screen-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 28px calc(36px + var(--safe-b));
  position: relative;
  overflow: hidden;
  background: #3B1466;
}

.login-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: #8B5CF6;
  top: -8%;
  right: -10%;
  animation: drift 14s var(--ease-spring) infinite alternate;
}

.orb-b {
  width: 320px;
  height: 320px;
  background: #C026D3;
  bottom: 5%;
  left: -20%;
  animation: drift 18s var(--ease-spring) infinite alternate-reverse;
}

.orb-c {
  width: 180px;
  height: 180px;
  background: #A78BFA;
  top: 42%;
  left: 40%;
  opacity: 0.55;
  animation: drift 11s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -24px, 0) scale(1.08); }
}

.login-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  animation: present 0.85s var(--ease-spring) both;
}

@keyframes present {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-mark {
  margin-bottom: 22px;
}

.login-logo {
  width: min(42vw, 168px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 36px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 0 0.5px rgba(255, 255, 255, 0.2);
  animation: soft-float 5s ease-in-out infinite;
}

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

.login-brand {
  font-size: clamp(2rem, 8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 8px;
}

.login-tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
}

/* Glass control — primary tinted action */
.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease-ios), filter 0.25s ease;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--specular);
  pointer-events: none;
  z-index: 0;
}

.glass-btn > * {
  position: relative;
  z-index: 1;
}

.glass-btn-tinted {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.12) 100%
  );
  border: 0.5px solid rgba(255, 255, 255, 0.4);
}

.glass-btn:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}

.tg-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(42, 171, 238, 0.55));
}

.login-footnote {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

/* ========== Home ========== */
.screen-home {
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px);
}

.home-atmosphere {
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 45% at 80% -5%, rgba(139, 92, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 40% at 10% 15%, rgba(192, 38, 211, 0.12), transparent 50%),
    var(--bg);
}

.notif-bell {
  position: absolute;
  top: calc(16px + var(--safe-t));
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--label);
  box-shadow: 0 2px 12px rgba(88, 28, 135, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
}

.notif-bell svg {
  width: 20px;
  height: 20px;
}

.notif-bell:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.72);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  left: auto;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #FF3B30;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3);
}

.notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 10, 30, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.notif-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 70;
  width: min(430px, 100%);
  max-height: min(72vh, 560px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 40px rgba(88, 28, 135, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: notifSheetUp 0.35s var(--ease-spring) both;
}

body.notif-open {
  overflow: hidden;
}

@keyframes notifSheetUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.notif-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notif-sheet-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--label);
}

.notif-mark-all {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.notif-sheet-body {
  overflow-y: auto;
  padding: 8px 12px calc(18px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-empty {
  text-align: center;
  color: var(--secondary-label);
  font-size: 0.9rem;
  padding: 28px 12px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(242, 240, 247, 0.7);
  text-align: right;
  cursor: pointer;
  transition: background 0.15s ease;
}

.notif-item.is-unread {
  background: rgba(139, 92, 246, 0.1);
  box-shadow: inset 3px 0 0 var(--brand);
}

.notif-item:active {
  background: rgba(139, 92, 246, 0.16);
}

.notif-item-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: #fff;
}

.notif-tone-warn .notif-item-icon,
.notif-item-icon.notif-tone-warn {
  background: #FFF7ED;
}

.notif-tone-danger .notif-item-icon,
.notif-item-icon.notif-tone-danger {
  background: #FEF2F2;
}

.notif-tone-ok .notif-item-icon,
.notif-item-icon.notif-tone-ok {
  background: #ECFDF5;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--label);
}

.notif-item-text {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--secondary-label);
  white-space: pre-line;
}

.notif-item-time {
  font-size: 0.72rem;
  color: rgba(60, 60, 67, 0.55);
  margin-top: 2px;
}

.large-title {
  position: relative;
  z-index: 1;
  padding: calc(18px + var(--safe-t)) 22px 6px;
  animation: present 0.6s var(--ease-spring) both;
}

/* Welcome bonus popup */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 10, 30, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.welcome-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  width: min(340px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  padding: 28px 22px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(88, 28, 135, 0.22);
  text-align: center;
  overflow: hidden;
  animation: welcomePop 0.45s var(--ease-spring) both;
}

body.welcome-open {
  overflow: hidden;
}

@keyframes welcomePop {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.welcome-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  pointer-events: none;
}

.welcome-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(145deg, #8B5CF6, #7C3AED);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
}

.welcome-kicker {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.welcome-title {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--label);
  margin-bottom: 12px;
}

.welcome-amount {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  color: #7C3AED;
  line-height: 1.1;
  margin-bottom: 10px;
}

.welcome-unit {
  font-size: 0.95rem;
  font-weight: 700;
  margin-right: 4px;
}

.welcome-desc {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--secondary-label);
  margin-bottom: 10px;
}

.welcome-balance {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: rgba(60, 60, 67, 0.72);
  margin-bottom: 18px;
}

.welcome-balance strong {
  color: var(--label);
  font-weight: 800;
}

.welcome-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #8B5CF6, #7C3AED);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.32);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), filter 0.2s ease;
}

.welcome-btn:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}

.title {
  font-size: clamp(1.85rem, 7vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--label);
}

.content {
  position: relative;
  z-index: 1;
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Solid content hero — brand purple, not glass */
.hero-wallet {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-continuous);
  padding: 26px 22px 24px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(145deg, #5B21A8 0%, #7C3AED 48%, #A855F7 100%);
  box-shadow:
    0 16px 40px rgba(91, 33, 168, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: present 0.7s var(--ease-spring) 0.05s both;
}

.hero-wallet::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-label {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.82;
  margin-bottom: 8px;
}

.hero-value {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-unit {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
}

.hero-caption {
  position: relative;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.68;
}

/* ——— اکانت تست ——— */
.test-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, #064E3B 0%, #059669 48%, #34D399 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.28);
  animation: present 0.65s var(--ease-spring) 0.06s both;
}

.test-card.is-claimed {
  background: linear-gradient(145deg, #1E293B 0%, #334155 55%, #64748B 120%);
  box-shadow: 0 14px 32px rgba(30, 41, 59, 0.22);
}

.test-card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: -50px;
  left: -30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.test-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.test-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.test-card-icon svg {
  width: 24px;
  height: 24px;
}

.test-card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 2px;
}

.test-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.test-card-desc {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.4;
}

.test-card-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: none;
  background: #fff;
  color: #047857;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s var(--ease-ios);
}

.test-card.is-claimed .test-card-btn {
  color: #1E293B;
}

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

/* ——— پشتیبانی ——— */
.support-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.12);
  margin-bottom: 14px;
  animation: present 0.65s var(--ease-spring) 0.1s both;
}

.support-card-visual {
  position: relative;
  overflow: hidden;
}

.support-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.support-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 78, 59, 0.88) 68%);
  color: #fff;
}

.support-card-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 4px;
}

.support-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.support-card-body {
  padding: 14px 16px 16px;
}

.support-card-desc {
  margin: 0 0 12px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--secondary);
}

.support-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-ios), filter 0.2s ease;
}

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

.support-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.support-btn span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.support-btn strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.support-btn small {
  font-size: 0.68rem;
  opacity: 0.85;
  line-height: 1.2;
}

.support-btn-primary {
  background: linear-gradient(145deg, #0F766E 0%, #14B8A6 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.support-btn-channel {
  background: rgba(15, 118, 110, 0.08);
  color: #0F766E;
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.test-result {
  background: #fff;
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(76, 29, 122, 0.06);
}

.test-result-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
  margin-bottom: 10px;
}

.test-result-status.is-expired {
  color: #B45309;
  background: rgba(245, 158, 11, 0.16);
}

.test-result-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
  word-break: break-all;
}

.test-result-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.test-result-meta li {
  font-size: 0.85rem;
  color: var(--secondary);
  padding-right: 14px;
  position: relative;
}

.test-result-meta li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.test-link-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.test-link-box {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  resize: none;
  background: #F8FAFC;
  color: var(--label);
  margin-bottom: 12px;
  direction: ltr;
  text-align: left;
}

.test-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--secondary);
  line-height: 1.45;
  text-align: center;
}

.test-empty {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: 22px;
}

.wallet-hero {
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #5B21A8 0%, #7C3AED 50%, #A855F7 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(91, 33, 168, 0.28);
  margin-bottom: 14px;
}

.wallet-hero-label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 6px;
}

.wallet-hero-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.wallet-hero-unit {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

.wallet-intent-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.wallet-intent-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F766E;
}

.wallet-intent-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--secondary);
}

.wallet-intent-desc a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.wallet-charge.is-focused {
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
  border-radius: 18px;
}

.wallet-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 4px 4px 10px;
  color: var(--label);
}

.wallet-charge {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
}

.charge-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.charge-chip {
  border: 1.5px solid rgba(107, 33, 168, 0.12);
  background: #F8F5FC;
  border-radius: 14px;
  min-height: 56px;
  padding: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--label);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.charge-chip small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--secondary);
}

.charge-chip.is-active {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.charge-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.charge-input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  padding: 0 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: #F8FAFC;
  direction: ltr;
  text-align: left;
}

.charge-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--secondary);
  text-align: center;
  line-height: 1.4;
}

.wallet-payments {
  margin-top: 4px;
}

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

.wallet-payment-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(60, 60, 67, 0.08);
  box-shadow: 0 2px 10px rgba(76, 29, 122, 0.05);
}

.wallet-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wallet-payment-amount {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--label);
}

.wallet-payment-amount span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
}

.wallet-payment-meta {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--secondary);
}

.wallet-payment-status {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.wallet-payment-status-pending {
  color: #B45309;
  background: rgba(245, 158, 11, 0.18);
}

.wallet-payment-status-success {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
}

.wallet-payment-status-failed {
  color: #B91C1C;
  background: rgba(239, 68, 68, 0.14);
}

.wallet-payment-receipt {
  display: block;
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, 0.1);
}

.wallet-payment-receipt img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.wallet-payment-note {
  margin-top: 8px;
  font-size: 0.74rem;
  color: var(--secondary);
}

.symbol-credit {
  background: #10B981;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.symbol-debit {
  background: #EF4444;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.tx-amount {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.tx-amount.is-credit {
  color: #059669;
}

.tx-amount.is-debit {
  color: #DC2626;
}

.wallet-card-info {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
}

.card-info-box {
  background: linear-gradient(135deg, #F8F5FC 0%, #EDE9FE 100%);
  border: 1.5px solid rgba(107, 33, 168, 0.12);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.card-info-row + .card-info-row {
  border-top: 1px solid rgba(107, 33, 168, 0.08);
  margin-top: 4px;
  padding-top: 10px;
}

.card-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 0;
}

.card-copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.card-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--label);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.card-copy-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-holder {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--label);
}

.charge-steps {
  margin: 0;
  padding: 0 18px 0 0;
  font-size: 0.78rem;
  color: var(--secondary);
  line-height: 1.7;
}

.charge-steps li + li {
  margin-top: 4px;
}

.receipt-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed rgba(107, 33, 168, 0.25);
  background: #F8F5FC;
  margin-bottom: 12px;
  cursor: pointer;
}

.receipt-upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.receipt-upload-icon svg {
  width: 20px;
  height: 20px;
}

.receipt-upload-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.symbol-pending {
  background: #F59E0B;
  color: #fff;
  font-size: 0.9rem;
}

.tx-status-pill {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #B45309;
  vertical-align: middle;
}

.tx-status-pill.is-failed {
  background: #FEE2E2;
  color: #B91C1C;
}

.tx-amount.is-pending {
  color: #B45309;
}

.name-picker {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0 16px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
}

/* ——— باشگاه مشتریان · مسیر خانه ——— */
.club-path {
  display: block;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, #1E1233 0%, #4C1D7A 45%, #7C3AED 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(76, 29, 122, 0.28);
  animation: present 0.7s var(--ease-spring) 0.08s both;
  overflow: hidden;
  position: relative;
}

.club-path::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  top: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.club-path-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.club-path-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 4px;
}

.club-path-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.club-path-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.club-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 14px;
}

.club-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 52px;
  flex-shrink: 0;
}

.club-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 0 transparent;
  transition: transform 0.25s ease;
}

.club-node.is-done .club-dot {
  background: var(--c, #fff);
  border-color: #fff;
}

.club-node.is-now .club-dot {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  transform: scale(1.15);
}

.club-node.is-next .club-dot {
  border-color: #FDE68A;
  background: rgba(253, 230, 138, 0.35);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 230, 138, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(253, 230, 138, 0); }
}

.club-node-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  opacity: 0.7;
  line-height: 1.2;
}

.club-node.is-now .club-node-label,
.club-node.is-done .club-node-label {
  opacity: 1;
}

.club-line {
  flex: 1;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  align-self: flex-start;
}

.club-line.is-filled {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(253, 230, 138, 0.9));
}

.club-progress-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.club-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.club-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #FDE68A, #F59E0B);
  min-width: 0;
  transition: width 0.5s var(--ease-ios);
}

.club-progress-text {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

.club-teaser {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.club-teaser-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FDE68A;
}

.club-teaser-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.club-teaser-list li {
  font-size: 0.75rem;
  opacity: 0.9;
  padding-right: 12px;
  position: relative;
  line-height: 1.4;
}

.club-teaser-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FDE68A;
}

.club-path-cta {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

/* صفحه باشگاه */
.club-hero {
  padding: 20px 18px;
  border-radius: 22px;
  background: linear-gradient(155deg, #1E1233, var(--tier, #6B21A8));
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 14px 32px rgba(76, 29, 122, 0.25);
}

.club-hero-kicker {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 4px;
}

.club-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.club-hero-title small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 4px;
}

.club-hero-spent,
.club-hero-cash {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 2px;
}

.club-progress-wrap-light {
  margin-top: 14px;
  margin-bottom: 0;
}

.club-ladder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.club-tier-card {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  background: var(--a, #fff);
  border: 1.5px solid transparent;
  overflow: hidden;
}

.club-tier-card.is-current {
  border-color: var(--c);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 22%, transparent);
}

.club-tier-card.is-upcoming {
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
}

.club-tier-card.is-unlocked {
  opacity: 0.85;
}

.club-tier-level {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--c);
  background: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.club-tier-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--label);
  margin-bottom: 4px;
}

.club-tier-name em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  margin-right: 6px;
}

.club-tier-req {
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.club-tier-cash {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--c);
  padding: 5px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.club-tier-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.club-tier-perks li {
  font-size: 0.8rem;
  color: var(--label);
  padding-right: 14px;
  position: relative;
  line-height: 1.4;
}

.club-tier-perks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

.club-tier-status {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c);
}

.club-tier-status.is-done {
  color: #15803D;
}

.club-tier-status.is-next {
  color: #B45309;
}

.soon-card {
  text-align: center;
  padding: 48px 24px 40px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(76, 29, 122, 0.06);
  animation: present 0.6s var(--ease-spring) both;
}

.soon-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-tint);
}

.soon-icon svg {
  width: 28px;
  height: 28px;
}

.soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #9A6700;
  background: rgba(255, 204, 0, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.soon-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--label);
}

.soon-desc {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.6;
  max-width: 28ch;
  margin-inline: auto;
}

.row.is-disabled {
  opacity: 0.85;
}

.soon-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  color: #9A6700;
  background: rgba(255, 204, 0, 0.18);
  padding: 5px 9px;
  border-radius: 999px;
}

/* ——— جعبه شانس ——— */
.lucky-gem {
  margin-bottom: 14px;
  animation: present 0.7s var(--ease-spring) 0.12s both;
}

.lucky-gem-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 42%, #FFF7ED 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow:
    0 10px 28px rgba(180, 83, 9, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lucky-gem-card.is-ready {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow:
    0 12px 32px rgba(217, 119, 6, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lucky-gem-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lucky-gem-orb-a {
  width: 120px;
  height: 120px;
  top: -50px;
  left: -30px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 68%);
}

.lucky-gem-orb-b {
  width: 90px;
  height: 90px;
  bottom: -30px;
  right: -20px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.2), transparent 70%);
}

.lucky-gem-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lucky-gem-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #FDE68A, #F59E0B);
  color: #78350F;
  box-shadow:
    0 6px 16px rgba(217, 119, 6, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.35s var(--ease-ios);
}

.lucky-gem-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  opacity: 0.7;
}

.lucky-gem-icon svg {
  width: 24px;
  height: 24px;
}

.lucky-gem-icon-wrap.is-opening {
  animation: shake-chest 0.45s ease-in-out;
}

.lucky-gem-icon-wrap.is-opened {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(145deg, #FBBF24, #EA580C);
}

.lucky-gem-icon-wrap.is-locked {
  filter: saturate(0.65);
  opacity: 0.82;
}

@keyframes shake-chest {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-3px) rotate(-5deg); }
  75% { transform: translateX(3px) rotate(5deg); }
}

.lucky-gem-copy {
  flex: 1;
  min-width: 0;
}

.lucky-gem-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.lucky-gem-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #78350F;
  line-height: 1.2;
}

.lucky-gem-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.lucky-gem-desc {
  font-size: 0.72rem;
  color: #92400E;
  opacity: 0.88;
  line-height: 1.4;
}

.lucky-gem-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lucky-gem-card.is-ready .lucky-gem-btn {
  animation: lucky-pulse 2.4s ease-in-out infinite;
}

@keyframes lucky-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32); }
  50% { box-shadow: 0 8px 22px rgba(234, 88, 12, 0.48); }
}

.lucky-gem-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.lucky-gem-btn:disabled {
  background: rgba(255, 255, 255, 0.72);
  color: #94A3B8;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
  cursor: not-allowed;
  animation: none;
}

.lucky-gem-btn-icon {
  width: 14px;
  height: 14px;
}

.lucky-gem-status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.lucky-gem-status:has(.lucky-result[hidden]):has(.lucky-timer[hidden]) {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.lucky-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lucky-result-badge {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.lucky-result-code {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lucky-result code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  direction: ltr;
  text-align: left;
  color: #78350F;
}

.lucky-copy {
  flex-shrink: 0;
  border: none;
  border-radius: 9px;
  min-height: 30px;
  padding: 0 10px;
  background: #FFFBEB;
  color: #B45309;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.lucky-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.lucky-timer svg {
  width: 16px;
  height: 16px;
  color: #D97706;
  flex-shrink: 0;
}

.lucky-timer-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400E;
}

.lucky-timer-value {
  margin-right: auto;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #78350F;
  direction: rtl;
  unicode-bidi: isolate;
}

.lucky-timer-value .t-days b {
  display: inline-block;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}

.lucky-timer-value .t-hms {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.lucky-codes {
  margin-bottom: 14px;
  animation: present 0.7s var(--ease-spring) 0.15s both;
}

.lucky-codes-label {
  margin: 0 4px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--secondary);
}

.lucky-codes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lucky-code-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(120, 53, 15, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.lucky-code-chip.is-muted {
  opacity: 0.55;
}

.lucky-code-chip-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  min-width: 38px;
  text-align: center;
  padding: 5px 7px;
  border-radius: 9px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.lucky-code-chip.is-muted .lucky-code-chip-pct {
  background: #94A3B8;
}

.lucky-code-chip-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  direction: ltr;
  text-align: left;
  color: var(--label);
}

.lucky-code-chip-meta {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}

/* قدیمی — سازگاری */
.lucky-compact,
.lucky-box {
  display: none;
}

/* Grouped list — opaque content layer */
.group {
  background: var(--bg-elevated);
  border-radius: var(--radius-group);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: present 0.75s var(--ease-spring) 0.1s both;
}

.group-promo {
  animation-delay: 0.16s;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 64px;
  position: relative;
  transition: background 0.2s ease;
}

.row:active {
  background: rgba(120, 120, 128, 0.08);
}

.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 0.5px;
  background: var(--separator);
  margin-right: 54px; /* indent past symbol — RTL: visual inset from start */
}

html[dir="rtl"] .row + .row::before {
  margin-right: 54px;
  margin-left: 16px;
  right: 70px;
  left: 16px;
}

.symbol {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-symbol);
  display: grid;
  place-items: center;
  color: #fff;
}

.symbol svg {
  width: 20px;
  height: 20px;
}

.symbol-purple { background: var(--brand); }

.symbol-orange {
  background: linear-gradient(145deg, #F59E0B 0%, #EA580C 100%) !important;
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.status-payg {
  color: #B45309;
  background: rgba(245, 158, 11, 0.22);
}
.symbol-blue { background: var(--system-blue); }
.symbol-magenta { background: linear-gradient(145deg, #9333EA, #C026D3); }

.row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.row-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--label);
}

.row-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.35;
}

.chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--tertiary);
  border-bottom: 2px solid var(--tertiary);
  transform: rotate(135deg); /* points left in RTL = forward */
  opacity: 0.9;
}

html[dir="rtl"] .chevron {
  transform: rotate(-45deg);
}

/* ========== Liquid Glass Tab Bar ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  padding: 0 14px calc(10px + var(--safe-b));
  pointer-events: none;
  transition: transform 0.45s var(--ease-ios), opacity 0.35s ease;
}

.tabbar.is-compact .tabbar-glass {
  transform: scale(0.94);
  border-radius: 28px;
}

.tabbar.is-compact .tab span {
  opacity: 0;
  max-height: 0;
  margin: 0;
  transform: translateY(4px);
}

.tabbar-glass {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 34px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%);
  border: 0.5px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-ios), border-radius 0.45s var(--ease-ios);
}

.tabbar-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--specular);
  pointer-events: none;
  border-radius: inherit;
}

.tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 6px 2px;
  border-radius: 26px;
  color: var(--secondary);
  font-size: 0.62rem;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-ios);
}

.tab svg {
  width: 24px;
  height: 24px;
}

.tab span {
  transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
  max-height: 16px;
  overflow: hidden;
}

.tab.is-active {
  color: var(--brand);
  background: var(--brand-tint);
  font-weight: 700;
}

.tab:active {
  transform: scale(0.92);
}

/* ========== Pages (buy / subscriptions) ========== */
.screen-page {
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px);
}

.page-lead {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.45;
  max-width: 34ch;
}

.buy-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.buy-title-copy {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.buy-title-copy .title {
  margin: 0;
}

.buy-title-copy .page-lead {
  margin-top: 8px;
}

.buy-shield {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 20px rgba(107, 33, 168, 0.25));
}

/* iOS segmented control */
.segmented-wrap {
  position: relative;
  z-index: 5;
  padding: 4px 16px 8px;
}

.sticky-chrome {
  position: sticky;
  top: 0;
  padding-top: 8px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(242, 240, 247, 0.94) 60%, rgba(242, 240, 247, 0));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.12);
}

.seg {
  position: relative;
  z-index: 2;
  appearance: none;
  border: none;
  background: transparent;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--label);
  cursor: pointer;
  transition: color 0.2s ease;
}

.seg.is-active {
  color: var(--label);
}

.seg-thumb {
  position: absolute;
  z-index: 1;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 33%;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--ease-ios), width 0.35s var(--ease-ios), opacity 0.2s ease;
  will-change: transform, width;
  pointer-events: none;
}

.panel-hint {
  font-size: 0.78rem;
  color: var(--secondary);
  margin: 2px 4px 12px;
  line-height: 1.4;
}

.cat-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 20px;
  color: #fff;
}

.cat-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.45), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.12), transparent 50%);
  pointer-events: none;
}

.cat-intro-daily {
  background: linear-gradient(135deg, #5B21A8 0%, #7C3AED 55%, #A78BFA 100%);
}

.cat-intro-pro {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #06B6D4 100%);
}

.cat-intro-unlimited {
  background: linear-gradient(135deg, #6B21A8 0%, #C026D3 50%, #F43F5E 100%);
}

.cat-intro-unlimited {
  background: linear-gradient(135deg, #6B21A8 0%, #C026D3 50%, #F43F5E 100%);
}

/* ——— پرداخت لحظه‌ای (ورودی جدا از تب‌ها) ——— */
.payg-entry-wrap {
  position: relative;
  z-index: 4;
  margin-bottom: 14px;
}

.payg-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 55%, #FDE68A 100%);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
  cursor: pointer;
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.payg-entry:active {
  transform: scale(0.98);
}

.payg-entry.is-active {
  border-color: #D97706;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.22);
}

.payg-entry-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: #D97706;
  color: #fff;
}

.payg-entry-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 119, 6, 0.15);
  color: #B45309;
}

.payg-entry-icon svg {
  width: 22px;
  height: 22px;
}

.payg-entry-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payg-entry-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #92400E;
  line-height: 1.2;
}

.payg-entry-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(146, 64, 14, 0.75);
  line-height: 1.3;
}

.payg-entry-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #D97706;
}

.payg-entry-arrow svg {
  width: 18px;
  height: 18px;
}

.payg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: none;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  color: #B45309;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.payg-back svg {
  width: 16px;
  height: 16px;
}

.payg-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 22px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #EA580C 0%, #F59E0B 45%, #FBBF24 100%);
  color: #1C1917;
}

.payg-hero-glow {
  position: absolute;
  inset: -20% 40% auto -20%;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(24px);
  pointer-events: none;
}

.payg-hero-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.payg-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.28);
}

.payg-hero-icon svg {
  width: 26px;
  height: 26px;
}

.payg-hero-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

.payg-hero-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.payg-hero-desc {
  position: relative;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 14px;
}

.payg-hero-price {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.payg-hero-price-val {
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.payg-hero-price-unit {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
}

.payg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.payg-stat {
  padding: 10px 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  text-align: center;
}

.payg-stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 4px;
}

.payg-stat-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #B45309;
  font-variant-numeric: tabular-nums;
}

.payg-create-card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.1);
}

.payg-features {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payg-features li {
  position: relative;
  padding-right: 18px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--secondary);
}

.payg-features li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
}

.payg-features strong {
  color: var(--label);
}

.payg-create-btn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.payg-create-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.payg-create-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.sheet-payg-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  color: #92400E;
  font-size: 0.74rem;
  line-height: 1.55;
}

.btn-primary.is-payg-cta {
  background: linear-gradient(145deg, #F59E0B 0%, #D97706 100%);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
}

.status-pill.status-paused {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
}

.payg-usage-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.payg-usage-card h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #B45309;
  margin-bottom: 8px;
}

.payg-usage-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  padding: 4px 0;
  color: var(--secondary);
}

.payg-usage-row strong {
  color: var(--label);
  font-variant-numeric: tabular-nums;
}

.payg-chart-card {
  margin-top: 12px;
  padding: 14px 12px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.06);
}

.payg-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.payg-chart-head h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #B45309;
}

.payg-chart-hint {
  font-size: 0.68rem;
  color: var(--secondary);
}

.payg-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 132px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.payg-chart-col {
  flex: 1 0 28px;
  max-width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.payg-chart-bar-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.payg-chart-bar {
  width: 72%;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
  transition: height 0.35s var(--ease-ios);
}

.payg-chart-col.is-empty .payg-chart-bar {
  background: rgba(60, 60, 67, 0.1);
  min-height: 3px;
}

.payg-chart-val {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--label);
  line-height: 1.1;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payg-chart-col.is-empty .payg-chart-val {
  color: var(--tertiary);
}

.payg-chart-day {
  font-size: 0.58rem;
  color: var(--secondary);
}

.page-subs .sub-remaining {
  font-weight: 700;
  color: var(--brand-deep);
}

.page-subs .sub-remaining-warn {
  color: #C2410C;
}

.cat-intro-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cat-intro-icon svg {
  width: 22px;
  height: 22px;
}

.cat-intro-body {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.cat-intro-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.cat-intro-text {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.92;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cat-chips span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ——— تک‌کاربره / دوکاربره (روزمره) ——— */
.slots-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.slots-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1.5px solid transparent;
  background: #fff;
  box-shadow: 0 8px 22px rgba(76, 29, 122, 0.06);
  text-align: right;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-ios),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.slots-card.is-active {
  border-color: rgba(107, 33, 168, 0.45);
  box-shadow:
    0 0 0 3px rgba(107, 33, 168, 0.1),
    0 10px 24px rgba(107, 33, 168, 0.12);
}

.slots-card[data-slots="dual"].is-active {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.12),
    0 10px 24px rgba(14, 165, 233, 0.14);
}

.slots-3d {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  perspective: 200px;
}

.slots-orb {
  position: absolute;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.55),
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 6px 12px rgba(0, 0, 0, 0.12);
}

.slots-orb-one {
  inset: 4px;
  background: linear-gradient(145deg, #C4B5FD, #6B21A8 55%, #4C1D7A);
}

.slots-orb-a {
  width: 28px;
  height: 28px;
  top: 2px;
  right: 2px;
  background: linear-gradient(145deg, #7DD3FC, #0284C7 55%, #0369A1);
  z-index: 1;
}

.slots-orb-b {
  width: 28px;
  height: 28px;
  bottom: 2px;
  left: 2px;
  background: linear-gradient(145deg, #A5B4FC, #4F46E5 55%, #3730A3);
  z-index: 0;
}

.slots-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.slots-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--label);
}

.slots-copy small {
  font-size: 0.72rem;
  color: var(--secondary);
  line-height: 1.3;
}

.slots-hint {
  font-size: 0.75rem;
  color: var(--secondary);
  margin: 0 4px 12px;
  line-height: 1.4;
}

.slots-list[hidden] {
  display: none !important;
}

.plan-slots-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--brand);
  background: var(--brand-tint);
}

.plan-slots-tag.is-dual {
  color: #0369A1;
  background: rgba(14, 165, 233, 0.14);
}

/* ——— Professional split banner ——— */
.pro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.pro-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 14px;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.25s var(--ease-ios);
}

.pro-tile:active {
  transform: scale(0.98);
}

.pro-tile-trade {
  background:
    linear-gradient(160deg, #0B1F3A 0%, #1D4ED8 48%, #22D3EE 120%);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}

.pro-tile-gaming {
  background:
    linear-gradient(160deg, #052E16 0%, #15803D 45%, #84CC16 120%);
  box-shadow: 0 12px 28px rgba(21, 128, 61, 0.28);
}

.pro-tile-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: -40px;
  left: -30px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

.pro-tile-gaming .pro-tile-glow {
  left: auto;
  right: -24px;
  background: radial-gradient(circle, rgba(190, 242, 100, 0.35), transparent 68%);
}

.pro-tile-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pro-tile-icon svg {
  width: 20px;
  height: 20px;
}

.pro-tile-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.pro-tile-label {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
}

.pro-tile-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.pro-tile-desc {
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.82;
}

.pro-tile-meta {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pro-section {
  margin-bottom: 18px;
  scroll-margin-top: 72px;
}

.pro-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 4px 2px;
}

.pro-section-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pro-section-mark svg {
  width: 20px;
  height: 20px;
}

.pro-section-head-trade .pro-section-mark {
  color: #1D4ED8;
  background: rgba(29, 78, 216, 0.12);
}

.pro-section-head-gaming .pro-section-mark {
  color: #15803D;
  background: rgba(21, 128, 61, 0.12);
}

.pro-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--label);
  line-height: 1.2;
}

.pro-section-sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--secondary);
}

.plan-panel {
  animation: present 0.45s var(--ease-spring) both;
}

.plan-panel[hidden] {
  display: none !important;
}

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

.plan-card {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-group);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: transform 0.25s var(--ease-ios);
}

.plan-card-body {
  padding: 18px 16px 16px;
}

.plan-card.is-featured:not(.is-highlighted) {
  background: linear-gradient(160deg, #FFFFFF 0%, #F8F4FF 100%);
  box-shadow:
    0 0 0 1px rgba(107, 33, 168, 0.12),
    0 12px 32px rgba(91, 33, 168, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-card.is-popular {
  box-shadow:
    0 0 0 1.5px rgba(245, 158, 11, 0.45),
    0 10px 28px rgba(245, 158, 11, 0.12);
}

.plan-card.is-special {
  box-shadow:
    0 0 0 1.5px rgba(236, 72, 153, 0.4),
    0 10px 28px rgba(192, 38, 211, 0.12);
}

/* نوار متمایز بالای کارت — بدون همپوشانی متن */
.plan-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.plan-ribbon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.plan-ribbon-popular {
  background: linear-gradient(90deg, #F59E0B 0%, #F97316 100%);
}

.plan-ribbon-special {
  background: linear-gradient(90deg, #DB2777 0%, #C026D3 100%);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-kind {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--system-blue);
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.plan-kind-game {
  color: #34C759;
  background: rgba(52, 199, 89, 0.12);
}

.plan-kind-vip {
  color: var(--brand);
  background: var(--brand-tint);
}

.plan-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--label);
}

.plan-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--secondary);
  line-height: 1.35;
}

.plan-price-block {
  text-align: left;
  flex-shrink: 0;
}

.plan-price {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--label);
  direction: ltr;
}

.plan-currency {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--secondary);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding-top: 2px;
}

.plan-features li {
  position: relative;
  padding-right: 16px;
  font-size: 0.78rem;
  color: var(--secondary);
  line-height: 1.35;
}

.plan-features li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.7;
}

.plan-cta {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.12);
  color: var(--brand);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s var(--ease-ios);
}

.plan-cta:active {
  transform: scale(0.98);
  background: rgba(118, 118, 128, 0.18);
}

.plan-card.is-popular .plan-cta {
  background: linear-gradient(90deg, #F59E0B, #F97316);
  color: #fff;
}

.plan-card.is-special .plan-cta,
.plan-card.is-featured .plan-cta {
  background: var(--brand);
  color: #fff;
}

.plan-card.is-popular .plan-cta:active,
.plan-card.is-special .plan-cta:active,
.plan-card.is-featured .plan-cta:active {
  filter: brightness(0.95);
}

/* Confirm sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  z-index: 210;
  width: 100%;
  max-width: 430px;
  padding: 10px 20px calc(20px + var(--safe-b));
  border-radius: 28px 28px 0 0;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease-ios);
  text-align: center;
}

.sheet.is-open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.18);
  margin: 0 auto 16px;
}

.sheet-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

.sheet-plan {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--label);
}

.sheet-meta {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--secondary);
}

.sheet-price {
  margin: 16px 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.sheet-currency {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary);
}

.sheet-note {
  font-size: 0.75rem;
  color: var(--tertiary);
  margin-bottom: 18px;
}

.sheet-discount-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.sheet-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(76, 29, 122, 0.06);
  border: 1px solid rgba(76, 29, 122, 0.1);
}

.sheet-balance-label {
  font-size: 0.78rem;
  color: var(--secondary);
}

.sheet-balance-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.sheet-shortage {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.14);
}

.sheet-shortage-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #B91C1C;
}

.sheet-discount-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.sheet-discount-panel {
  margin-top: 10px;
}

.sheet-discount-panel[hidden] {
  display: none !important;
}

.btn-primary.is-wallet-cta {
  background: #0F766E;
}

.sheet-discount-input {
  flex: 1;
  min-width: 0;
}

.btn-sheet-apply {
  flex-shrink: 0;
  min-width: 72px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(76, 29, 122, 0.18);
  background: rgba(76, 29, 122, 0.06);
  color: var(--brand);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-sheet-apply:disabled {
  opacity: 0.55;
}

.sheet-discount-msg {
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.5;
}

.sheet-discount-msg.is-success {
  color: #15803d;
}

.sheet-discount-msg.is-error {
  color: #DC2626;
}

.sheet-price-original {
  margin: -8px 0 10px;
  font-size: 0.78rem;
  color: var(--secondary);
  text-decoration: line-through;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-ios), filter 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.btn-primary.btn-block {
  margin-top: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border-radius: 16px;
  background: transparent;
  color: var(--system-blue);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  padding: 48px 24px 24px;
  animation: present 0.6s var(--ease-spring) both;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: rgba(118, 118, 128, 0.1);
  color: var(--secondary);
  display: grid;
  place-items: center;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 28ch;
  margin-inline: auto;
}

.empty-inline {
  font-size: 0.85rem;
  color: var(--secondary);
  padding: 20px;
  text-align: center;
}

.symbol-muted {
  background: rgba(118, 118, 128, 0.2);
  color: #fff;
}

.status-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.status-active {
  color: #248A3D;
  background: rgba(52, 199, 89, 0.15);
}

.status-pending {
  color: #9A6700;
  background: rgba(255, 204, 0, 0.18);
}

.status-expired,
.status-cancelled {
  color: var(--secondary);
  background: rgba(118, 118, 128, 0.12);
}

.sub-row {
  min-height: 72px;
}

.sub-row-link {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
  align-items: center;
}

.sub-row-link.sub-row-payg {
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 42%, #FFF7ED 100%);
  box-shadow: 0 10px 26px rgba(217, 119, 6, 0.16);
}

.sub-row-link.sub-row-payg .row-title {
  color: #92400E;
}

.sub-row-link.sub-row-payg .row-sub {
  color: #B45309;
}

.sub-row-link .status-pill.status-payg {
  color: #B45309;
  background: rgba(245, 158, 11, 0.22);
  font-weight: 800;
}

.sub-row-link .status-pill {
  margin-left: 4px;
  flex-shrink: 0;
}

.sub-row-link:active {
  transform: scale(0.99);
  opacity: 0.92;
}

/* Subscriptions page — floating cards, no wrapper box */
.page-subs .subs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  animation: none;
}

.page-subs .subs-list .sub-row-link {
  margin-bottom: 0;
  border-radius: 20px;
  padding: 15px 16px;
  min-height: 74px;
  border: 1px solid rgba(60, 60, 67, 0.07);
  box-shadow: 0 2px 10px rgba(76, 29, 122, 0.05);
  background: #fff;
}

.page-subs .subs-list .row + .row::before {
  display: none;
}

.page-subs .subs-list .sub-row-link.sub-row-payg {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(135deg, #FFFCF5 0%, #FEF3C7 48%, #FFFBEB 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.1);
}

.page-subs .subs-list .sub-row-link.sub-row-test {
  border-color: rgba(107, 33, 168, 0.16);
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 42%, #FFFFFF 100%);
  box-shadow: 0 3px 12px rgba(107, 33, 168, 0.08);
}

.page-subs .subs-list .sub-row-link.sub-row-test .row-title {
  color: var(--brand-deep);
}

.page-subs .subs-list .row-sub {
  font-size: 0.78rem;
  line-height: 1.4;
}

.page-subs .subs-list .status-pill {
  font-size: 0.68rem;
  padding: 4px 9px;
}

.page-subs .content .btn-primary.btn-block {
  margin-top: 4px;
  border-radius: 20px;
  min-height: 52px;
  box-shadow: 0 8px 24px rgba(107, 33, 168, 0.22);
}

.sub-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
  text-decoration: none;
}

.sub-back-link svg {
  width: 18px;
  height: 18px;
}

.sub-detail-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
}

.sub-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sub-detail-date {
  font-size: 0.72rem;
  color: var(--secondary);
}

.sub-card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
  overflow: hidden;
}

.sub-card .sub-row {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.sub-config {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
}

.sub-config-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 10px 0 6px;
}

.sub-config-box {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  padding: 10px 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  direction: ltr;
  text-align: left;
  background: #F8FAFC;
  resize: vertical;
}

.sub-config-hint {
  padding: 10px 14px 14px;
  font-size: 0.78rem;
  color: var(--secondary);
  border-top: 1px solid rgba(60, 60, 67, 0.08);
}

.sub-config-hint.is-error {
  color: #B91C1C;
}

.sub-manage {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
}

.sub-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}

.sub-manage-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand);
}

.sub-sync-time {
  font-size: 0.68rem;
  color: var(--secondary);
  white-space: nowrap;
}

.sub-traffic-panel {
  background: linear-gradient(180deg, rgba(76, 29, 122, 0.04) 0%, rgba(76, 29, 122, 0.01) 100%);
  border: 1px solid rgba(76, 29, 122, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.sub-traffic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sub-traffic-top strong {
  color: var(--brand);
}

.sub-traffic-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.14);
  overflow: hidden;
  margin-bottom: 10px;
}

.sub-traffic-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, #8B5CF6 100%);
  min-width: 2px;
  transition: width 0.35s ease;
}

.sub-traffic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sub-traffic-item {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 8px 10px;
}

.sub-traffic-item small {
  display: block;
  font-size: 0.66rem;
  color: var(--secondary);
  margin-bottom: 2px;
}

.sub-traffic-item strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.sub-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sub-action-row .btn-ghost {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  justify-content: center;
}

.sub-action-row .btn-rotate {
  color: var(--brand);
  border-color: rgba(76, 29, 122, 0.2);
}

.sub-action-row .btn-rotate:disabled {
  opacity: 0.45;
}

.sub-manage-hint {
  margin-top: 10px;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--secondary);
}

.sub-manage-hint a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.sub-danger-zone {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 38, 38, 0.12);
}

.sub-danger-zone .btn-delete {
  width: 100%;
  justify-content: center;
  color: #DC2626;
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.04);
}

.sub-danger-zone .btn-delete:active {
  background: rgba(220, 38, 38, 0.1);
}

.sub-danger-hint {
  margin-top: 8px;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--secondary);
  text-align: center;
}

.sub-delete-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sub-delete-sheet[hidden] {
  display: none !important;
}

.btn-delete-confirm {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
  border: none;
  background: #DC2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.btn-delete-confirm:disabled {
  opacity: 0.6;
}

.sub-link-box {
  margin-bottom: 14px;
}

.sub-config-visible {
  display: block;
  min-height: 88px;
  margin-top: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  word-break: break-all;
}

.sub-name-card {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(76, 29, 122, 0.06) 0%, rgba(76, 29, 122, 0.02) 100%);
  border: 1px solid rgba(76, 29, 122, 0.1);
}

.sub-name-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.sub-name-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(76, 29, 122, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-name-icon svg {
  width: 20px;
  height: 20px;
}

.sub-name-kicker {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 2px;
}

.sub-name-desc {
  font-size: 0.7rem;
  color: var(--secondary);
  line-height: 1.5;
}

.sub-name-editor {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 4px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid rgba(76, 29, 122, 0.14);
  box-shadow: 0 4px 14px rgba(76, 29, 122, 0.06);
}

.sub-name-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  direction: rtl;
  text-align: right;
  outline: none;
}

.sub-name-input::placeholder {
  color: rgba(118, 118, 128, 0.7);
  font-weight: 500;
}

.sub-name-save {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.sub-name-save svg {
  width: 16px;
  height: 16px;
}

.sub-name-save:active {
  transform: scale(0.97);
  opacity: 0.92;
}

.sub-name-save:disabled {
  opacity: 0.6;
}

.sub-name-save.is-success {
  background: #22C55E;
}

.sub-copy-hero {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, #6B2FA0 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(76, 29, 122, 0.28);
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}

.sub-copy-hero:active {
  transform: scale(0.98);
}

.sub-copy-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-copy-hero-icon svg {
  width: 24px;
  height: 24px;
}

.sub-copy-hero-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.sub-copy-hero-copy small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  opacity: 0.85;
}

.sub-config-box.is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sub-rotate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(76, 29, 122, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
}

.sub-action-row .btn-ghost svg {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.sub-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sub-qr-modal[hidden] {
  display: none;
}

.sub-qr-panel-center {
  border-radius: 22px;
  max-width: 320px;
  text-align: center;
}

.sub-qr-panel-center img {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(76, 29, 122, 0.08);
}

body.modal-open {
  overflow: hidden;
}

.settings-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.settings-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.settings-platform-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(76, 29, 122, 0.06);
}

.settings-platform-chip.is-active {
  background: var(--brand);
  color: #fff;
}

.settings-hint-box,
.guide-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(76, 29, 122, 0.05);
}

.settings-hint-box p,
.settings-empty .empty-desc {
  font-size: 0.82rem;
  color: var(--secondary);
  line-height: 1.6;
}

.guide-card + .guide-card {
  margin-top: 10px;
}

.guide-card-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.guide-card-app {
  font-size: 0.74rem;
  color: var(--secondary);
  margin-top: 4px;
}

.guide-app-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.guide-steps {
  margin: 12px 0 0;
  padding-right: 18px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text);
}

.guide-steps li + li {
  margin-top: 6px;
}

.sub-qr-sheet,
.sub-rotate-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sub-qr-sheet[hidden],
.sub-rotate-sheet[hidden] {
  display: none;
}

.sub-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 25, 0.45);
}

.sub-qr-panel {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(76, 29, 122, 0.12);
}

.sub-qr-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.sub-qr-desc,
.sub-rotate-desc {
  font-size: 0.78rem;
  color: var(--secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sub-qr-canvas-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

.sub-rotate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-server-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(76, 29, 122, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.sub-action-row .btn-migrate {
  color: var(--brand);
  border-color: rgba(76, 29, 122, 0.2);
}

.sub-migrate-sheet {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sub-migrate-sheet[hidden] {
  display: none;
}

.sub-server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 240px;
  overflow-y: auto;
}

.sub-server-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(76, 29, 122, 0.12);
  background: #FAFAFC;
  cursor: pointer;
}

.sub-server-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(76, 29, 122, 0.06);
}

.sub-server-option input {
  accent-color: var(--brand);
  flex-shrink: 0;
}

.sub-server-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-server-option-body strong {
  font-size: 0.88rem;
}

.sub-server-option-body small {
  font-size: 0.68rem;
  color: var(--secondary);
}

.btn-copy-config {
  margin-top: 0;
  width: auto;
}

/* Desktop preview frame */
@media (min-width: 640px) {
  body {
    background:
      radial-gradient(ellipse at 50% 0%, #E9E0F8, #D8D0E8 60%);
  }

  .app {
    min-height: 100dvh;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.04),
      0 40px 80px rgba(76, 29, 122, 0.15);
  }

  .home-atmosphere {
    border-radius: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-btn,
  .tabbar-glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }

  .glass-btn-tinted {
    background: rgba(255, 255, 255, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— پشتیبانی + چت AI ——— */
.page-support .support-content {
  padding-bottom: 24px;
}

.ai-chat {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.1);
  margin-bottom: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.ai-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #064E3B 0%, #0D9488 100%);
  color: #fff;
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ai-chat-avatar svg {
  width: 22px;
  height: 22px;
}

.ai-chat-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.ai-chat-sub {
  margin: 2px 0 0;
  font-size: 0.68rem;
  opacity: 0.85;
}

.ai-chat-badge {
  margin-right: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  min-height: 200px;
}

.ai-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ai-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-bubble-bot {
  align-self: flex-start;
  background: #F1F5F9;
  color: #1E293B;
  border-bottom-right-radius: 4px;
}

.ai-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0D9488, #059669);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.ai-bubble-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
}

.ai-bubble-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94A3B8;
  animation: ai-dot 1.2s infinite ease-in-out;
}

.ai-bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-bubble-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ai-dot {
  0%, 80%, 100% { opacity: 0.35; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.ai-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #E2E8F0;
  background: #FAFAFA;
}

.ai-chat-input {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.8rem;
  background: #fff;
  outline: none;
}

.ai-chat-input:focus {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.ai-chat-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0D9488, #059669);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-chat-send svg {
  width: 18px;
  height: 18px;
}

.support-tips .row {
  position: relative;
}

.support-tips .chevron {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  text-decoration: none;
}

.payg-entry-locked {
  cursor: not-allowed;
  opacity: 0.82;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
  border: 1px dashed #CBD5E1;
  box-shadow: none;
}

.payg-entry-locked .payg-entry-sub a {
  color: #2563EB;
  font-weight: 700;
  text-decoration: none;
}

.payg-entry-badge-lock {
  background: #94A3B8;
}
