
/* ============================================================
   👑 CAYZIT LUXURY WHITE THEME (PRIMARY DEFAULT)
   ============================================================ */
:root, body, body.light, html.light {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --card-2: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #0284c7;
  --text: #0f172a;
  --text-dim: #475569;
  --text-muted: #94a3b8;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --blue: #2563eb;
  --emerald: #059669;
  --gold: #d97706;
  --danger: #e11d48;
  --warning: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

body, body.light {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(2, 132, 199, 0.08), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(13, 148, 136, 0.08), transparent 60%),
    #f8fafc !important;
  color: #0f172a !important;
}

/* Card components */
body.light .card,
body.light .setting-card,
body.light .vip-card,
body.light .profile-banner,
body.light .trade-card,
body.light .pkg-card,
body.light .team-card,
body.light .wallet-box,
body.light .stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 10px 28px -5px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
  color: #0f172a !important;
}

body.light .profile-banner {
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.2) !important;
}

body.light .profile-avatar {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35) !important;
}

body.light .profile-stats .ps {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
body.light .profile-stats .ps .n {
  color: #0f172a !important;
  font-weight: 800 !important;
}
body.light .profile-stats .ps .l {
  color: #64748b !important;
}

body.light .brand-name {
  color: #0f172a !important;
}
body.light .brand-name b {
  color: #0284c7 !important;
}
body.light .brand-logo {
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}

body.light .icon-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* Inputs & Form fields */
body.light input,
body.light select,
body.light textarea {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}
body.light input:focus,
body.light select:focus,
body.light textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

/* Bottom Navigation Bar */
body.light .navbar,
body.light .bottom-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.04) !important;
}
body.light .nav-item {
  color: #64748b !important;
}
body.light .nav-item.active {
  color: #0284c7 !important;
}

/* Lists and table rows */
body.light .profile-list .row,
body.light .setting-card .row,
body.light .ladder-row {
  border-bottom: 1px solid #f1f5f9 !important;
}
body.light .profile-list .row .k,
body.light .setting-card .row .k {
  color: #0f172a !important;
  font-weight: 700 !important;
}
body.light .profile-list .row .v {
  color: #475569 !important;
}

/* Primary Button */
body.light .btn-main,
body.light .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35) !important;
}

/* VIP Card */
body.light .vip-card {
  background: linear-gradient(145deg, #ffffff 0%, #fefce8 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
}
body.light .vip-info b {
  color: #0f172a !important;
}
body.light .vip-info .vip-sub {
  color: #64748b !important;
}
body.light .vip-bar {
  background: #e2e8f0 !important;
}

/* Badges */
body.light .verify-badge {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
}
body.light .promoter-verified-pill {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

/* Section titles */
body.light .section-title h1,
body.light .section-title h2,
body.light .section-sub-title {
  color: #0f172a !important;
}
body.light .meta,
body.light .muted {
  color: #64748b !important;
}

:root {
  --bg: #0b1220;
  --bg-soft: #111a2e;
  --card: #141f36;
  --card-2: #182646;
  --border: #1f2c47;
  --text: #e8eefb;
  --text-dim: #93a3c3;
  --accent: #22d3a7;
  --accent-dark: #16a179;
  --blue: #1b9ff5;
  --danger: #ff5d6c;
  --warning: #f5b942;
  --radius: 14px;
  --font: "Tajawal", "Segoe UI", "Noto Sans Arabic", "Cairo", "Amiri", Tahoma, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.light {
  --bg: #eef2f9;
  --bg-soft: #e2e8f2;
  --card: #ffffff;
  --card-2: #f4f7fd;
  --border: #d5ddee;
  --text: #12203c;
  --text-dim: #64748f;
  --shadow: 0 10px 30px rgba(15, 40, 90, 0.12);
}

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

html {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 167, 0.14), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(27, 159, 245, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  word-spacing: normal;
  letter-spacing: normal;
}

body.light {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 167, 0.18), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(27, 159, 245, 0.15), transparent 60%),
    var(--bg);
}

.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 0px) 16px calc(env(safe-area-inset-bottom) + 24px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 380px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===== Top bar ===== */
.topbar {
  padding: 16px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand:active {
  opacity: 0.82;
  transform: scale(0.97);
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0b1220;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(34, 211, 167, 0.4);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-size: 19px;
  font-weight: 500;
}

.brand-name b {
  font-weight: 700;
  color: var(--accent);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

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

/* ===== Auth section ===== */
.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 8px;
}

.auth-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
}

.auth-hero p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ===== Form ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

.field .hint {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
  opacity: 0.8;
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: var(--text-dim); opacity: 0.6; }

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 167, 0.15);
}

.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 167, 0.15);
}

/* ===== Wallet picker (deposit) ===== */
.wallet-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wallet-picker-icon {
  display: inline-block;
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}
.wallet-picker .wallet-picker-label .wallet-icon,
.wallet-picker-icon.wallet-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--bg-soft);
  flex-shrink: 0;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px var(--border);
}
.wallet-picker .wallet-picker-label {
  display: flex;
  align-items: center;
  flex: 1;
}
.wallet-picker:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 167, 0.15);
}
.wallet-picker-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
  transition: transform 0.2s;
  margin-right: 8px;
}
.wallet-picker-arrow.open {
  transform: rotate(180deg);
}
.wallet-menu {
  position: relative;
  z-index: 20;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.wallet-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  text-align: right;
  transition: background 0.15s;
}
.wallet-option:last-child { border-bottom: none; }
.wallet-option:hover { background: var(--bg-soft); }
.wallet-option-icon {
  font-size: 22px;
  line-height: 1;
  margin-left: 12px;
  flex-shrink: 0;
}
.wallet-option .wallet-icon,
.wallet-option-icon.wallet-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
  margin-left: 12px;
}
.wallet-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.wallet-option-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.wallet-option-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.wallet-option-addr {
  font-size: 12px;
  color: var(--text-dim);
  direction: ltr;
  text-align: left;
  word-break: break-all;
  font-family: monospace;
}

.field input.error-input { border-color: var(--danger); }

.field input[readonly] {
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: default;
}

.field input[readonly]:focus {
  border-color: var(--border);
  box-shadow: none;
}

.input-group { position: relative; }

.input-group input { padding-left: 50px; }

.input-group input[dir="ltr"] { padding-left: 50px; padding-right: 16px; }

.dial-wrap {
  position: relative;
  width: 100%;
}

.dial-group {
  display: flex;
  align-items: stretch;
  direction: ltr;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dial-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.dial-group input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 14px !important;
}

/* ===== اختيار الدولة القابل للبحث ===== */
.dial-select {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.dial-select:hover { background: rgba(34, 211, 167, 0.08); }
.dial-divider { flex: none; width: 1px; align-self: stretch; background: var(--border); }
.dial-flag { font-size: 20px; line-height: 1; display: inline-block; }
.dial-code { font-size: 14px; font-weight: 700; color: var(--text); direction: ltr; }
.dial-arrow { font-size: 10px; color: var(--muted); opacity: 0.8; }

.dial-dropdown {
  position: absolute;
  z-index: 250;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.dial-dropdown.flip-up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}
.dial-search { padding: 10px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.dial-search input {
  width: 100%;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
}
.dial-search input:focus { border-color: var(--accent); outline: none; }
.dial-list { max-height: 250px; overflow-y: auto; padding: 6px; }
.dial-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  transition: background 0.15s;
}
.dial-item:hover, .dial-item.active { background: rgba(34, 211, 167, 0.12); color: var(--accent); }
.dial-item-flag { font-size: 20px; line-height: 1; flex: none; }
.dial-item-name { flex: 1; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.dial-item.active .dial-item-name { font-weight: 700; color: var(--accent); }
.dial-item-code { color: var(--accent); font-weight: 700; font-size: 13px; direction: ltr; flex: none; }
.dial-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }

.toggle-pass {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
}

.toggle-pass:active { background: var(--bg-soft); }

.error {
  font-size: 12px;
  color: var(--danger);
  min-height: 0;
}

/* ===== Rows ===== */
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-dim);
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link:active { opacity: 0.7; }

/* ===== Buttons ===== */
.btn {
  width: 100%;
  height: 52px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #06121f;
  box-shadow: 0 8px 22px rgba(34, 211, 167, 0.3);
  margin-top: 4px;
}

.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark), #1579d8); }

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-social {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}

.btn-social:active { background: var(--bg-soft); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-weight: 700;
}

.btn-danger {
  background: rgba(255, 93, 108, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 93, 108, 0.4);
}

.btn-sm { height: 44px; font-size: 14px; }

/* ===== Switch + divider ===== */
.switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin: 18px 0 4px;
}

.switch a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  margin: 12px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.terms {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 16px;
}

.terms a,
.terms-check a { color: var(--accent); text-decoration: none; }

.terms-check { font-size: 12px; align-items: flex-start; padding: 4px 0; }

.terms-check span { line-height: 1.7; }

/* ===== OTP ===== */
.otp-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.otp-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 24px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  margin-bottom: 20px;
}

.otp-inputs input {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--accent);
  font-family: var(--font);
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 167, 0.15);
}

.otp-inputs input.error-input { border-color: var(--danger); }

