* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f3f4f9;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.mobile-container {
  width: 100%;
  max-width: 440px;
  background-color: #f9fafc;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  box-shadow: 0 0 25px rgba(0,0,0,0.05);
}

/* HEADER */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #ffffff;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  background: #6c5ce7;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
}

.brand-name {
  display: block;
  font-weight: 900;
  font-size: 14px;
  color: #1e1e24;
  line-height: 1;
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: #6c5ce7;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.icon-btn {
  background: #f4f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  color: #2d3436;
  position: relative;
  cursor: pointer;
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #ff4757;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* MAIN CONTENT */
.main-content {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* USER PROFILE */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.user-greeting h2 {
  font-size: 14px;
  color: #2d3436;
  font-weight: 700;
}

.user-greeting h1 {
  font-size: 20px;
  font-weight: 900;
  color: #1e1e24;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-greeting p {
  font-size: 12px;
  color: #636e72;
}

/* WALLETS GRID */
.wallets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wallet-card {
  border-radius: 18px;
  padding: 14px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wallet-purple {
  background: linear-gradient(135deg, #4a154b, #6c5ce7);
}

.wallet-green {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

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

.wallet-icon-circle {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.wallet-title {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.info-icon {
  font-size: 10px;
  opacity: 0.7;
}

.wallet-balance {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0;
}

.wallet-actions {
  display: flex;
  gap: 6px;
}

.btn-wallet-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-unlock-badge {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: #ffffff;
  padding: 6px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  width: 100%;
}

/* REFERRAL CARD */
.referral-progress-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.card-header-flex {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gift-icon-box {
  width: 36px;
  height: 36px;
  background: #f3f0ff;
  color: #6c5ce7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.referral-text {
  flex: 1;
}

.referral-text h3 {
  font-size: 13px;
  font-weight: 800;
}

.referral-text p {
  font-size: 10px;
  color: #636e72;
}

.link-details {
  font-size: 10px;
  font-weight: 700;
  color: #6c5ce7;
  text-decoration: none;
}

/* PROGRESS BAR */
.progress-section {
  margin: 16px 0 8px 0;
}

.progress-bar-wrapper {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: #6c5ce7;
  border-radius: 10px;
  position: relative;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* One-time celebratory pulse when the referral wallet crosses ₦3,000 */
@keyframes unlockGlow {
  0%   { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(0, 184, 148, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 184, 148, 0); }
}

.referral-just-unlocked {
  animation: unlockGlow 1s ease-out 2;
}

.progress-tooltip {
  position: absolute;
  top: -22px;
  right: -15px;
  background: #6c5ce7;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #2d3436;
  margin-top: 6px;
}

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

.remaining-text {
  font-size: 10px;
  color: #636e72;
}

.btn-disabled-withdraw {
  background: #f1f2f6;
  color: #b2bec3;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

/* QUICK ACTIONS GRID */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.qa-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.qa-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.icon-purple { background: #6c5ce7; color: #fff; }
.icon-blue { background: #0984e3; color: #fff; }
.icon-orange { background: #e17055; color: #fff; }
.icon-teal { background: #00b894; color: #fff; }

.qa-item strong {
  font-size: 11px;
  font-weight: 800;
}

.qa-item small {
  font-size: 9px;
  color: #636e72;
  margin-top: 2px;
}

/* TELEGRAM BANNER */
.telegram-banner {
  background: linear-gradient(135deg, #2c0074, #4a154b);
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.banner-content {
  z-index: 2;
}

.live-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.green-dot {
  width: 6px;
  height: 6px;
  background: #00b894;
  border-radius: 50%;
}

.banner-content h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 4px 0;
}

.banner-content p {
  font-size: 10px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.banner-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-badge {
  background: rgba(255,255,255,0.15);
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.btn-telegram {
  background: #ffffff;
  color: #2c0074;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.banner-trophy {
  font-size: 60px;
  color: #fdcb6e;
  opacity: 0.9;
  z-index: 1;
}

/* ACTIVITY SECTION */
.section-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-title-flex h3 {
  font-size: 13px;
  font-weight: 800;
}

.link-view-all {
  font-size: 11px;
  color: #636e72;
  text-decoration: none;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.act-card {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-purple { background: #f3f0ff; }
.act-mint { background: #e6fcf5; }
.act-amber { background: #fff9db; }
.act-blue { background: #e7f5ff; }

.act-icon {
  font-size: 18px;
}

.act-purple .act-icon { color: #6c5ce7; }
.act-mint .act-icon { color: #00b894; }
.act-amber .act-icon { color: #f59f00; }
.act-blue .act-icon { color: #22b8cf; }

.act-details strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.act-details small {
  font-size: 10px;
  color: #636e72;
}

/* BOTTOM NAVIGATION */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #b2bec3;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.25s ease;
}

.nav-item span {
  font-size: 10px;
  font-weight: 700;
}

.nav-item.active {
  color: #6c5ce7;
}

/* Sliding pill — positioned/sized via JS (measures the active item's
   actual rect, since the center FAB makes spacing uneven) */
.nav-pill {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  background: #f3f0ff;
  border-radius: 14px;
  z-index: 0;
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.nav-pill.ready {
  opacity: 1;
}

.fab-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -24px;
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6c5ce7;
  color: #fff;
  border: none;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
  cursor: pointer;
}

.fab-label {
  font-size: 10px;
  font-weight: 700;
  color: #2d3436;
  margin-top: 2px;
}

/* ================= WALLET MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 22px 20px 26px;
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.12);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f0ff;
  color: #6c5ce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.modal-icon-circle.withdraw-mode {
  background: #e6fcf5;
  color: #00b894;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1e1e24;
}

.modal-header p {
  font-size: 11px;
  color: #636e72;
  margin-top: 2px;
}

.modal-close-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f4f5f9;
  color: #2d3436;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
}

.amount-label {
  font-size: 11px;
  font-weight: 700;
  color: #636e72;
  display: block;
  margin-bottom: 8px;
}

.amount-input-group {
  display: flex;
  align-items: center;
  background: #f4f5f9;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.amount-input-group:focus-within {
  border-color: #6c5ce7;
}

.amount-prefix {
  font-size: 18px;
  font-weight: 800;
  color: #1e1e24;
  margin-right: 6px;
}

.amount-input-group input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 18px;
  font-weight: 800;
  color: #1e1e24;
  width: 100%;
}

.modal-balance-hint {
  font-size: 10px;
  color: #636e72;
  margin-top: 6px;
  min-height: 14px;
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.chip-amount {
  flex: 1;
  background: #f4f5f9;
  border: none;
  color: #2d3436;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip-amount.selected {
  background: #6c5ce7;
  color: #fff;
}

.modal-error {
  font-size: 11px;
  font-weight: 700;
  color: #ff4757;
  margin-top: 10px;
  min-height: 14px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-modal-cancel {
  flex: 1;
  background: #f4f5f9;
  color: #2d3436;
  border: none;
  padding: 13px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-modal-primary {
  flex: 1.4;
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.modal-spinner {
  display: none;
  font-size: 13px;
}

.btn-modal-primary.loading .modal-spinner {
  display: inline-block;
}

.btn-modal-primary.loading #modal-confirm-label {
  display: none;
}

.ticket-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 12px;
  color: #636e72;
  border-bottom: 1px solid #f1f2f6;
}

.ticket-price-row strong {
  font-size: 14px;
  color: #1e1e24;
  font-weight: 800;
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #1e1e24;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 380px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #ff4757;
}

.toast-icon {
  font-size: 14px;
}

/* ================= AUTH PAGES (login / signup) ================= */
.auth-container {
  padding: 40px 24px;
  align-items: stretch;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 24px;
}

.auth-header .logo-box {
  margin-bottom: 18px;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 900;
  color: #1e1e24;
  margin-top: 6px;
}

.auth-header p {
  font-size: 13px;
  color: #636e72;
}

.referral-banner {
  background: #f3f0ff;
  color: #4a154b;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 20px;
}

.referral-banner i {
  color: #6c5ce7;
  font-size: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: #636e72;
  margin-top: 14px;
  margin-bottom: 6px;
}

.auth-input {
  background: #f4f5f9;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1e1e24;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.auth-input:focus {
  border-color: #6c5ce7;
}

.auth-error {
  font-size: 11px;
  font-weight: 700;
  color: #ff4757;
  margin-top: 12px;
  min-height: 14px;
}

.btn-auth-primary {
  margin-top: 10px;
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.3);
}

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

.btn-auth-primary.loading .modal-spinner {
  display: inline-block;
}

.btn-auth-primary.loading #signup-submit-label,
.btn-auth-primary.loading #login-submit-label {
  display: none;
}

.auth-switch {
  text-align: center;
  font-size: 12px;
  color: #636e72;
  margin-top: 24px;
}

.auth-switch a {
  color: #6c5ce7;
  font-weight: 800;
  text-decoration: none;
}

/* ================= WINNERS PAGE ================= */
.winners-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.winner-row {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.winner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff9db;
  color: #f59f00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.winner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.winner-info strong {
  font-size: 13px;
  font-weight: 800;
  color: #1e1e24;
}

.winner-info small {
  font-size: 10px;
  color: #636e72;
  margin-top: 2px;
}

.winner-prize {
  font-size: 14px;
  font-weight: 900;
  color: #00b894;
}

.winners-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 60px 20px;
  color: #b2bec3;
}

.winners-empty i {
  font-size: 40px;
}

.winners-empty p {
  font-size: 12px;
  max-width: 240px;
}

/* ================= TRANSACTIONS PAGE ================= */
.txn-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.txn-filter-row::-webkit-scrollbar {
  display: none;
}

.txn-filter-chip {
  flex-shrink: 0;
  background: #f4f5f9;
  border: none;
  color: #2d3436;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}

.txn-filter-chip.active {
  background: #6c5ce7;
  color: #fff;
}

.txn-status-badge {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.txn-status-pending {
  background: #fff3cd;
  color: #b8860b;
}

.txn-status-failed {
  background: #ffe3e3;
  color: #ff4757;
}

/* ================= ADMIN PANEL ================= */
.admin-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.admin-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e1e24;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-section-title i {
  color: #6c5ce7;
}

.admin-result {
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
  min-height: 14px;
}

.config-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.config-row label {
  font-size: 11px;
  font-weight: 700;
  color: #636e72;
  display: block;
  margin-bottom: 6px;
}

.config-row-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.config-value-input {
  flex: 1;
  padding: 10px 12px;
}

.btn-config-save {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  border: none;
  background: #f4f5f9;
  color: #2d3436;
  font-size: 13px;
  cursor: pointer;
}

/* ================= BUY TICKET — TIER GRID ================= */
.balance-summary {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #636e72;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.balance-summary strong {
  color: #1e1e24;
  font-weight: 800;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.tier-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border-top: 3px solid var(--tier-color, #6c5ce7);
}

.tier-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tier-color, #6c5ce7) 15%, white);
  color: var(--tier-color, #6c5ce7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin: 0 auto 10px;
}

.tier-card-name {
  font-size: 13px;
  font-weight: 800;
  color: #1e1e24;
}

.tier-card-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--tier-color, #6c5ce7);
  margin: 4px 0 12px;
}

.tier-card-btn {
  width: 100%;
  background: var(--tier-color, #6c5ce7);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1e1e24;
}

/* ================= ADMIN — TICKET TIERS ================= */
.tiers-admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.tier-admin-row {
  background: #f9f9fc;
  border-radius: 14px;
  padding: 12px;
}

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

.tier-admin-header strong {
  font-size: 13px;
  color: #1e1e24;
}

.tier-active-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #636e72;
}

.tier-admin-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.tier-admin-fields label {
  font-size: 10px;
  font-weight: 700;
  color: #636e72;
  display: block;
  margin-bottom: 4px;
}

.tier-admin-fields input[type="number"] {
  padding: 9px 10px;
  font-size: 12px;
}

/* ================= HEADER DROPDOWNS ================= */
.dropdown-panel {
  position: absolute;
  top: 68px;
  right: 20px;
  width: 240px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px;
  z-index: 500;
  display: none;
  flex-direction: column;
}

.dropdown-panel.open {
  display: flex;
}

.dropdown-panel-title {
  font-size: 11px;
  font-weight: 800;
  color: #636e72;
  text-transform: uppercase;
  padding: 8px 10px 4px;
}

.dropdown-panel-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-panel-empty {
  font-size: 12px;
  color: #b2bec3;
  padding: 16px 10px;
  text-align: center;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
}

.notif-item:hover {
  background: #f4f5f9;
}

.notif-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.notif-text {
  flex: 1;
  min-width: 0;
}

.notif-text strong {
  font-size: 11px;
  font-weight: 700;
  color: #1e1e24;
  display: block;
}

.notif-text small {
  font-size: 9px;
  color: #b2bec3;
}

.dropdown-panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-panel-item:hover {
  background: #f4f5f9;
}

.dropdown-panel-item i {
  width: 16px;
  color: #6c5ce7;
}

.dropdown-panel-danger {
  color: #ff4757;
}

.dropdown-panel-danger i {
  color: #ff4757;
}

.dropdown-panel-divider {
  height: 1px;
  background: #f1f2f6;
  margin: 6px 4px;
}

/* ================= HELP PAGE — FAQ ================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #f9f9fc;
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-item summary {
  font-size: 12px;
  font-weight: 700;
  color: #1e1e24;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: #6c5ce7;
  font-weight: 900;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  font-size: 11px;
  color: #636e72;
  margin-top: 8px;
  line-height: 1.5;
}

/* ================= PROFILE EDIT ================= */
.profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0 24px;
}

.profile-preview-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f4f5f9;
  border: 3px solid #6c5ce7;
  object-fit: cover;
}

.profile-preview-name {
  font-size: 15px;
  font-weight: 800;
  color: #1e1e24;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.avatar-option {
  background: #f4f5f9;
  border: 3px solid transparent;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-option.selected {
  border-color: #6c5ce7;
  background: #f3f0ff;
}

/* ================= ADMIN — PENDING WITHDRAWALS ================= */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
}

.withdrawals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.withdrawal-row {
  background: #f9f9fc;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.withdrawal-info {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
}

.withdrawal-info strong {
  font-size: 12px;
  color: #1e1e24;
}

.withdrawal-info small {
  font-size: 10px;
  color: #636e72;
}

.withdrawal-amount {
  font-size: 14px;
  font-weight: 900;
  color: #1e1e24;
}

.withdrawal-actions {
  display: flex;
  gap: 6px;
  width: 100%;
}

.btn-withdrawal-pay, .btn-withdrawal-reject {
  flex: 1;
  border: none;
  padding: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.btn-withdrawal-pay {
  background: #00b894;
  color: #fff;
}

.btn-withdrawal-reject {
  background: #ffe3e3;
  color: #ff4757;
}

/* ================= CONFETTI ================= */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  opacity: 0.95;
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(0.15, 0.65, 0.35, 1);
  animation-fill-mode: forwards;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) translateX(var(--drift)) rotate(var(--rot)); opacity: 0; }
}

/* ================= AUTH PAGES — FUN & ANIMATED ================= */

.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrapper .auth-input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #b2bec3;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #6c5ce7;
}

/* Floating decorative background — sits behind the form, doesn't
   affect layout since it's absolutely positioned within the
   already-position:relative .mobile-container */
.auth-bg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-decor span {
  position: absolute;
  font-size: 28px;
  opacity: 0.12;
  animation: authFloat 7s ease-in-out infinite;
}

.auth-bg-decor span:nth-child(1) { top: 8%;  left: 8%;  font-size: 34px; animation-delay: 0s; }
.auth-bg-decor span:nth-child(2) { top: 18%; right: 10%; font-size: 24px; animation-delay: 1.2s; }
.auth-bg-decor span:nth-child(3) { top: 55%; left: 5%;  font-size: 30px; animation-delay: 2.1s; }
.auth-bg-decor span:nth-child(4) { top: 42%; right: 6%; font-size: 22px; animation-delay: 0.6s; }
.auth-bg-decor span:nth-child(5) { top: 75%; left: 14%; font-size: 26px; animation-delay: 3s; }
.auth-bg-decor span:nth-child(6) { top: 80%; right: 16%; font-size: 20px; animation-delay: 1.8s; }

@keyframes authFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

/* Content sits above the floating decor */
.auth-container .auth-header,
.auth-container .referral-banner,
.auth-container .auth-form,
.auth-container .auth-switch,
.auth-container #link-invalid {
  position: relative;
  z-index: 1;
}

/* Staggered entrance animation */
@keyframes authRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-container .auth-header {
  animation: authRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-container .auth-form {
  animation: authRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.auth-container .auth-switch,
.auth-container .referral-banner {
  animation: authRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Logo badge — gentle idle pulse so the page feels alive */
@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(108, 92, 231, 0); }
}

.auth-header .logo-badge {
  animation: logoPulse 2.4s ease-in-out infinite;
}

/* Input focus — a livelier glow instead of a flat border color swap */
.auth-container .auth-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.auth-container .auth-input:focus {
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
  transform: translateY(-1px);
}

/* Button — subtle press feedback + hover lift */
.btn-auth-primary {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-auth-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(108, 92, 231, 0.35);
}

.btn-auth-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* Success/error message pop-in */
.auth-error:not(:empty) {
  animation: authRise 0.3s ease both;
}

/* ================= APP LOADING OVERLAY ================= */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  background: #f4f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  font-size: 28px;
  color: #6c5ce7;
  transition: opacity 0.3s ease;
}

.app-loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ================= BONUS CREDIT STRIP ================= */
.bonus-strip {
  background: linear-gradient(135deg, #fff3cd, #ffe8a3);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -6px;
  margin-bottom: 16px;
}

.bonus-strip-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
  color: #b8860b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.bonus-strip-text strong {
  font-size: 13px;
  color: #7a5c00;
  display: block;
}

.bonus-strip-text small {
  font-size: 10px;
  color: #9c7a1a;
}

/* ================= LIST MODAL (Winners / Transactions) ================= */
.list-modal-card {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.list-modal-body {
  overflow-y: auto;
  max-height: 60vh;
  margin-top: 4px;
}

.list-modal-loading {
  text-align: center;
  color: #636e72;
  font-size: 12px;
  padding: 24px 0;
}

.list-modal-empty {
  text-align: center;
  color: #636e72;
  font-size: 12px;
  padding: 24px 0;
}

.list-modal-items {
  list-style: none;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f2f6;
}

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

.list-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.list-item-icon.deposit { background: #e6fcf5; color: #00b894; }
.list-item-icon.withdrawal { background: #fff9db; color: #f59f00; }
.list-item-icon.ticket_purchase { background: #f3f0ff; color: #6c5ce7; }
.list-item-icon.referral_bonus { background: #e7f5ff; color: #22b8cf; }
.list-item-icon.win_payout { background: #fdf2f8; color: #e91e8c; }

.list-item-main {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: 12px;
  font-weight: 800;
  color: #1e1e24;
  text-transform: capitalize;
}

.list-item-sub {
  font-size: 10px;
  color: #636e72;
  margin-top: 2px;
}

.list-item-amount {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.list-item-amount.positive { color: #00b894; }
.list-item-amount.negative { color: #ff4757; }
