
/* ================= PREMIUM HEADER ================= */
.appHeader {
  position: fixed;
  top: 10px;

  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 20px);
  max-width: 380px;
  height: 55px;

  border-radius: 16px;

  background: rgba(122, 0, 0, 0.65);
  backdrop-filter: blur(14px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 12px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);

  z-index: 1000;
}

/* LEFT / RIGHT */
.header-left,
.header-right {
  width: 40px;
  display: flex;
  align-items: center;
}

/* CENTER */
.header-title {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

/* BUTTON STYLE */
.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.15);
  color: #fff;

  text-decoration: none;
  transition: 0.3s;
}

/* ICON */
.header-btn i {
  font-size: 16px;
}

/* HOVER */
.header-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* LOGOUT SPECIAL */
.logout-btn {
  background: linear-gradient(135deg, #ff1a1a, #7a0000);
}

.logout-btn:hover {
  box-shadow: 0 0 10px rgba(255,0,0,0.6);
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;

  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 380px;

  z-index: 1000;
}

/* ================= MODERN NAV ================= */
.appNavBar {
  position: fixed;
  bottom: 10px;

  left: 50%;
  transform: translateX(-50%);

  width: calc(100% - 20px);
  max-width: 380px;
  height: 65px;

  border-radius: 25px;

  background: rgba(122, 0, 0, 0.7);
  backdrop-filter: blur(16px);

  display: flex;
  justify-content: space-around;
  align-items: center;

  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);

  z-index: 9999;
}

/* ================= NAV ITEM ================= */
.navLink {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #fff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  transition: 0.3s;
}

/* ICON */
.navLink i {
  font-size: 18px;
  margin-bottom: 2px;
  transition: 0.3s;
}

/* TEXT */
.navLink p {
  margin: 0;
  font-size: 10px;
}

/* ================= ACTIVE ================= */
.navLink.active {
  color: #ff4d4d;
  transform: scale(0.92);
}

.navLink.active i {
  transform: translateY(-4px) scale(1.1);
  
}

/* GLOW DOT */
.navLink.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 20px;
  height: 4px;
  border-radius: 5px;
  background: #ff4d4d;
}