.otp-timer {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

.otp-timer button {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.otp-timer button:disabled { color: var(--text-dim); cursor: not-allowed; }

.demo-code {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(34, 211, 167, 0.1);
  border: 1px dashed var(--accent);
  color: var(--accent);
  font-size: 13px;
  text-align: center;
}

.demo-code b { letter-spacing: 3px; font-size: 16px; }

/* ===== Cards / Dashboard ===== */
.dash-hello { margin-bottom: 16px; }

.dash-hello h1 { font-size: 24px; font-weight: 700; }

.dash-hello p { color: var(--text-dim); font-size: 13px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0d172a 0%, #080f1d 100%);
  border: 1px solid rgba(255, 138, 0, 0.25);
  border-radius: 20px;
  color: #fff;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.balance-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.balance-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.balance-card > * { position: relative; z-index: 1; }

.bc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.bc-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

.bc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.bc-rate {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  white-space: nowrap;
}

.balance-card .label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.balance-card .value {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  direction: ltr;
}

html[dir="rtl"] .balance-card .value {
  justify-content: flex-end;
}

.earnings-breakdown {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.earnings-breakdown .eb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}

.earnings-breakdown .eb-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.earnings-breakdown .eb-row b {
  font-weight: 800;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.3px;
  direction: ltr;
}

.balance-card .eyeball {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.balance-card .eyeball:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.bc-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bc-msg {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.bc-bolt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0c121e;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform 0.12s, box-shadow 0.2s;
}

.bc-bolt:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5); }
.bc-bolt:active { transform: scale(0.96); }
.bc-bolt:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.bc-bolt-ico { font-size: 16px; }
.bc-bolt-amt { font-size: 12px; font-weight: 800; color: #111; }

/* ===== Trading bot terminal ===== */
.term-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.term-overlay.open { opacity: 1; pointer-events: auto; }

.term-window {
  width: 100%;
  max-width: 440px;
  background: #070d14;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.term-overlay.open .term-window { transform: translateY(0) scale(1); opacity: 1; }

.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #0c141d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dots { display: flex; gap: 6px; }

.term-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-family: "Segoe UI", monospace;
  color: #8aa0b5;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-close {
  border: none;
  background: none;
  color: #8aa0b5;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
}

.term-close:hover { color: #ff5f57; }

.term-body {
  height: 250px;
  overflow-y: auto;
  padding: 12px 14px;
  font-family: "Segoe UI", monospace, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #4ade80;
  background:
    radial-gradient(circle at 15% 0%, rgba(52, 211, 153, 0.05), transparent 45%),
    #070d14;
}

.term-line { display: flex; gap: 8px; animation: fadeIn 0.18s ease both; }

.term-line .term-ts { color: #47606e; flex-shrink: 0; }

.term-line.dim { color: #6b8294; }

.term-line.ok { color: #34d399; }

.term-line.ok.win { color: #a7f3d0; font-weight: 700; }

.term-line.err { color: #f87171; }

.term-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.term-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34d399, #facc15);
  transition: width 0.3s ease;
}

.term-status {
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #a7f3d0;
  background: #0c141d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Daily trading start (inside balance card) ===== */
.trade-start {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(6, 18, 31, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.trade-start-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.trade-start-ico { font-size: 20px; }

.trade-start-main { flex: 1; min-width: 0; }

.trade-start-main b { display: block; font-size: 14px; color: #fff; }

.trade-start-main small { font-size: 11px; color: rgba(255, 255, 255, 0.75); line-height: 1.5; }

.trade-start-amt {
  font-size: 15px;
  font-weight: 700;
  color: #a7f3d0;
  white-space: nowrap;
}

.row { display: flex; align-items: center; justify-content: space-between; }

.row h3 { font-size: 15px; font-weight: 700; }

.row p { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.switch-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.switch-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.switch-toggle.active { background: var(--accent); }

.switch-toggle.active::after { transform: translateX(22px); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.stat .s-label { font-size: 12px; color: var(--text-dim); }

.stat .s-value { font-size: 18px; font-weight: 700; margin-top: 2px; }

.stat .s-value.up { color: var(--accent); }
.stat .s-value.down { color: var(--danger); }

.info-list { font-size: 14px; }

.info-list .row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.info-list .k { color: var(--text-dim); font-size: 13px; }

.info-list .v { font-weight: 700; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge.ok { background: rgba(34, 211, 167, 0.15); color: var(--accent); }

.badge.off { background: rgba(255, 93, 108, 0.12); color: var(--danger); }
.badge.dim { background: rgba(147, 163, 195, 0.14); color: var(--text-dim); }
.badge.warn { background: rgba(245, 185, 66, 0.15); color: var(--warning); }

/* --- USDT wallet --- */
.usdt-box {
  background: var(--card-2);
  border: 1px dashed rgba(27, 159, 245, 0.4);
  border-radius: 12px;
  padding: 12px;
}
.usdt-addr {
  direction: ltr;
  text-align: center;
  font-family: "Segoe UI", monospace;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 8px;
  margin-top: 8px;
  word-break: break-all;
  color: var(--blue);
}
.usdt-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.7;
}
.proof-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 6px;
  background: var(--bg);
}

.actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ===== Risk page ===== */
.risk-box {
  background: var(--card);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 18px;
}

.risk-box h2 {
  color: var(--warning);
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-box ul {
  list-style: none;
  font-size: 14px;
}

.risk-box li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-dim);
  line-height: 1.7;
}

.risk-box li:last-child { border-bottom: none; }

.risk-box li b { color: var(--text); }

/* ===== Success page ===== */
.success-icon {
  width: 84px;
  height: 84px;
  margin: 10px auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: rgba(34, 211, 167, 0.15);
  border: 2px solid var(--accent);
}

.success-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.success-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Demo accounts ===== */
.demo-accounts h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.demo-accounts .demo-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.demo-hint b { color: var(--accent); }

.demo-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--text);
}
.demo-account:active { transform: scale(0.98); border-color: var(--accent); }

.demo-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #06121f;
  font-weight: 700;
  font-size: 16px;
}

.demo-account b { display: block; font-size: 14px; }

.demo-account small { color: var(--text-dim); font-size: 11px; }

/* ===== Quick actions ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.quick-actions .qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 11px 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-actions .qa:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 167, 0.4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.quick-actions .qa:active {
  transform: scale(0.95);
  border-color: var(--accent);
}

.quick-actions .qa .qa-ico,
.quick-actions .qa span {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.quick-actions .qa:hover .qa-ico,
.quick-actions .qa:hover span {
  transform: scale(1.12);
}

.quick-actions .qa small {
  font-size: 11px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* ===== Community strip ===== */
.community-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(79, 141, 255, .12), rgba(124, 92, 255, .10));
  border: 1px solid rgba(79, 141, 255, .28);
  border-radius: 12px;
}

.community-strip .cs-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.community-strip .cs-item span { font-size: 15px; }

.community-strip .cs-item b {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.community-strip .cs-item small {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-strip .cs-item.flag b { font-size: 12.5px; }

.community-strip .cs-div {
  width: 1px;
  height: 26px;
  background: var(--border);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 100;
  max-width: 90%;
  text-align: center;
}

.toast.show { transform: translate(-50%, 0); opacity: 1; }

.toast.success { border-color: var(--accent); }

.toast.error { border-color: var(--danger); }

/* ===== PWA install button ===== */
#pwaInstallBtn {
  position: fixed;
  bottom: 84px;
  right: 16px;
  background: linear-gradient(135deg, #f0b90b, #ffd65a);
  color: #0b1220;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(240, 185, 11, 0.4);
  cursor: pointer;
  z-index: 150;
  animation: pwaPulse 2.2s infinite;
}
#pwaInstallBtn:hover { transform: scale(1.04); }
@keyframes pwaPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(240, 185, 11, 0.4); }
  50% { box-shadow: 0 6px 26px rgba(240, 185, 11, 0.75); }
}
body.light #pwaInstallBtn { background: linear-gradient(135deg, #e6a800, #ffd65a); }
@media (min-width: 640px) { #pwaInstallBtn { right: auto; left: 16px; } }


/* ===== Real-time notifications ===== */
#notifStack {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(94vw, 360px);
  z-index: 120;
  pointer-events: none;
}

.notif-card {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-right: 4px solid var(--accent);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s, transform 0.3s;
}

.notif-card.in { opacity: 1; transform: translateY(0); }

.notif-card.notif-negative { border-right-color: var(--danger); }

.notif-ico { font-size: 22px; line-height: 1.2; }

.notif-body { flex: 1; min-width: 0; }

.notif-body b { display: block; font-size: 13.5px; color: var(--text); }

.notif-body p { margin: 2px 0 4px; font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.notif-body small { font-size: 10.5px; color: var(--text-dim); opacity: 0.7; }

.notif-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.notif-close:hover { color: var(--danger); }

/* ===== Notification bell + panel ===== */
.bell-wrap { position: relative; }

.bell-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--card);
}

.notif-panel {
  position: absolute;
  top: 46px;
  inset-inline-end: 0;
  width: min(92vw, 340px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 130;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* الجرس قريب من حافة الشاشة، لذلك على الجوال نثبّت اللوحة
   داخل حدود الشاشة بمسافة أمان بدل أن تنفتح خارجها وتُقص. */
@media (max-width: 520px) {
  .notif-panel {
    position: fixed;
    top: 56px;
    left: 12px;
    width: min(340px, calc(100vw - 24px));
    right: auto;
  }
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.notif-panel-head span { font-size: 11px; color: var(--accent); font-weight: 700; }

.notif-list { overflow-y: auto; max-height: 55vh; }

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.notif-item:last-child { border-bottom: none; }

.notif-item.unread { background: color-mix(in srgb, var(--accent) 8%, transparent); }

.notif-item-ico { font-size: 18px; line-height: 1.3; }

.notif-item-body { flex: 1; min-width: 0; }

.notif-item-body b { display: block; font-size: 12.5px; color: var(--text); }

.notif-item-body p { margin: 2px 0 3px; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }

.notif-item-body small { font-size: 10px; color: var(--text-dim); opacity: 0.7; }

.notif-item.unread b::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-inline-start: 6px;
  vertical-align: 1px;
}

.notif-empty { padding: 26px 14px; text-align: center; color: var(--text-dim); font-size: 12.5px; }

.hidden { display: none !important; }

/* ===== App pages (with bottom nav) ===== */
.app.app-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }

.main-content { flex: 1; }

/* ===== Bottom navigation ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(66px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(13, 20, 36, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 90;
}

body.light .bottom-nav { background: rgba(255, 255, 255, 0.92); }

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-item .nav-icon {
  font-size: 21px;
  line-height: 1;
  filter: grayscale(0.6);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
}

.nav-item.active { color: var(--accent); font-weight: 700; }

.nav-item.active .nav-icon {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== Markets ===== */
.search-box {
  position: relative;
  margin-bottom: 14px;
}

.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip.active {
  background: rgba(34, 211, 167, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Status chips (non-clickable) --- */
.status-chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.status-chip.ok { color: #2fd17c; border-color: rgba(47, 209, 124, 0.4); background: rgba(47, 209, 124, 0.08); }
.status-chip.no { color: var(--danger); border-color: rgba(255, 92, 122, 0.4); background: rgba(255, 92, 122, 0.08); }
.status-chip.wait { color: #f5b94a; border-color: rgba(245, 185, 74, 0.4); background: rgba(245, 185, 74, 0.08); }

/* --- Agent charge mini list --- */
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}
.mini-row .sub { color: var(--text-dim); font-size: 11px; margin-top: 3px; }

.asset-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.asset-symbol {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #06121f;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

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

.asset-info b { display: block; font-size: 14px; }

.asset-info small { color: var(--text-dim); font-size: 11px; }

.asset-price { text-align: left; }

.asset-price .p { display: block; font-weight: 700; font-size: 14px; direction: ltr; }

.asset-price .c { font-size: 11.5px; font-weight: 700; direction: ltr; }

.asset-price .c.up { color: var(--accent); }
.asset-price .c.down { color: var(--danger); }

.fav-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--warning);
  border-radius: 10px;
}

.fav-btn:active { background: var(--bg-soft); }

/* ===== Trade / Wallet Switcher ===== */
.trade-type {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.trade-type button {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.trade-type button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.trade-type button:active {
  transform: scale(0.97);
}

.trade-type button.buy.active {
  background: rgba(34, 211, 167, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(34, 211, 167, 0.12);
}

.trade-type button.sell.active {
  background: rgba(255, 93, 108, 0.13);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 4px 12px rgba(255, 93, 108, 0.12);
}

.trade-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.trade-summary .s-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.trade-summary .s-cell .sl { font-size: 11px; color: var(--text-dim); }

.trade-summary .s-cell .sv { font-size: 16px; font-weight: 700; margin-top: 2px; }

.trade-summary .s-cell .sv.margin { color: var(--warning); }

/* ===== Team ===== */
.team-hero {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  margin-bottom: 14px;
}

.team-hero h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }

.team-hero p { font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }

.ref-code {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.ref-code code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  background: var(--bg-soft);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 8px 18px;
  direction: ltr;
}

.copy-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
}

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

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.team-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.team-stat .n { font-size: 18px; font-weight: 700; color: var(--accent); }

.team-stat .l { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 9px;
}

/* ===== Profile ===== */
.profile-banner {
  background: linear-gradient(135deg, rgba(34, 211, 167, 0.22), rgba(27, 159, 245, 0.22)), var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 16px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.profile-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 167, 0.3), transparent 70%);
}

.profile-banner::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 159, 245, 0.3), transparent 70%);
}

.profile-banner > * { position: relative; }

.profile-avatar-wrap {
  display: inline-block;
  position: relative;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  color: #06121f;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 8px 22px rgba(34, 211, 167, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.profile-online {
  position: absolute;
  bottom: 6px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card);
}

.edit-profile-btn {
  position: absolute;
  top: -4px;
  left: -6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--card);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.profile-banner h2 { font-size: 19px; font-weight: 700; }

.profile-banner .uname { color: var(--text-dim); font-size: 13px; }

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 167, 0.12);
  border: 1px solid rgba(34, 211, 167, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.profile-stats .ps {
  flex: 1;
  max-width: 110px;
  background: rgba(11, 18, 32, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
}

body.light .profile-stats .ps { background: rgba(255, 255, 255, 0.5); }

.profile-stats .ps .n { font-size: 17px; font-weight: 700; color: var(--text); }

.profile-stats .ps .l { font-size: 10.5px; color: var(--text-dim); }

.profile-list .row {
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
}

.profile-list .row:last-child { border-bottom: none; }

.profile-list .k { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }

.profile-list .k span { font-size: 18px; }

.profile-list .v { color: var(--text-dim); font-size: 13px; display: flex; align-items: center; gap: 8px; }

.profile-list .v .copy-sm {
  border: none;
  background: var(--card-2);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.section-sub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 2px 10px;
  font-size: 14px;
  font-weight: 700;
}

.section-sub-title .bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
}

.setting-card .row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.setting-card .row:last-child { border-bottom: none; }
.setting-card .k { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.setting-card .k .s-ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--card-2);
  border: 1px solid var(--border);
}
.setting-card .k small { display: block; font-weight: 400; color: var(--text-dim); font-size: 11px; margin-top: 2px; }

/* ===== Modal / Sheet ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 18px 20px calc(env(safe-area-inset-bottom) + 20px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 42px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  margin: 0 auto 14px;
}

.modal-sheet h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; text-align: center; }

@media (min-width: 480px) {
  .auth-hero h1 { font-size: 30px; }
}

/* ============================================================
   POLISH / ENHANCEMENTS
   ============================================================ */

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- Entrance animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.85); }
  70% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(34, 211, 167, 0.25); }
  50% { box-shadow: 0 8px 28px rgba(34, 211, 167, 0.45); }
}

.main-content > * ,
.auth > * {
  animation: fadeUp 0.45s ease both;
}

.main-content > *:nth-child(2) { animation-delay: 0.05s; }
.main-content > *:nth-child(3) { animation-delay: 0.1s; }
.main-content > *:nth-child(4) { animation-delay: 0.15s; }
.main-content > *:nth-child(5) { animation-delay: 0.2s; }

.asset-row, .card, .member-row, .demo-account {
  animation: fadeUp 0.4s ease both;
}

