/* ══════════════════════════════
   DEPOSIT MODAL STYLES
══════════════════════════════ */
#depositModal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4vw; z-index: 999999;
}
#dmBox {
  background: linear-gradient(160deg, #1e1e1e, #141414);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 20px;
  width: 100%; max-width: 380px; padding: 22px 22px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
#dmBag { font-size: 30px; text-align: center; display: block; margin-bottom: 4px; user-select: none; }
#dmBag.flip { animation: bagFlip 0.7s ease forwards; }
@keyframes bagFlip {
  0%  { transform: rotateY(0deg); }
  45% { transform: rotateY(90deg); }
  55% { transform: rotateY(90deg); }
  100%{ transform: rotateY(0deg); }
}
#dmTitle { text-align: center; font-size: 20px; font-weight: 800; color: #FFFFFF; letter-spacing: 0.5px; margin-bottom: 18px; }
.dm-contact {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; margin-bottom: 9px;
  transition: background 0.18s, border-color 0.18s, transform 0.12s; overflow: hidden; cursor: pointer;
}
.dm-contact:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.3); }
.dm-logo { width: 44px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dm-logo img { max-width: 44px; max-height: 32px; width: auto; height: auto; object-fit: contain; display: block; }
.dm-contact-info { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.dm-contact-name { font-size: 13px; font-weight: 700; color: #FFFFFF; }
.dm-contact-num { font-size: 14px; color: #E0E0E0; font-family: 'Courier New', monospace; letter-spacing: 1px; font-weight: 600; }
.dm-gold-btn {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 5px 11px; border-radius: 20px; flex-shrink: 0; cursor: pointer; border: none;
  background: linear-gradient(135deg, #E8E8E8, #C9C9C9); color: #1A1A1A;
  box-shadow: 0 2px 8px rgba(255,255,255,0.25);
  transition: filter 0.15s, transform 0.12s, background 0.2s, box-shadow 0.2s, color 0.2s; white-space: nowrap;
}
.dm-gold-btn:hover  { filter: brightness(1.1); box-shadow: 0 4px 14px rgba(255,255,255,0.4); }
.dm-gold-btn:active { transform: scale(0.92); }
.dm-gold-btn.done  { background: linear-gradient(135deg, #2A2A2A, #1A1A1A); box-shadow: 0 2px 8px rgba(0,0,0,0.35); color: #fff; filter: none; }
.dm-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); margin: 14px 0 12px; }
.dm-toggle-row {
  display: inline-flex; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 30px; padding: 3px; margin-bottom: 14px;
}
.dm-tab { padding: 6px 22px; border-radius: 30px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.22s; color: #555; user-select: none; letter-spacing: 0.3px; white-space: nowrap; }
.dm-tab.active { background: linear-gradient(135deg, #E8E8E8, #C9C9C9); color: #1A1A1A; box-shadow: 0 2px 10px rgba(255,255,255,0.3); }
.dm-panel { display: none; }
.dm-panel.active { display: block; }
.dm-field-label { color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 700; margin-bottom: 7px; display: block; text-transform: uppercase; letter-spacing: 0.6px; }
.dm-info-note { display:flex; flex-direction:column; gap:2px; background:rgba(255,215,0,0.08); border:1px solid rgba(255,215,0,0.3); border-radius:10px; padding:8px 10px; margin:0 0 12px; font-size:11px; color:#FFD700; font-weight:600; line-height:1.4; }
.dm-sms-wrap { position: relative; margin-bottom: 2px; }
#depositSmsNew {
  width: 100%; height: 76px; padding: 10px 70px 10px 12px;
  background: #1c1c1c; border: 1.5px solid rgba(255,255,255,0.22); border-radius: 12px;
  color: #E0E0E0; font-size: 13px; resize: none; font-family: inherit; line-height: 1.55;
  transition: border-color 0.2s, background 0.2s;
}
#depositSmsNew:focus { outline: none; border-color: #FFFFFF; background: #202020; }
#depositSmsNew::placeholder { color: #383838; }
#dmPasteBtn { position: absolute; top: 8px; right: 8px; }
#depositTxnIdNew {
  width: 100%; padding: 11px 14px; background: #1c1c1c;
  border: 1.5px solid rgba(255,255,255,0.22); border-radius: 12px;
  color: #E0E0E0; font-size: 14px; font-family: 'Courier New', monospace; letter-spacing: 1px;
  transition: border-color 0.2s, background 0.2s;
}
#depositTxnIdNew:focus { outline: none; border-color: #FFFFFF; background: #202020; }
#depositTxnIdNew::placeholder { color: #383838; font-family: inherit; letter-spacing: 0; font-size: 13px; }
#dmSuccessAmount {
  display: none; text-align: center; font-size: 28px; font-weight: 900; color: #FFFFFF;
  margin-top: 12px; margin-bottom: 4px;
  text-shadow: 0 0 24px rgba(255,255,255,0.4); animation: dmFadeUp 0.4s ease;
}
@keyframes dmFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#dmResultMsg {
  display: none; text-align: center; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700; margin-top: 10px; margin-bottom: 2px;
}
#dmResultMsg.success { background: rgba(255,255,255,0.12); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.3); }
#dmResultMsg.error   { background: rgba(255,255,255,0.05); color: #FFFFFF; border: 1px dashed rgba(255,255,255,0.4); }
.dm-btns { display: flex; gap: 10px; margin-top: 16px; }
.dm-btn { flex: 1; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px; }
.dm-btn.secondary { background: rgba(255,255,255,0.05); color: #666; border: 1.5px solid rgba(255,255,255,0.08); }
.dm-btn.secondary:hover { background: rgba(255,255,255,0.09); color: #888; }
.dm-btn.primary { background: linear-gradient(135deg, #E8E8E8, #C9C9C9); color: #1A1A1A; box-shadow: 0 4px 16px rgba(255,255,255,0.25); }
.dm-btn.primary:hover  { filter: brightness(1.08); box-shadow: 0 6px 22px rgba(255,255,255,0.4); }
.dm-btn.primary:active { transform: scale(0.97); }
.dm-btn.primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }

/* ── DEPOSIT MODAL — multi-view flow (Session 2) ── */
.dm-view { display: none; }
.dm-view.active { display: block; }
.dm-step-title { font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.6px; margin: 2px 0 10px; text-align: center; }
.dm-amount-wrap { position: relative; margin-bottom: 10px; }
#dmAmountInput {
  width: 100%; box-sizing: border-box; background: #161616; border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 14px 90px 14px 14px; font-size: 18px; font-weight: 800; color: #FFFFFF;
  font-family: 'Courier New', monospace;
}
#dmAmountInput:focus { outline: none; border-color: #FFFFFF; background: #202020; }
.dm-amount-hint {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 700; color: #FFD700; text-align: right; line-height: 1.2; pointer-events: none;
}
.dm-quick-row { display: flex; gap: 8px; margin-bottom: 14px; }
.dm-quick-btn {
  flex: 1; padding: 10px 0; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: #C9C9C9; font-weight: 800; font-size: 14px; cursor: pointer;
}
.dm-quick-btn:active, .dm-quick-btn.selected { border-color: #FFD700; color: #FFD700; background: rgba(255,215,0,0.08); }

.dm-agents-row { display: flex; gap: 10px; margin-bottom: 6px; }
.dm-agent {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.15s;
}
.dm-agent-name { font-size: 13px; font-weight: 700; color: #E0E0E0; }
.dm-agent-dot { font-size: 14px; }
.dm-agent.selected { border-color: #FFD700; background: rgba(255,215,0,0.08); box-shadow: 0 0 0 1px rgba(255,215,0,0.25); }
.dm-agent.unavailable { opacity: 0.4; cursor: not-allowed; }
.dm-agent-hint { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; margin: 4px 0 14px; }

.dm-copy-block {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px;
}
.dm-copy-num { font-size: 18px; font-weight: 800; color: #FFFFFF; font-family: 'Courier New', monospace; letter-spacing: 1px; }

.dm-paste-label { color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 700; margin-bottom: 7px; display: block; text-transform: uppercase; letter-spacing: 0.6px; }
#dmPasteInput3 {
  width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical;
  background: #161616; border: 1.5px solid rgba(255,255,255,0.12); border-radius: 12px;
  padding: 12px 14px; font-size: 13px; color: #E8E8E8; font-family: inherit;
}
#dmPasteInput3:focus { outline: none; border-color: #FFFFFF; background: #202020; }
#dmPasteInput3::placeholder { color: #6a6a6a; filter: blur(2px); opacity: 0.9; }

/* Floating draft circle — reopens View 3 for an abandoned, copied-but-unfinished deposit */
#dmFloatCircle {
  position: fixed; right: 18px; bottom: 90px; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 100%);
  border: 2px dashed rgba(255,215,0,0.7);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 99995; box-shadow: 0 4px 18px rgba(0,0,0,0.5); /* Session 1: above every screen incl. winner and the frame (99990), below the deposit box (999999) */
  animation: dmFloatPulse 2s ease-in-out infinite;
}
#dmFloatCircle.show { display: flex; }
#dmFloatCircle .dm-float-icon { font-size: 22px; }
@keyframes dmFloatPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.5), 0 0 0 0 rgba(255,215,0,0.35); }
  50%      { box-shadow: 0 4px 18px rgba(0,0,0,0.5), 0 0 0 8px rgba(255,215,0,0); }
}

/* ══════════════════════════════
   WITHDRAW MODAL STYLES
══════════════════════════════ */
#withdrawModal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4vw; z-index: 999999;
}
#wmBox {
  background: linear-gradient(160deg, #1e1e1e, #141414);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 20px;
  width: 100%; max-width: 380px; padding: 22px 22px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
#wmIcon { font-size: 30px; text-align: center; display: block; margin-bottom: 4px; user-select: none; }
#wmIcon.fly { animation: wmFlyOut 0.7s ease forwards; }
@keyframes wmFlyOut {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  60%  { transform: translateY(-18px) scale(1.15); opacity: 0.6; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
#wmTitle { text-align: center; font-size: 20px; font-weight: 800; color: #FFFFFF; letter-spacing: 0.5px; margin-bottom: 14px; }
#wmBalanceRow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 8px 16px; margin-bottom: 16px;
}
#wmBalanceLabel { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
#wmBalanceAmt { font-size: 16px; font-weight: 900; color: #FFFFFF; font-family: 'Courier New', monospace; letter-spacing: 0.5px; transition: color 0.2s; }
#wmBalanceAmt.counting { color: #C9C9C9; }
.wm-providers { display: flex; gap: 10px; margin-bottom: 14px; }
.wm-provider {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 8px 10px; background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.07); border-radius: 14px; cursor: pointer;
  transition: all 0.22s; opacity: 0.45; filter: grayscale(0.6); user-select: none;
}
.wm-provider:hover { opacity: 0.7; border-color: rgba(255,255,255,0.2); filter: grayscale(0.3); }
.wm-provider.active { opacity: 1; filter: none; background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.4); box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 16px rgba(255,255,255,0.1); }
.wm-provider img { width: 70px; height: 36px; object-fit: contain; }
.wm-provider-name { font-size: 11px; font-weight: 700; color: #888; letter-spacing: 0.3px; }
.wm-provider.active .wm-provider-name { color: #FFFFFF; }
.wm-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); margin: 2px 0 14px; }
.wm-field-label { color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 700; margin-bottom: 7px; display: block; text-transform: uppercase; letter-spacing: 0.6px; }
.wm-input {
  width: 100%; padding: 11px 14px; background: #1c1c1c;
  border: 1.5px solid rgba(255,255,255,0.22); border-radius: 12px; color: #E0E0E0;
  font-size: 14px; font-family: inherit; transition: border-color 0.2s, background 0.2s; margin-bottom: 12px;
}
.wm-input:focus { outline: none; border-color: #FFFFFF; background: #202020; }
.wm-input::placeholder { color: #383838; font-size: 13px; }
#wmPhone { font-family: 'Courier New', monospace; letter-spacing: 1px; }
.wm-amount-wrap { position: relative; margin-bottom: 10px; }
#wmAmount {
  width: 100%; padding: 11px 55px 11px 14px; background: #1c1c1c;
  border: 1.5px solid rgba(255,255,255,0.22); border-radius: 12px; color: #E0E0E0;
  font-size: 15px; font-family: 'Courier New', monospace; letter-spacing: 1px; font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
}
#wmAmount:focus { outline: none; border-color: #FFFFFF; background: #202020; }
#wmAmount::placeholder { color: #383838; font-size: 13px; font-family: inherit; letter-spacing: 0; font-weight: 400; }
.wm-etb-tag { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; pointer-events: none; }
.wm-chips { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.wm-chip { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 800; cursor: pointer; border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: #888; transition: all 0.18s; letter-spacing: 0.3px; user-select: none; }
.wm-chip:hover { border-color: rgba(255,255,255,0.4); color: #FFFFFF; background: rgba(255,255,255,0.09); }
.wm-chip.active { background: linear-gradient(135deg, #E8E8E8, #C9C9C9); color: #1A1A1A; border-color: transparent; box-shadow: 0 2px 10px rgba(255,255,255,0.3); }
#wmHint { font-size: 11px; color: #555; margin-bottom: 14px; text-align: center; font-style: italic; }
#wmResultMsg { display: none; text-align: center; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
#wmResultMsg.success { background: rgba(255,255,255,0.12); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.3); }
#wmResultMsg.error   { background: rgba(255,255,255,0.05); color: #FFFFFF; border: 1px dashed rgba(255,255,255,0.4); }
.wm-btns { display: flex; gap: 10px; margin-top: 4px; }
.wm-btn { flex: 1; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 800; border: none; cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px; }
.wm-btn.secondary { background: rgba(255,255,255,0.05); color: #666; border: 1.5px solid rgba(255,255,255,0.08); }
.wm-btn.secondary:hover { background: rgba(255,255,255,0.09); color: #888; }
.wm-btn.primary { background: linear-gradient(135deg, #E8E8E8, #C9C9C9); color: #1A1A1A; box-shadow: 0 4px 16px rgba(255,255,255,0.25); }
.wm-btn.primary:hover  { filter: brightness(1.08); box-shadow: 0 6px 22px rgba(255,255,255,0.4); }
.wm-btn.primary:active { transform: scale(0.97); }
.wm-btn.primary:disabled { opacity: 0.45; cursor: not-allowed; filter: none; box-shadow: none; }

/* ══════════════════════════════
   INVITE MODAL STYLES
══════════════════════════════ */
#inviteModal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 999999;
}
#inviteBox {
  background: linear-gradient(160deg, #1e1e1e, #141414);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 480px; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.7);
  overflow: hidden;
}
.inv-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.inv-title { font-size: 18px; font-weight: 800; color: #FFFFFF; }
.inv-close { background: none; border: none; color: #555; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.inv-layout { flex: 1; display: flex; overflow: hidden; min-height: 0; }
.inv-nav { display: flex; flex-direction: column; width: 84px; flex-shrink: 0; padding: 12px 6px; gap: 6px; border-right: 1px solid rgba(255,255,255,0.08); }
.inv-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; font-size: 10.5px; font-weight: 700; color: #555; cursor: pointer; transition: all 0.2s; text-align: center; }
.inv-nav-item.active { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.inv-nav-icon { font-size: 18px; }
.inv-content { flex: 1; overflow-y: auto; padding: 16px 18px; min-width: 0; }
.inv-link-row { display: flex; gap: 8px; margin-bottom: 14px; }
.inv-link-input { flex: 1; padding: 10px 12px; background: #1c1c1c; border: 1.5px solid rgba(255,255,255,0.22); border-radius: 10px; color: #E0E0E0; font-size: 12px; font-family: 'Courier New', monospace; }
.inv-copy-btn { padding: 10px 14px; background: linear-gradient(135deg,#E8E8E8,#C9C9C9); border: none; border-radius: 10px; color: #1A1A1A; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.inv-tg-btn { padding: 10px 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.35); border-radius: 10px; color: #FFFFFF; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.inv-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.inv-stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 10px 8px; }
.inv-stat-val { font-size: 16px; font-weight: 900; color: #FFFFFF; }
.inv-stat-label { font-size: 9px; color: #555; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.inv-tier-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.inv-child { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.inv-child:last-child { border-bottom: none; }
.inv-child-name { font-size: 13px; font-weight: 600; flex: 1; }
.inv-child-xp { font-size: 11px; color: #555; }
/* Invitee tab — two-column 1st°/2nd° tier lists */
.inv-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-col-header { font-size: 11.5px; font-weight: 700; margin-bottom: 8px; }
.inv-col-list { display: flex; flex-direction: column; gap: 6px; }
.inv-name-row { font-size: 12px; font-weight: 600; padding: 8px 9px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-empty { color: #444; font-size: 11px; padding: 8px 0; }
/* Bingo card carousel */
.inv-cards-wrap { overflow: hidden; position: relative; touch-action: pan-y; }
.inv-cards-slider { display: flex; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); }
.inv-card { min-width: 100%; padding: 4px; box-sizing: border-box; }
.inv-bingo-title { display: flex; gap: 4px; justify-content: center; margin-bottom: 10px; }
.inv-bingo-letter { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #1A1A1A; }
.inv-card-body { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 16px; }
.inv-card-icon { font-size: 36px; text-align: center; margin-bottom: 8px; }
.inv-card-heading { font-size: 16px; font-weight: 900; color: #FFFFFF; text-align: center; margin-bottom: 8px; }
.inv-card-text { font-size: 13px; color: #888; text-align: center; line-height: 1.6; }
.inv-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.inv-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.2s; }
.inv-dot.active { background: #FFFFFF; transform: scale(1.4); }
.inv-arrows { display: flex; justify-content: space-between; margin-top: 8px; }
.inv-arrow { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 6px 16px; color: #FFFFFF; font-size: 14px; cursor: pointer; }

/* ══════════════════════════════
   5-BUTTON ACTION ROW
══════════════════════════════ */
.d-actions-5 {
  display: flex; gap: 6px; width: 100%;
}

/* ── BOTTOM TAB BAR (Rooms / Deposit / Withdraw / Invite) ── */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    display: flex; gap: 2px;
    background: linear-gradient(180deg, #1E1E1E, #0D0D0D);
    border-top: 1px solid rgba(255,215,0,0.25);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0,0,0,0.45);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.bottom-nav.bn-hidden { transform: translateY(110%); pointer-events: none; }
.bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 6px 2px; border-radius: 12px; cursor: pointer; user-select: none;
    transition: background 0.2s, transform 0.15s;
}
.bn-item:active { transform: scale(0.92); }
.bn-icon { font-size: clamp(17px,4vw,20px); line-height: 1; }
.bn-icon img { width: clamp(17px,4vw,20px); height: clamp(17px,4vw,20px); object-fit: contain; display: block; }
.bn-label { font-size: clamp(8.5px,2.2vw,10px); font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 0.3px; }
.bn-item.active { background: rgba(255,215,0,0.1); }
.bn-item.active .bn-label { color: #FFD700; }
.bn-pin { display: none; flex: 0 0 auto; min-width: 44px; }
.bn-pin.bn-pin-visible { display: flex; }
.bn-pin.pinned { background: rgba(255,215,0,0.15); }
.bn-pin.pinned .bn-icon { transform: rotate(-40deg); }
.bn-pin.pinned .bn-label { color: #FFD700; }

.bottom-nav-reveal {
    display: none; position: fixed; right: 14px; bottom: 14px; z-index: 499;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,215,0,0.45);
    background: linear-gradient(135deg,#2A2A2A,#181818); color: #FFD700; font-size: 15px;
    align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    cursor: pointer;
}
.bottom-nav-reveal.bn-show { display: flex; }

body[data-theme="light"] .bottom-nav { background: linear-gradient(180deg, #F2F2F2, #E4E4E4); border-top-color: rgba(0,0,0,0.15); }
body[data-theme="light"] .bn-label { color: rgba(0,0,0,0.6); }
body[data-theme="light"] .bottom-nav-reveal { background: linear-gradient(135deg,#F0F0F0,#DDDDDD); color: #B8860B; }
.d-action-btn-5 {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: linear-gradient(160deg, #1e1e1e, #161616);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 14px;
  padding: 10px 3px 8px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  position: relative; overflow: hidden; min-width: 0; user-select: none;
}
.d-action-btn-5:hover { border-color: rgba(255,255,255,0.4); background: linear-gradient(160deg, #222, #181818); }
.d-action-btn-5:active { transform: scale(0.95); }
.d-action-icon-5 { font-size: 20px; line-height: 1; }
.d-action-icon-5 img { width: 20px; height: 20px; object-fit: contain; display: block; margin: 0 auto; }
.d-action-label-5 { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,0.65); letter-spacing: 0.2px; white-space: nowrap; text-align: center; }
.d-action-timer-5 { font-size: 8.5px; font-weight: 800; color: rgba(255,255,255,0.7); font-family: 'Courier New', monospace; letter-spacing: 0.3px; margin-top: 1px; }
#btnGift5.ready { border-color: rgba(255,255,255,0.6); animation: giftReadyPulse5 1.4s ease-in-out infinite; }
@keyframes giftReadyPulse5 { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 50% { box-shadow: 0 0 12px 3px rgba(255,255,255,0.3); } }
#btnGift5.ready .d-action-icon-5 { animation: giftBounce5 1.4s ease-in-out infinite; }
@keyframes giftBounce5 { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
#btnIsland5 { border: none; padding: 0; background: transparent; overflow: visible; }
.island5-inner {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 10px 3px 8px; border-radius: 13px; position: relative;
  background: linear-gradient(160deg, #0D0D0D, #050505);
  box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 3px rgba(255,255,255,0.15), 0 0 18px 2px rgba(255,255,255,0.4), 0 0 35px 4px rgba(255,255,255,0.15);
  animation: islandPulse5 0.9s ease-in-out infinite; overflow: hidden; cursor: pointer; transition: transform 0.15s;
}
#btnIsland5:active .island5-inner { transform: scale(0.95); }
@keyframes islandPulse5 {
  0%   { box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 3px rgba(255,255,255,0.15), 0 0 14px 2px rgba(255,255,255,0.5), 0 0 30px 3px rgba(255,255,255,0.2); }
  30%  { box-shadow: 0 0 0 1.5px #C9C9C9, 0 0 0 3px rgba(255,255,255,0.25), 0 0 22px 5px rgba(255,255,255,0.7), 0 0 50px 8px rgba(255,255,255,0.3); }
  60%  { box-shadow: 0 0 0 1.5px #fff,    0 0 0 3px rgba(255,255,255,0.4),  0 0 30px 8px rgba(220,220,220,0.8), 0 0 65px 12px rgba(255,255,255,0.35); }
  80%  { box-shadow: 0 0 0 1.5px #C9C9C9, 0 0 0 3px rgba(255,255,255,0.2),  0 0 18px 4px rgba(255,255,255,0.55), 0 0 40px 6px rgba(255,255,255,0.22); }
  100% { box-shadow: 0 0 0 1.5px #FFFFFF, 0 0 0 3px rgba(255,255,255,0.15), 0 0 14px 2px rgba(255,255,255,0.5), 0 0 30px 3px rgba(255,255,255,0.2); }
}
.island5-inner::before {
  content: ''; position: absolute; top: -50%; left: -75%; width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: sheenSweep5 2.4s ease-in-out infinite; pointer-events: none;
}
@keyframes sheenSweep5 { 0%,100% { left: -75%; opacity: 0; } 20% { opacity: 1; } 50% { left: 130%; opacity: 0; } }
.island5-money { position: absolute; font-size: 9px; opacity: 0; pointer-events: none; animation: moneyFly5 var(--dur) var(--delay) ease-in-out infinite; }
@keyframes moneyFly5 { 0% { opacity: 0; transform: translate(0,0) scale(0.5) rotate(0deg); } 20% { opacity: 0.9; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot)); } }
.island5-icon-wrap { position: relative; font-size: 20px; line-height: 1; animation: iconGlitch5 4s steps(1) infinite; }
@keyframes iconGlitch5 { 0%,94%,100% { filter: none; transform: none; } 95% { filter: hue-rotate(90deg) brightness(2); transform: translateX(-2px); } 96% { filter: hue-rotate(180deg) brightness(1.5); transform: translateX(2px); } 97% { filter: none; transform: none; } 98% { filter: hue-rotate(270deg) brightness(2); transform: translateX(-1px); } }
.island5-label { font-size: 9px; font-weight: 800; color: rgba(220,220,220,0.85); letter-spacing: 0.3px; text-transform: uppercase; position: relative; z-index: 1; text-shadow: 0 0 8px rgba(220,220,220,0.8); }

/* GIFT OVERLAY */
#giftOverlay5 { display: none; position: fixed; inset: 0; z-index: 9999999; background: rgba(0,0,0,0.93); align-items: center; justify-content: center; padding: 0 20px; backdrop-filter: blur(4px); }
#giftOverlay5.open { display: flex; }
#giftBox5 { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: giftAppear5 0.35s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes giftAppear5 { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.gift5-icon-big { font-size: 52px; animation: giftBig5 2s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(255,255,255,0.6)); }
@keyframes giftBig5 { 0%,100% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); } 50% { transform: scale(1.1) rotate(3deg); filter: drop-shadow(0 0 22px rgba(255,255,255,0.9)); } }
.gift5-title { font-size: 18px; font-weight: 900; color: #FFFFFF; letter-spacing: 0.5px; margin-top: 4px; }
.gift5-subtitle { font-size: 12px; color: #555; margin-bottom: 10px; }
.gift5-rewards { display: flex; gap: 14px; margin: 8px 0 4px; }
.gift5-reward { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gift5-reward-amt { font-size: 28px; font-weight: 900; font-family: 'Courier New', monospace; letter-spacing: 1px; animation: shinePulse5 1.8s ease-in-out infinite; }
.gift5-reward-amt.etb { color: #FFFFFF; text-shadow: 0 0 18px rgba(255,255,255,0.7); }
.gift5-reward-amt.xp  { color: #FFFFFF; text-shadow: 0 0 18px rgba(255,255,255,0.7); }
@keyframes shinePulse5 { 0%,100% { opacity: 1; filter: brightness(1); } 50% { opacity: 0.85; filter: brightness(1.4); } }
.gift5-reward-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #444; }
.gift5-claim-row { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.gift5-claim-btn { flex: 1; padding: 13px; border-radius: 12px; border: none; font-size: 13px; font-weight: 800; cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px; }
.gift5-claim-btn.etb { background: linear-gradient(135deg, #FFFFFF, #C9C9C9); color: #fff; box-shadow: 0 4px 16px rgba(255,255,255,0.4); }
.gift5-claim-btn.xp  { background: linear-gradient(135deg, #FFFFFF, #C9C9C9); color: #1A1A1A; box-shadow: 0 4px 16px rgba(255,255,255,0.4); }
.gift5-claim-btn:disabled { opacity: 0.3; cursor: not-allowed; filter: grayscale(0.5); box-shadow: none; }
.gift5-close { margin-top: 14px; font-size: 11px; font-weight: 700; color: #333; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.2s; }
.gift5-close:hover { color: #555; }
@keyframes claimFlash5 { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
.claim-flash5 { animation: claimFlash5 0.3s ease; }

/* ISLAND MODAL */
#islandOverlay5 { display: none; position: fixed; inset: 0; z-index: 9999999; background: rgba(0,0,5,0.92); align-items: flex-end; justify-content: center; padding: 0; backdrop-filter: blur(8px); }
#islandOverlay5.open { display: flex; }
#islandBox5 { width: 100%; max-width: 420px; }
.island5-modal-icon { font-size: 56px; filter: drop-shadow(0 0 18px rgba(255,255,255,0.7)); animation: islandIconFloat5 3s ease-in-out infinite; }
@keyframes islandIconFloat5 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.island5-modal-title { font-size: 20px; font-weight: 900; color: rgba(230,230,230,0.9); text-align: center; letter-spacing: 0.5px; text-shadow: 0 0 20px rgba(255,255,255,0.6); }
.island5-modal-sub { font-size: 13px; color: #333; text-align: center; line-height: 1.5; max-width: 240px; }
.island5-modal-sub span { color: rgba(200,200,200,0.5); font-weight: 700; }
.island5-modal-close { margin-top: 10px; padding: 11px 32px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: rgba(200,200,200,0.6); font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px; text-transform: uppercase; }
.island5-modal-close:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); color: rgba(210,210,210,0.8); }

/* ══════════════════════════════
   CHECKPOINT ROW
══════════════════════════════ */
#cpContainer { width: 100%; }
#cpRow {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1e1e1e, #181818);
  border: 1.5px solid rgba(255,255,255,0.28); border-radius: 14px;
  padding: 10px 14px; cursor: pointer; transition: border-color 0.2s;
  user-select: none; position: relative; z-index: 2;
}
#cpRow.open { border-radius: 14px 14px 0 0; border-bottom-color: transparent; }
#cpRow:hover { border-color: rgba(255,255,255,0.42); }
.cp-bar-section { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-bar-wrap { width: 100%; height: 6px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.cp-bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, #FFFFFF, #C9C9C9); box-shadow: 0 0 6px rgba(255,255,255,0.5); transition: width 0.6s ease; }
.cp-sub-row { display: flex; align-items: center; justify-content: space-between; }
.cp-countdown { font-size: 9px; font-weight: 700; font-family: 'Courier New', monospace; color: rgba(255,255,255,0.2); letter-spacing: 0.3px; }
.cp-countdown b { color: rgba(255,255,255,0.55); }
.cp-daily-prog { font-size: 9px; font-weight: 700; font-family: 'Courier New', monospace; color: rgba(255,255,255,0.45); letter-spacing: 0.3px; }
.cp-gift-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cp-gift-icon { font-size: 18px; line-height: 1; transition: opacity 0.3s, filter 0.3s; }
.cp-gift-icon.state-claimable { animation: cpGiftPulse 1.8s ease-in-out infinite; }
@keyframes cpGiftPulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(255,255,255,0.5)); } 50% { transform: scale(1.16); filter: drop-shadow(0 0 9px rgba(255,255,255,0.95)); } }
.cp-gift-icon.state-claimed { opacity: 0.35; animation: none; }
.cp-gift-icon.state-locked  { opacity: 0.4;  animation: none; }
.cp-claim-btn { font-size: 10px; font-weight: 800; padding: 4px 11px; border-radius: 20px; border: none; cursor: pointer; letter-spacing: 0.3px; text-transform: uppercase; transition: filter 0.15s, transform 0.12s; white-space: nowrap; }
.cp-claim-btn.state-claimable { background: linear-gradient(135deg, #FFFFFF, #C9C9C9); color: #1A1A1A; box-shadow: 0 2px 8px rgba(255,255,255,0.4); }
.cp-claim-btn.state-claimable:hover  { filter: brightness(1.1); }
.cp-claim-btn.state-claimable:active { transform: scale(0.93); }
.cp-claim-btn.state-claimed { background: transparent; color: #2e2e2e; box-shadow: none; cursor: default; border: 1px solid rgba(255,255,255,0.06); font-style: italic; text-transform: none; font-weight: 600; font-size: 9px; }
.cp-claim-btn.state-locked { background: rgba(255,255,255,0.04); color: #2e2e2e; box-shadow: none; cursor: not-allowed; border: 1px solid rgba(255,255,255,0.06); }
.cp-chevron { font-size: 9px; color: rgba(255,255,255,0.3); transition: transform 0.3s; flex-shrink: 0; }
#cpRow.open .cp-chevron { transform: rotate(180deg); }
#cpExpanded { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.28s; background: linear-gradient(160deg, #191919, #131313); border: 1.5px solid rgba(255,255,255,0.18); border-top: none; border-radius: 0 0 14px 14px; padding: 0 14px; width: 100%; }
#cpExpanded.open { max-height: 500px; opacity: 1; padding: 2px 14px 14px; }
.cp-exp-title { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 0.8px; text-align: center; padding: 8px 0 6px; border-bottom: 1px solid rgba(255,255,255,0.04); margin-bottom: 4px; }
.cp-ms { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.033); width: 100%; }
.cp-ms:last-child { border-bottom: none; }
.cp-ms-gift { font-size: 20px; flex-shrink: 0; line-height: 1; transition: opacity 0.3s; }
.cp-ms-gift.ms-upcoming { opacity: 0.55; }
.cp-ms-gift.ms-done     { opacity: 0.25; }
.cp-ms-gift.ms-current  { opacity: 1; }
.cp-ms-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cp-ms-xp   { font-size: 12px; font-weight: 800; color: #B0B0B0; }
.cp-ms-tier { font-size: 9px; font-weight: 700; letter-spacing: 0.3px; }
.cp-ms-bar-wrap { width: 60px; height: 3px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.cp-ms-bar-fill { height: 100%; border-radius: 10px; transition: width 0.4s; }
.cp-ms-tag { font-size: 9px; font-weight: 700; color: #2a2a2a; white-space: nowrap; min-width: 38px; text-align: right; }
.cp-ms-tag.next { color: rgba(255,255,255,0.5); }
.cp-ms-tag.done { color: #252525; font-style: italic; }
@keyframes cpResetFlash { 0%,100% { opacity: 1; } 40% { opacity: 0.4; } }
.cp-resetting { animation: cpResetFlash 0.6s ease; }