/* ================= CENTER BUTTON ================= */
.navLink.center {
  position: relative;
  top: -18px;

  width: 55px;
  height: 55px;
  border-radius: 50%;

  background: linear-gradient(135deg, #ff1a1a, #7a0000);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(255,0,0,0.6);
}

.navLink.center i {
  font-size: 22px;
}

.navLink.center p {
  display: none;
}
.badge-dot {
  position: absolute;
  top: 5px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
}

/* ================= APP WRAPPER ================= */
.dashboard {
  width: 100%;
  max-width: 380px;
  margin: auto;

  padding-top: 150px;   /* 🔥 increase space */
  padding-bottom: 100px;

  overflow-x: hidden;
}

.dashboard,
.plan-page {
  padding-top: 80px;
}
body {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
button:active,
a:active {
  transform: scale(0.96);
}
/* ================= HEADER (FIXED) ================= */
.header {
  position: fixed;
  top: 0;

  left: 50%;
  transform: translateX(-50%);  /* ✅ center */

  width: 100%;
  max-width: 380px;            /* ✅ match app width */

  z-index: 1000;

  padding: 12px 12px;
  background: linear-gradient(135deg, #7a0000, #2a0000);
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.profile img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

/* ================= BALANCE ================= */
.balance-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  text-align: center;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
}

.balance-card span {
  font-size: 12px;
  opacity: 0.8;
}

.balance-card h1 {
  font-size: 18px;
  color: #ff4d4d;
}

/* ================= ACTION BUTTONS ================= */
.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.action-btn {
  padding: 10px 4px;
  border-radius: 12px;
  text-align: center;
  font-size: 10px;
  color: #fff;
  transition: .3s;
}

.action-btn i {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* COLORS */
.deposit-btn { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.withdraw-btn { background: linear-gradient(135deg, #dc2626, #7a0000); }
.history-btn { background: linear-gradient(135deg, #facc15, #f59e0b); color:#000; }
.team-btn { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* ================= PROFIT CARD ================= */
.profit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: calc(100% - 24px);
  margin: 10px auto;
  padding: 14px;
  border-radius: 18px;

  background: linear-gradient(135deg, #ff1a1a, #7a0000);
  color: #fff;
  text-decoration: none;
}

.profit-card-yellow {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
}

/* ================= PROFIT ICON ================= */
.profit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.2);
}

.profit-text {
  flex: 1;
  margin-left: 10px;
}

.profit-text span {
  font-size: 11px;
}

.profit-text strong {
  font-size: 13px;
}

.profit-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.2);
}

/* ================= EARNING ================= */
.earn-card {
  width: calc(100% - 24px);
  margin: 12px auto;
  padding: 16px;
  border-radius: 18px;

  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.earn-amount {
  font-size: 20px;
  font-weight: bold;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.grid-item {
  text-align: center;
  font-size: 10px;
}

.icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  color: #ff4d4d;
}

/* ================= CARD ================= */
.card {
  width: calc(100% - 24px);
  margin: 12px auto;
  padding: 16px;
  border-radius: 18px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ================= REFERRAL ================= */
.ref-modern {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 🔥 MOST IMPORTANT */
.ref-modern::before,
.ref-modern::after {
  pointer-events: none; /* allow clicks through */
}

/* TEXT */
.ref-text {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  word-break: break-all;
}

/* BUTTON FIX */
.copy-btn-modern {
  background: #7a0000;
  border: none;
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;

  position: relative;
  z-index: 5;   /* 🔥 bring above everything */
  cursor: pointer;
}

/* ================= SUMMARY ================= */
/* ================= SUMMARY ================= */
.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

/* CARD */
.summary-card {
  padding: 12px;
  border-radius: 14px;
transition: 0.3s;
  color: #fff;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  height: 80px;   /* 🔥 fixed clean height */
}
.summary-card:hover {
  transform: translateY(-3px);
}
/* TITLE */
.summary-card h3 {
  font-size: 11px;   /* 🔥 smaller */
  font-weight: 500;
  opacity: 0.85;
  margin: 0;
}

/* VALUE */
.summary-card h2 {
  font-size: 16px;   /* 🔥 reduced */
  font-weight: 700;
  margin-top: 4px;
}

/* COLORS */
.team-card {
  background: linear-gradient(135deg, #4f8cff, #6a5af9);
}

.deposit-card {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.withdraw-card {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.bonus-card {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
}

/* ================= STATUS ICON ================= */
.status-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  color: #fff;
}

/* COLORS */
.status-icon.success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.status-icon.error {
  background: linear-gradient(135deg, #dc2626, #7a0000);
}

.status-icon.warning {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #000;
}

/* ================= WITHDRAW ================= */
.withdraw-title {
  font-size: 16px;
  font-weight: 600;
}

.withdraw-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* GRID */
.method-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD ITEM */
.method-card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px;
  border-radius: 16px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);

  text-decoration: none;
  color: #fff;

  transition: 0.3s;
}

/* HOVER */
.method-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* LEFT */
.method-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ICON */
.method-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
}

.method-icon img {
  width: 24px;
}

/* TEXT */
.method-name {
  font-size: 13px;
}

/* ARROW */
.method-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #ff1a1a, #7a0000);
}

/* LOADING */
.method-card.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ================= BUTTON LOADER ================= */
.method-arrow {
  position: relative;
}

/* hide arrow */
.method-arrow.btn-loading .arrow-icon {
  visibility: hidden;
}

/* spinner */
.method-arrow.btn-loading::after {
  content: "";
  width: 14px;
  height: 14px;

  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  animation: spin 0.6s linear infinite;
}

/* spin animation */
@keyframes spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* disable card */
.method-card.loading {
  opacity: 0.6;
  pointer-events: none;
}
/* GRID */
.game-grid {
  display: flex;
  gap: 10px;
}

/* BUTTON */
.game-btn {
  flex: 1;
  padding: 10px 4px;
  border-radius: 12px;

  text-align: center;
  font-size: 10px;
  color: #fff;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  transition: .3s;
  position: relative;
}

/* ICON */
.game-btn i {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

/* HOVER */
.game-btn:hover {
  transform: translateY(-3px);
}

/* LOADING */
.game-btn.loading i,
.game-btn.loading span {
  opacity: 0;
}

/* SPINNER */
.game-btn.loading::after {
  content: "";
  width: 14px;
  height: 14px;

  border: 2px solid #fff;
  border-top: transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}


.live-bet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 12px;
    border-radius: 14px;

    background: linear-gradient(135deg, #ff1a1a, #7a0000);
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
    position: relative;

    box-shadow: 0 0 15px rgba(255,0,0,0.4);

    animation: pulseGlow 1.5s infinite;
}

/* ICON */
.live-bet-btn i {
    font-size: 14px;
}

/* LIVE DOT */
.live-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;

    animation: blink 1s infinite;
}

/* GLOW ANIMATION */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255,0,0,0.3); }
    50% { box-shadow: 0 0 25px rgba(255,0,0,0.8); }
    100% { box-shadow: 0 0 10px rgba(255,0,0,0.3); }
}

/* BLINK DOT */
@keyframes blink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* GRID */
.history-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* BUTTON */
.history-btn {
  flex: 1;
  padding: 10px 4px;

  border-radius: 12px;
  text-align: center;

  font-size: 10px;
  color: #fff;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);

  transition: .3s;
  position: relative;
}

/* ICON */
.history-btn i {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

/* HOVER */
.history-btn:hover {
  transform: translateY(-3px);
}

/* LOADING */
.history-btn.loading i,
.history-btn.loading span {
  opacity: 0;
}

/* SPINNER */
.history-btn.loading::after {
  content: "";
  width: 14px;
  height: 14px;

  border: 2px solid #fff;
  border-top: transparent;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}