/* --- Sticky topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 12px;
}

body.light .topbar { background: color-mix(in srgb, #eef2f9 82%, transparent); }

/* --- Buttons hover --- */
.btn { transition: transform 0.12s, opacity 0.2s, background 0.2s, box-shadow 0.2s; }

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(34, 211, 167, 0.4);
  transform: translateY(-1px);
}

/* --- Bottom nav active pill --- */
.nav-item {
  position: relative;
}

.nav-item .nav-icon {
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}

.nav-item.active .nav-icon {
  transform: translateY(-3px);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

/* --- Toast with icon --- */
.toast { display: flex; align-items: center; justify-content: center; gap: 8px; }

.toast::before { font-size: 18px; }

.toast.success::before { content: "✅"; }
.toast.error::before { content: "⚠️"; }

/* --- Password strength meter --- */
.strength { margin-top: 6px; }

.strength-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.strength-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--danger);
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* --- Section header --- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}

.section-title h2 { font-size: 16px; font-weight: 700; }

.section-title .meta { font-size: 11.5px; color: var(--text-dim); }

/* --- Empty states --- */
.empty-state {
  text-align: center;
  padding: 34px 16px;
  color: var(--text-dim);
}

/* --- Daily profit button (inside balance card) --- */
.profit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 167, 0.45);
  background: linear-gradient(135deg, rgba(34, 211, 167, 0.16), rgba(34, 211, 167, 0.05));
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition: border-color 0.2s, transform 0.1s;
}

.profit-btn:active { transform: scale(0.98); }

.profit-btn:disabled { opacity: 0.55; cursor: default; }

body.light .profit-btn { background: rgba(34, 211, 167, 0.1); }

.profit-ico {
  font-size: 19px;
  flex-shrink: 0;
}

.profit-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profit-main b { font-size: 13px; font-weight: 700; }

.profit-main small {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profit-amt {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

/* --- Announcements --- */
.ann-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.ann-mini:hover { border-color: var(--warning); }

.ann-mini-pin {
  font-size: 17px;
  flex-shrink: 0;
}

.ann-mini-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ann-mini-main b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-mini-main small {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ann-mini-arrow {
  color: var(--warning);
  font-size: 13px;
  flex-shrink: 0;
}

.ann-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ann-card:active {
  transform: scale(0.985);
}

.ann-card.pinned {
  border-color: rgba(245, 185, 66, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ann-hero {
  position: relative;
}

.ann-img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
  background: var(--card-2);
}

.ann-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.55) 0%, rgba(8, 12, 22, 0.18) 45%, transparent 100%);
  pointer-events: none;
}

.ann-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ann-pin {
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  background: rgba(245, 185, 66, 0.16);
  border: 1px solid rgba(245, 185, 66, 0.45);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}

.ann-new {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 167, 0.16);
  border: 1px solid rgba(34, 211, 167, 0.45);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  white-space: nowrap;
}

.ann-date {
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(8, 12, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ann-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}

.ann-content {
  padding: 8px 16px 16px;
}

.ann-content:first-child {
  padding-top: 14px;
}

.ann-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.ann-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-top: 6px;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

.ann-body.expanded {
  display: block;
  overflow: visible;
}

.ann-more {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 0;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ann-more.visible {
  display: inline-flex;
}

.ann-more:active {
  opacity: 0.7;
}

.ann-skeleton {
  height: 215px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.ann-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px 14px;
}

.ann-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

.ann-views b {
  color: var(--text);
  font-weight: 800;
}

.empty-state .icon { font-size: 42px; margin-bottom: 10px; display: block; }

.empty-state p { font-size: 13.5px; }

/* --- Skeleton shimmer (loading) --- */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
  height: 70px;
  margin-bottom: 10px;
}

/* --- Balance card decoration --- */
.balance-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 55%, #6366f1 100%);
  border: none;
  border-radius: 18px;
  color: #fff;
  padding: 20px;
}

.balance-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.28), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.15), transparent 50%);
  pointer-events: none;
}

.balance-card > * { position: relative; }

.balance-card .label { color: rgba(255, 255, 255, 0.85); }
.balance-card .value { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.balance-card .value .unit { color: rgba(255, 255, 255, 0.9); font-size: 14px; }

/* --- Flash highlight (price change) --- */
.flash-up { animation: popIn 0.5s ease; color: var(--accent) !important; }
.flash-down { animation: popIn 0.5s ease; color: var(--danger) !important; }

/* --- Copy button feedback --- */
.copy-btn.done { border-color: var(--accent); color: var(--accent); }

/* --- Countdown --- */
.otp-countdown-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Larger tap targets --- */
button, .nav-item { touch-action: manipulation; }

/* --- Market strip (login hero) --- */
.market-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.market-strip::-webkit-scrollbar { display: none; }

.market-strip .ms-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
}

.market-strip .ms-item b { font-size: 15px; }

.market-strip .ms-item small { font-size: 12px; font-weight: 700; color: var(--text); }

.market-strip .ms-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  direction: ltr;
}

.market-strip .ms-item em.up { color: var(--accent); }
.market-strip .ms-item em.down { color: var(--danger); }

/* --- Slight page entrance (perceived speed) --- */
.app { animation: appIn 0.18s ease-out; }

@keyframes appIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* --- Investment packages --- */
.packages-list { display: flex; flex-direction: column; gap: 14px; }

.pkg-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pkg-balance-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #06121f;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 15px;
  border-radius: 11px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.pkg-balance-btn:hover { background: rgba(255, 255, 255, 0.35); }

.pkg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.pkg-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.pkg-stat span { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.pkg-stat b { font-size: 15px; font-weight: 700; }

.pkg-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pkg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 167, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.pkg-hero {
  position: relative;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 167, 0.3), rgba(27, 159, 245, 0.18) 55%, rgba(13, 22, 36, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pkg-hero-glow {
  position: absolute;
  top: -70px;
  left: -40px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(34, 211, 167, 0.35), transparent 70%);
  pointer-events: none;
}
.pkg-hero-orb {
  position: absolute;
  bottom: -55px;
  right: -35px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 167, 0.25);
  pointer-events: none;
}
.pkg-hero-row { position: relative; display: flex; align-items: center; gap: 12px; }
.pkg-ico {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  background: rgba(6, 18, 31, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.pkg-hero-txt { min-width: 0; }
.pkg-hero-txt b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.pkg-hero-txt small {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pkg-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #06121f;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 6px;
}
.pkg-hero-profit {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.pkg-profit-num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4af3bd, #4db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(34, 211, 167, 0.35));
}
.pkg-profit-num span { font-size: 20px; font-weight: 800; }
.pkg-profit-label { font-size: 11px; color: var(--text-dim); text-align: left; line-height: 1.5; padding-bottom: 4px; }

.pkg-body { padding: 14px 16px 16px; }
.pkg-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pkg-meta div { text-align: center; }
.pkg-meta span { display: block; font-size: 10.5px; color: var(--text-dim); margin-bottom: 3px; }
.pkg-meta b { display: block; font-size: 13px; font-weight: 700; }
.pkg-meta b small { font-size: 10px; color: var(--text-dim); font-weight: 400; }
.pkg-meta-bar {
  margin: 12px 0 14px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pkg-meta-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 0.5s ease;
}

.pkg-expected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(34, 211, 167, 0.08);
  border: 1px solid rgba(34, 211, 167, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 13px;
}
.pkg-expected span { display: block; font-size: 11.5px; color: var(--text-dim); }
.pkg-vip-note { display: block; font-size: 10px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.pkg-expected b { font-size: 16px; font-weight: 800; color: var(--accent); white-space: nowrap; }

.pkg-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pkg-price { display: flex; align-items: baseline; gap: 5px; }
.pkg-price b { font-size: 22px; font-weight: 900; }
.pkg-price small { font-size: 11.5px; color: var(--text-dim); }
.pkg-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  color: #06121f;
  background: linear-gradient(135deg, #2fd19c, #1fa0f5);
  padding: 11px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(34, 211, 167, 0.3);
  transition: transform .12s, box-shadow .12s, filter .12s;
  flex-shrink: 0;
}
.pkg-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.pkg-btn:active { transform: translateY(0); }
.pkg-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.6); }

.pkg-card.featured {
  border-color: rgba(245, 185, 66, 0.5);
  box-shadow: 0 10px 30px rgba(245, 185, 66, 0.14);
}
.pkg-card.featured .pkg-hero {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.32), rgba(245, 140, 66, 0.16) 55%, rgba(13, 22, 36, 0.35));
}
.pkg-card.featured .pkg-hero-glow { background: radial-gradient(circle, rgba(245, 185, 66, 0.4), transparent 70%); }
.pkg-card.featured .pkg-hero-orb { border-color: rgba(245, 185, 66, 0.3); }
.pkg-card.featured .pkg-profit-num {
  background: linear-gradient(135deg, #ffd479, #ff9d4d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(245, 185, 66, 0.4));
}
.pkg-card.featured .pkg-flag { background: linear-gradient(135deg, #ffd479, #ff9d4d); }

body.light .pkg-hero {
  background: linear-gradient(135deg, rgba(34, 211, 167, 0.35), rgba(27, 159, 245, 0.25) 55%, rgba(13, 22, 36, 0.05));
  border-bottom-color: rgba(13, 22, 36, 0.08);
}
body.light .pkg-card.featured .pkg-hero {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.38), rgba(245, 140, 66, 0.2) 55%, rgba(13, 22, 36, 0.05));
}
body.light .pkg-ico {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(13, 22, 36, 0.15);
  box-shadow: 0 6px 18px rgba(13, 22, 36, 0.12);
}
body.light .pkg-meta-bar { background: rgba(13, 22, 36, 0.1); }

.pkg-empty { text-align: center; color: var(--text-dim); padding: 30px 0; }

.pkg-skeleton {
  height: 250px;
  background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%);
  background-size: 200% 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  animation: pkgShimmer 1.4s ease infinite;
}
@keyframes pkgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- VIP system --- */
.vip-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(34, 211, 167, 0.07);
}

.vip-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.vip-card {
  background: linear-gradient(135deg, rgba(34, 211, 167, 0.12), rgba(13, 22, 36, 0.4));
  border: 1px solid rgba(34, 211, 167, 0.35);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.vip-head { display: flex; align-items: center; gap: 12px; }
.vip-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.vip-info b { display: block; font-size: 16px; }
.vip-sub { font-size: 12px; color: var(--text-dim); display: block; margin-top: 2px; }
.vip-progress { margin-top: 12px; }
.vip-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.vip-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.5s ease; }
.vip-progress-txt { display: block; margin-top: 6px; font-size: 11.5px; color: var(--text-dim); }
.vip-perks { margin-top: 10px; font-size: 12.5px; color: var(--accent); font-weight: 600; }

