* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #111318;
  --surface: #161a22;
  --card: #1c2029;
  --card2: #242936;
  --border: rgba(255, 255, 255, 0.07);
  --yellow: #E8C547;
  --gold: #C9A84A;
  --green: #3DB88A;
  --red: #E86A7A;
  --text: #E4E8EE;
  --muted: #9AA5B5;
  --calm-bg: rgba(72, 98, 120, 0.1);
  --calm-border: rgba(100, 130, 155, 0.16);
  --calm-text: #A8B6C8;
  --nav-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-light: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-fast: 0.14s;
  --motion-med: 0.26s;
  --motion-slow: 0.38s;
  /* زر شراء الأرينا (الكبير) — غيّر هذه الألوان فقط */
  --robo-buy-bg-1: #ecd060;
  --robo-buy-bg-2: #d4a820;
  --robo-buy-bg-3: #c9941a;
  --robo-buy-text: #1a1208;
  --robo-buy-shadow: rgba(201, 148, 26, 0.28);
  --robo-buy-hover-1: #f2d878;
  --robo-buy-hover-2: #ddb830;
  --robo-buy-active-1: #d4ad3a;
  --robo-buy-active-2: #b88716;
}

/* Global compact layout for all screens — readable on phones */
html, body {
  font-size: 14.5px;
  line-height: 1.5;
}

body {
  font-size: 14.5px;
}

.screen-pad {
  padding: 0 10px 12px;
}

.pro-header {
  padding: 8px 10px 6px;
}

.pro-header h1 {
  font-size: 0.95rem;
}

.cash-card,
.wd-balance-card,
.bn-balance-bar,
.trade-search-bar,
.trade-promo,
.home-search,
.market-list,
.arena-panel,
.arena-stage,
.signin-card,
.signin-pro,
.asset-row,
.profile-stat-card,
.level-card,
.invite-link-card,
.profile-sub-row,
.profile-sub-toggle,
.profile-sub-add,
.profile-sub-accounts,
.support-cat-card,
.support-chat-scroll,
.market-row,
.market-head {
  border-radius: 10px;
}

.cash-card,
.wd-balance-card,
.bn-balance-bar,
.trade-search-bar,
.trade-promo,
.home-search,
.arena-panel,
.asset-row,
.profile-stat-card,
.level-card,
.invite-link-card,
.profile-sub-row,
.profile-sub-toggle,
.profile-sub-add,
.profile-sub-accounts,
.support-cat-card {
  padding: 10px 12px;
  margin-bottom: 10px;
}

.btn-gold,
.max-chip,
.auth-tab,
.chain-pill,
.support-chip,
.net-picker-btn,
.coin-pick,
.support-send-btn {
  padding: 9px 12px;
  font-size: 13px;
  min-height: 42px;
}

@media (max-width: 480px) {
  :root {
    --nav-h: 52px;
  }

  body {
    font-size: 14px;
  }

  .screen-pad {
    padding: 0 10px 12px;
  }

  .pro-header {
    padding: 8px 10px 6px;
  }

  .pro-header h1 {
    font-size: 0.92rem;
  }

  .cash-card,
  .wd-balance-card,
  .trade-search-bar,
  .trade-promo,
  .home-search,
  .arena-panel,
  .asset-row,
  .profile-stat-card,
  .level-card,
  .invite-link-card,
  .profile-sub-row,
  .profile-sub-toggle,
  .profile-sub-add,
  .profile-sub-accounts,
  .support-cat-card {
    padding: 9px 10px;
    margin-bottom: 8px;
  }

  .arena-stage:not(.mdaw-stage) {
    height: 220px;
    border-radius: 10px;
  }

  .arena-metrics > div {
    padding: 8px 10px;
  }

  .arena-metrics strong {
    font-size: 13px;
  }

  .trade-hero-left h2 {
    font-size: 0.9rem;
  }

  .trade-hero-right strong {
    font-size: 1rem;
  }

  .trade-chart-wrap {
    height: 220px;
  }

  .market-head,
  .market-row {
    padding: 8px 10px;
  }

  .signin-pro-top {
    padding: 16px 14px 20px;
  }

  .signin-pro-top h2 {
    font-size: 1.05rem;
    margin: 6px 0 4px;
  }
  .plan-pro-body { min-height: 140px; grid-template-columns: 1fr 80px; }
  .plan-pro { min-height: 140px; }
  .plan-pro-robot { width: 80px; min-height: 100px; margin-top: -32px; }
  .plan-pro.tier-3 .plan-pro-robot .robot-wrap,
  .plan-pro.tier-3 .plan-pro-robot .robot-img.plan {
    max-width: 84px;
    height: 108px;
  }
  .action-icon { width: 42px; height: 42px; }
  .action-item span { font-size: 10px; }
  .cash-card { min-height: 90px; padding: 14px 14px; }
}

html, body {
  height: 100%;
  overflow: hidden;
  background-color: var(--bg);
  background:
    radial-gradient(ellipse 110% 55% at 50% -8%, rgba(100, 130, 160, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 90% 50% at 50% 108%, rgba(80, 100, 130, 0.06) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ico {
  display: block;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%) translateY(-90px);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 9999;
  font-size: 14px;
  transition: transform .3s;
  max-width: 90vw;
  text-align: center;
}
.toast.toast-compact {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  max-width: min(280px, 82vw);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.toast.toast-compact.toast-success {
  border-color: rgba(14, 203, 129, 0.55);
  background: rgba(14, 30, 22, 0.96);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-success { border-color: var(--green); color: var(--green); }
.toast-error { border-color: var(--red); color: var(--red); }
.toast-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  min-width: min(280px, 86vw);
}
.toast-countdown .toast-msg {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.toast-countdown .toast-cd {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.toast-deposit.toast-countdown {
  top: 42%;
  transform: translateX(-50%) translateY(-120%);
  padding: 18px 26px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  background: rgba(12, 18, 14, 0.96);
  z-index: 10050;
  font-size: 15px;
}
.toast-deposit.toast-countdown.show {
  transform: translateX(-50%) translateY(-50%);
}
.toast-deposit .toast-msg {
  font-size: 15px;
}
.toast-deposit .toast-cd {
  font-size: 14px;
  margin-top: 2px;
}

.dep-live-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 203, 129, 0.45);
  background: rgba(14, 203, 129, 0.1);
  color: #7dffa8;
}
.dep-live-alert.is-confirming {
  border-color: rgba(240, 185, 11, 0.5);
  background: rgba(240, 185, 11, 0.1);
  color: #ffe566;
}
.dep-live-alert-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 203, 129, 0.18);
  color: #0ecb81;
}
.dep-live-alert.is-confirming .dep-live-alert-icon {
  background: rgba(240, 185, 11, 0.18);
  color: #fcd535;
}
.dep-live-alert strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 2px;
}
.dep-live-alert span {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.85;
}

/* Deposit pending sticky banner — ثابت فوق كل الصفحات */
#depositPendingHost {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 20px));
  z-index: 9500;
  pointer-events: none;
}
.deposit-pending-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deposit-pending-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(28, 22, 8, 0.96), rgba(40, 30, 10, 0.94));
  border: 1px solid rgba(240, 185, 11, 0.55);
  color: #ffe9a3;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(252, 213, 53, 0.12);
  animation: depositPendingPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.deposit-pending-banner-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 185, 11, 0.2);
  color: #fcd535;
}
.deposit-pending-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.deposit-pending-banner-text strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffe566;
}
.deposit-pending-banner-text span {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 233, 163, 0.8);
}
.deposit-pending-banner.is-success {
  background: linear-gradient(135deg, rgba(8, 28, 18, 0.96), rgba(10, 40, 24, 0.94));
  border-color: rgba(14, 203, 129, 0.55);
  color: #b8f5d4;
  animation: none;
}
.deposit-pending-banner.is-success .deposit-pending-banner-icon {
  background: rgba(14, 203, 129, 0.22);
  color: #0ecb81;
}
.deposit-pending-banner.is-success .deposit-pending-banner-text strong {
  color: #7dffa8;
}
.deposit-pending-banner.is-success .deposit-pending-banner-text span {
  color: rgba(184, 245, 212, 0.85);
}
@keyframes depositPendingPulse {
  0%, 100% { border-color: rgba(240, 185, 11, 0.4); box-shadow: 0 12px 28px rgba(0,0,0,0.45); }
  50% { border-color: rgba(252, 213, 53, 0.85); box-shadow: 0 12px 28px rgba(0,0,0,0.45), 0 0 18px rgba(240,185,11,0.25); }
}
body.has-deposit-pending .app-content {
  padding-top: 4px;
}
body.has-deposit-pending .toast.show {
  top: max(78px, calc(env(safe-area-inset-top) + 68px));
}

.c-green { color: var(--green) !important; }
.c-gold { color: var(--yellow) !important; }
.c-red { color: var(--red) !important; }

/* Auth */
.auth-wrap {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(240,185,11,.06), transparent 60%);
}
.cash-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(145deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 14px;
  min-height: 106px;
  overflow: hidden;
  position: relative;
}
}
.auth-tab.on { background: #FCD535; color: #181A20; border-color: #FCD535; font-weight: 600; }
.field { margin-bottom: 14px; }
.field.hidden { display: none; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--yellow); }