.vip-ladder { padding: 14px; }
.ladder-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.ladder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  border: 1px solid transparent;
}
.ladder-row.current { border-color: var(--accent); background: rgba(34, 211, 167, 0.07); }
.ladder-row.locked { opacity: 0.45; }
.ladder-ico {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border-radius: 9px;
  flex-shrink: 0;
}
.ladder-mid { flex: 1; }
.ladder-mid b { display: block; font-size: 13px; }
.ladder-mid small { font-size: 11px; color: var(--text-dim); display: block; margin-top: 1px; }
.ladder-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.team-vip-wrap { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.member-vip { font-size: 12px; }
.vip-bonus { color: var(--accent); font-size: 10.5px; font-weight: 600; }

/* --- My investments (home) --- */
.inv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.inv-stats { display: flex; align-items: stretch; padding: 15px 6px 13px; }
.inv-stat { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.inv-stat b { font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.inv-stat b.pos { color: var(--accent); }
.inv-stat span { font-size: 11px; color: var(--text-dim); }
.inv-div { width: 1px; background: var(--border); margin: 4px 0; flex-shrink: 0; }
.inv-list { border-top: 1px dashed var(--border); padding: 0 14px; }
.inv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.inv-row:last-child { border-bottom: none; }
.inv-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 167, 0.35);
  background: linear-gradient(135deg, rgba(34, 211, 167, 0.16), rgba(34, 211, 167, 0.04));
}
.inv-row:nth-child(3n+2) .inv-ico {
  border-color: rgba(27, 159, 245, 0.35);
  background: linear-gradient(135deg, rgba(27, 159, 245, 0.16), rgba(27, 159, 245, 0.04));
}
.inv-row:nth-child(3n+3) .inv-ico {
  border-color: rgba(245, 185, 66, 0.4);
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.16), rgba(245, 185, 66, 0.04));
}
.inv-main { flex: 1; min-width: 0; }
.inv-main b { display: block; font-size: 13.5px; font-weight: 700; }
.inv-main small { display: block; font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.inv-main small .up { color: var(--accent); font-weight: 700; }
.inv-end { text-align: left; flex-shrink: 0; }
.inv-end b { display: block; font-size: 13.5px; font-weight: 700; }
.inv-end small { display: block; font-size: 11px; margin-top: 2px; }
.inv-end small.pos { color: var(--accent); font-weight: 700; }

.empty-inv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.empty-inv span { font-size: 28px; }

.pos { color: var(--accent); }
.neg { color: var(--danger); }

/* ===== نافذة العروض المنبثقة (Promo Popup) ===== */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.promo-popup.show { opacity: 1; }

.promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.promo-box {
  position: relative;
  z-index: 1;
  width: min(90vw, 420px);
  max-height: 86vh;
  overflow: auto;
  background: transparent;
  border-radius: 18px;
  text-align: center;
  animation: promoIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes promoIn {
  from { transform: scale(0.85) translateY(24px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.promo-img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1526;
}

.promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 18, 34, 0.85);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, background 0.15s;
  z-index: 2;
}

.promo-close:hover { transform: scale(1.12); background: rgba(30, 45, 75, 0.95); }

html[dir="ltr"] .promo-close { right: auto; left: 10px; }

.promo-scare {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(10, 18, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.promo-ring {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

html[dir="ltr"] .promo-scare { left: auto; right: 12px; }

.promo-title {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35);
}

/* ===== i18n ===== */
.icon-btn.lang-toggle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 0 10px;
  min-width: 40px;
}

html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] .ann-mini-arrow { transform: scaleX(-1); }
html[dir="ltr"] #username { text-align: left !important; }
html[dir="ltr"] #fullName, html[dir="ltr"] #phone { text-align: left; }
html[dir="ltr"] .otp-sub { direction: ltr; }
html[dir="ltr"] .team-vip-wrap small { direction: ltr; }
html[dir="ltr"] .divider span { direction: ltr; }
/* ===== Luxury Affiliate & Team Suite (Binance/Bybit Pro Aesthetic) ===== */
.affiliate-hero-card {
  background: linear-gradient(145deg, #111d35 0%, #0d1629 100%);
  border: 1px solid rgba(255, 138, 0, 0.22);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.affiliate-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.affiliate-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.affiliate-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.3); } }

.affiliate-code-capsule {
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.code-details .code-title {
  font-size: 10.5px;
  color: var(--text-dim);
  display: block;
}
.code-value-wrap code {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  direction: ltr;
  display: inline-block;
  margin-top: 1px;
}
.btn-capsule-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 138, 0, 0.3);
  transition: transform 0.15s, filter 0.15s;
}
.btn-capsule-copy:active { transform: scale(0.95); }

/* 4 Quick Share Pills */
.affiliate-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.share-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.share-pill:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.2); }
.share-pill.wa-pill {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.25);
  color: #25d366;
}
.share-pill.tg-pill {
  background: rgba(0, 136, 204, 0.08);
  border-color: rgba(0, 136, 204, 0.25);
  color: #0088cc;
}
.share-pill.qr-pill {
  background: rgba(245, 185, 66, 0.08);
  border-color: rgba(245, 185, 66, 0.25);
  color: #f5b942;
}

/* Segmented Navigation Switcher (Floating Pro Style) */
.team-segment-switcher {
  display: flex;
  background: rgba(14, 22, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 14px;
  gap: 4px;
}
.segment-btn {
  flex: 1;
  padding: 9px 4px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}
.segment-btn.active {
  background: var(--card-2, #1a2744);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
.segment-counter {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--accent);
}
.team-tab-pane {
  display: none;
}
.team-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Unified Metric Horizon Bar */
.metric-horizon-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 6px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.horizon-cell {
  text-align: center;
  padding: 0 4px;
}
.horizon-cell.border-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.h-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.h-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.h-val.pos { color: #10b981; }
.h-val.gold { color: #f5b942; }

/* Available Commission Claim Strip */
.comm-action-strip {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.08) 0%, rgba(17, 29, 53, 0.9) 100%);
  border: 1px solid rgba(245, 185, 66, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.comm-strip-lbl {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
}
.comm-strip-val {
  font-size: 17px;
  font-weight: 800;
  color: #f5b942;
}
.btn-claim-glow {
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5b942, #e67e22);
  color: #111;
  font-size: 11.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 185, 66, 0.35);
  transition: transform 0.15s, filter 0.15s;
}
.btn-claim-glow:active { transform: scale(0.96); }

/* Search & Filter Hub (Clean Capsule Design) */
.search-filter-hub {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capsule-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.capsule-search-box .search-lens {
  position: absolute;
  right: 14px;
  font-size: 13px;
  color: var(--text-dim);
  pointer-events: none;
}
html[dir="ltr"] .capsule-search-box .search-lens { right: auto; left: 14px; }
.capsule-search-box input {
  width: 100%;
  padding: 10px 38px 10px 32px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 26, 44, 0.85);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
html[dir="ltr"] .capsule-search-box input { padding: 10px 32px 10px 38px; }
.capsule-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.15);
}
.capsule-search-box .search-lens-clear {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
}
html[dir="ltr"] .capsule-search-box .search-lens-clear { left: auto; right: 12px; }

/* Filter Chips Bar */
.filter-chips-row {
  display: flex;
  gap: 6px;
}
.modern-chip {
  flex: 1;
  padding: 7px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 22, 38, 0.7);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s;
}
.modern-chip.active {
  background: rgba(255, 138, 0, 0.12);
  border-color: var(--accent);
  color: #fff;
}
.modern-chip .chip-num {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}
.modern-chip.active .chip-num {
  background: var(--accent);
  color: #111;
}
.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}
.dot-gray {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Members List */
.vip-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vip-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  transition: border-color 0.2s;
}
.vip-member-row.active-depositor {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, var(--card) 100%);
}
.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.member-avatar.dep-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.member-meta {
  flex: 1;
  min-width: 0;
}
.member-meta .m-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.member-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}
.member-code-pill:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  transform: translateY(-1px);
}
.member-code-pill b {
  font-family: monospace;
  font-size: 11.5px;
}
.member-meta .m-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}
.status-pill {
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.dep {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.new {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Luxury Calculator Card */
.luxury-calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}
.calc-top-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.calc-icon-bubble {
  font-size: 24px;
  background: rgba(255, 138, 0, 0.1);
  border-radius: 12px;
  padding: 6px 10px;
}
.calc-top-header h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 2px 0;
}
.calc-top-header p {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
}
.calc-interactive-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.calc-slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.meta-label {
  font-size: 12px;
  color: var(--text-dim);
}
.meta-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  direction: ltr;
}
.luxury-slider {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-bottom: 12px;
}
.luxury-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
  cursor: pointer;
}
.calc-preset-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.preset-chip {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.preset-chip.active, .preset-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.calc-dual-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.calc-res-tile {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-res-tile.direct-tile {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}
.tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
}
.tile-tag-green {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 800;
}
.tile-tag-gold {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(245, 185, 66, 0.15);
  color: #f5b942;
  font-weight: 800;
}
.tile-value {
  font-size: 17px;
  font-weight: 800;
}
.tile-value.green { color: #10b981; }
.tile-value.gold { color: #f5b942; }
.calc-res-tile small {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
}

/* Multi-Tier Affiliate Breakdown Card */
.multi-tier-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.tier-card-title {
  font-size: 12.5px;
  font-weight: 800;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tier-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.tier-info b {
  font-size: 12px;
  display: block;
}
.tier-info small {
  font-size: 10px;
  color: var(--text-dim);
}
.tier-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}
.tier-badge.lvl-1 { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.tier-badge.lvl-2 { background: rgba(245, 185, 66, 0.15); color: #f5b942; }
.tier-badge.lvl-3 { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* Luxury Modal Popup */
.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 8, 16, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  padding: 16px !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.luxury-modal-card {
  text-align: center;
  width: 100%;
  max-width: 320px;
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 138, 0, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: auto;
}
.modal.hidden .luxury-modal-card {
  transform: scale(0.92);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.modal-h3 { font-size: 15px; font-weight: 800; margin: 0; }
.modal-close-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  cursor: pointer;
}
.modal-subtxt { font-size: 11px; color: var(--text-dim); margin-bottom: 14px; }
.qr-canvas-holder {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.qr-canvas-holder canvas, .qr-canvas-holder img {
  display: block !important;
  margin: 0 auto !important;
}
.modal-code-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-code-box .lbl { font-size: 11px; color: var(--text-dim); }
.modal-code-box strong { color: var(--accent); font-size: 15px; letter-spacing: 1px; }
.btn-modal-copy { width: 100%; padding: 11px; font-weight: 800; border-radius: 12px; }


/* ===== Luxury Telegram Security Card ===== */
.tg-security-card {
  background: linear-gradient(145deg, #0d1a2d 0%, #091220 100%);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.tg-security-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.tg-sec-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.tg-sec-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.45);
}
.tg-sec-icon svg {
  width: 24px;
  height: 24px;
}
.tg-sec-info {
  flex: 1;
  min-width: 0;
}
.tg-sec-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.tg-sec-title-row b {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}
.tg-bind-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.tg-bind-pill.linked {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.tg-sec-desc {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.45;
}
.tg-sec-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(7, 13, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 8px 14px;
  position: relative;
  z-index: 1;
}
.tg-user-handle {
  font-size: 14px;
  font-weight: 800;
  color: #35b8f0;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.3px;
}
.tg-at-symbol {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}
.btn-tg-luxury {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn-tg-luxury:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.55);
}
.btn-tg-luxury:active {
  transform: scale(0.96);
}
.btn-tg-luxury svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-tg-luxury.btn-tg-edit {
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.35);
  color: #35b8f0;
  box-shadow: none;
}
.btn-tg-luxury.btn-tg-edit:hover {
  background: rgba(42, 171, 238, 0.22);
  color: #fff;
}
.btn-tg-luxury.btn-tg-wide {
  width: 100%;
  padding: 12px 18px;
  font-size: 13.5px;
  border-radius: 12px;
  margin-top: 6px;
}

/* ===== Luxury Home Balance Card ===== */
.balance-card.luxury-home-card {
  background: linear-gradient(145deg, #0d172a 0%, #080f1d 100%);
  border: 1px solid rgba(255, 138, 0, 0.28);
  border-radius: 22px;
  color: #fff;
  padding: 22px 20px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.balance-card.luxury-home-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.balance-card.luxury-home-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* Trading action container */
.bc-trade-box {
  margin-top: 14px;
  background: rgba(11, 19, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .bc-trade-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.bc-trade-box .bc-msg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  flex: 1;
}

.bc-trade-box .bc-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 13px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0c121e;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.bc-trade-box .bc-bolt:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

.bc-trade-box .bc-bolt:active {
  transform: scale(0.97);
}

.bc-trade-box .bc-bolt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.6);
}

.bc-trade-box .bc-bolt-ico {
  font-size: 17px;
}

.bc-trade-box .bc-bolt-amt {
  font-size: 12.5px;
  font-weight: 800;
  color: #111;
  background: rgba(255, 255, 255, 0.35);
  padding: 2px 7px;
  border-radius: 8px;
}

/* 3-in-1 Horizon Financial Breakdown */
.eb-horizon-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(7, 13, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 6px;
  position: relative;
  z-index: 1;
}

.eb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 4px;
  position: relative;
}

.eb-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 0;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

html[dir="rtl"] .eb-col:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.eb-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  white-space: nowrap;
}

.eb-val {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  direction: ltr;
  white-space: nowrap;
}

.eb-val.eb-principal {
  color: #e2e8f0;
}

.eb-val.eb-profit {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.eb-val.eb-comm {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}


/* ===== PROMOTER PRO HUB CARD ===== */
.promoter-hub-card {
  margin: 14px 0 16px 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95) 0%, rgba(13, 17, 28, 0.98) 100%);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.promoter-hub-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

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

.promoter-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #f5b942;
  letter-spacing: 0.2px;
}

.promoter-verified-pill {
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(245, 185, 66, 0.15);
  border: 1px solid rgba(245, 185, 66, 0.3);
  color: #f5b942;
  font-size: 11px;
  font-weight: 700;
}

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

.p-rate-box {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.p-rate-lvl {
  display: block;
  font-size: 11px;
  color: var(--text-muted, #8e9bb0);
  margin-bottom: 4px;
}

.p-rate-num {
  font-size: 17px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  display: block;
}

.p-rate-num.gold { color: #f5b942; }
.p-rate-num.silver { color: #cbd5e1; }
.p-rate-num.bronze { color: #f97316; }

.btn-promoter-pitch {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 185, 66, 0.4);
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.18) 0%, rgba(249, 115, 22, 0.18) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.btn-promoter-pitch:hover {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.28) 0%, rgba(249, 115, 22, 0.28) 100%);
  border-color: rgba(245, 185, 66, 0.7);
  transform: translateY(-1px);
}

.btn-promoter-pitch .hint {
  font-size: 10px;
  color: #f5b942;
  opacity: 0.9;
}


/* ===== FLOATING SUPPORT BUTTONS (DUAL: WHATSAPP + TELEGRAM - LEFT ALIGNED) ===== */
/* ===== LUXURY SUPPORT POPUP MODAL (نافذة الدعم المنبثقة) ===== */
.support-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.support-modal-backdrop.show,
#supportModal {
  display: flex !important;
  animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.support-modal-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(145deg, #101c33 0%, #0b1220 100%);
  border: 1px solid rgba(0, 136, 204, 0.35);
  border-radius: 24px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 136, 204, 0.2);
  animation: modalPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.support-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  z-index: 100;
  pointer-events: auto !important;
  touch-action: manipulation;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.support-modal-close:hover,
.support-modal-close:active {
  background: rgba(255, 92, 122, 0.4);
  border-color: #ff5c7a;
  color: #ff5c7a;
  transform: scale(1.08);
}

.support-modal-icon {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(0, 136, 204, 0.5));
}

.support-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.support-modal-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 20px;
  line-height: 1.5;
}

.support-modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-opt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  text-align: right;
}

.support-opt-card:hover {
  transform: translateY(-2px);
}

.support-opt-card.wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(37, 211, 102, 0.04) 100%);
}
.support-opt-card.wa:hover {
  border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.support-opt-card.tg {
  border-color: rgba(0, 136, 204, 0.35);
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.12) 0%, rgba(0, 136, 204, 0.04) 100%);
}
.support-opt-card.tg:hover {
  border-color: #0088cc;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.25);
}

.support-opt-card.ch {
  border-color: rgba(34, 158, 217, 0.35);
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.12) 0%, rgba(34, 158, 217, 0.04) 100%);
}
.support-opt-card.ch:hover {
  border-color: #229ED9;
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.25);
}

.support-opt-card .opt-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.support-opt-card.wa .opt-ico {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.support-opt-card.tg .opt-ico {
  background: linear-gradient(135deg, #0088cc, #00b4d8);
  box-shadow: 0 4px 10px rgba(0, 136, 204, 0.35);
}

.support-opt-card.ch .opt-ico {
  background: linear-gradient(135deg, #229ED9, #0088cc);
  box-shadow: 0 4px 10px rgba(34, 158, 217, 0.35);
}

.support-opt-card .opt-info {
  flex: 1;
  min-width: 0;
}

.support-opt-card .opt-info b {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.support-opt-card .opt-info small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.support-opt-card .opt-arrow {
  font-size: 14px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.support-opt-card:hover .opt-arrow {
  transform: translateX(-4px);
  color: #fff;
}

/* Floating Single Support Trigger Button (Bottom-Left) */
.floating-support-btn-single {
  position: fixed;
  bottom: 68px;
  left: 12px;
  right: auto;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 13px;
  height: 35px;
  background: linear-gradient(135deg, #0088cc 0%, #00b4d8 100%);
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none !important;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.floating-support-btn-single:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
}

.floating-support-btn-single:active {
  transform: translateY(0) scale(0.96);
}

/* Auth Pages Help Strip (Clean Centered Pill) */
.auth-help-links {
  margin: 18px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-help-link {
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.3);
  color: #00b4d8;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-help-link:hover {
  background: rgba(0, 136, 204, 0.2);
  border-color: rgba(0, 136, 204, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.auth-help-link:active {
  transform: translateY(0) scale(0.98);
}

[dir="ltr"] .floating-support-btn-single {
  left: 12px;
  right: auto;
}

@media (max-width: 480px) {
  .floating-support-btn-single {
    bottom: 66px;
    left: 8px;
    right: auto;
    height: 32px;
    padding: 5px 10px;
    font-size: 11px;
  }
}

[dir="ltr"] .floating-support-wrap {
  left: 12px;
  right: auto;
}

@media (max-width: 480px) {
  .floating-support-wrap {
    bottom: 14px;
    left: 8px;
    right: auto;
    gap: 5px;
  }
  body:has(.bottom-nav) .floating-support-wrap {
    bottom: 66px;
  }
  .floating-support-btn {
    height: 30px;
    padding: 4px 8px;
    font-size: 10.5px;
  }
}

/* ============================================================
   CONTEST & LEADERBOARD PODIUM STYLES
   ============================================================ */
.contest-hero-card {
  background: linear-gradient(145deg, #121c2e 0%, #091220 100%);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 20px;
  padding: 20px 16px;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.contest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 185, 66, 0.15);
  border: 1px solid rgba(245, 185, 66, 0.35);
  color: #f5b942;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.pulse-dot-gold {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5b942;
  box-shadow: 0 0 8px #f5b942;
  animation: pulseGold 1.5s infinite;
}
@keyframes pulseGold {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.contest-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}
.contest-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 16px;
  line-height: 1.4;
}
.contest-timer-wrap {
  background: rgba(4, 8, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.timer-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.timer-capsules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.time-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 48px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.time-box b {
  font-size: 16px;
  font-weight: 800;
  color: #f5b942;
  line-height: 1;
}
.time-box small {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 3px;
}
.time-sep {
  font-weight: 800;
  color: #f5b942;
  font-size: 14px;
}
.pulse-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseRed 1.5s infinite;
}
@keyframes pulseRed {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}
.contest-badge.is-paused {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.timer-capsules.is-paused .time-box {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.timer-capsules.is-paused .time-box b {
  color: #ef4444 !important;
}
.timer-capsules.is-paused .time-sep {
  color: #ef4444 !important;
}

/* My Rank Card */
.my-contest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.my-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.my-rank-pill, .my-vol-pill {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}
.my-rank-pill strong {
  color: #f5b942;
  font-size: 14px;
}
.my-vol-pill strong {
  color: var(--green);
  font-size: 14px;
}
.my-rank-tip {
  font-size: 12px;
  color: var(--text);
  margin: 0 0 12px;
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid #f5b942;
}
[dir="rtl"] .my-rank-tip {
  border-left: none;
  border-right: 3px solid #f5b942;
}
.btn-invite-more {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Podium 3D Stage */
.podium-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 4px 0;
}
.podium-col {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.podium-col.rank-1 {
  order: 2;
  z-index: 2;
}
.podium-col.rank-2 {
  order: 1;
  z-index: 1;
}
.podium-col.rank-3 {
  order: 3;
  z-index: 1;
}
.podium-avatar {
  position: relative;
  margin-bottom: 6px;
}
.podium-avatar .crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(245, 185, 66, 0.6));
}
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  border: 2px solid;
}
.rank-1 .avatar-circle {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #ffd700 0%, #f5b942 100%);
  border-color: #ffd700;
  color: #0b1220;
  font-size: 18px;
  box-shadow: 0 4px 18px rgba(245, 185, 66, 0.5);
}
.rank-2 .avatar-circle {
  background: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 100%);
  border-color: #d1d5db;
  color: #0b1220;
  box-shadow: 0 4px 14px rgba(209, 213, 219, 0.3);
}
.rank-3 .avatar-circle {
  background: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%);
  border-color: #cd7f32;
  color: #fff;
  box-shadow: 0 4px 14px rgba(205, 127, 50, 0.3);
}
.podium-name {
  font-size: 12px;
  font-weight: 700;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
  color: var(--text);
}
.podium-vol {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}
.podium-pillar {
  width: 100%;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pillar-1 {
  height: 96px;
  background: linear-gradient(180deg, rgba(245, 185, 66, 0.4) 0%, rgba(245, 185, 66, 0.1) 100%);
  border: 1.5px solid rgba(245, 185, 66, 0.6);
  border-bottom: none;
}
.pillar-2 {
  height: 76px;
  background: linear-gradient(180deg, rgba(209, 213, 219, 0.3) 0%, rgba(209, 213, 219, 0.08) 100%);
  border: 1.5px solid rgba(209, 213, 219, 0.45);
  border-bottom: none;
}
.pillar-3 {
  height: 60px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.3) 0%, rgba(205, 127, 50, 0.08) 100%);
  border: 1.5px solid rgba(205, 127, 50, 0.45);
  border-bottom: none;
}
.podium-prize {
  font-size: 13px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--green);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Contest Board Table */
.contest-board-card {
  padding: 8px 12px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.board-table-header {
  display: grid;
  grid-template-columns: 38px 1.4fr 1.1fr 1fr;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.board-table-header span:nth-child(1) { text-align: center; }
.board-table-header span:nth-child(2) { text-align: start; }
.board-table-header span:nth-child(3) { text-align: center; }
.board-table-header span:nth-child(4) { text-align: end; }

.board-row-item {
  display: grid;
  grid-template-columns: 38px 1.4fr 1.1fr 1fr;
  align-items: center;
  padding: 11px 8px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
}
.board-row-item:last-child {
  border-bottom: none;
}
.board-row-item.is-me {
  background: rgba(245, 185, 66, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(245, 185, 66, 0.3);
}
.board-row-item .r-rank { text-align: center; }
.board-row-item .r-promoter { text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.board-row-item .r-vol { text-align: center; color: var(--text); }
.board-row-item .r-prize { text-align: end; }

.rank-num {
  font-weight: 800;
  color: var(--text-dim);
}
.badge-me {
  background: #f5b942;
  color: #0b1220;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-inline-start: 4px;
}
.prize-pill-est {
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}

/* Rules Card */
.contest-rules-card {
  padding: 14px 16px;
  margin-bottom: 16px;
}
.rule-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.rule-item:last-child {
  margin-bottom: 0;
}
.rule-ico {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.rule-item b {
  font-size: 12.5px;
  display: block;
  margin-bottom: 2px;
  color: var(--text);
}
.rule-item p {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   TEAM MILESTONE REWARDS STYLES
   ============================================================ */
.team-milestones-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.milestones-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.milestones-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.milestones-title-wrap b {
  font-size: 14px;
  display: block;
  color: var(--text);
}
.milestones-title-wrap .meta {
  font-size: 11px;
  color: var(--text-dim);
}
.m-trophy {
  font-size: 24px;
  flex-shrink: 0;
}
.m-active-badge {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.m-active-badge strong {
  color: var(--green);
  font-size: 14px;
}
.milestones-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-tier-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.m-tier-card.is-ready {
  border-color: rgba(245, 185, 66, 0.6);
  background: linear-gradient(145deg, rgba(245, 185, 66, 0.1) 0%, var(--bg-soft) 100%);
  box-shadow: 0 4px 14px rgba(245, 185, 66, 0.15);
}
.m-tier-card.is-claimed {
  opacity: 0.75;
  border-color: rgba(34, 197, 94, 0.3);
}
.m-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.m-tier-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-tier-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.m-tier-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.m-tier-desc {
  font-size: 11px;
  color: var(--text-dim);
}
.m-tier-reward-pill {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.m-progress-bar-wrap {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.m-progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #f5b942, #ffd700);
  transition: width 0.4s ease;
}
.m-tier-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-dim);
}
.btn-claim-milestone {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  animation: pulseClaim 1.5s infinite;
}
@keyframes pulseClaim {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.claimed-badge {
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   SCRATCH & WIN LUCKY CARDS STYLES
   ============================================================ */
.scratch-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 185, 66, 0.1);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #f5b942;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-marquee {
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scratch-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 10px;
}
.scratch-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}
.scratch-stat-box.highlight {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.15) 0%, rgba(245, 185, 66, 0.05) 100%);
  border-color: rgba(245, 185, 66, 0.4);
}
.scratch-stat-box .lbl {
  font-size: 10.5px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}
.scratch-stat-box .val-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.scratch-stat-box .val-wrap .ico {
  font-size: 18px;
}
.scratch-stat-box .val-wrap strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.scratch-progress-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
}
.scratch-progress-box .p-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-dim);
}
.scratch-progress-box .p-top b {
  color: #f5b942;
}
.scratch-progress-box .hint {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 6px;
}
.scratch-game-card {
  padding: 16px;
  text-align: center;
}
.scratch-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 210px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(245, 185, 66, 0.5);
  background: #0b1220;
}
.scratch-prize-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, #0b1220 100%);
  padding: 16px;
  z-index: 1;
}
.prize-content {
  text-align: center;
}
.prize-sparkle {
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}
.prize-congrats {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
}
.prize-amount {
  font-size: 32px;
  font-weight: 900;
  color: #10b981;
  display: block;
  margin: 4px 0;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
  animation: prizePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes prizePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.prize-credited {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
}
#scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}
#scratchCanvas:active {
  cursor: grabbing;
}
.scratch-empty-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 18, 32, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 3;
  text-align: center;
}
.scratch-empty-overlay .ico {
  font-size: 36px;
  margin-bottom: 6px;
}
.scratch-empty-overlay b {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}
.scratch-empty-overlay p {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
  max-width: 260px;
}
.scratch-controls {
  margin-top: 12px;
}
.scratch-hint {
  font-size: 12px;
  color: #f5b942;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: pulseClaim 1.5s infinite;
}
.scratch-prizes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scratch-prize-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.scratch-prize-item.gold {
  border-color: rgba(245, 185, 66, 0.4);
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.1) 0%, var(--bg-soft) 100%);
}
.scratch-prize-item .p-icon {
  font-size: 18px;
}
.scratch-prize-item .p-info {
  text-align: right;
  flex-grow: 1;
  margin: 0 8px;
}
.scratch-prize-item .p-info b {
  font-size: 12.5px;
  display: block;
  color: var(--text);
}
.scratch-prize-item .p-info small {
  font-size: 10px;
  color: var(--text-dim);
}
.scratch-prize-item .p-chance {
  font-size: 10.5px;
  font-weight: 800;
  color: #f5b942;
  background: rgba(245, 185, 66, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

/* --- Scratch Live Status & Meter --- */
.scratch-live-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.scratch-meter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.scratch-meter-pill b {
  color: #ffd700;
  font-weight: 800;
}
.btn-scratch-reveal-all {
  width: 100%;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.btn-scratch-reveal-all:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* ============================================================
   SCRATCH & WIN CELEBRATION WINNING MODAL
   ============================================================ */
.scratch-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeInBackdrop 0.3s ease-out;
}
.scratch-modal-backdrop.hidden {
  display: none !important;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scratch-modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(145deg, #101c33 0%, #0b1220 100%);
  border: 2px solid #ffd700;
  border-radius: 24px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalBounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalBounceIn {
  0% { transform: scale(0.6) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.scratch-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}
.scratch-modal-close:hover {
  background: rgba(255, 92, 122, 0.2);
  color: #ff5c7a;
}

.scratch-modal-crown {
  font-size: 48px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
  animation: crownBob 2s ease-in-out infinite alternate;
}
@keyframes crownBob {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-8px) rotate(4deg); }
}

.scratch-modal-sparkles {
  font-size: 16px;
  margin-bottom: 6px;
}

.scratch-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}

.scratch-modal-amount {
  font-size: 42px;
  font-weight: 900;
  color: #10b981;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.65), 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 8px 0 12px;
  letter-spacing: 1px;
}

.scratch-modal-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0 0 22px;
  line-height: 1.5;
}

.scratch-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-win-pulse {
  animation: prizeGlowPulse 1.2s ease-in-out infinite alternate;
}
@keyframes prizeGlowPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8)); }
}