/* Auth — Resend-style minimal */
.auth-resend {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 20px 32px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.auth-resend::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 72% 62% at 50% 50%, transparent 45%, rgba(0,0,0,0.18) 100%);
}
.auth-drapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.auth-silk {
  position: absolute;
  opacity: 1;
  animation-fill-mode: both;
  backface-visibility: hidden;
}
.auth-silk img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
}
.auth-silk-tr {
  top: 0;
  right: 0;
  width: min(66vw, 490px);
  height: min(62vh, 530px);
  animation: silkSlideTR 2.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-silk-tr img {
  object-position: top right;
  transform-origin: 100% 0%;
  animation: silkWindTR 2.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-silk-bl {
  bottom: 0;
  left: 0;
  width: min(64vw, 470px);
  height: min(60vh, 510px);
  animation: silkSlideBL 2.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-silk-bl img {
  object-position: bottom left;
  transform-origin: 0% 100%;
  animation: silkWindBL 2.1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes silkSlideTR {
  0% { opacity: 0; transform: translate3d(78%, -6%, 0); }
  8% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes silkSlideBL {
  0% { opacity: 0; transform: translate3d(-78%, 6%, 0); }
  8% { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes silkWindTR {
  0% { transform: translateX(14%) skewX(-2.5deg) rotate(1.2deg); }
  22% { transform: translateX(6%) skewX(1.8deg) rotate(-0.8deg); }
  45% { transform: translateX(2.5%) skewX(-1.2deg) rotate(0.5deg); }
  68% { transform: translateX(0.8%) skewX(0.6deg) rotate(-0.25deg); }
  86% { transform: translateX(0.2%) skewX(-0.2deg) rotate(0.1deg); }
  100% { transform: translateX(0) skewX(0) rotate(0); }
}
@keyframes silkWindBL {
  0% { transform: translateX(-14%) skewX(2.5deg) rotate(-1.2deg); }
  22% { transform: translateX(-6%) skewX(-1.8deg) rotate(0.8deg); }
  45% { transform: translateX(-2.5%) skewX(1.2deg) rotate(-0.5deg); }
  68% { transform: translateX(-0.8%) skewX(-0.6deg) rotate(0.25deg); }
  86% { transform: translateX(-0.2%) skewX(0.2deg) rotate(-0.1deg); }
  100% { transform: translateX(0) skewX(0) rotate(0); }
}
.auth-cloth-mount {
  display: none;
}
.auth-cloth-canvas {
  display: none;
}
.auth-resend-enter {
  animation: authContentIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authContentIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-silk-tr,
  .auth-silk-bl,
  .auth-silk-tr img,
  .auth-silk-bl img { animation: none; opacity: 1; transform: none; }
  .auth-resend-enter { animation: none; opacity: 1; }
}
.auth-resend-shell {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.auth-resend-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.auth-resend-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-resend-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.auth-resend-switch {
  font-size: 13px;
  color: #737373;
  margin: 0 0 28px;
  line-height: 1.5;
}
.auth-resend-switch b,
.auth-verify-hint b { color: #e5e5e5; font-weight: 600; }
.auth-verify-hint { margin-bottom: 24px; }
.auth-register-verify-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(240, 185, 11, 0.85);
  text-align: center;
}
.auth-register-verify-note.hidden { display: none; }
.auth-verify-dev-hint {
  margin: -12px 0 16px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.22);
  font-size: 11px;
  line-height: 1.45;
  color: #e8c547;
  text-align: center;
}
.auth-resend-link {
  background: none;
  border: none;
  padding: 0;
  margin-inline-start: 4px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.auth-resend-link.muted { color: #737373; font-weight: 500; display: block; margin-top: 6px; }
.auth-resend-link:disabled { opacity: 0.45; cursor: not-allowed; }
.auth-resend-form { text-align: start; }
.auth-resend-field { margin-bottom: 18px; }
.auth-resend-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #a3a3a3;
  margin-bottom: 8px;
}
.auth-resend-field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-resend-field input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.auth-resend-field input::placeholder { color: #525252; }
.auth-pwd-wrap { position: relative; }
.auth-pwd-wrap input { padding-inline-end: 44px; }
.auth-pwd-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #737373;
  border-radius: 6px;
  padding: 0;
}
.auth-pwd-toggle:hover { color: #a3a3a3; }
.auth-pwd-toggle .ico { stroke: currentColor; }
.auth-resend-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: #262626;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.auth-resend-btn:hover:not(:disabled) {
  background: #333;
  border-color: rgba(255,255,255,0.16);
}
.auth-resend-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-resend-legal {
  margin: 28px 0 0;
  font-size: 11px;
  color: #525252;
  line-height: 1.55;
  text-align: center;
}
.auth-resend-legal span { color: #737373; text-decoration: underline; cursor: default; }
.verify-code-input {
  font-size: 1.35rem !important;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 14px 12px !important;
}
.auth-verify-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
}

/* Auth — legacy / admin */
.auth-pro {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 12%, transparent 28%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240,185,11,0.12), transparent 55%),
    var(--bg);
  padding: max(28px, env(safe-area-inset-top)) 20px 28px;
}
.auth-pro .auth-bg-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240,185,11,0.14) 0%, transparent 68%);
}
.auth-pro .auth-bg-glow-2 {
  top: auto; bottom: -120px; left: -60px; transform: none;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(14,203,129,0.06) 0%, transparent 70%);
}
.auth-shell {
  width: 100%; max-width: 400px; position: relative; z-index: 1;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-logo-ring {
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(240,185,11,0.18), rgba(240,185,11,0.04));
  border: 1px solid rgba(240,185,11,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 24px rgba(240,185,11,0.12);
}
.auth-logo-ring .ico { color: var(--yellow); }
.auth-pro .auth-logo {
  display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px;
}
.auth-pro .auth-logo span { color: #F0B90B; }
.auth-tagline {
  font-size: 12px; color: #848E9C; margin: 0; letter-spacing: 0.02em;
}
.auth-verify-sub {
  font-size: 13px; color: #848E9C; margin: 0; line-height: 1.55;
}
.auth-verify-sub b { color: #EAECEF; font-weight: 600; }
.verify-code-input {
  font-size: 1.5rem !important; font-weight: 700; letter-spacing: 0.35em;
  text-align: center; padding: 14px 12px !important;
}
.auth-verify-actions {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 18px 16px;
}
.auth-link-btn {
  background: none; border: none; color: #F0B90B; font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 6px 8px;
}
.auth-link-btn.muted { color: #848E9C; font-weight: 500; }
.auth-link-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.auth-pro .auth-card {
  max-width: none; padding: 0;
  background: linear-gradient(165deg, rgba(28,28,28,0.98) 0%, rgba(16,16,16,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.auth-chips {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 16px 18px 0;
}
.auth-chips span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: #9CA3AF;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.auth-chips .ico { opacity: 0.85; }
.auth-pro .auth-tabs {
  display: flex; gap: 0; margin: 18px 18px 0;
  padding: 4px; border-radius: 12px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.06);
}
.auth-pro .auth-tab {
  flex: 1; padding: 11px 8px; border: none; border-radius: 9px;
  background: transparent; color: #848E9C; font-size: 12px; font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.auth-pro .auth-tab.on {
  background: linear-gradient(135deg, #F0D060, #F0B90B);
  color: #181A20; box-shadow: 0 4px 14px rgba(240,185,11,0.25);
}
.auth-form { padding: 20px 18px 8px; }
.auth-pro .auth-field { margin-bottom: 16px; }
.auth-pro .auth-field label {
  font-size: 11px; font-weight: 600; color: #9CA3AF;
  margin-bottom: 8px; letter-spacing: 0.03em;
}
.auth-pro .auth-field input {
  padding: 14px 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-pro .auth-field input:focus {
  border-color: rgba(240,185,11,0.5);
  box-shadow: 0 0 0 3px rgba(240,185,11,0.1);
}
.auth-pro .auth-field input::placeholder { color: #5E6673; }
.auth-submit {
  width: 100%; min-height: 50px; margin-top: 6px;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 18px 18px; margin: 0;
  font-size: 10px; color: #6B7280; letter-spacing: 0.04em;
}
.auth-foot .ico { color: #848E9C; opacity: 0.8; }

/* Shell */
.app-shell { display: flex; flex-direction: column; height: 100dvh; max-width: 430px; margin: 0 auto; background: var(--bg); overflow: hidden; padding-top: env(safe-area-inset-top); transform: translateZ(0); }
.pull-refresh-indicator {
  position: absolute;
  top: calc(48px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  height: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, -100%, 0);
  will-change: height, opacity, transform;
}
.pull-refresh-indicator.refreshing,
.pull-refresh-indicator.is-armed { opacity: 1; transform: translate3d(0, 0, 0); }
.pull-refresh-indicator .refresh-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, background 0.22s ease;
}
.pull-refresh-indicator.is-armed .refresh-box,
.pull-refresh-indicator.refreshing .refresh-box {
  transform: translate3d(0, 0, 0) scale(1);
  border-color: rgba(240, 185, 11, 0.35);
  background: rgba(240, 185, 11, 0.1);
}
.pull-refresh-indicator .refresh-icon {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.7);
  border-top-color: transparent;
  border-radius: 50%;
  animation: refresh-spin 0.85s linear infinite;
  animation-play-state: paused;
  margin: 0;
}
.pull-refresh-indicator.refreshing .refresh-icon {
  animation-play-state: running;
}
.pull-refresh-indicator .refresh-text {
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 600;
}
@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}
.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 4px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, var(--bg) 0%, #131720 50%, var(--surface) 100%);
}
#screen {
  min-height: 100%;
}
#screen:has(.bots-arena-pro) {
  height: 100%;
  display: flex;
  flex-direction: column;
}
#screen:has(.bots-arena-pro) > .bots-arena-pro {
  flex: 1 1 auto;
  min-height: 0;
}
#screen.screen-enter {
  animation: appScreenIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#screen.screen-enter-forward {
  animation-name: appScreenInForward;
}
#screen.screen-enter-back {
  animation-name: appScreenInBack;
}
#screen.screen-enter-tab {
  animation-name: appScreenInTab;
}
@keyframes appScreenIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes appScreenInForward {
  from { opacity: 0; transform: translate3d(14%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes appScreenInBack {
  from { opacity: 0; transform: translate3d(-12%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes appScreenInTab {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
html[dir="rtl"] #screen.screen-enter-forward { animation-name: appScreenInBack; }
html[dir="rtl"] #screen.screen-enter-back { animation-name: appScreenInForward; }
@media (prefers-reduced-motion: reduce) {
  #screen.screen-enter,
  #screen.screen-enter-forward,
  #screen.screen-enter-back,
  #screen.screen-enter-tab { animation: none; }
  .bots-arena-pro .arena-theater-zone[class*="arena-bot-"],
  .robot-wrap.is-animating .robot-stage,
  .robot-wrap.is-animating .robot-stage-dual { animation: none !important; }
}

/* سلاسة عامة — أزرار وتفاعلات */
button,
[role="button"],
.action-item,
.nav-item,
.car-btn,
.arena-open-btn,
.coin-pick,
.profile-menu-item,
.lang-btn,
.promo-banner,
.arena-dot,
.upgrade-strip {
  -webkit-tap-highlight-color: transparent;
}
button:not(:disabled),
[role="button"]:not(:disabled),
.action-item,
.nav-item,
.car-btn,
.arena-open-btn:not(:disabled),
.coin-pick,
.profile-menu-item,
.lang-btn,
.btn-sm-gold,
.btn-outline,
.promo-go {
  transition:
    transform var(--motion-fast) var(--ease-light),
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    color var(--motion-fast) ease;
}
.action-item:active { transform: scale(0.98); }
.btn-gold:active { transform: scale(0.99); }
.nav-item:active { transform: scale(0.98); }
.app-content.plans-mode { padding-bottom: calc(var(--safe-b) + 8px); }
body.pull-refresh-active .pro-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
#pullRefreshSpacer {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
}
.bottom-nav.is-hidden { display: none; }
.screen-pad { padding: 0 14px 18px; }

/* Header */
.pro-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px 6px;
  position: sticky; top: 0; z-index: 999;
  background: rgba(17, 19, 24, 0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pro-header h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .15px;
  white-space: nowrap;
  max-width: calc(100% - 150px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdr-mascot { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; }
.robot-mini { width: 32px; height: 32px; overflow: hidden; }
.hdr-actions { display: flex; align-items: center; gap: 10px; color: var(--text); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.lang-btn {
  min-width: 26px;
  height: 22px;
  padding: 0 5px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}
.lang-btn.on {
  background: rgba(240,185,11,0.22);
  color: var(--gold);
}
.hdr-btn { background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; position: relative; display: flex; }
.hdr-btn.support { width: 36px; height: 36px; align-items: center; justify-content: center; }
.hdr-profile {
  width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.hdr-profile:active { transform: scale(0.94); background: rgba(240,185,11,0.12); border-color: rgba(240,185,11,0.45); }
.hdr-profile .ico { opacity: 0.9; }
.hdr-btn.notify .dot { position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: var(--red); border-radius: 50%; font-size: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-style: normal; }

/* Cash Card — Binance style (Home & Assets) */
.cash-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(145deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 13px;
  margin-bottom: 11px;
  min-height: 84px;
  overflow: hidden;
  position: relative;
}
.cash-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 60%, rgba(240,185,11,.07), transparent 55%);
  pointer-events: none;
}
.cash-info { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.cash-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cash-amount { display: flex; align-items: center; gap: 9px; }
.cash-balance-block { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.cash-amount strong { font-size: 1.55rem; font-weight: 700; letter-spacing: -.5px; }
.cash-unit { font-size: 14px; color: var(--muted); }
.cash-usd {
  display: block; margin: 0; padding-inline-start: 35px;
  font-size: 12px; color: #848E9C; font-weight: 500;
  direction: ltr; text-align: left; letter-spacing: 0.02em; line-height: 1.15;
}
.wd-balance-block { align-items: center; }
.wd-balance-block .cash-usd { padding-inline-start: 0; text-align: center; }
.cash-add-btn {
  position: relative; z-index: 1; flex-shrink: 0; align-self: center;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1.5px solid rgba(240,185,11,0.55);
  background: rgba(240,185,11,0.1); color: var(--yellow);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.cash-add-plus {
  font-size: 24px; font-weight: 300; line-height: 1; margin-top: -1px;
}
.cash-add-btn:hover { background: rgba(240,185,11,0.18); border-color: var(--yellow); }
.cash-add-btn:active { transform: scale(0.94); }

.coin-img { border-radius: 16px; display: block; flex-shrink: 0; object-fit: contain; background: transparent; }
.cash-card .coin-img { width: 32px !important; height: 32px !important; }
.asset-left .coin-img { width: 34px !important; height: 34px !important; }
.chain-img { border-radius: 50%; display: block; flex-shrink: 0; object-fit: cover; }

/* Action Row */
.action-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.action-row:has(:nth-child(5)) { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.action-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 3px;
}
.action-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: border-color .2s, background .2s, transform .15s;
}
.action-item:active .action-icon { border-color: rgba(240,185,11,0.35); background: rgba(240,185,11,.06); transform: scale(0.95); }
.action-item span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }

/* Promo */
.promo-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; cursor: pointer;
}
.promo-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(0,136,204,.15); color: #0088cc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.promo-banner p { flex: 1; font-size: 10px; color: var(--muted); line-height: 1.4; }
.promo-go { width: 30px; height: 30px; border-radius: 6px; border: none; background: #FCD535; color: #181A20; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.1s; }
.promo-go:active { transform: scale(0.94); }

/* Buttons — Binance pro style */
.btn-gold {
  background: #FCD535;
  color: #181A20; border: none; padding: 12px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, opacity 0.2s ease;
}
.market-row, .asset-row, .hdr-btn, .signin-card-btn, .btn-telegram {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, border-color 0.22s ease, opacity 0.2s ease;
}
.market-row:active, .asset-row:active {
  transform: scale(0.99);
}
.btn-gold:hover { background: #F0B90B; }
.btn-gold:active { transform: scale(0.98); }
.btn-gold.full { width: 100%; margin-bottom: 12px; min-height: 44px; }
.btn-gold.disabled, .btn-gold:disabled { background: var(--card2); color: var(--muted); cursor: default; transform: none; }
.btn-sm-gold {
  padding: 8px 16px; border-radius: 6px; border: none;
  background: #FCD535; color: #181A20; font-weight: 600; font-size: 12px;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.btn-sm-gold:active { transform: scale(0.97); background: #F0B90B; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border); color: var(--text);
  padding: 14px 20px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: inherit; width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:active { background: rgba(255,255,255,0.04); border-color: var(--muted); }
.btn-telegram { width: 100%; padding: 10px; border: none; border-radius: 8px; background: #0088cc; color: #fff; font-weight: 600; font-size: 12px; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.1s; }
.btn-telegram:active { transform: scale(0.98); }

/* Section */
.section-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.section-hdr button { background: none; border: none; color: var(--yellow); font-size: 13px; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 4px; }
.stats-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; }
.stats-strip div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; }
.stats-strip small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.stats-strip strong { font-size: 16px; }
.empty-state { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 14px; background: var(--card); border-radius: 12px; border: 1px dashed var(--border); }
.wd-blocked { background: transparent; border: none; line-height: 1.55; max-width: 320px; margin: 0 auto; }

/* Boot splash — 3 نقاط فقط */
.boot-splash {
  min-height: 100dvh;
  background: #000;
  background-image: none;
}
.boot-splash .loading-dots {
  gap: 11px;
}
.boot-splash .loading-dots span {
  width: 8px;
  height: 8px;
}

/* مؤشر التحميل — 3 نقاط (موجة) */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.loading-state--page {
  min-height: 38vh;
  background: transparent;
  border: none;
}
.loading-dots {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
}
.loading-dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8FA3B8;
  opacity: 0.4;
  animation: loadingDotWave 1.2s ease-in-out infinite;
  will-change: transform, opacity;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loadingDotWave {
  0%, 100% {
    transform: translateY(0) scale(0.82);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-9px) scale(1);
    opacity: 0.92;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-dots span { animation: none !important; opacity: 0.85; }
}

/* Plan Cards — Premium bbM style */
.plans-stack, .home-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
  overflow: visible;
}

/* Shared top glow — main tab pages */
.bots-plans-page,
.assets-page,
.profile-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.025) 10%, transparent 26%),
    var(--bg);
  min-height: 100%;
}

/* ─── Home screen — premium ambient background ─── */
.home-screen {
  position: relative;
  min-height: 100%;
  isolation: isolate;
  background: var(--bg);
}

.home-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(240,185,11,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 18%, rgba(201,148,26,0.1) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 8% 72%, rgba(14,203,129,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 75% 88%, rgba(240,185,11,0.05) 0%, transparent 50%);
}

.home-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.85;
  animation: home-orb-float 14s ease-in-out infinite;
}
.home-bg-orb--gold {
  width: 220px; height: 220px;
  top: -70px; right: -40px;
  background: radial-gradient(circle, rgba(240,185,11,0.35) 0%, rgba(240,185,11,0.08) 45%, transparent 70%);
}
.home-bg-orb--amber {
  width: 160px; height: 160px;
  top: 38%; left: -50px;
  background: radial-gradient(circle, rgba(252,213,53,0.14) 0%, transparent 68%);
  animation-delay: -5s;
}
.home-bg-orb--teal {
  width: 190px; height: 190px;
  bottom: 12%; right: -30px;
  background: radial-gradient(circle, rgba(14,203,129,0.16) 0%, rgba(14,203,129,0.04) 50%, transparent 72%);
  animation-delay: -9s;
}

.home-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}

@keyframes home-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-8px, 12px) scale(1.04); }
  66% { transform: translate(6px, -8px) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .home-bg-orb { animation: none; }
}

.home-screen > .pro-header {
  position: relative;
  z-index: 2;
  background: rgba(8,10,18,0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240,185,11,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.home-page {
  position: relative;
  z-index: 1;
  min-height: calc(100% - 56px);
  padding-top: 4px;
}

.home-page .cash-card {
  background: linear-gradient(145deg, rgba(28,28,32,0.92) 0%, rgba(16,16,20,0.88) 100%);
  border-color: rgba(240,185,11,0.14);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.06) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.home-page .cash-card::after {
  background: radial-gradient(circle at 88% 55%, rgba(240,185,11,0.14), transparent 58%);
}

.home-page .action-icon {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-page .activity-ticker {
  background: rgba(240,185,11,0.06);
  border-color: rgba(240,185,11,0.16);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
}

.home-page .promo-banner {
  background: rgba(26,26,32,0.75);
  border-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
}

.home-page .section-hdr span {
  color: rgba(234,236,239,0.95);
  letter-spacing: 0.01em;
}

.home-page .empty-state {
  background: rgba(26,26,32,0.65);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.home-page .market-list {
  background: rgba(20,20,26,0.72);
  border-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.bots-plans-page { padding-top: 4px; position: relative; z-index: 1; }
.assets-page { padding-top: 14px; }

.bots-screen {
  position: relative;
  min-height: 100%;
  isolation: isolate;
}
.bots-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bots-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(240,185,11,0.14) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 8% 60%, rgba(159,122,234,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 92% 75%, rgba(14,203,129,0.07) 0%, transparent 52%);
}
.bots-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.8;
}
.bots-bg-orb--gold {
  width: 200px; height: 200px;
  top: -60px; right: -30px;
  background: radial-gradient(circle, rgba(240,185,11,0.28) 0%, transparent 70%);
}
.bots-bg-orb--violet {
  width: 170px; height: 170px;
  bottom: 18%; left: -40px;
  background: radial-gradient(circle, rgba(159,122,234,0.18) 0%, transparent 68%);
}
/* خطوط الشبكة أُزيلت — خلفية ناعمة فخمة بدلاً منها */
.bots-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(ellipse 60% 40% at 80% 12%, rgba(240,185,11,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(124,92,196,0.08) 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.bots-screen > .pro-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240,185,11,0.08);
}

.plans-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 12px;
  background: rgba(20,20,26,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.plans-balance-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.plans-balance-label .ico { color: var(--yellow); opacity: 0.9; }
.plans-balance-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.plans-balance-val strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.plans-balance-val .plus-btn { margin-inline-start: 4px; }

.plan-pro {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  margin-top: 0;
  background: linear-gradient(160deg, #1c1c1e 0%, #121214 50%, #0e0e10 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  isolation: isolate;
}
.plan-pro:active { transform: scale(0.985); }
.plan-pro.is-featured {
  border-color: rgba(240,185,11,0.35);
  box-shadow: 0 12px 48px rgba(240,185,11,0.12), inset 0 1px 0 rgba(240,185,11,0.1);
}
.plan-pro.is-active { border-color: rgba(14,203,129,0.35); }
.plan-pro.is-locked .plan-pro-content { opacity: 0.82; }
.plan-pro.is-locked .robot-img.plan { filter: grayscale(0.35) brightness(0.9) drop-shadow(0 6px 12px rgba(0,0,0,0.35)); }

.plan-featured-badge,
.plan-active-badge {
  position: absolute;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  pointer-events: none;
}
.plan-featured-badge {
  top: 6px;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  transform: none;
  padding: 5px 12px;
  white-space: nowrap;
  z-index: 15;
  background: linear-gradient(135deg, rgba(240,185,11,0.32), rgba(240,185,11,0.14));
  border: 1px solid rgba(240,185,11,0.45);
  color: #FFE08A;
  box-shadow: 0 4px 18px rgba(240,185,11,0.18);
}
.plan-featured-badge .ico { color: #F0B90B; }
.plan-active-badge {
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(14,203,129,0.16);
  border: 1px solid rgba(14,203,129,0.4);
  color: var(--green);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.plan-pro-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.plan-pro-watermark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8%;
  width: 58%;
  height: 88%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at 40% 50%, color-mix(in srgb, var(--glow, #F0B90B) 16%, transparent) 0%, transparent 68%);
  opacity: 1;
  filter: none;
}
html[dir="rtl"] .plan-pro-watermark::before {
  left: auto;
  right: -8%;
}
.plan-pro-watermark::after {
  display: none;
}

.plan-pro-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.plan-pro.tier-1 { --glow: #F0ABFC; }
.plan-pro.tier-2 { --glow: #63B3ED; }
.plan-pro.tier-3 { --glow: #D69E2E; }
.plan-pro.tier-4 { --glow: #9F7AEA; }
.plan-pro.tier-5 { --glow: #F56565; }
.plan-pro.tier-6 { --glow: #FCD535; }

.plan-pro-body {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 2px;
  align-items: stretch;
  position: relative;
  z-index: 1;
  min-height: 168px;
  overflow: visible;
  border-radius: 14px;
}

.plan-pro-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 5px 10px 3px;
  position: relative;
  z-index: 8;
  overflow: visible;
}

.plan-pro-robot {
  position: relative;
  flex: 1 1 auto;
  width: 100px;
  min-height: 116px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: -44px;
  pointer-events: none;
  z-index: 9;
}
.plan-pro-robot .robot-tap {
  pointer-events: auto;
}

.robot-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: visible;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.robot-pedestal {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 72%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent, #14B8A6) 35%, transparent) 0%, transparent 72%);
  filter: blur(2px);
  z-index: 0;
}
.robot-glow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 90%;
  height: 55%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--accent, #14B8A6) 18%, transparent) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.robot-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  line-height: 0;
}

.robot-wrap .robot-stage .robot-img {
  position: relative;
  z-index: 2;
}

.robot-tint {
  position: absolute;
  left: 22%;
  right: 22%;
  top: 0;
  bottom: 0;
  z-index: 3;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--accent, #14B8A6) 22%, transparent) 38%,
    color-mix(in srgb, var(--accent, #14B8A6) 10%, transparent) 68%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}

.robot-acc {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  display: none;
  background: none;
  box-shadow: none;
  line-height: 0;
}
.robot-acc svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.robot-wrap[data-tier="4"] .acc-drone,
.robot-wrap[data-tier="5"] .acc-drone { display: block; }

.acc-drone {
  top: -4%;
  left: 50%;
  width: 52%;
  min-width: 44px;
  max-width: 62px;
  transform: translateX(-50%);
  animation: drone-hover 3.4s ease-in-out infinite;
}

.drone-rotor {
  transform-origin: center;
  animation: drone-spin 0.12s linear infinite;
}

@keyframes drone-hover {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}
@keyframes drone-spin {
  from { transform: scaleX(1); opacity: 0.85; }
  50% { transform: scaleX(0.15); opacity: 0.45; }
  to { transform: scaleX(1); opacity: 0.85; }
}

.plan-pro-robot .robot-wrap {
  width: 100px;
  min-height: 116px;
}
.plan-pro-robot .robot-img.plan {
  position: relative;
  z-index: 2;
  height: 132px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
  object-position: bottom center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.42));
}
.plan-pro.tier-3 .plan-pro-robot .robot-wrap,
.plan-pro.tier-3 .plan-pro-robot .robot-img.plan {
  max-width: 94px;
  height: 120px;
}
.plan-pro.tier-4 .plan-pro-robot .robot-wrap,
.plan-pro.tier-4 .plan-pro-robot .robot-img.plan {
  max-width: 108px;
  height: 138px;
}

.plan-pro-content {
  padding: 14px 9px 12px 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
html[dir="rtl"] .plan-pro-content {
  padding: 14px 13px 12px 9px;
}

.plan-pro-left { display: none; }

.plan-pro-title {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  line-height: 1.1;
}

.plan-pro-req {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 10.5px;
  color: #E8A040;
  margin-bottom: 10px;
  line-height: 1.4;
  opacity: 0.92;
}
.plan-pro-req .ico { flex-shrink: 0; margin-top: 1px; opacity: 0.85; }

.plan-pro-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: auto;
  padding-bottom: 12px;
}
.plan-pro-metrics .metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 7px 5px;
  text-align: center;
}
.plan-pro-metrics .metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--yellow);
  opacity: 0.85;
}
.plan-pro-metrics .metric-icon .ico { margin: 0 auto; }

.plan-pro-metrics .metric-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-pro-metrics .metric-val {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.plan-pro-footer {
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 10px;
}

.plan-pro-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.plan-pro-price .ico { color: #E8A040; opacity: 0.9; flex-shrink: 0; }
.plan-pro-price strong {
  display: block;
  color: #E8A040;
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

.plan-pro-right { display: none; }

.bear-canvas { width: 100%; height: 280px; }

.robot-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.robot-img.plan {
  height: 132px;
  width: auto;
  max-width: 104px;
}
.robot-img.cash { height: 76px; }
.robot-img.hdr {
  height: 32px;
  width: 32px;
  object-fit: contain;
  object-position: center;
}
.robot-img.signin { height: 82px; }
.robot-img.arena {
  height: min(58vw, 280px);
  width: auto;
  max-width: 92%;
  margin: 0 auto;
}
.robot-img.sm { height: 52px; width: auto; }
.robot-wrap.avatar-profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.robot-wrap.avatar-profile .robot-stage::after { display: none; }
.robot-wrap.avatar-profile .robot-stage {
  width: 50%;
  aspect-ratio: 285 / 480;
  height: auto;
  max-height: 92%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.robot-img.avatar {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center var(--avatar-crop, 13%);
}

.arena-robot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: transparent;
  position: relative;
  z-index: 2;
}

.signin-robot-wrap {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hdr-mascot {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.plan-pro-btn {
  flex-shrink: 0;
  width: 48px;
  height: 40px;
  pointer-events: auto;
  padding: 0;
  border: none;
  border-radius: 11px;
  background: linear-gradient(180deg, #E8B923 0%, #C9941A 48%, #9A7209 100%);
  color: #1a1000;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(212,160,23,0.38), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.plan-pro-btn .ico { stroke: currentColor; }
.plan-pro-btn:active:not(:disabled) { transform: scale(0.95); }
.plan-pro-btn.locked, .plan-pro-btn:disabled {
  background: linear-gradient(180deg, #3a3220, #2a2418);
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
}
.plan-pro-btn.active {
  width: auto;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(14,203,129,0.12);
  color: var(--green);
  border: 1px solid rgba(14,203,129,0.35);
  box-shadow: none;
}

/* Bots page */
.avail-bar { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.avail-bar > span { font-size: 11px; color: var(--muted); }
.avail-val { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.avail-val strong { font-size: 1.1rem; color: var(--yellow); }
.plus-btn { margin-right: auto; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--yellow); color: #000; font-weight: 700; cursor: pointer; font-size: 16px; line-height: 1; }
.seg-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.seg-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.seg-tabs button .ico { opacity: 0.75; }
.seg-tabs button.on {
  background: rgba(240,185,11,0.1);
  color: var(--yellow);
  border-color: rgba(240,185,11,0.35);
  box-shadow: 0 4px 16px rgba(240,185,11,0.08);
}
.seg-tabs button.on .ico { opacity: 1; color: var(--yellow); }

/* Arena — MDAW style */
.bots-arena-screen { min-height: 100%; }
.mdaw-arena { padding-top: 6px; position: relative; z-index: 1; }
.bots-arena-pro .screen-pad { position: relative; z-index: 1; }

.mdaw-upgrade {
  background: rgba(20,20,26,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
}
.mdaw-metrics > div {
  background: rgba(26,26,32,0.75);
  border-color: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}
.mdaw-ticker { margin-bottom: 12px; }
.mdaw-ticker .activity-ticker { margin: 0; }

/* ─── MDAW stats bar + announce (outside stage) ─── */
.bots-arena-pro {
  --mdaw-orange: #FF8C21;
  --mdaw-orange-dim: #E8750A;
  --mdaw-stat-bg: rgba(28, 28, 34, 0.52);
}

.arena-stats-bar.mdaw-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 4px;
  position: relative;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(20, 20, 26, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  box-shadow: none;
}
.arena-stats-bar.mdaw-stats-bar::after {
  display: none;
}
.arena-stat-card {
  padding: 0 6px;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: none;
  align-items: center;
  text-align: center;
}
.arena-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.2;
  font-weight: 500;
}
.arena-stat-card strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.arena-stat-val-income,
.arena-stat-val-days {
  color: #ffffff;
  text-shadow: none;
}

.arena-announce-bar.mdaw-announce {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(16, 16, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-height: 34px;
}
.arena-announce-icon {
  flex-shrink: 0;
  color: var(--mdaw-orange);
  display: flex;
  align-items: center;
  opacity: 0.9;
}
.arena-announce-scroll {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.arena-announce-scroll .activity-ticker {
  background: transparent;
  border: none;
  padding: 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.arena-announce-scroll .activity-ticker-item {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}
.arena-announce-scroll .activity-ticker-item b { color: var(--mdaw-orange); }
.arena-announce-scroll .activity-ticker-item strong { color: rgba(255, 255, 255, 0.88); }

.mdaw-arena-compact { padding-top: 2px; }
.mdaw-arena-compact .upgrade-strip { margin-bottom: 4px; }

.bots-arena-pro .arena-announce-top {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: rgba(10, 10, 14, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bots-arena-pro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.bots-arena-pro > .screen-pad.arena-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 8px;
}
.bots-arena-pro .arena-panel-pro {
  --arena-panel-pad-x: 10px;
  padding: 0 var(--arena-panel-pad-x) 10px;
  margin-bottom: 28px;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}
.bots-arena-pro .arena-panel-pro .arena-theater-zone.arena-panel-theater {
  margin-inline: 0;
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 15px 15px 0 0;
}
.bots-arena-pro .arena-panel-pro .arena-theater-zone > .theater-backdrop {
  left: 0;
  right: 0;
  width: 100%;
}
.arena-theater-zone.arena-panel-theater {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}
.arena-panel-theater {
  position: relative;
  overflow: hidden;
}
.arena-theater-zone > .theater-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.arena-theater-zone > .arena-stats-bar,
.arena-theater-zone > .arena-stage-inner {
  position: relative;
  z-index: 1;
}
.arena-panel-pro > .arena-welcome-block,
.arena-panel-pro > .arena-action-zone {
  position: relative;
  z-index: 1;
}
.arena-theater-zone .arena-stats-bar.mdaw-stats-bar {
  background: rgba(14, 14, 20, 0.22);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: -8px;
  margin-bottom: 2px;
  border: none;
  box-shadow: none;
}
.arena-theater-zone .arena-stage-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}
.bots-arena-pro .arena-panel-pro .arena-stats-bar.mdaw-stats-bar {
  margin-top: 10px;
  margin-bottom: 0;
  margin-inline: 8px;
  padding: 8px 10px;
  flex-shrink: 0;
  background: rgba(14, 14, 20, 0.28);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 8;
}
.arena-theater-zone .arena-stage-inner,
.arena-theater-zone .mdaw-stage {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  height: auto;
}
.bots-arena-pro .arena-theater-zone .mdaw-stage,
.bots-arena-pro .arena-theater-zone .arena-stage-inner {
  flex: 1 0 auto;
  min-height: 178px;
}
.bots-arena-pro .arena-panel-pro .arena-welcome-block {
  flex-shrink: 0;
  margin-bottom: 4px;
  margin-top: 0;
  padding-top: 6px;
}
.bots-arena-pro .arena-panel-pro .arena-action-zone {
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 0;
}
.bots-arena-pro .arena-panel-pro .arena-action-zone .arena-status {
  position: relative;
  top: -8px;
  margin-top: 0;
}
.bots-arena-pro .arena-open-btn.arena-purchase-btn {
  position: relative;
  top: -10px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--robo-buy-bg-1) 0%, var(--robo-buy-bg-2) 100%);
  color: var(--robo-buy-text);
  border: none;
  box-shadow: 0 3px 12px var(--robo-buy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.bots-arena-pro .arena-open-btn.arena-purchase-btn:hover {
  background: linear-gradient(180deg, var(--robo-buy-hover-1) 0%, var(--robo-buy-hover-2) 100%);
}
.bots-arena-pro .arena-open-btn.arena-purchase-btn:active {
  background: linear-gradient(180deg, var(--robo-buy-active-1) 0%, var(--robo-buy-active-2) 100%);
  transform: scale(0.98);
}
.bots-arena-pro .arena-purchase-btn span,
.bots-arena-pro .arena-purchase-btn .arena-btn-code,
.bots-arena-pro .arena-purchase-btn .arena-btn-amount {
  color: var(--robo-buy-text);
}

.mdaw-stage {
  height: auto;
  min-height: 0;
  background: #050508;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 20px 56px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: visible;
  margin-bottom: 0;
}
.bots-arena-pro .arena-theater-zone .mdaw-stage {
  height: auto;
  min-height: 178px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ─── Pro stage (clean, no curtains) ─── */
.stage-pro-bg {
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, rgba(124,92,196,0.16) 0%, transparent 62%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(56,120,189,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 95% 75% at 50% 100%, #14121f 0%, #0a0912 55%, #050407 100%);
}
.stage-pro-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 50% 70%, rgba(167,139,250,0.16) 0%, transparent 68%),
    radial-gradient(ellipse 40% 30% at 30% 30%, rgba(56,189,248,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 50% 16%, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.theater-stage { perspective: none; }

.stage-pro-vignette {
  background:
    radial-gradient(ellipse 85% 60% at 50% 80%, rgba(232,121,249,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(0,0,0,0.35) 100%);
}

.theater-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07080c;
  overflow: hidden;
}

/* ستارة مسرح واقعية بلمسة لون الروبوت الخفيفة — خلف الروبوت تماماً */
.stage-curtain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  /* طيّات قماشية: لون البوت بنسبة خفيفة فقط على قماش داكن */
  background:
    /* طيّات رئيسية عريضة ناعمة */
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--robo, #F472B6) 9%, #0a070d) 0px,
      color-mix(in srgb, var(--robo, #F472B6) 26%, #150a16) 19px,
      color-mix(in srgb, var(--robo, #F472B6) 13%, #0c0810) 38px
    ),
    /* طيّات دقيقة لإحساس نسيج القماش */
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.26) 0px,
      rgba(255,255,255,0.035) 9px,
      rgba(0,0,0,0.26) 19px
    );
  background-blend-mode: normal, soft-light;
  /* تعتيم عمودي فقط — الستارة تمتد كاملة لليسار واليمين */
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, #000 11%, #000 89%, rgba(0,0,0,0.48) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, #000 11%, #000 89%, rgba(0,0,0,0.48) 100%);
  filter: blur(0.5px);
}
.bots-arena-pro .arena-theater-zone .stage-curtain {
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.bots-arena-pro .arena-theater-zone .stage-curtain::before {
  background: linear-gradient(180deg, transparent 0%, transparent 72%, rgba(0,0,0,0.28) 100%);
}
.bots-arena-pro .arena-theater-zone .theater-vignette,
.bots-arena-pro .arena-theater-zone .stage-pro-vignette {
  background:
    radial-gradient(ellipse 85% 60% at 50% 80%, rgba(232,121,249,0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, transparent 18%, transparent 78%, rgba(0,0,0,0.32) 100%);
}
/* لمعة قماش علوية + ظلال عمق أعلى وأسفل */
.stage-curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 22%, transparent 64%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse 72% 50% at 50% 20%, rgba(255,255,255,0.09) 0%, transparent 60%);
}

.theater-pleats {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  opacity: 0.95;
  background: repeating-linear-gradient(
    90deg,
    #0c0c10 0px,
    #1e1e26 5px,
    #121218 10px,
    #282830 15px,
    #101014 20px
  );
  box-shadow: inset -20px 0 40px rgba(0,0,0,0.5);
}
.theater-pleats--l {
  left: 0;
  mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}
.theater-pleats--r {
  right: 0;
  transform: scaleX(-1);
  mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}

.theater-center-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 72%, rgba(240,185,11,0.14) 0%, transparent 62%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.3) 0%, transparent 55%);
}

.mdaw-platform {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  width: min(78%, 300px);
  height: 100px;
  z-index: 2;
  pointer-events: none;
}
.mdaw-platform .arena-platform-core {
  width: 46%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(255, 140, 33, 0.45) 0%, rgba(255, 100, 20, 0.12) 50%, transparent 75%);
  filter: blur(0.5px);
}
.mdaw-platform .arena-ring {
  border-color: rgba(240, 185, 11, 0.42);
  box-shadow: 0 0 24px rgba(240, 185, 11, 0.18), 0 0 48px rgba(201, 148, 26, 0.1);
}
.mdaw-platform .arena-ring--1 {
  width: 50%;
  height: 24px;
  border-width: 2px;
  opacity: 1;
  background: radial-gradient(ellipse, rgba(252, 213, 53, 0.14) 0%, transparent 70%);
}
.mdaw-platform .arena-platform-label {
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(240, 185, 11, 0.4);
  font-size: 12px;
}
.arena-ring-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(252, 213, 53, 0.8);
  white-space: nowrap;
  pointer-events: none;
}
.arena-ring-tag--sub { font-size: 8px; opacity: 0.65; }

.theater-spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 80%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 50% 100%, rgba(255,255,255,0.07) 0%, transparent 70%);
}

.bots-arena-pro .mdaw-stage {
  /* ارتفاع القدم عن قاع المسرح — محاذاة دائرة وسط البلاط (ليس شارة IBM) */
  --arena-stand-bottom: 19.5%;
  perspective: 920px;
  perspective-origin: 50% 90%;
}

.mdaw-stage .arena-robot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateZ(4px) scale(0.955);
  min-height: 0;
  align-items: flex-end;
  justify-content: center;
  bottom: var(--arena-stand-bottom, 19.5%);
  width: 88%;
  z-index: 6;
  pointer-events: auto;
  transform-style: preserve-3d;
  transition: transform var(--motion-med) var(--ease-smooth), opacity var(--motion-med) ease;
}
.bots-arena-pro .arena-theater-zone {
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  touch-action: none;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
}
.bots-arena-pro .arena-stage,
.bots-arena-pro .mdaw-stage,
.bots-arena-pro .arena-robot {
  touch-action: none !important;
}
.bots-arena-pro .arena-theater-zone.is-swiping {
  cursor: grabbing;
  transition: none !important;
  touch-action: none;
}
.bots-arena-pro .arena-theater-zone.arena-bot-exit-to-left {
  opacity: 0;
  transform: translate3d(-22%, 0, 0) scale(0.985);
}
.bots-arena-pro .arena-theater-zone.arena-bot-exit-to-right {
  opacity: 0;
  transform: translate3d(22%, 0, 0) scale(0.985);
}
@keyframes arenaBotInFromRight {
  from { opacity: 0; transform: translate3d(18%, 0, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes arenaBotInFromLeft {
  from { opacity: 0; transform: translate3d(-18%, 0, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
.bots-arena-pro .arena-theater-zone.arena-bot-enter-from-right {
  animation: arenaBotInFromRight 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bots-arena-pro .arena-theater-zone.arena-bot-enter-from-left {
  animation: arenaBotInFromLeft 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bots-arena-pro .robot-wrap.robot-tap {
  transition: transform var(--motion-med) var(--ease-light);
}
.mdaw-stage .arena-robot .robot-wrap {
  width: 100%;
  justify-content: center;
  align-items: flex-end;
  transform: none;
  transform-origin: center bottom;
  transform-style: preserve-3d;
}
.bots-arena-pro .mdaw-stage .arena-robot .robot-wrap .robot-stage,
.bots-arena-pro .mdaw-stage .arena-robot .robot-wrap .robot-stage-dual {
  transform: rotateX(7deg);
  transform-origin: center bottom;
}
/* ROBO 6 — نفس موضع وحجم بقية الروبوتات */
.bots-arena-pro .mdaw-stage .arena-robot[data-tier="6"] {
  bottom: var(--arena-stand-bottom, 19.5%);
  transform: translateX(-50%) translateZ(4px) scale(0.955);
}
.bots-arena-pro .mdaw-stage .arena-robot[data-tier="6"] .robot-wrap {
  transform: none;
}
.bots-arena-pro .mdaw-stage .arena-robot[data-tier="6"] .robot-stage::after {
  bottom: 0;
  opacity: 0.58;
  width: min(42%, 136px);
}
.mdaw-stage .robot-wrap .robot-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

/* Platform — base PNG + masked accent rings only */
.arena-platform-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(92%, 380px);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
  --arena-accent: #FCD535;
  isolation: isolate;
}
.arena-platform-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  vertical-align: bottom;
  opacity: 1;
  filter: none;
  position: relative;
  z-index: 0;
}
.arena-platform-ring-color {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--arena-accent, #FCD535);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  mix-blend-mode: color;
  opacity: 1;
}
.bots-arena-pro .arena-platform-wrap::before,
.bots-arena-pro .arena-platform-wrap::after,
.bots-arena-pro .arena-platform-img::before,
.bots-arena-pro .arena-platform-img::after {
  display: none !important;
  content: none !important;
}
.arena-platform-glow {
  display: none !important;
}
.arena-platform-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.arena-platform-badge {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  padding: 4px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE9A8 0%, #F0B90B 48%, #C45E00 100%);
  color: #1a0a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
  box-shadow:
    0 4px 16px rgba(255, 120, 20, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}
.arena-platform-ring-label {
  position: absolute;
  right: 10%;
  left: auto;
  bottom: 58%;
  transform: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 235, 180, 0.92);
  text-shadow: 0 0 10px rgba(252, 213, 53, 0.6);
  white-space: nowrap;
}
html[dir="rtl"] .arena-platform-ring-label {
  right: 9%;
  left: auto;
}
.bots-arena-pro .stage-light-beam,
.bots-arena-pro .stage-floor-glow {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}
.bots-arena-pro .theater-stage.stage-react .stage-light-beam,
.bots-arena-pro .theater-stage.stage-react .stage-floor-glow {
  opacity: 1;
  visibility: visible;
  display: block !important;
}
.bots-arena-pro .theater-spotlight { display: none !important; }
.bots-arena-pro .stage-pro-bg {
  background:
    radial-gradient(ellipse 100% 45% at 50% 28%, rgba(124,92,196,0.12) 0%, transparent 62%),
    #0a0910;
}
.bots-arena-pro .stage-pro-glow {
  background:
    radial-gradient(ellipse 40% 30% at 30% 25%, rgba(56,189,248,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 35% 20% at 50% 12%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.bots-arena-pro .stage-pro-vignette {
  background:
    radial-gradient(ellipse 85% 60% at 50% 80%, rgba(232,121,249,0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 16%, transparent 80%, rgba(0,0,0,0.28) 100%);
}
.bots-arena-pro .robot-wrap.arena-idle .robot-pedestal,
.bots-arena-pro .robot-wrap.arena-idle .robot-glow,
.bots-arena-pro .arena-robot .robot-pedestal,
.bots-arena-pro .arena-robot .robot-glow {
  display: none !important;
}
.mdaw-stage .robot-wrap .robot-stage {
  transform-origin: center bottom;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}
.mdaw-stage .robot-img.arena {
  height: min(56vw, 320px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: block;
  margin: 0 auto;
  margin-bottom: 0;
  transform: translateY(var(--arena-foot, 0px));
}
/* انعكاس القدمين على منتصف البلاط — موحّد لكل الروبوتات */
.bots-arena-pro .mdaw-stage .robot-wrap .robot-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(42%, 136px);
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 72%);
  opacity: 0.58;
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 0;
}
.bots-arena-pro .mdaw-stage .robot-img.arena {
  height: min(58vw, 280px);
}
.bots-arena-pro .mdaw-stage .robot-wrap .robot-img.arena {
  -webkit-box-reflect: below 0 linear-gradient(
    to bottom,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.05) 62%,
    transparent 76%
  );
}
.bots-arena-pro .mdaw-speech,
.bots-arena-pro .pro-speech.mdaw-speech,
.bots-arena-pro .arena-speech-right {
  display: block;
  z-index: 14;
  position: absolute;
  top: 9%;
  left: auto;
  right: 4%;
  transform: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FCD535 0%, #F0B90B 100%);
  color: #1a1000;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 34%;
  box-shadow: 0 6px 16px rgba(240,185,11,0.24);
}
.bots-arena-pro .pro-speech.mdaw-speech b { font-weight: 800; }
.bots-arena-pro .mdaw-hunger,
.bots-arena-pro .pro-hunger {
  z-index: 13;
  position: absolute;
}
.bots-arena-pro .robo-battery {
  top: 50% !important;
  bottom: auto !important;
  left: 10px !important;
  right: auto !important;
  transform: translateY(-50%) !important;
}

.bots-arena-pro .mdaw-stage.is-robo6-working .arena-platform-wrap {
  opacity: 0;
  visibility: hidden;
}

/* ROBO 1 — وضع العمل: انتقال سلس + محاذاة + حركة الشاشة واليد */
.bots-arena-pro .robot-stage-dual {
  position: relative;
  width: 100%;
  min-height: min(56vw, 320px);
}
.bots-arena-pro .robot-stage-dual .robot-pose-idle {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin: 0;
  transform: translateX(-50%) translateY(var(--arena-foot, 0px));
  opacity: 1;
  z-index: 2;
  object-position: center bottom;
  transition:
    opacity var(--motion-slow) var(--ease-light),
    transform var(--motion-slow) var(--ease-light);
}
.bots-arena-pro .robot-work-layer {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateX(calc(-50% + var(--robo-work-shift, 18px))) translateY(var(--arena-foot, 0px));
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition:
    opacity var(--motion-slow) var(--ease-light),
    transform var(--motion-slow) var(--ease-light);
}
.bots-arena-pro .robot-work-layer .robot-pose-work {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin: 0;
  transform: translateX(-50%);
  object-position: center bottom;
  -webkit-box-reflect: none;
  box-reflect: none;
}
.bots-arena-pro .robot-wrap.arena-working .robot-stage-dual .robot-pose-idle {
  opacity: 0;
  transform: translateX(-50%) translateY(var(--arena-foot, 0px)) scale(0.98);
  pointer-events: none;
  -webkit-box-reflect: none;
  box-reflect: none;
}
.bots-arena-pro .robot-wrap.arena-working .robot-work-layer {
  opacity: 1;
  z-index: 3;
}

.bots-arena-pro .robot-wrap.robot-tap .robot-stage,
.bots-arena-pro .robot-wrap.robot-tap .robot-stage-dual {
  pointer-events: none;
}
.bots-arena-pro .robot-work-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.bots-arena-pro .robot-work-hand,
.bots-arena-pro .robot-work-screen {
  opacity: 0;
  transition: opacity var(--motion-med) var(--ease-light);
}
.bots-arena-pro .robot-wrap.arena-working .robot-work-hand,
.bots-arena-pro .robot-wrap.arena-working .robot-work-screen {
  opacity: 1;
}
.bots-arena-pro .robot-work-hand {
  position: absolute;
  left: 31%;
  bottom: 34%;
  width: 9%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 220, 0.55) 0%, rgba(255, 120, 180, 0.2) 45%, transparent 72%);
  box-shadow: 0 0 10px rgba(255, 150, 200, 0.35);
  animation: robo1-hand-work 0.9s ease-in-out infinite;
  pointer-events: none;
}
.bots-arena-pro .robot-work-screen {
  position: absolute;
  left: 54%;
  bottom: 48%;
  width: 24%;
  height: 16%;
  border-radius: 5px;
  border: 1px solid rgba(120, 220, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(40, 180, 255, 0.15) 0%, rgba(20, 80, 160, 0.35) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(100, 220, 255, 0.08) 3px, rgba(100, 220, 255, 0.08) 4px);
  box-shadow:
    0 0 14px rgba(80, 200, 255, 0.35),
    inset 0 0 8px rgba(120, 230, 255, 0.25);
  animation: robo1-screen-work 1.6s ease-in-out infinite;
  pointer-events: none;
}
.bots-arena-pro .robot-wrap.arena-working .robot-pose-work {
  animation: robo1-body-work 2.8s ease-in-out infinite;
}

@keyframes robo1-hand-work {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  35% { transform: translate(4px, -6px) scale(1.05); opacity: 0.95; }
  55% { transform: translate(6px, -3px) scale(1.02); opacity: 0.75; }
}
@keyframes robo1-screen-work {
  0%, 100% { opacity: 0.7; filter: brightness(1); transform: scale(1); }
  50% { opacity: 1; filter: brightness(1.25); transform: scale(1.03); }
}
@keyframes robo1-body-work {
  0%, 100% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.38)) brightness(1); }
  50% { filter: drop-shadow(0 10px 20px rgba(100, 200, 255, 0.25)) brightness(1.06); }
}

/* زر التنقل — وسط اليمين (الموضع الأصلي) */
.bots-arena-pro .arena-ui .car-btn.pro-car {
  position: absolute;
  top: 50%;
  bottom: auto;
  right: 6px;
  left: auto;
  transform: translateY(-50%);
}
.bots-arena-pro .arena-ui .car-btn.pro-car:active {
  transform: translateY(-50%) scale(0.92);
}

.bots-arena-pro .mdaw-stage.is-robo1-working .arena-robot[data-tier="1"] .robot-wrap.arena-working .robot-stage-dual,
.bots-arena-pro .mdaw-stage.is-robo2-working .arena-robot[data-tier="2"] .robot-wrap.arena-working .robot-stage-dual {
  transform: rotateX(7deg);
}

.bots-arena-pro .arena-robot[data-tier="2"] .robot-work-fx {
  display: none;
}
.bots-arena-pro .arena-robot[data-tier="2"] .robot-pose-idle,
.bots-arena-pro .arena-robot[data-tier="2"] .robot-pose-work {
  -webkit-box-reflect: none;
  box-reflect: none;
}


.bots-arena-pro .mdaw-stage .arena-robot {
  z-index: 10;
}
.bots-arena-pro .arena-robot .robot-wrap.robot-tap {
  position: relative;
  z-index: 11;
  min-height: min(56vw, 320px);
  width: 100%;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.bots-arena-pro .robot-wrap.robot-tap.needs-charge,
.bots-arena-pro .robot-wrap.robot-tap.needs-start {
  cursor: pointer;
}

.bots-arena-pro .robot-wrap.needs-charge:not(.is-charging) .robot-stage-dual .robot-pose-idle,
.bots-arena-pro .robot-wrap.needs-start:not(.is-charging) .robot-stage-dual .robot-pose-idle {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(240, 185, 11, 0.35));
}

.bots-arena-pro .mdaw-stage.is-robo6-working .arena-robot[data-tier="6"] {
  bottom: var(--arena-stand-bottom, 19.5%);
  width: 88%;
  transform: translateX(-50%) translateZ(4px) scale(0.955);
}
.bots-arena-pro .mdaw-stage.is-robo6-working .arena-robot[data-tier="6"] .robot-wrap.arena-working {
  transform: none;
}
.bots-arena-pro .mdaw-stage.is-robo6-working .arena-robot[data-tier="6"] .robot-wrap.arena-working .robot-stage::after {
  display: none;
}
.bots-arena-pro .mdaw-stage.is-robo6-working .arena-robot[data-tier="6"] .robot-img.arena {
  height: min(56vw, 320px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: translateY(0);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}
@media (max-width: 480px) {
  .bots-arena-pro .mdaw-stage.is-robo6-working .arena-robot[data-tier="6"] {
    bottom: var(--arena-stand-bottom, 18%);
    transform: translateX(-50%) translateZ(4px) scale(0.955);
  }
}

/* Pro stats & upgrade */
.pro-upgrade {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  cursor: pointer;
}
.pro-upgrade .upgrade-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pro-upgrade .upgrade-track {
  flex: 1;
  min-width: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.pro-upgrade .upgrade-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s var(--ease-out-expo), box-shadow 0.45s ease, filter 0.45s ease;
}
.pro-upgrade .upgrade-fill.is-low {
  background: linear-gradient(90deg, #a86a14 0%, #c99020 100%);
  box-shadow: 0 0 4px rgba(200, 130, 30, 0.25);
}
.pro-upgrade .upgrade-fill.is-mid {
  background: linear-gradient(90deg, #c97a18 0%, #e8a020 55%, #f0b830 100%);
  box-shadow: 0 0 7px rgba(232, 160, 32, 0.38);
}
.pro-upgrade .upgrade-fill.is-rich {
  background: linear-gradient(90deg, #d4881c 0%, #f0b020 45%, #ffd060 85%, #ffe8a0 100%);
  box-shadow: 0 0 12px rgba(255, 200, 60, 0.55), 0 0 4px rgba(255, 220, 100, 0.35);
  filter: saturate(1.12);
}
.pro-upgrade .upgrade-tier-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.pro-upgrade .upgrade-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pro-upgrade .upgrade-msg {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  min-width: 0;
}
.pro-upgrade .upgrade-msg--plain .upgrade-msg-muted {
  color: rgba(255, 255, 255, 0.55);
}
.pro-upgrade .upgrade-amt,
.pro-upgrade .upgrade-target {
  color: #e8a830;
  font-weight: 700;
}
.pro-upgrade .upgrade-msg-muted {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}
.pro-upgrade .upgrade-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #e8a830;
  letter-spacing: 0.01em;
  pointer-events: none;
}
.upgrade-open-btn { flex-shrink: 0; pointer-events: auto; }

/* Plans — full screen page */
.plans-full-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
}
.plans-full-screen > .pro-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8,10,18,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240,185,11,0.1);
}
.plans-full-page {
  flex: 1;
  min-height: calc(100dvh - 64px);
  padding-top: 8px;
  padding-bottom: calc(24px + var(--safe-b));
}
.plans-full-intro {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.5;
  padding: 0 2px;
}
.plans-full-stack {
  gap: 20px;
  padding-top: 4px;
}

.pro-upgrade .upgrade-body { flex: 1; min-width: 0; }
.pro-upgrade .upgrade-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,185,11,0.12);
  border: 1px solid rgba(240,185,11,0.22);
  color: var(--yellow);
  flex-shrink: 0;
}

.pro-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pro-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22,22,28,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}
.pro-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240,185,11,0.1);
  border: 1px solid rgba(240,185,11,0.18);
  color: var(--yellow);
  flex-shrink: 0;
}
.pro-stat small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.pro-stat strong { font-size: 16px; color: var(--yellow); letter-spacing: -0.02em; }

.pro-hunger {
  left: 12px;
  bottom: 28%;
  padding: 12px 10px;
  background: rgba(8,8,12,0.78);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.pro-hunger .hunger-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}
.pro-hunger .hunger-gauge { height: 64px; width: 11px; }

.pro-speech {
  right: 12px;
  top: 14%;
  padding: 8px 12px;
  border-radius: 14px;
  max-width: 42%;
  box-shadow: 0 8px 22px rgba(240,185,11,0.2);
}
.pro-speech .speech-tag {
  display: inline-flex;
  margin-bottom: 4px;
  color: #1a1000;
  opacity: 0.7;
}
.pro-speech b { font-weight: 800; }

.arena-top-cards {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  z-index: 10;
}
.arena-top-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(8, 8, 12, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arena-top-card strong {
  font-size: 15px;
  color: var(--yellow);
  line-height: 1.1;
}
.arena-top-label {
  font-size: 10px;
  color: rgba(255,255,255,0.72);
}

.pro-car {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8,8,12,0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.pro-car.r {
  right: 10px;
  border-color: rgba(240,185,11,0.35);
  background: rgba(240,185,11,0.12);
}
.pro-car.r .ico { color: var(--yellow); stroke: var(--yellow); }
.pro-car.l {
  left: 10px;
  border-color: rgba(240,185,11,0.35);
  background: rgba(240,185,11,0.12);
}
.pro-car.l .ico { color: var(--yellow); stroke: var(--yellow); }

.pro-dots { bottom: 14px; }
.pro-panel {
  border-radius: 16px;
  padding: 16px;
}
.pro-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status-pill.active {
  background: rgba(14,203,129,0.12);
  border: 1px solid rgba(14,203,129,0.3);
  color: var(--green);
}
.status-pill.idle {
  background: rgba(240,185,11,0.1);
  border: 1px solid rgba(240,185,11,0.25);
  color: var(--yellow);
}
.pro-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.pro-countdown .ico { color: var(--yellow); opacity: 0.85; }

.arena-platform {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: min(72%, 280px);
  height: 90px;
  z-index: 1;
  pointer-events: none;
}
.arena-platform-core {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 42%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240,185,11,0.35) 0%, rgba(240,185,11,0.08) 45%, transparent 72%);
  filter: blur(1px);
}

.arena-platform-label {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
  text-shadow: 0 2px 8px rgba(240,185,11,0.3), 0 0 12px rgba(240,185,11,0.15);
  z-index: 5;
}
.arena-ring {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(240,185,11,0.2);
  box-shadow: 0 0 20px rgba(240,185,11,0.08);
}
.arena-ring--1 { width: 48%; height: 22px; opacity: 0.9; }
.arena-ring--2 { width: 68%; height: 32px; opacity: 0.55; bottom: 2px; }
.arena-ring--3 { width: 88%; height: 44px; opacity: 0.3; bottom: -2px; }

.mdaw-hunger {
  left: 10px;
  top: auto;
  bottom: 22%;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  min-width: 56px;
  background: transparent;
  border: none;
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
}
.hunger-icon { font-size: 20px; line-height: 1; }
.hunger-label { font-size: 8px; color: var(--muted); text-align: center; line-height: 1.2; }
.hunger-gauge {
  width: 10px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hunger-fill {
  width: 100%;
  background: linear-gradient(180deg, #F0B90B, #C9941A);
  border-radius: 999px;
  transition: height 0.4s ease;
}

.mdaw-speech {
  right: 8px;
  top: 8px;
  left: auto;
  bottom: auto;
  z-index: 16;
  background: linear-gradient(135deg, #F0B90B, #E8A040);
  color: #1a1000;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(240,185,11,0.25);
  max-width: 46%;
}
html[dir="rtl"] .mdaw-speech {
  right: 8px;
  top: 8px;
  left: auto;
  bottom: auto;
}
html[dir="rtl"] .bots-arena-pro .mdaw-speech,
html[dir="rtl"] .bots-arena-pro .arena-speech-right {
  left: auto;
  right: 4%;
  top: 9%;
  transform: none;
}

.car-btn {
  width: 40px;
  height: 40px;
  border-color: rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 25;
  pointer-events: auto;
  touch-action: manipulation;
}
.car-btn:active { transform: translateY(-50%) scale(0.92); }
.car-btn .ico { stroke: #fff; }
.car-btn.l { left: 6px; }
.car-btn.l .ico { transform: scaleX(-1); }
.car-btn.r { right: 6px; z-index: 25; }

.arena-tier-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 32;
  direction: ltr;
  pointer-events: none;
}
.arena-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: transform 0.2s, background 0.2s;
}
.arena-dot.on {
  background: var(--yellow);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(240,185,11,0.5);
}
.arena-dot.owned { background: var(--green); }
.arena-dot.on.owned { background: var(--yellow); }

.mdaw-panel {
  background: rgba(26,26,32,0.85);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.arena-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(240,185,11,0.22);
}
.bots-arena-pro .arena-open-btn {
  background: #FCD535;
  color: #181A20;
  border: none;
  box-shadow: 0 6px 20px rgba(240,185,11,0.28);
}
.bots-arena-pro .arena-open-btn:hover { background: #F0B90B; }
.bots-arena-pro .arena-open-btn:disabled {
  background: var(--card2);
  color: var(--muted);
  box-shadow: none;
}
.bots-arena-pro .arena-locked-btn {
  opacity: 1;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
}
.bots-arena-pro .arena-locked-btn span {
  text-align: center;
}
.bots-arena-pro .arena-purchase-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  white-space: normal;
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #181a20;
}
.bots-arena-pro .arena-purchase-btn span {
  color: #181a20;
}
.bots-arena-pro .arena-purchase-btn .arena-btn-code {
  font-weight: 800;
  font-size: 1.05em;
  letter-spacing: 0.02em;
  color: #181a20;
}
.bots-arena-pro .arena-purchase-btn .arena-btn-amount {
  font-weight: 800;
  font-size: 1.12em;
  color: #181a20;
  letter-spacing: 0.01em;
}
.arena-open-btn .ico { flex-shrink: 0; }
.arena-open-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
}

/* Arena */
.upgrade-strip { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.upgrade-strip.pro-upgrade {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.upgrade-text { font-size: 10px; color: var(--muted); white-space: nowrap; }
.upgrade-track { flex: 1; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.upgrade-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--yellow)); border-radius: 999px; }
.arena-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.arena-metrics > div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.arena-metrics small { font-size: 10px; color: var(--muted); }
.arena-metrics strong { font-size: 13px; color: var(--yellow); display: block; margin-top: 2px; }

.arena-stage {
  position: relative; height: 300px; border-radius: 16px; overflow: hidden;
  touch-action: pan-y;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
  box-shadow: inset 0 0 28px rgba(240,185,11,0.08);
}
.arena-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(240,185,11,0.16) 0%,
    rgba(240,185,11,0.06) 22%,
    transparent 52%
  );
  mask-image: linear-gradient(90deg, transparent 8%, #000 32%, #000 68%, transparent 92%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 32%, #000 68%, transparent 92%);
}
.bear-canvas { width: 100%; height: 100%; }
.arena-ui { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.arena-ui > * { pointer-events: auto; }

.arena-swipe-layer {
  /* طبقة إرشاد فقط — السحب مربوط على المسرح (capture) بسبب translateZ */
  position: absolute;
  inset: 0;
  z-index: 1;
  touch-action: none;
  pointer-events: none;
  background: transparent;
}
.bots-arena-pro .mdaw-stage.arena-swipe-ready {
  cursor: grab;
  touch-action: none;
}
.bots-arena-pro .mdaw-stage.arena-swipe-ready:active,
.bots-arena-pro .arena-theater-zone.is-swiping {
  cursor: grabbing;
}
.bots-arena-screen .pro-speech { display: block; }

.arena-msg-under {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin: 4px 0 8px;
  line-height: 1.55;
  padding: 0 8px;
}

.bots-arena-pro .pro-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
}
.bots-arena-pro .pro-status .status-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}
.bots-arena-pro .pro-status .pro-countdown {
  margin-inline-start: auto;
}
.bots-arena-pro .pro-status .status-pill.idle {
  background: rgba(240,185,11,0.1);
  border: 1px solid rgba(240,185,11,0.28);
  color: var(--yellow);
}

.bots-arena-pro .arena-panel .arena-msg-under {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 10px;
  line-height: 1.65;
  padding: 0 4px;
}

/* Welcome + action — outside card (like reference) */
.arena-welcome-block {
  text-align: center;
  padding: 4px 8px 6px;
  margin-top: 0;
}
.arena-welcome-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
  margin: 0;
}
.arena-welcome-line + .arena-welcome-line {
  margin-top: 2px;
}
.arena-welcome-bold {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.arena-action-zone {
  padding: 0;
  margin: 0 0 10px;
  background: none;
  border: none;
  box-shadow: none;
}
.arena-action-zone .arena-status {
  margin-bottom: 10px;
}
.arena-action-zone .arena-open-btn {
  margin-bottom: 0;
}

/* MDAW platform — glowing concentric discs */
.arena-platform-mdaw {
  bottom: 2%;
  height: 118px;
  width: min(88%, 340px);
  z-index: 4;
  overflow: visible;
}
.platform-disc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 228, 160, 0.5);
  box-shadow:
    0 0 18px rgba(255, 210, 90, 0.22),
    inset 0 0 14px rgba(255, 230, 150, 0.1);
  pointer-events: none;
}
.platform-disc--inner {
  bottom: 22px;
  width: 44%;
  height: 22px;
  border-width: 2px;
  border-color: rgba(255, 240, 180, 0.82);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 230, 150, 0.22) 0%, rgba(20, 18, 14, 0.5) 55%, transparent 100%);
  z-index: 3;
}
.platform-disc--mid {
  bottom: 12px;
  width: 66%;
  height: 30px;
  border-color: rgba(255, 220, 140, 0.55);
  opacity: 0.9;
  z-index: 2;
}
.platform-disc--outer {
  bottom: 0;
  width: 86%;
  height: 42px;
  border-color: rgba(255, 200, 100, 0.35);
  opacity: 0.72;
  z-index: 1;
}
.platform-disc-glow {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 70%;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 80%, rgba(255, 180, 60, 0.45) 0%, rgba(240, 140, 20, 0.15) 45%, transparent 72%);
  filter: blur(6px);
  z-index: 0;
}
.platform-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FCD535;
  box-shadow: 0 0 10px rgba(252, 213, 53, 0.95), 0 0 18px rgba(255, 180, 40, 0.45);
  top: 50%;
  transform: translateY(-50%);
}
.platform-node--l { left: 8%; }
.platform-node--r { right: 8%; }
.platform-node--c { left: 50%; transform: translate(-50%, -50%); }
.platform-pill-label {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFAA40 0%, #E8750A 100%);
  color: #1a0d00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(255, 130, 20, 0.4);
  white-space: nowrap;
}
.platform-ring-tag {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 220, 130, 0.7);
  letter-spacing: 0.06em;
  z-index: 2;
}
.platform-ring-tag--sub { bottom: 18px; font-size: 8px; opacity: 0.75; }
.arena-platform-mdaw .stage-floor-glow {
  bottom: -6px;
  background: radial-gradient(
    ellipse 50% 100% at 50% 100%,
    rgba(255, 180, 50, 0.65) 0%,
    rgba(240, 140, 20, 0.3) 35%,
    rgba(255, 100, 10, 0.08) 58%,
    transparent 78%
  );
}

/* legacy 3d platform (unused) */
.arena-platform-3d {
  perspective: 420px;
  transform-style: preserve-3d;
}
.arena-platform-3d .platform-pedestal {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 58%;
  height: 16px;
  transform: translateX(-50%) rotateX(78deg);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(60, 48, 28, 0.95) 0%, rgba(18, 16, 14, 0.98) 55%, #050508 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.75),
    inset 0 3px 10px rgba(255, 200, 100, 0.12);
  z-index: 0;
}
.arena-platform-3d .arena-ring {
  transform: translateX(-50%) rotateX(74deg);
  transform-style: preserve-3d;
  border-style: solid;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 220, 130, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 100%, rgba(8, 8, 12, 0.95) 0%, rgba(20, 18, 24, 0.88) 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.55),
    inset 0 2px 10px rgba(255, 210, 90, 0.18),
    0 0 22px rgba(240, 185, 11, 0.16);
}
.arena-platform-3d .arena-ring--1 {
  bottom: 16px;
  width: 50%;
  height: 28px;
  border-width: 2px;
  opacity: 1;
  z-index: 3;
}
.arena-platform-3d .arena-ring--2 {
  bottom: 8px;
  width: 72%;
  height: 38px;
  opacity: 0.82;
  z-index: 2;
}
.arena-platform-3d .arena-ring--3 {
  bottom: 0;
  width: 94%;
  height: 50px;
  opacity: 0.58;
  z-index: 1;
}
.arena-platform-3d .arena-platform-core {
  bottom: 10px;
  width: 38%;
  height: 24px;
  transform: translateX(-50%) rotateX(74deg);
  background: radial-gradient(ellipse, rgba(252, 213, 53, 0.55) 0%, rgba(240, 185, 11, 0.2) 45%, transparent 78%);
  box-shadow: 0 0 28px rgba(240, 185, 11, 0.45);
  z-index: 4;
}
.arena-platform-3d .arena-platform-label {
  top: -24px;
  color: var(--yellow);
  text-shadow: 0 2px 10px rgba(240, 185, 11, 0.45);
  z-index: 5;
}
.arena-platform-3d .arena-ring-tag {
  color: rgba(252, 213, 53, 0.85);
  transform: translate(-50%, -50%) rotateX(-74deg);
}
.arena-platform-3d .stage-floor-glow {
  background: radial-gradient(
    ellipse 48% 100% at 50% 100%,
    rgba(252, 213, 53, 0.55) 0%,
    rgba(240, 185, 11, 0.28) 32%,
    rgba(201, 148, 26, 0.1) 55%,
    transparent 76%
  );
}

.arena-top-cards {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  z-index: 18;
}
.arena-top-cards::after {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: calc(50% - 0.5px);
  width: 1px;
  background: rgba(255,255,255,0.16);
  pointer-events: none;
}
.arena-top-card {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(12, 18, 28, 0.28);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0, 0, 0, 0.16);
}
.arena-top-card strong {
  font-size: 14px;
}
.arena-top-label {
  font-size: 10px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.arena-top-card strong {
  font-size: 14px;
  color: var(--yellow);
  line-height: 1.1;
}
.arena-top-label {
  font-size: 10px;
  color: rgba(255,255,255,0.72);
}
.hunger-pill {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.65); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; font-size: 10px; text-align: center; backdrop-filter: blur(8px);
}
.hunger-pill span { font-size: 18px; display: block; }
.speech {
  position: absolute; right: 12px; top: 18%;
  background: var(--gold); color: #000; padding: 8px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(0,0,0,.55); color: var(--text); cursor: pointer; pointer-events: all;
  font-size: 18px; backdrop-filter: blur(6px);
}
.car-btn.l { left: 8px; } .car-btn.r { right: 8px; }

.arena-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.arena-msg { font-size: 11px; color: var(--muted); margin-bottom: 8px; line-height: 1.45; }
.arena-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 11px; }
.countdown { font-family: 'SF Mono', monospace; font-size: 14px; color: var(--yellow); letter-spacing: .5px; }

/* Tasks */
.tasks-page { padding-top: 14px; }
.tasks-page .signin-card-head { padding: 14px 14px 10px; }
.tasks-page .signin-card-head h2 { margin: 6px 0 3px; font-size: 1rem; }
.tasks-page .signin-card-mascot { width: 78px; height: 84px; }
.tasks-page .signin-card-mascot .robot-img.signin-3d-img { height: 80px; max-width: 76px; }
.tasks-page .signin-card-summary { padding: 0 12px 8px; gap: 6px; }
.tasks-page .signin-card-pill { padding: 7px 6px; }
.tasks-page .signin-card-progress-wrap { padding: 0 12px 10px; }
.tasks-page .signin-card-body { padding: 0 8px 6px; }
.tasks-page .signin-card-grid-wrap { padding: 8px; }
.tasks-page .signin-card .signin-grid-mdaw .day-pro { padding: 7px 4px 6px; }
.tasks-page .signin-card-foot { padding: 2px 12px 10px; }
.tasks-page .signin-card-btn { min-height: 44px; }

.signin-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(165deg, #12110f 0%, #0c0b0a 100%);
  border: 1px solid rgba(252, 213, 53, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.signin-card--calm .signin-card-head {
  align-items: center;
  padding: 16px 14px 12px;
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(252, 213, 53, 0.07) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}
.signin-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 14px;
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(240, 185, 11, 0.1) 0%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}
.signin-gift-wrap--left {
  flex-shrink: 0;
  width: 78px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.signin-card--calm .signin-gift-wrap--left .gift-box-img.signin {
  height: 74px;
  max-width: 76px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}
.signin-card-tagline {
  font-size: 11px;
  color: #b8c0cc;
  line-height: 1.5;
  margin: 2px 0 6px;
}
.signin-card-reward-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
}
.signin-card-reward-line strong {
  color: #fcd535;
  font-size: 13px;
  font-weight: 800;
}
.signin-card-reward-line .signin-card-status {
  font-size: 10px;
  font-weight: 700;
}
.signin-card-head-text { flex: 1; min-width: 0; }
.signin-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 208, 120, 0.92);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.22);
}
.signin-card--calm .signin-card-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #f5f6f8;
}
.signin-card-head h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3f4f6;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.signin-card--calm .signin-card-streak {
  font-size: 10px;
  color: #9aa3b2;
}
.signin-card-streak {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.45;
}
.signin-card-streak b {
  color: #fcd535;
  font-weight: 800;
}
.signin-card-mascot {
  width: 88px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
}
.signin-card-mascot .robot-img.signin-3d-img {
  height: 92px;
  max-width: 88px;
}
.signin-card-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.signin-card-pill {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.signin-card-pill small {
  display: block;
  font-size: 9px;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.signin-card-pill strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #f3f4f6;
  line-height: 1.2;
}
.signin-card-pill strong em {
  font-style: normal;
  font-size: 9px;
  color: #848e9c;
  font-weight: 700;
}
.signin-card-pill--reward strong { color: #fcd535; }
.signin-reset-timer {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  color: #d1d5db !important;
}
.signin-card-progress-wrap {
  padding: 0 14px 14px;
}
.signin-card-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 10px;
  color: #848e9c;
}
.signin-card-status.is-done { color: #0ecb81; font-weight: 700; }
.signin-card-status.is-pending { color: #fcd535; font-weight: 700; }
.signin-card-progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.signin-card-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9941a 0%, #fcd535 55%, #ffe98a 100%);
  box-shadow: 0 0 12px rgba(252, 213, 53, 0.35);
  transition: width 0.35s ease;
}
.signin-card-body {
  padding: 0 10px 10px;
}
.signin-card-grid-wrap {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.signin-card--calm .signin-card-grid-wrap {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Tasks day grid — واضح واحترافي */
.signin-grid-tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}
.day-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 10px 6px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.day-tile-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9aa3b2;
  line-height: 1.2;
}
.day-tile-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.1;
}
.day-tile-amt {
  font-size: 12px;
  font-weight: 800;
  color: #f3f4f6;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.day-tile-unit {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
  text-transform: uppercase;
}
.day-tile .day-status {
  position: absolute;
  top: 5px;
  inset-inline-start: 5px;
  width: 16px;
  height: 16px;
}
.day-tile.claimed {
  background: rgba(14, 203, 129, 0.1);
  border-color: rgba(14, 203, 129, 0.28);
}
.day-tile.claimed .day-tile-label { color: #6ee7b7; }
.day-tile.claimed .day-tile-amt { color: #0ecb81; }
.day-tile.today {
  background: rgba(252, 213, 53, 0.12);
  border-color: rgba(252, 213, 53, 0.45);
  box-shadow: 0 0 0 1px rgba(252, 213, 53, 0.08), 0 4px 14px rgba(252, 213, 53, 0.1);
}
.day-tile.today .day-tile-label { color: #fcd535; }
.day-tile.today .day-tile-amt { color: #ffe566; font-size: 13px; }
.day-tile.today .day-tile-unit { color: rgba(252, 213, 53, 0.72); }
.day-tile.locked {
  opacity: 0.62;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}
.day-tile.locked .day-tile-amt,
.day-tile.locked .day-tile-unit { color: #5c6370; }

.signin-card--calm .signin-card-btn {
  min-height: 46px;
  border-radius: 12px;
  font-size: 13px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, opacity 0.2s ease;
}
.signin-card--calm .signin-card-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.signin-card .signin-grid-mdaw {
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
}
.signin-card .signin-grid-mdaw .day-pro {
  padding: 9px 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.07);
}
.signin-card .signin-grid-mdaw .day-pro.claimed {
  background: linear-gradient(180deg, rgba(14, 203, 129, 0.14) 0%, rgba(14, 203, 129, 0.05) 100%);
  border-color: rgba(14, 203, 129, 0.28);
}
.signin-card .signin-grid-mdaw .day-pro.today {
  background: linear-gradient(180deg, rgba(252, 213, 53, 0.16) 0%, rgba(252, 213, 53, 0.06) 100%);
  border-color: rgba(252, 213, 53, 0.42);
  box-shadow: 0 0 16px rgba(252, 213, 53, 0.12);
}
.signin-card .signin-grid-mdaw .day-pro.locked-mdaw {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.72;
}
.signin-card .signin-grid-mdaw .day-n {
  font-size: 9px;
  color: #9ca3af;
  margin-bottom: 3px;
}
.signin-card .signin-grid-mdaw .day-pro.claimed .day-n,
.signin-card .signin-grid-mdaw .day-pro.today .day-n {
  color: #e5e7eb;
}
.signin-card .signin-grid-mdaw .day-r {
  font-size: 10px;
  color: #f3f4f6;
}
.signin-card .signin-grid-mdaw .day-pro.locked-mdaw .day-r,
.signin-card .signin-grid-mdaw .day-pro.locked-mdaw .day-r small {
  color: #6b7280;
}
.signin-card-foot {
  padding: 4px 12px 14px;
}
.signin-card-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe566 0%, #ffc107 52%, #f0a500 100%);
  color: #1a1208;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(255, 193, 7, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.signin-card-btn:active:not(:disabled) {
  transform: scale(0.985);
}
.signin-card-btn:disabled {
  opacity: 0.52;
  cursor: default;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: rgba(255, 255, 255, 0.72);
}

.signin-pro {
  background: linear-gradient(180deg, #1a1610 0%, #12100c 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.signin-pro-top {
  position: relative; overflow: visible;
  background: linear-gradient(145deg, #8B6914 0%, #B8891A 22%, #D4AF37 48%, #F0D875 72%, #C9A227 100%);
  padding: 16px 14px 20px; display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: center;
}
.signin-pro-top::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.28) 0%, transparent 42%, rgba(0,0,0,0.06) 100%);
}
.signin-pro-top > * { position: relative; z-index: 1; }
.signin-badge {
  display: inline-block; font-size: 9px; color: #3d2e12; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.35);
}
.signin-pro-top h2 { font-size: 1.08rem; color: #1f1408; font-weight: 800; margin: 6px 0 3px; letter-spacing: -0.3px; }
.signin-pro-top p { font-size: 10px; color: rgba(31,20,8,0.72); }
.signin-pro-top p b { color: #1a1006; }
.signin-gift-wrap {
  width: 92px; height: 100px; display: flex; align-items: flex-end; justify-content: center;
  background: transparent; will-change: transform;
}
.signin-mascot-3d {
  perspective: 520px;
  perspective-origin: 50% 80%;
}
.signin-mascot-3d .signin-3d-wrap {
  transform: rotateY(-10deg) rotateX(6deg) translateZ(12px);
  transform-style: preserve-3d;
  animation: signinRobotFloat 4s ease-in-out infinite;
}
.signin-mascot-3d .signin-3d-wrap .robot-stage {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 18px rgba(255, 220, 120, 0.22));
}
.signin-mascot-3d .signin-3d-wrap .robot-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 58%;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.28) 0%, transparent 72%);
  pointer-events: none;
}
@keyframes signinRobotFloat {
  0%, 100% { transform: rotateY(-10deg) rotateX(6deg) translateZ(12px) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(5deg) translateZ(16px) translateY(-4px); }
}
.robot-img.signin-3d-img {
  height: 88px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  object-position: bottom center;
}
.gift-box-img {
  display: block; width: auto; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.22));
  user-select: none; pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.gift-box-img.is-ready { opacity: 1; }
.gift-box-img.signin {
  height: 88px; max-width: 92px;
  filter: drop-shadow(0 10px 22px rgba(60,40,10,0.4));
}

.signin-grid-pro {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px;
  padding: 12px 10px;
  background: linear-gradient(180deg, #16130e 0%, #0d0b08 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.day-pro {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 10px; padding: 8px 3px; text-align: center;
}
.day-status {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.day-status--claimed {
  background: linear-gradient(135deg, #0ECB81, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 203, 129, 0.35);
}
.day-status--today {
  background: linear-gradient(135deg, #FCD535, #F0B90B);
  color: #1a1000;
  box-shadow: 0 0 12px rgba(252, 213, 53, 0.45);
  animation: dayTodayPulse 2s ease-in-out infinite;
}
.day-status--locked {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
}
@keyframes dayTodayPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(252, 213, 53, 0.3); }
  50% { box-shadow: 0 0 16px rgba(252, 213, 53, 0.55); }
}
.day-reward-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), rgba(0,0,0,0.15));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 6px rgba(0,0,0,0.2);
}
.day-reward-coin .coin-img {
  border-radius: 50%;
  display: block;
}
.day-pro.claimed {
  background: linear-gradient(180deg, rgba(212,175,55,0.28) 0%, rgba(180,140,40,0.12) 100%);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}
.day-pro.today {
  background: linear-gradient(180deg, rgba(212,175,55,0.16) 0%, rgba(212,175,55,0.06) 100%);
  border-color: #D4AF37;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}
.day-n { font-size: 10px; color: #8a7a5c; display: block; margin-bottom: 4px; }
.day-pro.claimed .day-n, .day-pro.today .day-n { color: #E8C547; }
.day-gem, .day-coin { margin: 4px 0; display: flex; justify-content: center; align-items: center; }
.day-coin .usdt-ico, .day-coin .coin-ico { margin: 0 auto; }
.day-r { font-size: 11px; font-weight: 700; display: block; color: #ffffff; }
.day-u { font-size: 8px; color: #7a6f58; }

.signin-grid-modal {
  padding: 12px 10px 4px;
  gap: 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, #14110c 0%, #0a0907 100%);
}
.signin-grid-modal .day-pro { padding: 8px 2px; border-radius: 10px; }
.signin-grid-modal .day-n { font-size: 9px; margin-bottom: 2px; }
.signin-grid-modal .day-r { font-size: 10px; }

.daily-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(8, 8, 8, 0.84);
  backdrop-filter: blur(14px);
  max-width: 450px;
  margin: 0 auto;
  left: 0;
  right: 0;
  animation: overlayFadeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dailyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.daily-modal {
  position: relative;
  width: 100%;
  max-width: 340px;
  max-height: 86vh;
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #13110d 0%, #0b0907 42%, #090806 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.6),
    inset 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 40px rgba(255, 191, 71, 0.08);
  animation: modalPopIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
@keyframes dailyPopIn {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalPopIn {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes sheetSlideUp {
  from { opacity: 0.96; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.daily-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.daily-modal-head {
  text-align: center;
  padding: 16px 12px 10px;
  background: linear-gradient(135deg, #b0821f 0%, #d5b35c 28%, #f5e3a2 62%, #f7f4d5 100%);
  border-radius: 26px 26px 0 0;
  position: relative;
  overflow: hidden;
}
.daily-modal-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255,255,255,0.22), transparent 45%);
  pointer-events: none;
}
.daily-modal-head > * { position: relative; z-index: 1; }
.daily-modal-gift {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.daily-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a2810;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.daily-modal-head h2 {
  font-size: 1.02rem;
  color: #241705;
  font-weight: 800;
  margin: 10px 0 6px;
  letter-spacing: -0.35px;
}
.daily-modal-head p {
  font-size: 12px;
  color: rgba(36, 23, 7, 0.88);
  margin: 0;
  line-height: 1.5;
}
.daily-modal-head p strong { color: #2f1e08; font-size: 15px; }
.daily-modal-day {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(36, 23, 7, 0.72);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.daily-modal-btn {
  margin: 14px auto 0;
  width: min(260px, 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(255, 171, 61, 0.18);
  border: 1px solid rgba(255, 208, 118, 0.3);
  background: linear-gradient(135deg, #ffd05b 0%, #f8b500 100%);
  color: #140b00;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.daily-modal-later {
  display: block;
  width: 100%;
  margin: 12px auto 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.daily-modal-later:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* نافذة تسجيل الوصول — نمط احترافي */
.daily-modal-overlay-mdaw {
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
}
.daily-modal-mdaw {
  max-width: 368px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(252, 213, 53, 0.18);
  background: linear-gradient(180deg, #1e1610 0%, #120e0a 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(252, 213, 53, 0.08);
}
.daily-modal-close-mdaw {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(26, 18, 8, 0.75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.daily-modal-mdaw-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px 14px;
  background: linear-gradient(145deg, #ffe566 0%, #ffd43b 42%, #f0b90b 78%, #d4a012 100%);
  border-radius: 24px 24px 0 0;
  min-height: 96px;
  position: relative;
  overflow: hidden;
}
.daily-modal-mdaw-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.2) 0%, transparent 45%);
  pointer-events: none;
}
.daily-modal-mdaw-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a2810;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}
.daily-modal-mdaw-head-text {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
  position: relative;
  z-index: 1;
}
.daily-modal-mdaw-head h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #1a1208;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.daily-modal-mdaw-tagline {
  margin: 0 0 6px !important;
  font-size: 10px !important;
  color: rgba(26, 18, 8, 0.72) !important;
  line-height: 1.45 !important;
}
.daily-modal-mdaw-head p {
  margin: 0;
  font-size: 11px;
  color: rgba(26, 18, 8, 0.82);
  line-height: 1.4;
}
.daily-modal-mdaw-head p strong {
  font-weight: 800;
  color: #1a1208;
}
.daily-modal-mdaw-mascot {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -8px;
  position: relative;
  z-index: 1;
}
.daily-modal-mdaw-mascot .robot-img.signin-3d-img {
  height: 92px;
  max-width: 92px;
}
.daily-modal-gift {
  flex-shrink: 0;
  width: 80px;
  height: 88px;
  margin-bottom: -6px;
  position: relative;
  z-index: 1;
}
.daily-modal-gift .gift-box-img.signin {
  height: 72px;
  max-width: 80px;
  filter: drop-shadow(0 8px 18px rgba(60, 40, 10, 0.35));
}
.daily-modal-mdaw {
  animation: modalSlideUp var(--motion-slow) var(--ease-light) both;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.daily-modal-mdaw-body {
  background: linear-gradient(180deg, #2a1c14 0%, #1f150f 100%);
  padding: 10px 12px 12px;
}
.daily-modal-mdaw-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.daily-modal-mdaw-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.daily-modal-mdaw-date .ico { opacity: 0.7; }
.daily-modal-mdaw-status {
  color: rgba(255, 220, 150, 0.75);
  text-align: end;
}
.daily-modal-mdaw-grid-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #241810;
  border: 1px solid rgba(255, 200, 120, 0.12);
}
.signin-grid-mdaw {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 8px 12px;
}
.signin-grid-mdaw .day-pro {
  position: relative;
  background: linear-gradient(180deg, #f8edd8 0%, #e8d4b0 100%);
  border: 1px solid rgba(180, 140, 80, 0.35);
  border-radius: 10px;
  padding: 8px 4px 6px;
  min-height: 76px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.12);
}
.signin-grid-mdaw .day-pro.claimed,
.signin-grid-mdaw .day-pro.today {
  background: linear-gradient(180deg, #fff4dc 0%, #edd9b5 100%);
  border-color: rgba(200, 155, 70, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 14px rgba(252, 213, 53, 0.18);
}
.signin-grid-mdaw .day-pro.today {
  border-color: #F0B90B;
}
.signin-grid-mdaw .day-pro.locked-mdaw {
  background: linear-gradient(180deg, #f4f4f4 0%, #e6e6e6 100%);
  border-color: rgba(180, 180, 180, 0.45);
  opacity: 0.9;
}
.signin-grid-mdaw .day-n {
  display: block;
  font-size: 9px;
  color: #6b5340;
  margin-bottom: 2px;
  font-weight: 600;
}
.signin-grid-mdaw .day-pro.locked-mdaw .day-n { color: #888; }
.signin-grid-mdaw .day-gold-coin {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  line-height: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.signin-grid-mdaw .day-reward-coin {
  width: 24px;
  height: 24px;
  margin: 3px auto;
  background: rgba(255, 255, 255, 0.35);
}
.signin-grid-mdaw .day-status {
  top: 3px;
  inset-inline-start: 3px;
  width: 15px;
  height: 15px;
}
.signin-grid-mdaw .day-coin {
  margin: 2px 0;
}
.signin-grid-mdaw .day-r {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #2a1a0a;
  line-height: 1.15;
}
.signin-grid-mdaw .day-r small {
  display: block;
  font-size: 7px;
  font-weight: 600;
  color: #5c4838;
  margin-top: 1px;
}
.signin-grid-mdaw .day-pro.locked-mdaw .day-r,
.signin-grid-mdaw .day-pro.locked-mdaw .day-r small {
  color: #666;
}
.daily-modal-mdaw-hint {
  margin: 8px 10px 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.22);
  color: rgba(255, 220, 150, 0.88);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.daily-modal-mdaw-foot {
  padding: 12px 14px 16px;
  background: #1a120c;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.daily-modal-mdaw-signin {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe566 0%, #ffc107 55%, #f0a500 100%);
  color: #1a1208;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(255, 193, 7, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.daily-modal-mdaw-signin:disabled {
  opacity: 0.55;
  cursor: default;
}
.daily-modal-mdaw-telegram {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #2aabee 0%, #e040fb 55%, #ff6b9d 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.25);
}

.storage-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  max-width: 430px;
  margin: 0 auto;
  left: 0;
  right: 0;
  animation: overlayFadeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.storage-modal {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(165deg, #141820 0%, #0c0e14 55%, #08090d 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 36px rgba(56, 189, 248, 0.1);
  animation: modalPopIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  will-change: transform, opacity;
}
.storage-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.storage-modal-head {
  text-align: center;
  padding: 28px 20px 16px;
  background: linear-gradient(145deg, #1a2840 0%, #152238 40%, #101a2e 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.storage-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.storage-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.storage-modal-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0f6ff;
  margin: 12px 0 4px;
  letter-spacing: -0.02em;
}
.storage-modal-sub {
  font-size: 12px;
  color: rgba(186, 210, 240, 0.72);
  margin: 0;
}
.storage-modal-body {
  padding: 18px 20px 8px;
}
.storage-modal-body p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(220, 230, 245, 0.82);
  margin: 0 0 16px;
  text-align: center;
}
.storage-modal-body p strong { color: #e0f2fe; }
.storage-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.storage-modal-stats div {
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.storage-modal-stats small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.storage-modal-stats strong { font-size: 15px; }
.storage-modal-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(186, 210, 240, 0.65);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.12);
}
.storage-modal-note .ico { color: #7dd3fc; flex-shrink: 0; }
.storage-modal-foot {
  padding: 14px 20px 18px;
}
.storage-modal-foot .storage-modal-btn {
  width: 100%;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

/* Assets */
.asset-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.asset-tabs button {
  flex: 1; padding: 12px 8px; border: none; background: none;
  color: var(--muted); font-family: inherit; font-size: 12px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.asset-tabs button.on { color: var(--yellow); border-bottom-color: var(--yellow); font-weight: 600; }

.asset-row {
  display: block;
  width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 7px; overflow: hidden;
  text-align: inherit;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.asset-row:active {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.08);
}
.asset-row-top { display: flex; justify-content: space-between; padding: 10px 12px; }
.asset-left { display: flex; align-items: center; gap: 8px; }
.asset-left strong { font-size: 13px; display: block; }
.asset-left small { font-size: 10px; color: var(--muted); }
.asset-right { text-align: left; direction: ltr; }
.asset-right > strong { font-size: 13px; display: block; margin-bottom: 1px; }
.asset-right small { display: block; font-size: 9px; color: var(--muted); }
.asset-right small b { color: var(--text); }
.asset-row-bot {
  display: flex; justify-content: space-between; padding: 8px 12px;
  background: rgba(255,255,255,.02); border-top: 1px solid var(--border);
  font-size: 10px; color: var(--muted);
}

.bbm-list { display: flex; flex-direction: column; gap: 8px; }
.bbm-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer;
}
.bbm-item strong { display: block; font-size: 13px; }
.bbm-item small { font-size: 11px; }
.countdown-sm { margin-right: auto; font-family: monospace; font-size: 11px; color: var(--yellow); }

.invest-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.invest-summary div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; }
.invest-summary small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.invest-summary strong { font-size: 14px; }

.tx-pro {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.tx-pro small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }

/* scroll container for investment transactions */
.tx-scroll {
  max-height: 40vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 8px;
}

.deposit-pro {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin-bottom: 12px; border-top: 3px solid var(--c, var(--yellow));
}
.dep-chain { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.dep-qr { display: flex; justify-content: center; margin: 10px 0; }
.dep-qr img { width: 150px; border-radius: 10px; }
.addr-row { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 8px; padding: 10px; }
.addr-copy-row code,
.addr-row code,
.invite-link-card code {
  flex: 1;
  font-size: 10px;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  color: #F0F2F5;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.invite-link-card .addr-copy-row code { font-size: 10px; }
.addr-row button { background: none; border: none; color: var(--muted); cursor: pointer; }
.hint-txt { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

/* Bottom Nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around; z-index: 100;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 3px; border: none; background: none; color: var(--muted);
  cursor: pointer; font-family: inherit; position: relative;
  transition: color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-item:active { transform: scale(0.96); }
.nav-item span { font-size: 10px; font-weight: 500; }
.bottom-nav.has-5 .nav-item span { font-size: 9.5px; }
.nav-icon-wrap {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
}
.bottom-nav.has-5 .nav-icon-wrap .ico { width: 26px; height: 26px; }
.nav-item.nav-ibm .nav-icon-wrap { width: 36px; height: 36px; }
.nav-item.nav-ibm .nav-icon-wrap .ico { width: 32px !important; height: 32px !important; }
.nav-item.nav-ibm > span:not(.nav-icon-wrap) { color: var(--yellow); font-weight: 600; }
.nav-item .ico-nav { transition: stroke 0.2s, opacity 0.2s, transform 0.2s; opacity: 0.65; }
.nav-item.on .ico-nav { opacity: 1; transform: translateY(-1px); stroke: var(--yellow); }
.nav-item.on { color: var(--yellow); font-weight: 600; }
.nav-item.on .ico-tasks circle { fill: #FCD535; }
.nav-item .ico-trade.ico-nav { opacity: 1; }
.nav-item .ico-trade path:first-of-type { opacity: 0.65; }
.nav-item.on .ico-trade path:first-of-type { opacity: 1; }
.nav-item .ico-trade-trend { stroke: #F0B90B; opacity: 1; }
.nav-item.on .ico-trade-trend { stroke: #F0B90B; opacity: 1; }
.nav-item .ico-assets.ico-nav { opacity: 1; }
.nav-item .ico-assets path { opacity: 0.65; }
.nav-item.on .ico-assets path { opacity: 1; }
.nav-item .ico-assets-dot { fill: #F0B90B; opacity: 1; }
.nav-item .ico { transition: stroke 0.2s, filter 0.2s, opacity 0.2s; }
.nav-dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 6px; height: 6px; background: var(--red); border-radius: 50%; font-style: normal; }

@media (min-width: 431px) {
  .app-shell { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* Binance-style Deposit / Withdraw */
.binance-page { padding-top: 16px; padding-bottom: 28px; }

.bn-selected-coin {
  display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 16px;
  padding: 12px 16px; background: var(--card); border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.bn-step {
  display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start;
}
.bn-step-n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #000;
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bn-step strong { display: block; font-size: 14px; margin-bottom: 10px; }
.bn-step-body { flex: 1; min-width: 0; }

.bn-coin-select {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-weight: 700;
}
.bn-coin-select span { color: var(--muted); font-weight: 400; font-size: 12px; margin-right: auto; }

.network-tabs { display: flex; flex-direction: column; gap: 8px; }
.net-tab {
  text-align: right; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  cursor: pointer; font-family: inherit; font-size: 13px; transition: border-color .2s;
}
.net-tab small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.net-tab.on { border-color: var(--yellow); background: rgba(240,185,11,0.08); color: var(--yellow); }

.dep-address-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.dep-card-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.dep-card-head strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dep-net-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.dep-net-pill .chain-img { width: 14px; height: 14px; }
.dep-qr-frame {
  display: flex; justify-content: center; align-items: center;
  width: fit-content; max-width: 100%; margin: 0 auto 8px;
  padding: 14px; background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.dep-qr-frame img,
.dep-qr-canvas { width: 168px; height: 168px; display: block; border-radius: 2px; }
.dep-qr-caption {
  text-align: center; font-size: 11px; color: var(--muted); margin: 0 0 18px;
}
.dep-addr-block { margin-bottom: 4px; }
.dep-addr-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 12px; color: var(--muted); font-weight: 500;
}
.dep-addr-tag {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06); color: var(--text); letter-spacing: 0.03em;
}
.dep-addr-box {
  display: flex; align-items: stretch; gap: 0;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.dep-addr-text {
  flex: 1; min-width: 0; padding: 12px 14px;
  font-family: 'Consolas', 'SF Mono', 'Courier New', monospace;
  font-size: 12px; line-height: 1.55; word-break: break-all;
  direction: ltr; text-align: left; color: var(--text); font-weight: 500; letter-spacing: 0.01em;
}
.dep-copy-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 0 16px; border: none; border-inline-start: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--text);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.dep-copy-btn:hover { background: rgba(255,255,255,0.08); }
.dep-copy-btn .ico { opacity: 0.85; }
.dep-notices {
  list-style: none; margin: 16px 0 0; padding: 14px 16px 14px 14px;
  background: var(--calm-bg); border: 1px solid var(--calm-border); border-radius: 12px;
}
.dep-notices li {
  position: relative; padding-inline-start: 14px; margin-bottom: 9px;
  font-size: 11px; line-height: 1.7; color: var(--calm-text);
}
.dep-notices li:last-child { margin-bottom: 0; }
.dep-notices li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: rgba(120, 155, 175, 0.55);
}
.dep-notices strong { color: var(--text); font-weight: 600; }

.bn-warnings {
  margin-top: 14px; padding: 14px 16px;
  background: var(--calm-bg);
  border: 1px solid var(--calm-border);
  border-radius: 12px;
  font-size: 11px; line-height: 1.75;
  color: var(--calm-text);
}
.bn-warnings p { margin: 0; }
.bn-warnings b { color: var(--text); font-weight: 600; }

.addr-copy-row {
  display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.copy-chip, .addr-copy-row .dep-copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text);
  font-weight: 600; font-size: 11px; cursor: pointer; font-family: inherit; flex-shrink: 0;
}

.bn-history h3, .section-label { font-size: 13px; color: var(--muted); margin: 20px 0 10px; font-weight: 600; }
.bn-history-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.bn-history-head h3 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.link-btn {
  display: inline-flex; align-items: center; gap: 2px;
  background: none; border: none; color: var(--yellow); font-size: 11px;
  font-weight: 600; cursor: pointer; font-family: inherit; padding: 0;
}
.bn-tx {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.bn-tx small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }

.bn-balance-bar {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 18px;
}
.bn-balance-bar small { display: block; font-size: 11px; color: var(--muted); }
.bn-balance-bar strong { font-size: 1.2rem; color: var(--yellow); }

.bn-field { margin-bottom: 16px; }
.bn-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.bn-input {
  width: 100%; padding: 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px;
}
.bn-input:focus { outline: none; border-color: var(--yellow); }
.amount-row { display: flex; gap: 8px; }
.amount-row .bn-input { flex: 1; }
.field-hint { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
.max-chip {
  flex-shrink: 0; padding: 0 16px; min-width: 52px; height: 100%; min-height: 48px;
  border-radius: 10px; border: 1px solid var(--border);
  background: #141414; color: var(--text);
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  letter-spacing: 0.04em; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.max-chip:hover { background: #1a1a1a; border-color: rgba(240,185,11,0.35); color: var(--yellow); }
.max-chip:active { transform: scale(0.97); }

.bn-summary {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; margin-bottom: 16px;
}
.bn-summary div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.bn-summary span { color: var(--muted); }
.bn-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* Withdraw — professional */
.wd-page { padding-bottom: 28px; }
.wd-balance-card {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #121212);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 14px 14px; margin-bottom: 14px; text-align: center;
}
.wd-record-btn {
  position: absolute; top: 10px; inset-inline-end: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; color: var(--muted);
  font-size: 10px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.wd-record-btn:hover { color: var(--text); border-color: rgba(240,185,11,0.3); }
.wd-balance-card > small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.wd-balance-amt {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px;
}
.wd-balance-amt strong { font-size: 1.55rem; color: var(--yellow); letter-spacing: -0.5px; }
.wd-balance-amt span { font-size: 13px; color: var(--muted); }
.wd-balance-usd {
  display: block; font-size: 12px; color: var(--muted); direction: ltr;
}
.wd-records-link { display: none; }
.wd-net-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-family: inherit;
  margin-bottom: 14px; text-align: inherit;
}
.wd-net-pick.compact { margin-top: 0; margin-bottom: 14px; }
.wd-net-pick-label { font-size: 13px; font-weight: 600; }
.wd-net-pick-right {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px;
}
.wd-net-pick-right em { font-style: normal; color: var(--text); font-weight: 500; }
.wd-net-pick-right .wd-net-muted { color: var(--muted); font-weight: 500; }
.wd-net-pick-right .ico { color: var(--muted); flex-shrink: 0; }
.wd-net-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wd-net-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer;
  font-family: inherit; text-align: start; transition: border-color 0.15s;
}
.wd-net-card > div { flex: 1; min-width: 0; }
.wd-net-card > .ico:last-child { margin-inline-start: auto; color: var(--muted); flex-shrink: 0; }
.wd-net-card strong { display: block; font-size: 13px; }
.wd-net-card small { font-size: 10px; color: var(--muted); }
.wd-net-card.on { border-color: var(--yellow); background: rgba(240,185,11,0.06); }
.wd-form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
}
.wd-mono { font-family: Consolas, monospace; font-size: 13px; }
.wd-summary {
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border);
}
.wd-summary div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 12px; }
.wd-summary span { color: var(--muted); }
.wd-summary-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border); }
.wd-summary-total b { font-size: 15px; }
.wd-notices { margin-top: 0; margin-bottom: 16px; }

/* Records page */
.records-page { padding-bottom: 28px; }
.records-tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px;
}
.records-tabs button {
  flex: 1; padding: 10px 8px; border: none; border-radius: 8px;
  background: transparent; color: var(--muted); font-family: inherit;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.records-tabs button.on { background: rgba(240,185,11,0.12); color: var(--yellow); }
.records-list { display: flex; flex-direction: column; gap: 8px; }
.record-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.record-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.record-icon.in { background: rgba(14,203,129,0.12); color: var(--green); }
.record-icon.out { background: rgba(246,70,93,0.12); color: var(--red); }
.record-body { flex: 1; min-width: 0; }
.record-body strong { display: block; font-size: 13px; margin-bottom: 3px; }
.record-body small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-date {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-family: Consolas, "IBM Plex Sans Arabic", monospace;
}
.trade-history-body .record-date {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.bn-tx small {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.record-end { text-align: left; flex-shrink: 0; max-width: 42%; }
.record-end b { display: block; font-size: 13px; direction: ltr; line-height: 1.2; }
.record-status {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  text-align: left;
  line-height: 1.25;
  font-weight: 600;
  white-space: nowrap;
}
.record-status-muted { color: var(--muted); font-weight: 500; }
.record-status.c-green { color: #0ECB81 !important; font-weight: 600; }
.record-status.c-gold { color: var(--yellow) !important; font-weight: 600; }
.record-status.c-red { color: #F6465D !important; font-weight: 600; }

.invite-page { padding-top: 16px; }
.invite-hint.warn {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.22);
  color: rgba(255, 235, 180, 0.92);
  font-size: 12px;
  line-height: 1.45;
}
.invite-hero { text-align: center; margin-top: 4px; margin-bottom: 18px; }
.invite-hero h2 { font-size: 1.3rem; margin-bottom: 6px; }
.invite-hero p { font-size: 12px; color: var(--muted); }

.invite-link-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.invite-link-card label { font-size: 10px; color: var(--muted); display: block; margin-bottom: 5px; }

.invite-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.invite-stats div {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center;
}
.invite-stats small { display: block; font-size: 9px; color: var(--muted); margin-bottom: 3px; }
.invite-stats strong { font-size: 1.05rem; }

.level-list { display: flex; flex-direction: column; gap: 8px; }
.level-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
  width: 100%; text-align: inherit; cursor: pointer; font-family: inherit; color: inherit;
}
.level-card.level-gold { border-color: rgba(240,185,11,0.35); background: linear-gradient(135deg, rgba(240,185,11,0.06), var(--card)); }
.level-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.level-rate {
  background: var(--yellow); color: #000; font-weight: 800; font-size: 12px;
  padding: 3px 10px; border-radius: 999px;
}
.level-card p { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.level-foot { font-size: 11px; color: var(--yellow); }

.usdt-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.usdt-ico svg { display: block; }

/* Chain pills — DEX style */
.chain-pills {
  display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px;
}
.chain-pill {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--muted); font-family: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.chain-pill.on { border-color: var(--yellow); color: var(--yellow); background: rgba(240,185,11,0.08); }
.chain-pill span { font-weight: 600; }

/* Home search + market */
.home-search {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: var(--muted);
}
.home-search input { flex: 1; background: none; border: none; color: var(--text); font-family: inherit; font-size: 13px; }
.home-search input:focus { outline: none; }

.market-tabs { display: flex; gap: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.market-tabs button {
  background: none; border: none; color: var(--muted); padding: 8px 0; font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.market-tabs button.on { color: var(--text); border-bottom-color: var(--yellow); }

.market-list { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.market-head, .market-row {
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; align-items: center; gap: 8px; padding: 10px 14px;
}
.market-head { font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--border); }
.market-row {
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--text); font-family: inherit; text-align: right; cursor: pointer;
}
.market-row:last-child { border-bottom: none; }
.market-row:active { background: rgba(255,255,255,0.03); }
.m-coin { display: flex; align-items: center; gap: 10px; text-align: right; }
.m-coin strong { font-size: 13px; display: block; }
.m-coin small { font-size: 10px; color: var(--muted); }
.m-price { text-align: left; direction: ltr; }
.m-price strong { display: block; font-size: 13px; }
.m-price small { font-size: 10px; color: var(--muted); }
.m-chg {
  justify-self: end; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; direction: ltr;
}
.m-chg.up { background: rgba(14,203,129,0.15); color: var(--green); }
.m-chg.down { background: rgba(246,70,93,0.15); color: var(--red); }

/* make market list scrollable separately from page */
.market-list {
  max-height: 44vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Deposit wizard */
.bn-page-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.coin-pick-list { display: flex; flex-direction: column; gap: 10px; }
.coin-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); font-family: inherit; cursor: pointer; text-align: right;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.15s, border-color 0.15s;
}
.coin-pick:active { background: rgba(255, 255, 255, 0.03); }
.coin-pick strong { display: block; font-size: 14px; }
.coin-pick small { font-size: 11px; color: var(--muted); }
.coin-pick .ico:last-child { margin-inline-start: auto; color: var(--muted); flex-shrink: 0; }
.coin-pick.on { border-color: var(--yellow); }
.coin-pick.disabled { opacity: 0.45; cursor: default; }
.coin-pick > div { flex: 1; }
/* Deposit network picker */
.dep-network-page { padding-bottom: 24px; }
.dep-network-intro { margin-bottom: 16px; }
.dep-network-intro .bn-page-title { margin-bottom: 8px; font-weight: 600; }
.dep-network-intro small { display: block; font-size: 11px; color: var(--calm-text); line-height: 1.55; }
.dep-net-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.dep-net-card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  color: var(--text); font-family: inherit; cursor: pointer; text-align: start;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.dep-net-card:active { background: rgba(255, 255, 255, 0.03); }
.dep-net-card.is-recommended {
  border-color: rgba(232, 197, 71, 0.28);
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.dep-net-card.is-slow { opacity: 0.88; }
.dep-net-icon { flex-shrink: 0; }
.dep-net-body { flex: 1; min-width: 0; }
.dep-net-title-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px;
}
.dep-net-title-row strong { font-size: 14px; font-weight: 600; }
.dep-net-std {
  display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px;
}
.dep-net-arrival {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--calm-text);
  padding: 5px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--calm-border);
}
.dep-net-arrival b { color: var(--green); font-weight: 600; font-size: 11px; }
.dep-net-arrival .ico { color: rgba(120, 155, 175, 0.7); flex-shrink: 0; }
.dep-net-badge {
  font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: rgba(232, 197, 71, 0.12); color: var(--yellow);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.dep-net-badge-slow {
  background: rgba(154, 165, 181, 0.12); color: var(--muted);
}
.dep-net-card > .ico:last-child { margin-inline-start: auto; color: rgba(154, 165, 181, 0.6); flex-shrink: 0; }
.dep-network-warn {
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--calm-bg);
  border: 1px solid var(--calm-border);
  border-radius: 12px;
}
.dep-network-warn p {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--calm-text);
}

/* Withdraw network picker */
.net-picker-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 13px; cursor: pointer;
}
.net-picker-btn span { flex: 1; text-align: right; }
.net-picker-btn .ico:last-child { color: var(--muted); }
.net-sheet {
  margin-top: 8px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.net-sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px;
  background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--text); font-family: inherit; cursor: pointer; text-align: right;
}
.net-sheet-item:last-child { border-bottom: none; }
.net-sheet-item.on { background: rgba(240,185,11,0.08); }
.net-sheet-item strong { display: block; font-size: 13px; }
.net-sheet-item small { font-size: 10px; color: var(--muted); }
.net-sheet-item > div { flex: 1; }

/* Trading page */
.trade-page { padding-bottom: 18px; }
.trade-hero {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.trade-hero-left { display: flex; align-items: center; gap: 8px; }
.trade-hero-left h2 { font-size: 0.95rem; }
.trade-hero-left small { color: var(--muted); font-size: 10px; }
.trade-hero-right { text-align: left; direction: ltr; }
.trade-hero-right strong { display: block; font-size: 1.07rem; }
.trade-chart-wrap {
  background: #0B0E11; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 0; margin-bottom: 8px; height: 240px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.35);
  overflow: hidden;
}
.trade-tv-wrap { height: 300px; }
.tradingview-chart-host { width: 100%; height: 100%; min-height: 280px; }
.trade-promo {
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(135deg, rgba(14,203,129,0.12), rgba(240,185,11,0.07));
  border: 1px solid rgba(14,203,129,0.28); border-radius: 10px;
  padding: 10px 12px; margin: 6px 0 12px;
}
.trade-promo-stat {
  flex-shrink: 0; text-align: center; line-height: 1.15;
  padding: 8px 10px; background: rgba(0,0,0,0.4); border-radius: 8px;
  border: 1px solid rgba(14,203,129,0.2);
}
.trade-promo-stat strong { font-size: 1.15rem; display: block; letter-spacing: -0.5px; }
.trade-promo-stat span { font-size: 10px; color: var(--muted); font-weight: 600; }
.trade-promo-copy strong { display: block; font-size: 12px; margin-bottom: 3px; color: var(--text); }
.trade-promo-copy p { font-size: 10px; line-height: 1.5; color: var(--muted); margin: 0; }
.trade-chart-toolbar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 10px;
}
.chart-tf-badge {
  padding: 3px 8px; border-radius: 4px; background: rgba(240,185,11,0.12);
  color: var(--yellow); font-weight: 700; font-size: 10px; letter-spacing: 0.04em;
}
.chart-toolbar-label { flex: 1; color: var(--muted); font-size: 10px; }
.chart-live-tag {
  font-family: Consolas, monospace; font-weight: 700; font-size: 11px; direction: ltr;
}
.chart-live-tag.up { color: var(--green); }
.chart-live-tag.down { color: var(--red); }
.dur-sync-hint { color: var(--yellow); font-weight: 600; font-size: 10px; }
.trade-chart { width: 100%; height: 100%; display: block; }
.trade-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px;
}
.trade-stats div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.trade-stats small { display: block; font-size: 10px; color: var(--muted); }
.trade-stats strong { font-size: 12px; direction: ltr; display: block; }
.trade-duration label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; }
.dur-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dur-tabs button {
  flex: 1; min-width: 48px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-family: inherit; font-weight: 600; cursor: pointer;
}
.dur-tabs button.on { border-color: var(--yellow); color: var(--yellow); background: rgba(240,185,11,0.08); }
.trade-rules {
  background: rgba(240,185,11,0.06); border: 1px solid rgba(240,185,11,0.15);
  border-radius: 10px; padding: 12px; margin-bottom: 14px; font-size: 11px; line-height: 1.7; color: var(--muted);
}
.trade-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.trade-btns .btn-buy {
  padding: 8px 10px;
  min-height: 38px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #12d68f 0%, #0ecb81 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(14, 203, 129, 0.28);
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
}
.trade-btns .btn-buy:active {
  transform: scale(0.98);
  background: #0bb974;
  box-shadow: 0 1px 4px rgba(14, 203, 129, 0.2);
}
.trade-btns .btn-sell {
  padding: 8px 10px;
  min-height: 38px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff5a6e 0%, #f6465d 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(246, 70, 93, 0.28);
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
}
.trade-btns .btn-sell:active {
  transform: scale(0.98);
  background: #e03d52;
  box-shadow: 0 1px 4px rgba(246, 70, 93, 0.2);
}
.active-trades {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.active-trades.is-exiting {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.trade-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  max-height: 64px;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, box-shadow 0.3s ease;
}
.trade-pill.buy { border-color: rgba(14,203,129,0.3); }
.trade-pill.sell { border-color: rgba(246,70,93,0.3); }
.trade-pill b { margin-right: auto; color: var(--yellow); }
.trade-pill.is-settling.settle-win { box-shadow: 0 0 0 1px rgba(14,203,129,0.35); }
.trade-pill.is-settling.settle-lose { box-shadow: 0 0 0 1px rgba(246,70,93,0.35); }
.trade-pill.is-exiting {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  max-height: 0;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}
.trade-timer { font-family: monospace; color: var(--muted); direction: ltr; }

/* ── الشارت الحقيقي (canvas) لخط الدخول ── */
.pnl-canvas { width: 100%; height: 100%; display: block; border-radius: 14px; }

/* ── صفقات مفتوحة بنمط Binance أسفل أزرار الشراء/البيع ── */
.positions-wrap {
  margin-top: 14px;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.positions-wrap.is-exiting {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.positions-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; padding: 0 2px;
}
.positions-head span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.positions-head small { color: var(--muted); font-size: 11px; }
.positions-list { display: flex; flex-direction: column; gap: 10px; }

.pos-card {
  position: relative;
  border-radius: 16px;
  padding: 13px 14px;
  background: linear-gradient(155deg, rgba(30,30,40,0.92) 0%, rgba(17,17,24,0.96) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 22px rgba(0,0,0,0.4);
  overflow: hidden;
  max-height: 320px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  animation: posCardIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes posCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pos-card.in-profit { border-color: rgba(14,203,129,0.32); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 26px rgba(14,203,129,0.1); }
.pos-card.in-loss { border-color: rgba(246,70,93,0.32); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 26px rgba(246,70,93,0.1); }
.pos-card.is-ending {
  filter: saturate(1.05);
}
.pos-card.is-settling.settle-win {
  border-color: rgba(14,203,129,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(14,203,129,0.18), 0 10px 28px rgba(14,203,129,0.18);
}
.pos-card.is-settling.settle-lose {
  border-color: rgba(246,70,93,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(246,70,93,0.18), 0 10px 28px rgba(246,70,93,0.16);
}
.pos-card.is-exiting {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  max-height: 0;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0;
  box-shadow: none;
  pointer-events: none;
}

.pos-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pos-pair { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.pos-side-tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.3px;
}
.pos-side-tag.buy { color: #0ECB81; background: rgba(14,203,129,0.12); }
.pos-side-tag.sell { color: #F6465D; background: rgba(246,70,93,0.12); }
.pos-state-tag {
  margin-inline-start: auto; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,0.06);
}
.pos-state-tag.win { color: #0ECB81; background: rgba(14,203,129,0.14); }
.pos-state-tag.lose { color: #F6465D; background: rgba(246,70,93,0.14); }

.pos-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
}
.pos-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}
.pos-col > small:first-child {
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}
.pos-col > b {
  font-size: 13px;
  font-family: Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  width: 100%;
  line-height: 1.25;
  min-height: 1.25em;
}
.pos-move { font-weight: 700; }

.pos-amt,
.pos-pnl-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  width: 100%;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pos-amt small,
.pos-pnl-box small {
  font-size: 9.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
  line-height: 1.2;
}
.pos-amt b {
  font-size: 12px;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}
.pos-pnl {
  font-size: 14px;
  font-weight: 800;
  font-family: Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
  transform: scale(var(--pnl-scale, 1));
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}
.pos-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: Consolas, monospace;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  direction: ltr;
}

/* Trading tab */
.trade-tab-page {
  padding-top: 14px;
  padding-bottom: 24px;
  min-height: 100%;
  background: #0b0c0e;
}
#screen:has(.trade-tab-page) > .pro-header {
  background: rgba(9, 10, 13, 0.94);
}
.trade-tab-page .trade-search-bar,
.trade-tab-page .trade-pair-row,
.trade-tab-page .bn-input,
.trade-tab-page .dur-tabs button,
.trade-tab-page .trade-chart-wrap,
.trade-tab-page .trade-promo {
  background: #101214;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.trade-tab-page .trade-search-bar:active,
.trade-tab-page .trade-pair-row:active {
  background: rgba(18, 18, 18, 0.96);
}
.trade-tab-page .dur-tabs button.on {
  background: rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.28);
}

.trade-history-page { padding-bottom: 24px; }
.trade-history-list { display: flex; flex-direction: column; gap: 8px; }
.trade-history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}
.trade-history-body { flex: 1; min-width: 0; }
.trade-history-body strong { display: block; font-size: 13px; margin-bottom: 3px; }
.trade-history-body small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.trade-history-end { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.trade-history-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.trade-history-status.win { color: #0ECB81; background: rgba(14,203,129,0.12); }
.trade-history-status.lose { color: #F6465D; background: rgba(246,70,93,0.12); }
.trade-history-status.open { color: var(--yellow); background: rgba(240,185,11,0.12); }
.trade-history-end b { font-size: 14px; direction: ltr; }

.trade-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(145deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  color: var(--muted);
  box-shadow: 0 4px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.trade-search-bar:active {
  border-color: rgba(240,185,11,0.32);
  box-shadow: 0 4px 20px rgba(0,0,0,0.28), 0 0 0 1px rgba(240,185,11,0.08);
}
.trade-search-bar .ico { color: #848E9C; flex-shrink: 0; opacity: 0.9; }
.trade-search-bar input {
  flex: 1; background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.trade-search-bar input::placeholder { color: #6B7280; font-weight: 400; }
.trade-search-bar input:focus { outline: none; }
.sheet-search { margin-bottom: 12px; }

.trade-pair-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 12px; cursor: pointer; font-family: inherit; color: var(--text); text-align: right;
}
.trade-pair-row:active { background: rgba(255,255,255,0.03); }
.trade-pair-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.trade-pair-left strong { display: block; font-size: 1.05rem; direction: ltr; text-align: right; }
.trade-pair-left small { font-size: 11px; color: var(--muted); }
.trade-pair-right { text-align: left; direction: ltr; }
.trade-pair-right strong { display: block; font-size: 1.1rem; }
.trade-pair-right span { font-size: 11px; }
.trade-pair-row > .ico { color: var(--muted); flex-shrink: 0; transform: rotate(180deg); }

#app-overlays {
  position: relative;
  z-index: 12000;
}

.coin-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 430px;
  margin: 0 auto;
  left: 0;
  right: 0;
  animation: overlayFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.coin-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.coin-picker-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(86dvh, 720px);
  background: var(--card);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border);
  padding: 10px 14px calc(14px + var(--safe-b));
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: sheetSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
.coin-picker-hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
  min-height: 28px;
}
.coin-picker-hdr h3 {
  font-size: 15px;
  margin: 0;
  text-align: center;
}
.coin-picker-close {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.coin-picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.coin-picker-search .ico { color: #848E9C; flex-shrink: 0; }
.coin-picker-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* يمنع زووم iOS */
  font-weight: 500;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.coin-picker-search input::placeholder { color: #6B7280; font-weight: 400; }
.sheet-handle {
  width: 40px; height: 4px; background: var(--border); border-radius: 99px; margin: 0 auto 10px;
  flex-shrink: 0;
}
.coin-pick-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}
.coin-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  -webkit-tap-highlight-color: rgba(240,185,11,0.15);
  touch-action: manipulation;
  user-select: none;
  flex-shrink: 0;
}
.coin-pick-meta { flex: 1; min-width: 0; text-align: start; }
.coin-pick-item strong { display: block; font-size: 13px; direction: ltr; unicode-bidi: isolate; }
.coin-pick-item small { font-size: 10px; color: var(--muted); }
.coin-pick-chg {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.coin-pick-item:active,
.coin-pick-item:focus-visible {
  border-color: var(--yellow);
  background: rgba(240,185,11,0.06);
}
.coin-pick-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
  font-size: 13px;
}
body.coin-picker-open {
  overflow: hidden;
}
body.coin-picker-open .app-content {
  overflow: hidden !important;
  touch-action: none;
}
body.coin-picker-open .bottom-nav {
  pointer-events: none;
  opacity: 0.35;
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  max-width: 430px; margin: 0 auto; left: 0; right: 0;
  animation: overlayFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Activity ticker */
.activity-ticker-wrap { margin-bottom: 12px; min-height: 36px; }
.activity-ticker {
  overflow: hidden; border-radius: 10px;
  background: rgba(240,185,11,0.05); border: 1px solid rgba(240,185,11,0.12);
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.activity-ticker-track {
  display: flex; gap: 28px; width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
html[dir="rtl"] .activity-ticker-track { animation-name: ticker-scroll-rtl; }
.activity-ticker-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.activity-ticker-item b { color: var(--yellow); font-weight: 700; font-family: Consolas, monospace; font-size: 10px; }
.activity-ticker-item.is-tip span { color: var(--muted); font-weight: 500; }
.activity-ticker-item.is-tip strong { color: var(--yellow); font-weight: 700; }
.activity-ticker-item.is-deposit span strong { color: #0ECB81; font-weight: 700; }
.activity-ticker-item.is-real b { color: #F0D78C; }
.activity-ticker-item strong { color: var(--text); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* Referral level modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + var(--safe-b));
  animation: overlayFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-sheet {
  width: 100%; max-width: 430px; max-height: 70vh;
  background: #141416; border: 1px solid var(--border);
  border-radius: 16px 16px 12px 12px; padding: 16px; overflow-y: auto;
  animation: sheetSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { font-size: 1rem; margin: 0; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-sub { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.ref-member-list { display: flex; flex-direction: column; gap: 8px; }
.ref-member-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.03);
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);
}
.ref-member-row strong { font-size: 12px; display: block; }
.ref-member-row small { font-size: 10px; color: var(--muted); }
.ref-member-plans { grid-column: 1 / -1; font-size: 10px; color: #E8ECF0; }
.ref-member-earn { font-size: 13px; font-weight: 700; }
.level-tap { font-size: 10px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; }

/* Profile — Binance style */
.profile-page { padding-top: 4px; padding-bottom: 28px; }
.profile-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 18px; margin-bottom: 14px;
  background: linear-gradient(145deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid var(--border); border-radius: 16px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, #D4AF37, #8B6914);
  color: #1a1006; font-size: 1.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.profile-hero-info h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.profile-hero-info small { font-size: 11px; color: var(--muted); }
.profile-uid {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px;
  padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(212,175,55,0.25);
  background: rgba(212,175,55,0.08); color: var(--yellow); font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px;
}
.profile-stats > div {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 8px; text-align: center;
}
.profile-stats small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.profile-stats strong { font-size: 14px; font-weight: 700; display: block; }
.profile-stats em { font-size: 9px; color: var(--muted); font-style: normal; }
.profile-section { margin-bottom: 18px; }
.profile-section h3 {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.profile-field-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
}
.profile-field-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.profile-field-value { font-size: 13px; font-weight: 600; word-break: break-all; }
.profile-field-value.profile-masked { letter-spacing: 2px; color: var(--text); }
.profile-link-btn {
  flex-shrink: 0; border: none; background: rgba(240,185,11,0.1);
  color: var(--yellow); font-size: 11px; font-weight: 600; padding: 6px 12px;
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
.profile-divider { height: 1px; background: var(--border); margin: 0 16px; }
.profile-pwd-form { padding: 4px 16px 16px; }
.profile-pwd-form .field input {
  width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px;
}
.profile-plan-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.profile-plan-row:last-child { border-bottom: none; }
.profile-plan-icon { flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.profile-plan-body { flex: 1; min-width: 0; }
.profile-plan-body strong { display: block; font-size: 13px; margin-bottom: 2px; }
.profile-plan-body small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.profile-plan-body span { font-size: 10px; color: #9aa3ad; }
.profile-plan-badge {
  font-size: 10px; font-weight: 700; color: var(--green);
  padding: 4px 8px; border-radius: 6px; background: rgba(14,203,129,0.12);
  border: 1px solid rgba(14,203,129,0.25);
}
.profile-empty {
  padding: 24px 16px; text-align: center; font-size: 12px; color: var(--muted);
}
.profile-empty button {
  display: block; margin: 10px auto 0; border: none; background: none;
  color: var(--yellow); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 12px;
}
.profile-menu-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border: none; background: none; color: var(--text);
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  border-bottom: 1px solid var(--border); text-align: start;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item span { flex: 1; }
.profile-menu-item .ico:last-child { margin-inline-start: auto; opacity: 0.45; }
.profile-logout {
  width: 100%; padding: 14px; margin-top: 8px;
  border: 1px solid rgba(246,70,93,0.45); border-radius: 10px;
  background: rgba(246,70,93,0.08); color: var(--red);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.profile-logout:active { background: rgba(246,70,93,0.15); }

/* Profile — Premium trading platform */

/* أيقونات بسيطة — لون فقط، بدون خلفية */
.ico-tone-gold { color: #D4AF37; }
.ico-tone-green { color: #0ECB81; }
.ico-tone-amber { color: #F0A030; }
.ico-tone-muted { color: #6B7280; opacity: 0.75; }
.ico-tone-faint { color: #4B5563; opacity: 0.5; }
.profile-stat-card .ico { display: block; margin: 0 auto 8px; position: relative; z-index: 1; }
.profile-stat-card .ico-tone-gold { color: #F0D060; filter: drop-shadow(0 0 6px rgba(240,208,96,0.35)); }
.profile-section-title .ico { flex-shrink: 0; }
.profile-menu-lux > .ico:first-child { flex-shrink: 0; }
.profile-menu-lux > .ico:last-child { margin-inline-start: auto; }
.notif-item-icon .ico { display: block; }
.notif-empty-lux > .ico { display: block; margin: 0 auto 12px; }

.profile-hero-premium {
  --avatar-accent: #D4AF37;
  position: relative; overflow: hidden;
  padding: 24px 20px 18px; margin-bottom: 18px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--avatar-accent) 14%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, color-mix(in srgb, var(--avatar-accent) 6%, transparent) 0%, transparent 50%),
    linear-gradient(155deg, #1e1a12 0%, #121212 42%, #0a0e14 100%);
  border: 1px solid color-mix(in srgb, var(--avatar-accent) 32%, transparent);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    0 0 0 1px color-mix(in srgb, var(--avatar-accent) 6%, transparent) inset,
    inset 0 1px 0 color-mix(in srgb, var(--avatar-accent) 15%, transparent);
}
.profile-hero-glow {
  position: absolute; top: -50px; right: -30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--avatar-accent) 20%, transparent) 0%, transparent 68%);
  pointer-events: none;
}
.profile-hero-glow-2 {
  top: auto; right: auto; bottom: -60px; left: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--avatar-accent) 10%, transparent) 0%, transparent 70%);
}
.profile-hero-corner {
  position: absolute; top: 0; inset-inline-end: 0;
  width: 80px; height: 80px; pointer-events: none;
  background: linear-gradient(225deg, color-mix(in srgb, var(--avatar-accent) 12%, transparent) 0%, transparent 55%);
  border-start-end-radius: 20px;
}
.profile-hero-top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; position: relative; z-index: 1; }
.profile-avatar-bot {
  position: relative; flex-shrink: 0; border: none; background: none; padding: 0; cursor: pointer;
}
.profile-avatar-ring {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--avatar-accent, #D4AF37) 38%, transparent);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--avatar-accent, #D4AF37) 10%, rgba(40,44,58,0.9)) 0%, rgba(0,0,0,0.55) 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), 0 0 16px color-mix(in srgb, var(--avatar-accent, #D4AF37) 12%, transparent), inset 0 0 0 1px rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.profile-avatar-ring .robot-wrap.avatar-profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.profile-avatar-ring .robot-stage {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.profile-avatar-ring .robot-stage::after { display: none; }
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--avatar-accent, #F0D060) 88%, #fff), color-mix(in srgb, var(--avatar-accent, #D4AF37) 55%, #000));
  color: #1a1006; display: flex; align-items: center; justify-content: center;
  border: 2px solid #0d0d0d;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--avatar-accent, #D4AF37) 38%, transparent);
}
.profile-vip-badge {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #1a1006;
  background: linear-gradient(105deg, #C9A227, #F5E6A8, #D4AF37, #F5E6A8, #B8860B);
  background-size: 200% 100%;
  padding: 4px 10px 4px 6px; border-radius: 6px; margin-bottom: 8px;
  box-shadow: 0 2px 12px rgba(212,175,55,0.35);
}
.profile-hero-info h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.02em; }
.profile-member-since { font-size: 11px; color: #8B95A5; font-style: italic; margin: 0; }
.profile-uid-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), color-mix(in srgb, var(--avatar-accent, #D4AF37) 5%, rgba(20,18,12,0.6)));
  border: 1px solid color-mix(in srgb, var(--avatar-accent, #D4AF37) 24%, transparent);
  backdrop-filter: blur(8px);
  position: relative; z-index: 1;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--avatar-accent, #D4AF37) 10%, transparent);
}
.profile-uid-left { min-width: 0; }
.profile-uid-label {
  display: block; font-size: 8px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: #6B7280; margin-bottom: 5px;
}
.profile-uid-value {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  font-family: 'SF Mono', 'Consolas', 'Courier New', monospace; letter-spacing: 0.08em;
  text-shadow: none;
}
.profile-uid-copy {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--avatar-accent, #F0D060) 92%, #fff) 0%, var(--avatar-accent, #D4AF37) 50%, color-mix(in srgb, var(--avatar-accent, #B8860B) 72%, #000) 100%);
  color: #1a1006; font-size: 11px; font-weight: 800; font-family: inherit;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--avatar-accent, #D4AF37) 38%, transparent), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.profile-uid-copy:active { transform: scale(0.96); box-shadow: 0 2px 8px color-mix(in srgb, var(--avatar-accent, #D4AF37) 28%, transparent); }

.profile-sub-badge {
  display: inline-block; margin-inline-end: 6px; margin-bottom: 6px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 6px;
  color: #dbeafe;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.profile-sub-hint {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  margin: 0 0 14px; padding: 0 2px;
}
.profile-sub-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 14px; margin-bottom: 12px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03));
  color: var(--text); font-weight: 700; cursor: pointer;
}
.profile-switch-under-uid {
  margin-top: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.profile-switch-panel {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.profile-sub-toggle span { flex: 1; text-align: start; }
.profile-sub-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.profile-sub-accounts { padding: 14px; }
.profile-sub-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 16px; margin-bottom: 8px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(0,0,0,0.25));
  cursor: pointer; font-family: inherit; color: var(--text); text-align: start;
  transition: border-color 0.2s, transform 0.15s;
}
.profile-sub-row.on {
  border-color: rgba(186, 190, 198, 0.38);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(120,124,132,0.08));
  box-shadow: none;
}
.profile-sub-row.on .profile-sub-avatar {
  border-color: rgba(186, 190, 198, 0.45);
}
.profile-sub-row.on .profile-sub-active {
  color: #c8ccd4;
}
.profile-sub-row:active { transform: scale(0.99); }
.profile-sub-avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--avatar-accent, #D4AF37) 25%, transparent);
  background: radial-gradient(circle at 50% 40%, rgba(40,44,58,0.85) 0%, rgba(0,0,0,0.5) 100%);
}
.profile-sub-avatar .robot-wrap.avatar-profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 420px) {
  .profile-avatar-ring { width: 54px; height: 54px; }
  .profile-hero-top { gap: 12px; }
}

@media (max-width: 390px) {
  .screen-pad { padding: 0 12px 18px; }
  .pro-header { padding: 12px 12px 8px; }
  .pro-header h1 { font-size: 0.92rem; }
  .cash-card { padding: 16px 14px; min-height: 94px; }
  .bottom-nav { padding: 6px 6px calc(var(--safe-b) + 6px); }
  .bottom-nav .nav-item { font-size: 10px; gap: 3px; }
  .bottom-nav .nav-item .nav-icon-wrap { width: 28px; height: 28px; }
  .arena-stage:not(.mdaw-stage) { height: 300px; }
  .arena-metrics { gap: 8px; margin-bottom: 10px; }
  .arena-metrics > div { padding: 9px 10px; }
  .arena-metrics strong { font-size: 13px; }
  .arena-panel { padding: 12px 12px 14px; }
  .arena-msg-under { padding: 0 8px; font-size: 12px; }
  .upgrade-strip { padding: 10px 12px; }
  .upgrade-open-btn { font-size: 11px; padding: 7px 10px; }
  .pro-stat { padding: 10px 12px; }
  .pro-stat strong { font-size: 14px; }
  .pro-stat small { font-size: 9px; }
  .pro-speech { font-size: 11px; padding: 9px 12px; }
  .plan-pro-body { padding: 12px; }
  .plan-pro-title { font-size: 15px; }
  .plans-full-page { padding: 0 12px 18px; }
}
.profile-sub-avatar .robot-wrap { width: 100%; height: 100%; }
.profile-sub-body { flex: 1; min-width: 0; }
.profile-sub-body strong {
  display: block; font-size: 13px; margin-bottom: 3px;
}
.profile-sub-body small {
  display: block; font-size: 11px; font-weight: 500; color: var(--muted);
}
.profile-sub-tag {
  font-style: normal; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; margin-inline-start: 4px;
  color: #94a3b8; background: rgba(148,163,184,0.12);
}
.profile-sub-tag.main { color: #fde68a; background: rgba(212,175,55,0.12); }
.profile-sub-active {
  font-size: 10px; font-weight: 800; color: color-mix(in srgb, var(--avatar-accent, #D4AF37) 80%, #fff);
}
.profile-sub-add {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; margin-top: 4px; border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--avatar-accent, #D4AF37) 35%, transparent);
  background: transparent; color: var(--text); font-family: inherit;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.profile-sub-form {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.profile-stats-premium {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
  background: transparent;
  border: none;
}
.profile-stats-premium .profile-stat-card {
  flex: 1;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 4px 8px 8px;
  margin: 0;
}
.profile-stats-premium .profile-stat-card::before,
.profile-stats-premium .profile-stat-card::after { display: none; }
.profile-stats-premium .profile-stat-card + .profile-stat-card {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
}
.profile-stat-card small { display: block; font-size: 9px; color: #6B7280; margin-bottom: 5px; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-stat-card strong { font-size: 15px; font-weight: 800; display: block; position: relative; z-index: 1; }
.profile-stat-card em { font-size: 9px; color: #6B7280; font-style: normal; position: relative; z-index: 1; }

.profile-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #9CA3AF; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
  padding-inline-start: 2px;
}
.profile-section-title span { flex: 1; }

.profile-card-premium {
  background: linear-gradient(180deg, rgba(28,28,28,0.98) 0%, rgba(18,18,18,0.99) 100%);
  border: 1px solid rgba(212,175,55,0.14);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.profile-field-lux { padding: 16px 18px; gap: 14px; }
.profile-field-grow { flex: 1; min-width: 0; }
.profile-divider-lux {
  height: 1px; margin: 0 18px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
}
.profile-link-lux {
  padding: 7px 14px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-plan-lux {
  padding: 16px 18px; gap: 14px;
  background: linear-gradient(90deg, rgba(212,175,55,0.03), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.profile-plan-lux:last-child { border-bottom: none; }
.profile-plan-icon-wrap {
  flex-shrink: 0; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}
.profile-plan-badge-lux {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0ECB81; padding: 5px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(14,203,129,0.18), rgba(14,203,129,0.06));
  border: 1px solid rgba(14,203,129,0.35);
  box-shadow: 0 0 12px rgba(14,203,129,0.15);
}
.profile-empty-lux {
  padding: 32px 20px; text-align: center;
}
.profile-empty-lux p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.profile-empty-lux button {
  margin-top: 4px; padding: 8px 16px; border-radius: 8px;
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.25);
  color: var(--yellow); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 12px;
}

.profile-menu-lux {
  padding: 15px 18px; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.profile-menu-lux:active { background: rgba(212,175,55,0.04); }
.profile-menu-lux span { flex: 1; font-weight: 600; font-size: 13px; }

.profile-logout-lux {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px; padding: 15px;
  border: 1px solid rgba(246,70,93,0.4); border-radius: 14px;
  background: linear-gradient(135deg, rgba(246,70,93,0.1), rgba(246,70,93,0.04));
  box-shadow: 0 4px 16px rgba(246,70,93,0.08);
}
.profile-logout-lux .ico { opacity: 0.85; }

.profile-notif-badge {
  font-size: 10px; font-weight: 800; font-style: normal;
  background: linear-gradient(135deg, #F6465D, #E03E52);
  color: #fff; border-radius: 10px;
  padding: 3px 8px; min-width: 20px; text-align: center;
  box-shadow: 0 2px 8px rgba(246,70,93,0.35);
}

/* App download card */
.profile-app-card {
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
}
.profile-app-card.profile-app-installed {
  grid-template-columns: auto 1fr auto;
}
.profile-app-icon {
  width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  background: #111;
}
.profile-app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-app-body { min-width: 0; }
.profile-app-body strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.profile-app-body p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.45; }
.profile-app-actions {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 10px;
}
.profile-app-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; font-size: 13px; font-weight: 700;
}
.profile-app-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px;
  background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.22);
  color: var(--yellow); font-weight: 700; font-size: 13px; text-decoration: none;
}
.profile-app-link:active { opacity: 0.85; }
.profile-ios-steps {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.ios-install {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ios-install-lead {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.ios-install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ios-install-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.ios-step-n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.16);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ios-share-ico {
  display: inline-block;
  vertical-align: -4px;
  margin-inline-start: 4px;
  color: #0a84ff;
}
.ios-copy-btn { margin-bottom: 4px; }
.profile-app-note {
  margin: 0; font-size: 11px; color: var(--muted); text-align: center;
}

.install-sheet { max-width: 400px; margin: 0 auto; }
.install-sheet-body { padding: 8px 4px 12px; text-align: center; }
.install-sheet-icon {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.3); box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.install-sheet-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.install-sheet-hint { font-size: 12px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.install-sheet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.install-sheet-note { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
.install-sheet-ios { text-align: start; margin-top: 4px; }

/* Avatar picker */
.avatar-picker-sheet {
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #1e1e1e, #141414);
  border: 1px solid rgba(212,175,55,0.18); border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(18px + var(--safe-b)); animation: lang-slide-up 0.28s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}
.avatar-picker-sub { font-size: 11px; color: var(--muted); margin: 0 0 16px; text-align: center; }
.avatar-picker-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.avatar-pick-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(0,0,0,0.3));
  cursor: pointer; font-family: inherit; color: var(--text); font-size: 10px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: border-color 0.2s, transform 0.15s;
}
.avatar-pick-item.on {
  border-color: color-mix(in srgb, var(--avatar-accent, #D4AF37) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--avatar-accent, #D4AF37) 14%, transparent), color-mix(in srgb, var(--avatar-accent, #D4AF37) 4%, transparent));
  box-shadow: 0 0 20px color-mix(in srgb, var(--avatar-accent, #D4AF37) 15%, transparent), 0 4px 16px rgba(0,0,0,0.3);
}
.avatar-pick-item:active { transform: scale(0.97); }
.avatar-pick-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--avatar-accent, #D4AF37) 10%, rgba(40,44,58,0.85)) 0%, rgba(0,0,0,0.5) 100%);
  border: 2px solid color-mix(in srgb, var(--avatar-accent, #D4AF37) 28%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.avatar-pick-img .robot-wrap.avatar-profile {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-pick-img .robot-stage {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.avatar-pick-item .lang-check {
  position: absolute; top: 8px; left: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #F0D060, #D4AF37);
  color: #1a1006; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-style: normal;
  box-shadow: 0 2px 8px rgba(212,175,55,0.4);
}

/* Notifications page */
.notif-page { padding-top: 4px; }
.notif-page-hdr {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(28,26,18,0.9), rgba(18,18,18,0.95));
  border: 1px solid rgba(212,175,55,0.14); border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.notif-page-hdr h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.notif-page-hdr p { font-size: 11px; color: var(--muted); margin: 0; }
.notif-read-all {
  flex-shrink: 0; border: 1px solid rgba(212,175,55,0.25);
  background: linear-gradient(135deg, rgba(212,175,55,0.14), rgba(212,175,55,0.05));
  color: var(--yellow); font-size: 11px; font-weight: 700;
  padding: 9px 14px; border-radius: 10px; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: 16px; text-align: start;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(160deg, rgba(28,28,28,0.95), rgba(18,18,18,0.98));
  cursor: pointer; font-family: inherit; color: var(--text); position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: border-color 0.15s, transform 0.15s;
}
.notif-item:active { transform: scale(0.99); }
.notif-item.unread {
  border-color: rgba(212,175,55,0.28);
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(18,18,18,0.98));
  box-shadow: 0 4px 20px rgba(212,175,55,0.08), 0 4px 16px rgba(0,0,0,0.25);
}
.notif-item-icon { flex-shrink: 0; width: auto; height: auto; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-body strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.notif-item-body p { font-size: 12px; color: #9aa3ad; margin: 0 0 7px; line-height: 1.5; }
.notif-item-body small { font-size: 10px; color: #6B7280; }
.notif-unread-dot {
  position: absolute; top: 16px; left: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: #F0D060;
  box-shadow: 0 0 10px rgba(212,175,55,0.7);
}
[dir="ltr"] .notif-unread-dot { left: auto; right: 16px; }
.notif-empty-lux {
  text-align: center; padding: 48px 28px;
  background: linear-gradient(160deg, rgba(28,28,28,0.9), rgba(14,14,14,0.95));
  border: 1px dashed rgba(212,175,55,0.2); border-radius: 18px;
}
.notif-empty-lux p { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.notif-empty-lux small { font-size: 11px; color: var(--muted); }

/* Language sheet */
.lang-sheet-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: overlayFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-sheet-overlay,
.modal-overlay,
.coin-picker-overlay {
  bottom: calc(var(--nav-h) + var(--safe-b));
}
.avatar-save-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 22, 0.28);
}
.lang-sheet {
  width: 100%; max-width: 430px; background: var(--card);
  border: 1px solid var(--border); border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + var(--safe-b));
  animation: sheetSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
@keyframes lang-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.lang-sheet-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lang-sheet-hdr h4 { font-size: 15px; font-weight: 600; }
.lang-sheet-item {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 12px; border: none; background: none; color: var(--text);
  font-family: inherit; font-size: 14px; cursor: pointer; border-radius: 10px;
  text-align: start;
}
.lang-sheet-item:hover, .lang-sheet-item.on { background: rgba(240,185,11,0.1); }
.lang-sheet-flag {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.lang-sheet-item.on .lang-sheet-flag { border-color: var(--yellow); color: var(--yellow); }
.lang-check { margin-inline-start: auto; color: var(--yellow); font-style: normal; font-weight: 700; }

/* Admin panel */
.admin-shell { max-width: 430px; margin: 0 auto; }
.admin-content { padding-bottom: 24px; }
.admin-auth .auth-logo span { color: #F6465D; }
.admin-header h1 { font-size: 0.95rem; }
.admin-logout-hdr { color: var(--muted); }
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px;
}
.admin-stats-grid > div {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 8px; text-align: center;
}
.admin-stats-grid small { display: block; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.admin-stats-grid strong { font-size: 13px; font-weight: 700; }
.admin-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px;
}
.admin-search input {
  flex: 1; border: none; background: none; color: var(--text);
  font-family: inherit; font-size: 13px; outline: none;
}
.admin-section-hdr {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.admin-section-hdr h3 { font-size: 13px; font-weight: 600; }
.admin-section-hdr button {
  border: none; background: none; color: var(--yellow); font-size: 12px;
  cursor: pointer; font-family: inherit;
}
.admin-user-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; font-family: inherit; color: var(--text); text-align: start;
}
.admin-user-row:active { background: rgba(255,255,255,0.04); }
.admin-user-main { flex: 1; min-width: 0; }
.admin-user-main strong { display: block; font-size: 13px; margin-bottom: 2px; }
.admin-user-main small { display: block; font-size: 11px; color: var(--muted); }
.admin-user-meta { font-size: 10px; color: #6b7280; }
.admin-user-stats { text-align: center; flex-shrink: 0; }
.admin-user-stats span { display: block; font-size: 12px; font-weight: 700; }
.admin-user-stats small { font-size: 9px; color: var(--muted); }
.admin-user-hero {
  display: flex; gap: 14px; align-items: center; margin-bottom: 14px;
  padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
}
.admin-user-hero h2 { font-size: 1.1rem; margin-bottom: 4px; }
.admin-user-hero p { font-size: 11px; color: var(--muted); }
.admin-ref { margin-top: 4px; font-size: 11px !important; }
.admin-ref b { color: var(--yellow); }
.admin-mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px;
}
.admin-mini-stats > div {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 6px; text-align: center;
}
.admin-mini-stats small { display: block; font-size: 9px; color: var(--muted); }
.admin-mini-stats strong { font-size: 11px; }
.admin-edit-card { padding: 16px; }
.admin-edit-card .field input {
  width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px;
}
.admin-tx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.admin-tx-row:last-child { border-bottom: none; }
.admin-tx-row strong { display: block; font-size: 12px; text-transform: capitalize; }
.admin-tx-row small { font-size: 10px; color: var(--muted); }
.admin-hdr-actions { display: flex; gap: 8px; align-items: center; }
.admin-notif-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; background: rgba(240,185,11,0.12); color: var(--yellow);
  font-size: 11px; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-family: inherit;
}
.admin-notif-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.admin-notif-row:last-child { border-bottom: none; }
.admin-notif-main { flex: 1; min-width: 0; }
.admin-notif-main strong { display: block; font-size: 13px; margin-bottom: 4px; }
.admin-notif-main p { font-size: 12px; color: #9aa3ad; margin: 0 0 4px; line-height: 1.4; }
.admin-notif-main small { font-size: 10px; color: var(--muted); }
.admin-notif-del {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(246,70,93,0.35); background: rgba(246,70,93,0.1);
  color: var(--red); cursor: pointer; font-size: 12px;
}
.admin-edit-card .field textarea,
.admin-edit-card .field select {
  width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px;
}
.admin-edit-card .field textarea { resize: vertical; min-height: 72px; }

.admin-withdraw-addrs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}
.admin-withdraw-addrs code {
  display: block;
  font-size: 10px;
  word-break: break-all;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.admin-treasury-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(240,185,11,0.12), rgba(240,185,11,0.04));
  border: 1px solid rgba(240,185,11,0.25);
  border-radius: 14px;
}
.admin-treasury-banner small { display: block; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.admin-treasury-banner strong { font-size: 12px; }
.admin-treasury-flags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.admin-flag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.admin-flag.on { background: rgba(14,203,129,0.15); color: var(--green); }
.admin-flag.off { background: rgba(246,70,93,0.12); color: var(--red); }
.admin-treasury-totals { margin-bottom: 14px; }
.admin-treasury-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.45;
}
.admin-treasury-list { padding: 0; }
.admin-treasury-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.admin-treasury-row:last-child { border-bottom: none; }
.admin-treasury-chain { flex: 1; min-width: 0; }
.admin-treasury-chain strong { display: block; font-size: 12px; margin-bottom: 6px; }
.admin-treasury-addr {
  display: block;
  font-size: 9px;
  word-break: break-all;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  color: #cbd5e1;
}
.admin-treasury-addr.inline { margin-top: 4px; }
.admin-treasury-balances {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: end;
  flex-shrink: 0;
}
.admin-treasury-balances small { display: block; font-size: 9px; color: var(--muted); }
.admin-treasury-balances strong { font-size: 12px; }
.admin-deposit-summary { padding: 0; }
.admin-deposit-chain-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.admin-deposit-chain-row:last-child { border-bottom: none; }
.admin-deposit-chain-row span:first-child { font-weight: 600; }
.admin-deposit-chain-row span:nth-child(2) { color: var(--muted); font-size: 10px; }
.admin-sweep-btn { font-size: 10px !important; padding: 4px 8px !important; }

.admin-report-summary { margin-bottom: 12px; }
.admin-report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.admin-report-card:active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 185, 11, 0.25);
}
.admin-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-report-head strong { display: block; font-size: 13px; margin-bottom: 2px; }
.admin-report-head small { display: block; font-size: 11px; color: var(--muted); }
.admin-report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.admin-report-grid > div {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.admin-report-grid small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 3px;
  line-height: 1.2;
}
.admin-report-grid strong { font-size: 11px; font-weight: 700; }
.admin-report-addrs {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.admin-report-addrs small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
}
.admin-report-addrs code {
  display: block;
  font-size: 9px;
  word-break: break-all;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #94a3b8;
}
.admin-report-addrs.empty small { margin: 0; }

.admin-notif-btn.on {
  background: rgba(14, 203, 129, 0.18);
  color: var(--green);
  border: 1px solid rgba(14, 203, 129, 0.35);
}

.admin-report-card.has-deposit {
  border-color: rgba(14, 203, 129, 0.28);
}
.admin-report-card .deposit-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  color: var(--green);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(14, 203, 129, 0.12);
  margin-top: 4px;
}

.admin-trade-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: -4px 0 12px;
}
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-section-head h3 { margin: 0; }
.admin-section-head button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
}
.admin-open-round {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-open-round:last-child { border-bottom: none; padding-bottom: 0; }
.admin-open-round:first-child { padding-top: 0; }
.admin-open-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.admin-open-head span { color: var(--muted); font-size: 12px; }
.admin-open-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 2px;
}
.admin-open-user strong { display: block; font-size: 13px; }
.admin-open-user small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.admin-open-amt { text-align: end; }
.admin-open-amt b { display: block; font-size: 13px; }
.admin-open-amt small { color: #fff; font-weight: 700; }
.admin-trade-window {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px 12px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.admin-trade-window:last-child { border-bottom: none; }
.admin-tw-enabled {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.admin-trade-window .admin-notif-del { margin-bottom: 6px; }

/* ─── Bots Arena Pro — مسرح واقعي + تفاعل ─── */
.bots-arena-pro {
  background: #090a0d;
  min-height: 100%;
}
.bots-arena-pro .bots-bg-mesh {
  background:
    radial-gradient(ellipse 85% 55% at 50% -8%, rgba(124,92,196,0.16) 0%, transparent 58%),
    radial-gradient(ellipse 55% 48% at 8% 50%, rgba(232,121,249,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 92% 68%, rgba(56,189,248,0.1) 0%, transparent 52%),
    linear-gradient(180deg, #0c0d12 0%, #07080b 100%);
}
.bots-arena-pro .bots-bg-orb--gold {
  background: radial-gradient(circle, rgba(167,139,250,0.26) 0%, transparent 70%);
}
.bots-arena-pro .bots-bg-orb--violet {
  background: radial-gradient(circle, rgba(56,189,248,0.16) 0%, transparent 68%);
}
.bots-arena-pro .pro-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.bots-arena-pro .pro-metrics:has(.pro-stat-battery) {
  grid-template-columns: repeat(3, 1fr);
}
.bots-arena-pro .pro-stat {
  position: relative;
  background:
    linear-gradient(155deg, rgba(46,43,64,0.95) 0%, rgba(22,20,33,0.97) 55%, rgba(14,13,22,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 24px rgba(124,92,196,0.06),
    0 8px 22px rgba(0,0,0,0.4);
  overflow: hidden;
}
.bots-arena-pro .pro-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 38%);
  pointer-events: none;
}
.bots-arena-pro .pro-stat > div {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
}
.bots-arena-pro .pro-stat > * { position: relative; z-index: 1; }
.bots-arena-pro .pro-stat small { color: rgba(255,255,255,0.6); font-size: 10px; letter-spacing: 0.2px; }
.bots-arena-pro .pro-stat strong {
  font-size: 17px;
  background: linear-gradient(180deg, #ffe9a8 0%, #f0b90b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f0b90b;
}
.bots-arena-pro .pro-stat-icon {
  background: linear-gradient(150deg, rgba(240,185,11,0.18), rgba(240,185,11,0.05));
  border: 1px solid rgba(240,185,11,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* زر الترقية — ذهبي ثابت لنص واضح دائماً */
.bots-arena-pro .upgrade-open-btn {
  background: #fcd535;
  color: #181a20;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid #e0b20e;
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: none;
  font-size: 12px;
  padding: 8px 12px;
  min-height: 34px;
}
.bots-arena-pro .upgrade-open-btn:active {
  background: #f0b90b;
  filter: none;
  transform: scale(0.97);
}
.bots-arena-pro .mdaw-upgrade {
  background: rgba(18, 18, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px 11px;
  margin-bottom: 6px;
  backdrop-filter: blur(12px);
}
.bots-arena-pro .pro-upgrade .upgrade-track {
  background: rgba(255, 255, 255, 0.07);
  height: 6px;
}

.bots-arena-pro .arena-theater-zone .mdaw-stage {
  height: auto;
  min-height: min(70vw, 385px);
  background: transparent;
  border: none;
  box-shadow: none;
}

.deposit-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  max-width: 450px;
  margin: 0 auto;
  left: 0;
  right: 0;
}
.deposit-prompt-modal {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 24px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(165deg, #1a1510 0%, #0f0d0a 100%);
  border: 1px solid rgba(240, 185, 11, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.deposit-prompt-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  cursor: pointer;
}
.deposit-prompt-icon {
  margin-bottom: 12px;
  color: #fcd535;
  display: flex;
  justify-content: center;
}
.deposit-prompt-modal h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.deposit-prompt-modal p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
}
.deposit-prompt-modal p strong {
  color: #fcd535;
  font-weight: 800;
}
.deposit-prompt-later {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ─── Purchase / subscription modal (premium) ─── */
.purchase-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 20%, rgba(88, 62, 120, 0.22) 0%, transparent 55%),
    rgba(6, 5, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 450px;
  margin: 0 auto;
  left: 0;
  right: 0;
  animation: overlayFadeIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes purchaseFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.purchase-modal {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 120, 0.16);
  background:
    linear-gradient(168deg, rgba(36, 30, 48, 0.98) 0%, rgba(18, 14, 24, 0.99) 42%, rgba(10, 8, 14, 1) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: modalPopIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
@keyframes purchasePopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.purchase-modal-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, color-mix(in srgb, var(--purchase-accent, #d4af78) 22%, transparent) 0%, transparent 68%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(120, 90, 160, 0.12) 0%, transparent 70%);
}
.purchase-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 236, 220, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
html[dir="rtl"] .purchase-modal-close .ico { transform: scaleX(-1); }
.purchase-modal-close:active { background: rgba(255, 255, 255, 0.1); }
.purchase-modal-hero {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 22px 20px 8px;
  z-index: 1;
}
.purchase-modal-robot-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--purchase-accent, #d4af78) 28%, #1a1424) 0%, rgba(14, 11, 20, 0.95) 72%);
  border: 1px solid rgba(212, 175, 120, 0.22);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 24px color-mix(in srgb, var(--purchase-accent, #d4af78) 18%, transparent);
  overflow: hidden;
}
.purchase-modal-robot-ring .robot-img.purchase-mascot {
  height: 76px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}
.purchase-modal-badge {
  position: absolute;
  bottom: 4px;
  inset-inline-end: calc(50% - 58px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(14, 11, 20, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.purchase-modal-badge.is-ok {
  background: linear-gradient(145deg, #3d9b72, #2d7a58);
  color: #e8fff4;
}
.purchase-modal-badge.is-warn {
  background: linear-gradient(145deg, #c9a04a, #a67c2e);
  color: #fff8e8;
}
.purchase-modal-head {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4px 22px 14px;
}
.purchase-modal-head h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5ece0;
  line-height: 1.35;
}
.purchase-modal-head p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(232, 220, 200, 0.62);
}
.purchase-modal-sheet {
  position: relative;
  z-index: 1;
  margin: 0 14px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.purchase-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}
.purchase-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d4c4a8;
  flex-shrink: 0;
}
.purchase-row-icon .coin-img {
  display: block;
  border-radius: 50%;
}
.purchase-row-label {
  font-size: 12px;
  color: rgba(232, 220, 200, 0.55);
  line-height: 1.3;
}
.purchase-row-val {
  font-size: 13px;
  font-weight: 700;
  color: #f0e6d6;
  text-align: end;
  white-space: nowrap;
}
.purchase-row--fee .purchase-row-val { color: #e8d5a8; }
.purchase-row--shortfall {
  background: rgba(201, 140, 60, 0.1);
  border: 1px solid rgba(212, 160, 90, 0.16);
}
.purchase-row--shortfall .purchase-row-icon {
  color: #f0c987;
  background: rgba(201, 140, 60, 0.12);
  border-color: rgba(212, 160, 90, 0.2);
}
.purchase-row--shortfall .purchase-row-val { color: #f0c987; }
.purchase-row--ready {
  background: rgba(61, 155, 114, 0.1);
  border: 1px solid rgba(90, 190, 140, 0.14);
}
.purchase-row--ready .purchase-row-icon {
  color: #8fdcb8;
  background: rgba(61, 155, 114, 0.12);
  border-color: rgba(90, 190, 140, 0.18);
}
.purchase-row--ready .purchase-row-val {
  color: #9fe8c8;
  font-size: 12px;
}
.purchase-modal-foot {
  position: relative;
  z-index: 1;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.purchase-modal-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.purchase-modal-btn:active { transform: scale(0.98); }
.purchase-modal-btn--gold {
  color: #1a1208;
  background: linear-gradient(135deg, #c9a86c 0%, #e8d5a8 42%, #d4af78 100%);
  box-shadow:
    0 10px 28px rgba(180, 140, 70, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.purchase-modal-btn--gold .ico { stroke: #1a1208; }
.purchase-modal-btn--ghost {
  background: transparent;
  color: rgba(232, 220, 200, 0.48);
  min-height: 40px;
  font-weight: 600;
  font-size: 13px;
}
.purchase-modal.is-ready .purchase-modal-btn--gold {
  background: linear-gradient(135deg, #4fa882 0%, #7fd4aa 48%, #5cb88e 100%);
  color: #0a1812;
  box-shadow: 0 10px 28px rgba(70, 160, 120, 0.25);
}
.purchase-modal.is-ready .purchase-modal-btn--gold .ico { stroke: #0a1812; }
.bots-arena-pro .arena-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 0 0 8px;
  margin-top: 0;
  margin-bottom: 28px;
  backdrop-filter: blur(14px);
}
.bots-arena-pro .arena-panel-pro .arena-welcome-block,
.bots-arena-pro .arena-panel-pro .arena-action-zone {
  padding-inline: 12px;
}
.bots-arena-pro .status-pill {
  border: none;
  background: rgba(255,255,255,0.06);
}
.bots-arena-pro .status-pill.active {
  background: rgba(14,203,129,0.1);
}

.bots-arena-pro .mdaw-stage {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
  background: #08080c;
  overflow: visible;
}
.bots-arena-pro .arena-theater-zone .mdaw-stage,
.bots-arena-pro .arena-theater-zone .arena-stage-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
}
@media (max-width: 480px) {
  .bots-arena-pro .arena-theater-zone .mdaw-stage,
  .bots-arena-pro .arena-theater-zone .arena-stage-inner {
    min-height: 178px;
  }
  .mdaw-arena-compact .robot-img.arena,
  .bots-arena-pro .mdaw-stage .robot-img.arena {
    height: min(58vw, 280px);
  }
  .arena-stat-card strong { font-size: 14px; }
  .arena-stat-label { font-size: 10px; }
  .bots-arena-pro .arena-open-btn {
    min-height: 46px;
    font-size: 14px;
    margin-bottom: 6px;
  }
  .arena-welcome-line { font-size: 11px; }
  .arena-action-zone .arena-open-btn { min-height: 46px; font-size: 14px; }
  .arena-platform-wrap { width: min(94%, 360px); }
  .mdaw-stage .arena-robot { bottom: var(--arena-stand-bottom, 18%); }
  .bots-arena-pro .mdaw-stage .arena-robot[data-tier="6"] {
    bottom: var(--arena-stand-bottom, 18%);
    transform: translateX(-50%) translateZ(4px) scale(0.955);
  }
  .arena-platform-badge { font-size: 10px; padding: 3px 14px; bottom: 5%; }
  .arena-platform-ring-label { font-size: 9px; right: 9%; bottom: 55%; }
  .bots-arena-pro .robo-battery {
    top: 50% !important;
    bottom: auto !important;
    left: 8px !important;
    transform: translateY(-50%) !important;
  }
}
.bots-arena-pro .arena-stage::before { display: none; }

.theater-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 75%, rgba(167,139,250,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.stage-light-beam {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 72%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.16) 0%,
    rgba(196,181,253,0.1) 35%,
    rgba(129,140,248,0.04) 65%,
    transparent 100%
  );
  clip-path: polygon(28% 0%, 72% 0%, 100% 100%, 0% 100%);
  filter: blur(1px);
  animation: beam-pulse 4s ease-in-out infinite;
}

.stage-floor-glow {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 140%;
  height: 70px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 48% 100% at 50% 100%,
    rgba(252, 213, 53, 0.55) 0%,
    rgba(240, 185, 11, 0.28) 32%,
    rgba(201, 148, 26, 0.1) 55%,
    transparent 76%
  );
  filter: blur(8px);
  animation: floor-glow-pulse 3s ease-in-out infinite;
}

.mdaw-platform .arena-platform-core {
  width: 52%;
  height: 22px;
  background: radial-gradient(ellipse, rgba(252, 213, 53, 0.5) 0%, rgba(240, 185, 11, 0.18) 55%, transparent 80%);
  filter: blur(1px);
  box-shadow: 0 0 30px rgba(240, 185, 11, 0.38);
}
.mdaw-platform .arena-ring {
  border-color: rgba(240, 185, 11, 0.45);
  border-style: solid;
}
.mdaw-platform .arena-ring--1 {
  width: 52%;
  height: 26px;
  border-width: 2px;
  opacity: 1;
  background: radial-gradient(ellipse, rgba(252, 213, 53, 0.14) 0%, transparent 72%);
  box-shadow:
    0 0 24px rgba(240, 185, 11, 0.35),
    0 0 48px rgba(201, 148, 26, 0.15),
    inset 0 0 14px rgba(255, 255, 255, 0.1);
}
.mdaw-platform .arena-ring--2 {
  width: 76%;
  height: 38px;
  opacity: 0.8;
  bottom: 0;
  border-width: 1.5px;
}
.mdaw-platform .arena-ring--3 {
  width: 98%;
  height: 50px;
  opacity: 0.5;
  bottom: -6px;
  border-width: 1px;
}

.platform-rate { display: none !important; }

/* Robot battery — vertical gauge beside arena robot */
.robo-battery {
  position: absolute;
  left: 5px;
  top: 35% !important;
  transform: translateX(0);
  z-index: 28;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 6px;
  min-width: 52px;
  border-radius: 12px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  --battery-accent: #F0B90B;
}
html[dir="rtl"] .robo-battery {
  left: 5px !important;
  right: auto !important;
}

.robo-battery .battery-icon {
  color: var(--battery-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.robo-battery .battery-icon.pulse,
.robo-battery.needs-charge .battery-icon {
  animation: battery-pulse 1.2s ease-in-out infinite;
}

.robo-battery .battery-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.robo-battery .battery-cap {
  width: 16px;
  height: 5px;
  border-radius: 3px 3px 1px 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.robo-battery .battery-body {
  width: 22px;
  height: 72px;
  border-radius: 6px;
  padding: 3px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.robo-battery .battery-fill {
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--battery-accent) 85%, #fff), var(--battery-accent) 55%, #9a7209);
  box-shadow: 0 0 12px color-mix(in srgb, var(--battery-accent) 50%, transparent);
  transition: height 0.32s var(--ease-light);
}
.robo-battery .battery-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.robo-battery.is-charging .battery-fill {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
  animation: battery-charge-shimmer 1s ease-in-out infinite;
}
.robo-battery.is-low .battery-fill {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}
.robo-battery.is-critical .battery-fill,
.robo-battery.needs-charge .battery-fill {
  background: linear-gradient(180deg, #f87171, #dc2626);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
}
.robo-battery.is-done .battery-fill {
  background: linear-gradient(180deg, #94a3b8, #64748b);
  box-shadow: none;
}

.robo-battery .battery-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.robo-battery .battery-pct {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}
.robo-battery .battery-label {
  font-size: 8px;
  line-height: 1.25;
  color: rgba(186, 210, 240, 0.72);
  max-width: 72px;
}
.robo-battery .battery-half-tag {
  font-size: 8px;
  font-weight: 700;
  color: var(--battery-accent);
  padding: 2px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--battery-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--battery-accent) 28%, transparent);
}

@keyframes battery-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.08); }
}
@keyframes battery-charge-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.pro-metrics:has(.pro-stat-battery) {
  grid-template-columns: repeat(3, 1fr);
}
.pro-stat-battery strong { color: #4ade80; }

.battery-halves-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.22);
}

.pulse-gold {
  animation: pulse-gold-btn 2s var(--ease-light) infinite;
}
@keyframes pulse-gold-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(240, 185, 11, 0); }
}

.robot-wrap.is-charging .robot-stage,
.robot-wrap.is-charging .robot-stage-dual {
  animation: robot-charge-bob 1.6s var(--ease-light) infinite;
}
@keyframes robot-charge-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

.theater-stage.stage-react .stage-light-beam,
.theater-stage.stage-react .stage-floor-glow,
.bots-arena-pro .theater-stage.stage-react .stage-light-beam,
.bots-arena-pro .theater-stage.stage-react .stage-floor-glow {
  animation: none;
}
.bots-arena-pro .theater-stage.stage-react .stage-light-beam {
  animation: beam-flash 0.55s ease !important;
}
.bots-arena-pro .theater-stage.stage-react .stage-floor-glow {
  animation: floor-glow-flash 0.55s ease !important;
}

@keyframes beam-flash {
  0% { opacity: 0.35; filter: blur(1px) brightness(1.2); }
  40% { opacity: 1; filter: blur(0.5px) brightness(1.45); }
  100% { opacity: 0.85; filter: blur(1px) brightness(1); }
}

@keyframes beam-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@keyframes floor-glow-pulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
@keyframes floor-glow-flash {
  0% { opacity: 1; transform: translateX(-50%) scale(1.15); }
  100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
}

/* Robot tap */
.robot-tap {
  pointer-events: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  outline: none;
}
.robot-tap:focus-visible {
  outline: 2px solid rgba(240,185,11,0.5);
  outline-offset: 4px;
  border-radius: 12px;
}
.robot-tap .robot-img {
  pointer-events: none;
}
.robot-tap:active .robot-stage {
  transform: scale(0.995);
  transition: transform var(--motion-fast) var(--ease-light);
}

.robot-wrap.arena-idle:not(.arena-working):not(.is-animating) .robot-stage,
.robot-wrap.arena-idle:not(.arena-working):not(.is-animating) .robot-stage-dual {
  animation: robot-idle-float 5.5s var(--ease-light) infinite;
}
.plan-pro-robot .robot-wrap.arena-idle:not(.arena-working):not(.is-animating) .robot-stage {
  animation: robot-idle-float 6s var(--ease-light) infinite;
}

@keyframes robot-idle-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -2px, 0); }
}

.robot-wrap.is-animating .robot-stage,
.robot-wrap.is-animating .robot-stage-dual {
  animation-duration: 0.72s !important;
  animation-timing-function: var(--ease-light) !important;
  animation-fill-mode: both !important;
  animation-iteration-count: 1 !important;
}
.robot-wrap.is-animating.anim-charge .robot-stage,
.robot-wrap.is-animating.anim-charge .robot-stage-dual {
  animation-name: robot-anim-charge !important;
  animation-duration: 0.78s !important;
}
.robot-wrap.is-animating.anim-start .robot-stage,
.robot-wrap.is-animating.anim-start .robot-stage-dual {
  animation-name: robot-anim-start !important;
  animation-duration: 0.68s !important;
}
@keyframes robot-anim-charge {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  45% { transform: translate3d(0, -6px, 0) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes robot-anim-start {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  45% { transform: translate3d(0, -7px, 0) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
.robot-wrap.is-animating.anim-smile .robot-stage,
.robot-wrap.is-animating.anim-smile .robot-stage-dual { animation-name: robot-anim-smile !important; }
.robot-wrap.is-animating.anim-wave .robot-stage,
.robot-wrap.is-animating.anim-wave .robot-stage-dual { animation-name: robot-anim-wave !important; }
.robot-wrap.is-animating.anim-bounce .robot-stage,
.robot-wrap.is-animating.anim-bounce .robot-stage-dual { animation-name: robot-anim-bounce !important; }
.robot-wrap.is-animating.anim-wiggle .robot-stage,
.robot-wrap.is-animating.anim-wiggle .robot-stage-dual { animation-name: robot-anim-wiggle !important; }
.robot-wrap.is-animating.anim-spin .robot-stage,
.robot-wrap.is-animating.anim-spin .robot-stage-dual { animation-name: robot-anim-spin !important; }
.robot-wrap.is-animating.anim-pulse .robot-stage,
.robot-wrap.is-animating.anim-pulse .robot-stage-dual { animation-name: robot-anim-pulse !important; }

@keyframes robot-anim-smile {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-14px) scale(1.05); }
  55% { transform: translateY(-8px) scale(1.03) rotate(2deg); }
}
@keyframes robot-anim-wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-16px) rotate(-8deg); }
  45% { transform: translateY(-10px) rotate(10deg); }
  70% { transform: translateY(-18px) rotate(-5deg); }
}
@keyframes robot-anim-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-28px) scale(1.04); }
  55% { transform: translateY(-6px) scale(0.98); }
  75% { transform: translateY(-14px) scale(1.02); }
}
@keyframes robot-anim-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-7deg) translateX(-4px); }
  40% { transform: rotate(7deg) translateX(4px); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(4deg); }
}
@keyframes robot-anim-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.95); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes robot-anim-pulse {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.08); }
  50% { transform: scale(0.96); }
  75% { transform: scale(1.05); }
}

.bots-arena-pro .pro-hunger {
  background: rgba(12,12,14,0.75);
  border: none;
  box-shadow: none;
  border-radius: 10px;
}
.bots-arena-pro .robo-battery.pro-hunger,
.bots-arena-pro .robo-battery.mdaw-hunger {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bots-arena-pro .pro-speech {
  background: linear-gradient(135deg, #f0b90b, #d4a017);
  color: #1a1000;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(240,185,11,0.3);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
}
.bots-arena-pro .pro-car {
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
}
.bots-arena-pro .pro-car.r,
.bots-arena-pro .pro-car.l {
  background: rgba(240,185,11,0.15);
  color: #f0b90b;
}

/* Plan cards — MDAW minimal */
.plans-full-screen .plan-pro {
  background: #141414;
  border: none;
  box-shadow: none;
  border-radius: 12px;
}
.plans-full-screen .plan-pro-metrics .metric {
  background: transparent;
  border: none;
}
.plan-pro-shine { display: none; }
.plan-pro-watermark::before { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .robot-wrap.arena-idle .robot-stage,
  .stage-floor-glow,
  .stage-light-beam { animation: none !important; }
  .robot-wrap[class*="anim-"] .robot-stage { animation-duration: 0.01ms !important; }
}

/* ─── Support center ─── */
.profile-support-section { margin-bottom: 16px; }
.profile-support-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 20, 32, 0.95) 100%);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-align: right;
  transition: border-color 0.15s, transform 0.1s;
}
.profile-support-btn:active { transform: scale(0.99); border-color: rgba(56, 189, 248, 0.45); }
.profile-support-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  flex-shrink: 0;
}
.profile-support-text { flex: 1; min-width: 0; }
.profile-support-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.profile-support-text small { font-size: 11px; color: var(--muted); }

.support-page { padding-bottom: 28px; }
.support-hero {
  text-align: center;
  padding: 20px 12px 24px;
}
.support-hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(240, 185, 11, 0.12));
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.support-hero h2 { font-size: 1.25rem; margin-bottom: 6px; }
.support-hero p { font-size: 12px; color: var(--muted); line-height: 1.5; }

.support-categories { display: flex; flex-direction: column; gap: 14px; }
.support-cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.support-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.support-cat-head strong { display: block; font-size: 14px; }
.support-cat-head small { font-size: 11px; color: var(--muted); }
.support-topics { display: flex; flex-direction: column; }
.support-topic-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  text-align: right;
  cursor: pointer;
}
.support-topic-btn:last-child { border-bottom: none; }
.support-topic-btn:active { background: rgba(255, 255, 255, 0.04); }
.support-topic-btn span { flex: 1; line-height: 1.4; }
.support-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 4px;
}
.support-footnote .ico { flex-shrink: 0; margin-top: 2px; color: #7dd3fc; }

.support-chat-screen {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 56px);
  max-height: calc(100dvh - 56px);
  background: #0a0c10;
}
.support-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(14, 18, 26, 0.95);
}
.support-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
  color: #fff;
}
.support-chat-head strong { display: block; font-size: 14px; }
.support-chat-head small { font-size: 11px; color: var(--green); }

.support-chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 92%;
}
.support-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.support-msg-bot { align-self: flex-start; }
.support-msg-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  flex-shrink: 0;
}
.support-msg-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-msg-user .support-msg-bubble {
  background: linear-gradient(135deg, #f0b90b, #d4a017);
  color: #1a1000;
  border-bottom-left-radius: 4px;
}
.support-msg-bot .support-msg-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8edf5;
  border-bottom-right-radius: 4px;
}
.support-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 18px !important;
}
.support-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: support-dot 1.2s ease-in-out infinite;
}
.support-typing span:nth-child(2) { animation-delay: 0.15s; }
.support-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes support-dot {
  0%, 80%, 100% { opacity: 0.35; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.support-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: rgba(8, 10, 14, 0.9);
}
.support-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 185, 11, 0.25);
  background: rgba(240, 185, 11, 0.08);
  color: var(--yellow);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
}
.support-chip:active { background: rgba(240, 185, 11, 0.15); }

.support-chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #0e1018;
}
.support-chat-input input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
.support-chat-input input:focus { outline: none; border-color: rgba(56, 189, 248, 0.4); }
.support-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #f0b90b;
  color: #1a1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.support-send-btn .ico { transform: rotate(-90deg); }
.support-send-btn:active { transform: scale(0.96); }