/* ============================================================
   Modern Unified Compliance Footer Component
   ============================================================ */
.app-legal-footer {
  text-align: center;
  padding: 24px 14px 36px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
body.light .app-legal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}
.legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.legal-footer-link {
  font-size: 12px;
  color: var(--text-dim, #93a3c3);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 6px;
}
.legal-footer-link:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}
body.light .legal-footer-link {
  color: #64748b;
}
body.light .legal-footer-link:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}
.legal-footer-link.active {
  color: #00f0ff;
  font-weight: 700;
}
body.light .legal-footer-link.active {
  color: #0284c7;
}
.legal-footer-copy {
  font-size: 11px;
  color: var(--text-dim, #93a3c3);
  opacity: 0.75;
  margin: 0;
  direction: ltr;
}





/* ===== CAYZIT PWA Smart Install Banner & Modal ===== */
.cayzit-pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: linear-gradient(135deg, rgba(14, 23, 38, 0.98) 0%, rgba(20, 32, 54, 0.99) 100%);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  box-sizing: border-box;
}
.cayzit-pwa-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cayzit-pwa-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.cayzit-pwa-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.cayzit-pwa-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cayzit-pwa-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cayzit-pwa-title b {
  color: #00f0ff;
}
.cayzit-pwa-sub {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.cayzit-pwa-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cayzit-pwa-btn {
  background: linear-gradient(135deg, #00f0ff 0%, #0099ff 100%);
  color: #050b14;
  border: none;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cayzit-pwa-btn:active {
  transform: scale(0.96);
}
.cayzit-pwa-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.cayzit-pwa-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* iOS Guide Modal */
.cayzit-pwa-modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cayzit-pwa-modal-wrap.open {
  opacity: 1;
  pointer-events: auto;
}
.cayzit-pwa-modal {
  width: 100%;
  max-width: 440px;
  background: #0d1527;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cayzit-pwa-modal-wrap.open .cayzit-pwa-modal {
  transform: translateY(0);
}
.cayzit-pwa-modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cayzit-pwa-modal-head img {
  width: 50px;
  height: 50px;
  border-radius: 13px;
}
.cayzit-pwa-modal-head h3 {
  font-size: 17.5px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}
.cayzit-pwa-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  color: #e2e8f0;
  font-size: 13.5px;
}
.cayzit-pwa-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cayzit-pwa-modal-close-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 153, 255, 0.2) 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}


/* ===== Light Theme overrides for PWA Banner & Modals ===== */
.cayzit-pwa-banner {
  bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 999999 !important;
}
body.light .cayzit-pwa-banner {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(2, 132, 199, 0.35) !important;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.14), 0 0 20px rgba(2, 132, 199, 0.1) !important;
  color: #0f172a !important;
}
body.light .cayzit-pwa-title {
  color: #0f172a !important;
}
body.light .cayzit-pwa-title b {
  color: #0284c7 !important;
}
body.light .cayzit-pwa-sub {
  color: #64748b !important;
}
body.light .cayzit-pwa-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
}
body.light .cayzit-pwa-close {
  color: #94a3b8 !important;
}
body.light .cayzit-pwa-modal {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18) !important;
}
body.light .cayzit-pwa-modal-head h3 {
  color: #0f172a !important;
}
body.light .cayzit-pwa-step {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}
body.light .cayzit-pwa-step-num {
  background: #0284c7 !important;
  color: #ffffff !important;
}
body.light .cayzit-pwa-modal-close-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
}


/* ============================================================
   👑 CAYZIT LUXURY WHITE THEME (PRIMARY DEFAULT - 100% COVERAGE)
   ============================================================ */
:root, html, body, body.light, html.light {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --card-2: #f8fafc;
  --border: #e2e8f0;
  --border-focus: #0284c7;
  --text: #0f172a;
  --text-dim: #475569;
  --text-muted: #64748b;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --blue: #2563eb;
  --emerald: #059669;
  --gold: #d97706;
  --danger: #e11d48;
  --warning: #f59e0b;
  --radius: 18px;
  --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

body, body.light {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(2, 132, 199, 0.08), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(13, 148, 136, 0.08), transparent 60%),
    #f8fafc !important;
  color: #0f172a !important;
}

/* Headings & Texts */
body.light h1, body.light h2, body.light h3, body.light h4, body.light h5, body.light h6,
body.light .section-title h1, body.light .section-title h2, body.light .code-title,
body.light .contest-title, body.light .success-title, body.light .otp-title,
body.light .tier-card-title, body.light .legal-hero-title, body.light .legal-card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.light p, body.light .section-sub-title, body.light .meta, body.light .muted,
body.light .desc, body.light .field-hint, body.light .hint, body.light .contest-subtitle,
body.light .otp-sub, body.light .success-sub, body.light .legal-hero-sub {
  color: #475569 !important;
}

/* ALL Cards and Containers across ALL pages */
body.light .card,
body.light .balance-card,
body.light .affiliate-hero-card,
body.light .contest-board-card,
body.light .contest-hero-card,
body.light .luxury-calc-card,
body.light .luxury-home-card,
body.light .luxury-modal-card,
body.light .scratch-game-card,
body.light .pkg-balance-card,
body.light .promoter-hub-card,
body.light .team-milestones-card,
body.light .tg-security-card,
body.light .my-contest-card,
body.light .notif-panel,
body.light .support-modal-box,
body.light .wallet-menu,
body.light .withdraw-rules-box,
body.light .hazard-card,
body.light .legal-card,
body.light .profile-banner,
body.light .trade-card,
body.light .pkg-card,
body.light .team-card,
body.light .wallet-box,
body.light .stat-card,
body.light .setting-card,
body.light .inv-card,
body.light .multi-tier-card,
body.light .contest-rules-card,
body.light .contest-paused-card,
body.light .scratch-stat-box,
body.light .term-window,
body.light .modal-card,
body.light .modal-sheet,
body.light .vip-card,
body.light .auth {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.03) !important;
  color: #0f172a !important;
}

/* Internal Tiles, Rows, and Nested Containers */
body.light .eb-row,
body.light .eb-col,
body.light .eb-horizon-grid,
body.light .bc-trade-box,
body.light .calc-res-tile,
body.light .direct-tile,
body.light .monthly-tile,
body.light .scratch-status-grid,
body.light .calc-interactive-box,
body.light .calc-top-header,
body.light .tier-row,
body.light .ps,
body.light .ladder-row,
body.light .contact-btn-card,
body.light .promoter-rates-grid,
body.light .team-events-grid,
body.light .tech-grid,
body.light .rule-item,
body.light .qa,
body.light .inv-stat,
body.light .stat,
body.light .time-box,
body.light .board-table-header,
body.light .affiliate-share-grid,
body.light .code-value-wrap,
body.light .affiliate-code-capsule,
body.light .search-filter-hub,
body.light .capsule-search-box,
body.light .time-box,
body.light .qr-canvas-holder,
body.light .tg-sec-action-row,
body.light .term-body,
body.light .my-rank-body,
body.light .podium-pillar,
body.light .support-opt-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

/* Text inside tiles */
body.light .eb-lbl,
body.light .bc-label,
body.light .s-label,
body.light .meta-label,
body.light .h-label,
body.light .l,
body.light .opt-info small,
body.light .code-details {
  color: #64748b !important;
}

body.light .eb-val,
body.light .bc-rate,
body.light .s-value,
body.light .meta-amount,
body.light .h-val,
body.light .n,
body.light .tile-value,
body.light .opt-info b,
body.light .podium-name,
body.light .podium-vol,
body.light .podium-prize {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Brand styling */
body.light .brand-name {
  color: #0f172a !important;
}
body.light .brand-name b {
  color: #0284c7 !important;
}
body.light .brand-logo {
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}

/* Top bar & Bottom bar */
body.light .topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.light .bottom-nav,
body.light .navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.04) !important;
}
body.light .nav-item {
  color: #64748b !important;
}
body.light .nav-item.active {
  color: #0284c7 !important;
}

/* Buttons */
body.light .btn-main,
body.light .btn-primary,
body.light .btn-claim-glow,
body.light .btn-scratch-reveal-all,
body.light .btn-tg-luxury,
body.light .btn-tg-wide {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35) !important;
  border: none !important;
}

body.light .btn-secondary,
body.light .btn-outline,
body.light .icon-btn,
body.light .segment-btn,
body.light .btn-modal-copy,
body.light .btn-capsule-copy {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light .segment-btn.active {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

/* Inputs & Form Controls */
body.light input,
body.light select,
body.light textarea,
body.light .dial-wrap,
body.light .dial-select,
body.light .dial-dropdown,
body.light .dial-search {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}
body.light input:focus,
body.light select:focus,
body.light textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

/* VIP Card */
body.light .vip-card {
  background: linear-gradient(145deg, #ffffff 0%, #fefce8 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
}
body.light .vip-info b {
  color: #0f172a !important;
}
body.light .vip-info .vip-sub {
  color: #64748b !important;
}
body.light .vip-bar {
  background: #e2e8f0 !important;
}

/* Lists & Rows */
body.light .profile-list .row,
body.light .setting-card .row,
body.light .ladder-row,
body.light .info-list .row {
  border-bottom: 1px solid #f1f5f9 !important;
}
body.light .profile-list .row .k,
body.light .setting-card .row .k {
  color: #0f172a !important;
  font-weight: 700 !important;
}
body.light .profile-list .row .v {
  color: #475569 !important;
}

/* Badges & Pills */
body.light .verify-badge,
body.light .tile-tag-green {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
}
body.light .promoter-verified-pill,
body.light .my-rank-pill,
body.light .tg-pill {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
}
body.light .tile-tag-gold,
body.light .contest-badge {
  background: rgba(217, 119, 6, 0.1) !important;
  color: #d97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
}

/* Floating Support Button */
body.light .floating-support-btn-single {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
}


/* ============================================================
   📲 CAYZIT MANDATORY APP INSTALLATION GATE (FULLSCREEN LOCK)
   ============================================================ */
.cayzit-app-lock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
  animation: cayzitFadeIn 0.35s ease;
}

@keyframes cayzitFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.cayzit-app-lock-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.3), 0 0 35px rgba(2, 132, 199, 0.15);
  box-sizing: border-box;
  max-height: 92vh;
  overflow-y: auto;
}

.cayzit-app-lock-icon-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

.cayzit-app-lock-icon {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: #ffffff;
}

.cayzit-app-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cayzit-app-lock-title {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.cayzit-app-lock-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 20px;
}

.cayzit-app-lock-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  text-align: right;
}

.cayzit-app-lock-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.cayzit-app-lock-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.cayzit-app-lock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  font-size: 15.5px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}

.cayzit-app-lock-btn:active {
  transform: scale(0.98);
}

.cayzit-app-lock-verify-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}
.cayzit-app-lock-verify-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.cayzit-app-lock-bypass {
  margin-top: 14px;
  font-size: 11.5px;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.cayzit-app-lock-bypass:hover {
  color: #64748b;
}


/* ============================================================
   💎 CAYZIT HIGH-CONTRAST LUXURY BALANCE CARD & STATS STYLING
   ============================================================ */

/* Completely hide and disable any theme toggle buttons */
.theme-toggle, button.theme-toggle, .icon-btn.theme-toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Base Card */
.card.balance-card,
.balance-card,
.balance-card.luxury-home-card,
body.light .balance-card,
body.light .luxury-home-card {
  background: #ffffff !important;
  background-image: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%) !important;
  border: 1px solid rgba(2, 132, 199, 0.22) !important;
  border-radius: 24px !important;
  padding: 22px 20px 18px !important;
  box-shadow: 0 12px 35px -5px rgba(2, 132, 199, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
  color: #0f172a !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.balance-card::before,
.balance-card::after,
.balance-card.luxury-home-card::before,
.balance-card.luxury-home-card::after {
  display: none !important;
}

/* Header inside Balance Card */
.bc-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

.bc-label,
.balance-card .label,
.balance-card .bc-label span {
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
}

.bc-dot {
  background: #059669 !important;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5) !important;
}

.bc-rate,
#tradeRateBadge {
  background: rgba(5, 150, 105, 0.12) !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  color: #059669 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
}

/* 💰 THE MAIN BALANCE VALUE (Crystal Clear Bold Dark) */
.balance-card .value,
.luxury-home-card .value,
.value,
#balanceValue,
.balance-card .value span,
.balance-card .value b {
  color: #0f172a !important;
  text-shadow: none !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  letter-spacing: -0.5px !important;
}

.eyeball {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  border-radius: 10px !important;
  padding: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}
.eyeball:hover {
  background: rgba(2, 132, 199, 0.18) !important;
}

/* Trading Box inside Balance Card */
.bc-trade-box {
  margin-top: 14px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.bc-msg,
#tradeInfo {
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.bc-bolt,
#tradeStartBtn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 10px 18px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  cursor: pointer !important;
}

/* 📊 3 Breakdown Cards (Capital, Profit, Commissions) */
.earnings-breakdown {
  margin-top: 16px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.eb-horizon-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.eb-col,
.direct-tile,
.monthly-tile,
.calc-res-tile,
.eb-horizon-grid .eb-col,
.eb-horizon-grid .horizon-cell {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px 10px !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}

.eb-lbl,
.eb-col .eb-lbl,
.horizon-cell .eb-lbl,
.calc-res-tile .eb-lbl {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.eb-val,
.eb-col .eb-val,
.horizon-cell .eb-val,
.calc-res-tile .eb-val {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  display: block !important;
}


/* ============================================================
   👥 CAYZIT LUXURY WHITE THEME — TEAM & AFFILIATE COMPLETE SUITE
   ============================================================ */

/* Hero Title on Team Page */
.auth-hero h1 {
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 21px !important;
  margin-bottom: 6px !important;
}
.auth-hero p {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* 1. Main Affiliate Hero Card */
.affiliate-hero-card,
body.light .affiliate-hero-card {
  background: #ffffff !important;
  background-image: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%) !important;
  border: 1.5px solid rgba(2, 132, 199, 0.25) !important;
  border-radius: 24px !important;
  padding: 22px 18px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
  color: #0f172a !important;
  position: relative !important;
  overflow: hidden !important;
}

.affiliate-hero-card::before,
.affiliate-hero-card::after {
  display: none !important;
}

.affiliate-tag {
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
}

.pulse-dot {
  background: #0284c7 !important;
  box-shadow: 0 0 8px #0284c7 !important;
}

.affiliate-code-capsule {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}

.code-details .code-title {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 3px !important;
}

.code-value-wrap code {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  color: #0284c7 !important;
  direction: ltr !important;
  display: inline-block !important;
  font-family: monospace !important;
}

.btn-capsule-copy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transition: transform 0.15s !important;
}
.btn-capsule-copy:active { transform: scale(0.96) !important; }

/* Share Pills Grid */
.affiliate-share-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
}

.share-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 9px 6px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.15s ease !important;
}
.share-pill:hover { transform: translateY(-1px) !important; }

.share-pill.wa-pill {
  background: #f0fdf4 !important;
  border-color: rgba(37, 211, 102, 0.35) !important;
  color: #16a34a !important;
}
.share-pill.tg-pill {
  background: #f0f9ff !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  color: #0284c7 !important;
}
.share-pill.qr-pill {
  background: #fefce8 !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
  color: #d97706 !important;
}
.share-pill.link-pill {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* 2. Team Events Strip (Contest & Scratch Games) */
.contest-home-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.35) !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.06) !important;
}
.contest-home-banner b {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.scratch-home-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 1.5px solid rgba(5, 150, 105, 0.35) !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.06) !important;
}
.scratch-home-banner b {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* 3. Promoter Hub Card */
.promoter-hub-card,
body.light .promoter-hub-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 18px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

.promoter-hub-header .promoter-badge b {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

.promoter-rates-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.p-rate-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 8px !important;
  text-align: center !important;
}

.p-rate-lvl {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.p-rate-num {
  font-size: 20px !important;
  font-weight: 900 !important;
  display: block !important;
}
.p-rate-num.gold { color: #d97706 !important; }
.p-rate-num.silver { color: #0284c7 !important; }
.p-rate-num.bronze { color: #059669 !important; }

/* 4. Team Milestones Card */
.team-milestones-card,
body.light .team-milestones-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 18px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05) !important;
}

.milestones-title-wrap b {
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}
.milestones-title-wrap .meta {
  color: #64748b !important;
  font-size: 12px !important;
}

.m-active-badge {
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
}
.m-active-badge strong {
  color: #0284c7 !important;
}

.m-tier-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 14px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
  color: #0f172a !important;
}
.m-tier-card.is-ready {
  border-color: rgba(2, 132, 199, 0.4) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
}
.m-tier-card.is-claimed {
  border-color: rgba(5, 150, 105, 0.3) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
}

.m-tier-name {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
}
.m-tier-desc {
  color: #64748b !important;
  font-size: 11.5px !important;
}
.m-tier-reward-pill {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  color: #d97706 !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 10px !important;
}
.m-tier-actions {
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.btn-claim-milestone {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
  cursor: pointer !important;
}
.claimed-badge {
  background: rgba(5, 150, 105, 0.12) !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  color: #059669 !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}

.m-progress-bar-wrap {
  background: #e2e8f0 !important;
  border-radius: 10px !important;
  height: 8px !important;
  overflow: hidden !important;
}

.m-progress-bar-fill {
  background: linear-gradient(90deg, #0284c7, #0369a1) !important;
  border-radius: 10px !important;
}

/* 5. Team Segment Switcher (Pro Tabs) */
.team-segment-switcher {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 4px !important;
  margin-bottom: 16px !important;
  gap: 4px !important;
}

.segment-btn {
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 6px !important;
  border-radius: 12px !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.segment-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.segment-counter {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  border-radius: 10px !important;
}

/* 6. Metric Horizon Bar (3-in-1 Summary Card) */
.metric-horizon-bar {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 14px 8px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
}

.horizon-cell.border-cell {
  border-right: 1.5px solid #e2e8f0 !important;
  border-left: 1.5px solid #e2e8f0 !important;
}

.h-label {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.h-val {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}
.h-val.pos { color: #059669 !important; }
.h-val.gold { color: #d97706 !important; }

/* 7. Commission Action Strip */
.comm-action-strip {
  background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.3) !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.06) !important;
  margin-bottom: 16px !important;
}

.comm-strip-lbl {
  color: #78350f !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.comm-strip-val {
  color: #d97706 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.btn-claim-glow {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

/* 8. Search & Filter Hub */
.capsule-search-box input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}
.capsule-search-box input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}
.capsule-search-box .search-lens {
  color: #94a3b8 !important;
}

.modern-chip {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.modern-chip.active {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
}
.modern-chip .chip-num {
  background: #f1f5f9 !important;
  color: #475569 !important;
}
.modern-chip.active .chip-num {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* 9. Members List Rows */
.vip-member-row {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 12px 14px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
  margin-bottom: 8px !important;
}
.vip-member-row.active-depositor {
  border-color: rgba(5, 150, 105, 0.35) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
}

.member-avatar {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
}
.member-avatar.dep-avatar {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
}

.member-meta .m-name {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
}
.member-meta .m-sub {
  color: #64748b !important;
  font-size: 12px !important;
}

.status-pill.dep {
  background: rgba(5, 150, 105, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  font-weight: 800 !important;
}
.status-pill.new {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

/* 10. Luxury Calculator Card */
.luxury-calc-card,
body.light .luxury-calc-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 18px !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05) !important;
}

.calc-top-header h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}
.calc-top-header p {
  color: #64748b !important;
  font-size: 12px !important;
}
.calc-icon-bubble {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-radius: 12px !important;
}

.calc-interactive-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px !important;
}
.meta-label {
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
.meta-amount {
  color: #0284c7 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.luxury-slider {
  background: #cbd5e1 !important;
}
.luxury-slider::-webkit-slider-thumb {
  background: #0284c7 !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5) !important;
}

.preset-chip {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
}
.preset-chip.active {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

.calc-res-tile {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 14px 12px !important;
}
.calc-res-tile .tile-head {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}
.calc-res-tile .tile-value.green {
  color: #059669 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}
.calc-res-tile .tile-value.gold {
  color: #d97706 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}
.calc-res-tile small {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* 11. Multi-Tier Card */
.multi-tier-card,
body.light .multi-tier-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 16px !important;
  margin-top: 14px !important;
}

.tier-card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  margin-bottom: 12px !important;
}

.tier-row {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px !important;
  margin-bottom: 8px !important;
}

.tier-info b {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}
.tier-info small {
  color: #64748b !important;
  font-size: 11.5px !important;
}

.tier-badge.lvl-1 {
  background: rgba(217, 119, 6, 0.12) !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
  color: #d97706 !important;
  font-weight: 900 !important;
}
.tier-badge.lvl-2 {
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  color: #0284c7 !important;
  font-weight: 900 !important;
}
.tier-badge.lvl-3 {
  background: rgba(5, 150, 105, 0.12) !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  color: #059669 !important;
  font-weight: 900 !important;
}

/* 12. QR Code Modal */
.modal-card.luxury-modal-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 24px !important;
  color: #0f172a !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
}
.modal-h3 {
  color: #0f172a !important;
  font-weight: 900 !important;
}
.modal-subtxt {
  color: #64748b !important;
}
.qr-canvas-holder {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}
.modal-code-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
}
.modal-code-box .lbl {
  color: #64748b !important;
}
.modal-code-box strong {
  color: #0284c7 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}



/* ============================================================
   📦 CAYZIT LUXURY SUBSCRIBED PACKAGES & DETAILS MODAL
   ============================================================ */

.my-packages-hub {
  margin-bottom: 20px;
}

.pkg-active-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ps-stat {
  text-align: center;
}

.ps-lbl {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 3px;
}

.ps-val {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}
.ps-val.pos { color: #059669; }

.ps-div {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

.my-pkg-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual Active Package Card */
.my-active-pkg-card {
  background: #ffffff;
  background-image: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.3);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.08), 0 2px 6px rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.my-active-pkg-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 12px 30px -4px rgba(2, 132, 199, 0.15);
}

.my-active-pkg-card.is-completed {
  background-image: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
  border-color: rgba(5, 150, 105, 0.3);
}

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

.pkg-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg-ico {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.pkg-name {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  display: block;
  margin-bottom: 3px;
}

.status-pill.comp {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.3);
  color: #059669;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-pill.dep.pulse {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #0284c7;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  animation: pulseGlow 2s infinite;
}

.pkg-card-amt {
  text-align: left;
}

.pkg-card-amt .amt {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  display: block;
}

.pkg-card-amt .pos {
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
}

/* Progress bar inside active package card */
.pkg-card-mid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.pkg-progress-wrap {
  background: #e2e8f0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pkg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.my-active-pkg-card.is-completed .pkg-progress-fill {
  background: linear-gradient(90deg, #059669 0%, #047857 100%);
}

.pkg-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
}
.pkg-progress-labels .gold {
  color: #d97706;
  font-weight: 800;
}

.pkg-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  padding-top: 4px;
}
.pkg-card-footer .arrow-ico {
  font-size: 14px;
  transition: transform 0.2s;
}
.my-active-pkg-card:hover .pkg-card-footer .arrow-ico {
  transform: translateX(-4px);
}

/* Empty State Card */
.my-pkg-empty-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.empty-pkg-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.my-pkg-empty-card h3 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}

.my-pkg-empty-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* Details Modal Boxes */
.pkg-m-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.pkg-m-box .m-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.pkg-m-box .m-val {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  display: block;
}
.pkg-m-box .m-val.pos { color: #059669; }
.pkg-m-box .m-val.gold { color: #d97706; }

.pkg-modal-progress-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
}



/* ============================================================
   📦 CAYZIT LUXURY SUBSCRIBED PACKAGES & DETAILS MODAL
   ============================================================ */

.my-packages-hub {
  margin-bottom: 20px;
}

.pkg-active-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.ps-stat {
  text-align: center;
}

.ps-lbl {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 4px;
}

.ps-val {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}
.ps-val.pos { color: #059669; }

.ps-div {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}

.my-pkg-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Individual Active Package Card */
.my-active-pkg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.my-active-pkg-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.12);
}

.my-active-pkg-card.is-completed {
  background: #f0fdf4;
  border-color: #d1fae5;
}

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

.pkg-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pkg-ico {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.pkg-name {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

.status-pill.comp {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #059669;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill.dep.pulse {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pkg-card-amt {
  text-align: left;
}

.pkg-card-amt .amt {
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  display: block;
  letter-spacing: -0.5px;
}

.pkg-card-amt .pos {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  display: block;
  margin-top: 2px;
}

/* Progress bar inside active package card */
.pkg-card-mid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.pkg-progress-wrap {
  background: #e2e8f0;
  border-radius: 10px;
  height: 7px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pkg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.my-active-pkg-card.is-completed .pkg-progress-fill {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.pkg-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.pkg-progress-labels .gold {
  color: #d97706;
  font-weight: 800;
}

.pkg-card-footer {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-radius: 12px;
  padding: 9px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #0284c7;
  transition: background 0.2s;
}
.my-active-pkg-card:hover .pkg-card-footer {
  background: #e0f2fe;
}
.pkg-card-footer .arrow-ico {
  font-size: 14px;
  transition: transform 0.2s;
}
.my-active-pkg-card:hover .pkg-card-footer .arrow-ico {
  transform: translateX(-4px);
}

/* Empty State Card */
.my-pkg-empty-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.empty-pkg-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.my-pkg-empty-card h3 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}

.my-pkg-empty-card p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* Details Modal Boxes */
.pkg-m-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.pkg-m-box .m-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.pkg-m-box .m-val {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  display: block;
}
.pkg-m-box .m-val.pos { color: #059669; }
.pkg-m-box .m-val.gold { color: #d97706; }

.pkg-modal-progress-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
}



/* ============================================================
   📋 CAYZIT LUXURY TRANSACTION HISTORY & AUDIT TRAIL
   ============================================================ */

.history-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.history-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.history-stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.h-stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.h-stat-ico.dep { background: #dcfce7; color: #059669; border: 1px solid #bbf7d0; }
.h-stat-ico.with { background: #ffe4e6; color: #e11d48; border: 1px solid #fecdd3; }
.h-stat-ico.prof { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.h-stat-ico.comm { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }

.h-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.h-stat-lbl {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 2px;
}

.h-stat-val {
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-stat-val.pos { color: #059669; }
.h-stat-val.neg { color: #e11d48; }
.h-stat-val.sky { color: #0284c7; }
.h-stat-val.gold { color: #d97706; }

/* Filter Tabs Bar */
.history-filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.history-filter-scroll::-webkit-scrollbar { display: none; }

.h-filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.h-filter-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.h-filter-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.h-filter-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10.5px;
}
.h-filter-btn.active .h-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* History Cards List */
.history-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-tx-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
  cursor: pointer;
}

.history-tx-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 6px 20px -2px rgba(2, 132, 199, 0.08);
}

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

.tx-type-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tx-type-ico.c-dep { background: #dcfce7; color: #059669; border: 1px solid #bbf7d0; }
.tx-type-ico.c-with { background: #ffe4e6; color: #e11d48; border: 1px solid #fecdd3; }
.tx-type-ico.c-prof { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.tx-type-ico.c-pkg { background: #ede9fe; color: #7c3aed; border: 1px solid #ddd6fe; }
.tx-type-ico.c-comm { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.tx-type-ico.c-rew { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.tx-type-ico.c-adj { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.tx-main-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tx-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-desc {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.tx-ref-id {
  font-family: monospace;
  font-size: 10.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 6px;
}

.tx-right-wrap {
  text-align: left;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tx-amount {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}
.tx-amount.pos { color: #059669; }
.tx-amount.neg { color: #e11d48; }

.tx-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.tx-status-badge.comp { background: #dcfce7; color: #059669; border: 1px solid #bbf7d0; }
.tx-status-badge.pend { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.tx-status-badge.fail { background: #ffe4e6; color: #e11d48; border: 1px solid #fecdd3; }

/* ⏱️ Luxury Live Trading Countdown Timer */
.cd-timer-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  padding: 3px 9px !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.08) !important;
}

#tradeStartBtn.in-cooldown {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  cursor: default !important;
}

#tradeStartBtn.in-cooldown .bc-bolt-txt {
  font-weight: 700 !important;
  color: #475569 !important;
}

.trade-timer-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.trade-timer-live b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0284c7;
  font-size: 14px;
  font-weight: 900;
  background: #e0f2fe;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}


/* ============================================================
   💎 ULTRA-LUXURY HARMONIZED BALANCE & TRADING CARD STYLING
   ============================================================ */

.balance-card.luxury-home-card {
  background: #ffffff !important;
  background-image: linear-gradient(170deg, #ffffff 0%, #f0f9ff 50%, #f8fafc 100%) !important;
  border: 1.5px solid rgba(2, 132, 199, 0.2) !important;
  border-radius: 24px !important;
  padding: 20px 18px 16px !important;
  box-shadow: 0 10px 30px -4px rgba(2, 132, 199, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
  margin-bottom: 18px !important;
}

.bc-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}

.bc-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

.bc-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #059669 !important;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.6) !important;
  display: inline-block !important;
}

.bc-rate,
#tradeRateBadge {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.06) !important;
}

.balance-card .value {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 4px 0 14px !important;
}

#balanceValue {
  color: #0f172a !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.5px !important;
}

.eyeball {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0284c7 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.eyeball:hover {
  background: #e2e8f0 !important;
}

/* 🚀 HARMONIZED TRADING ACTION BOX */
.bc-trade-box {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
}

.bc-trade-box .bc-msg,
#tradeInfo {
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  flex: 1 !important;
}

.bc-trade-box .bc-bolt,
#tradeStartBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: none !important;
  cursor: pointer !important;
  border-radius: 13px !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  white-space: nowrap !important;
}

#tradeStartBtn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4) !important;
}

#tradeStartBtn.in-cooldown {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
  cursor: default !important;
  padding: 7px 12px !important;
}

#tradeStartBtn.in-cooldown .bc-bolt-txt {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

.cd-timer-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
}

/* 📊 3-in-1 Horizon Financial Breakdown */
.eb-horizon-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.eb-horizon-grid .eb-col {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 10px 6px !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.eb-horizon-grid .eb-lbl {
  color: #64748b !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  margin-bottom: 4px !important;
}

.eb-horizon-grid .eb-val {
  font-size: 14.5px !important;
  font-weight: 900 !important;
  font-family: ui-monospace, monospace !important;
}

.eb-horizon-grid .eb-val.eb-principal {
  color: #0284c7 !important;
}

.eb-horizon-grid .eb-val.eb-profit {
  color: #059669 !important;
}

.eb-horizon-grid .eb-val.eb-comm {
  color: #d97706 !important;
}


/* ============================================================
   💎 CAYZIT LUXURY PAGE TRANSITION & GLASS HUD LOADER
   ============================================================ */

/* 1. Page Fade-In Animation */
body {
  animation: cayzitPageEnter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cayzitPageEnter {
  from {
    opacity: 0.88;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Top Glowing Laser Progress Bar */
#cayzitLaserBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999999;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #06b6d4 100%);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.85), 0 0 4px rgba(56, 189, 248, 0.9);
  pointer-events: none;
  opacity: 0;
  border-radius: 0 3px 3px 0;
  transition: width 0.28s ease, opacity 0.2s ease;
}

#cayzitLaserBar.active {
  opacity: 1;
}

/* 3. Floating Frosted Glass HUD Loader */
#cayzitGlassHud {
  position: fixed;
  inset: 0;
  z-index: 9999990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#cayzitGlassHud.active {
  opacity: 1;
  pointer-events: auto;
}

.cayzit-hud-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(2, 132, 199, 0.08);
  transform: scale(0.9);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#cayzitGlassHud.active .cayzit-hud-box {
  transform: scale(1);
}

/* Animated Ring Spinner */
.cayzit-spinner-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cayzit-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(2, 132, 199, 0.15);
  border-top-color: #0284c7;
  border-right-color: #38bdf8;
  animation: cayzitSpin 0.75s linear infinite;
}

.cayzit-spin-logo {
  font-size: 18px;
  animation: cayzitPulse 1.4s ease-in-out infinite;
  user-select: none;
}

@keyframes cayzitSpin {
  to { transform: rotate(360deg); }
}

@keyframes cayzitPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.18); opacity: 1; }
}

.cayzit-hud-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0;
}


/* ============================================================
   💎 CAYZIT 3D QUANTUM ORB HUD LOADER (3-4 SECONDS LUXURY)
   ============================================================ */

#cayzitGlassHud {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#cayzitGlassHud.active {
  opacity: 1;
  pointer-events: auto;
}

.cayzit-hud-box {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 28px !important;
  padding: 26px 32px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 230px !important;
  max-width: 90vw !important;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(2, 132, 199, 0.15) !important;
  transform: scale(0.88);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#cayzitGlassHud.active .cayzit-hud-box {
  transform: scale(1);
}

/* 🌀 3D Tech Orbit Orb */
.cayzit-tech-orb {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px dashed #0284c7;
  opacity: 0.85;
  animation: orbSpinCW 3.5s linear infinite;
}

.orb-ring-inner {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #38bdf8;
  border-bottom-color: #059669;
  animation: orbSpinCCW 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.orb-core {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(56, 189, 248, 0.25) 100%);
  border: 1px solid rgba(2, 132, 199, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.35);
  animation: orbCorePulse 1.6s ease-in-out infinite;
}

@keyframes orbSpinCW {
  to { transform: rotate(360deg); }
}

@keyframes orbSpinCCW {
  to { transform: rotate(-360deg); }
}

@keyframes orbCorePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(2, 132, 199, 0.3); }
  50% { transform: scale(1.12); box-shadow: 0 0 24px rgba(56, 189, 248, 0.6); }
}

/* Text Group */
.cayzit-hud-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.cayzit-hud-title {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.3px !important;
  margin: 0 !important;
}

.cayzit-hud-sub {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

/* Mini Progress Bar */
.cayzit-hud-progress-wrap {
  width: 160px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}

.cayzit-hud-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #059669);
  border-radius: 10px;
  transition: width 2.0s cubic-bezier(0.1, 0.7, 0.1, 1);
}

#cayzitGlassHud.active .cayzit-hud-progress-bar {
  width: 100%;
}


/* ============================================================
   💎 CAYZIT PRO NATIVE APP BOTTOM NAVIGATION DOCK
   ============================================================ */

.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: calc(64px + env(safe-area-inset-bottom)) !important;
  padding: 0 6px env(safe-area-inset-bottom) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  border-top: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.05), 0 -1px 3px rgba(15, 23, 42, 0.02) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  z-index: 99990 !important;
}

.nav-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  padding: 6px 0 4px !important;
  text-decoration: none !important;
  color: #64748b !important;
  position: relative !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

.nav-icon-wrap {
  position: relative !important;
  width: 32px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nav-icon-wrap svg {
  color: #64748b !important;
  stroke: #64748b !important;
  transition: all 0.22s ease !important;
}

.nav-dot {
  position: absolute !important;
  bottom: -2px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  opacity: 0 !important;
  transform: scale(0) !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.nav-txt {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-top: 3px !important;
  color: #64748b !important;
  letter-spacing: -0.2px !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

/* 🔥 Active Tab State */
.nav-item.active {
  color: #0284c7 !important;
}

.nav-item.active .nav-icon-wrap {
  transform: translateY(-2px) !important;
}

.nav-item.active .nav-icon-wrap svg {
  color: #0284c7 !important;
  stroke: #0284c7 !important;
  stroke-width: 2.3 !important;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.35)) !important;
}

.nav-item.active .nav-dot {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.nav-item.active .nav-txt {
  color: #0284c7 !important;
  font-weight: 900 !important;
}

/* Tap Feedback */
.nav-item:active {
  transform: scale(0.92) !important;
}
