* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FF1493;
  --secondary: #00D9FF;
  --accent: #FFD700;
  --dark: #1a1a2e;
  --darker: #0f0f1e;
  --light: #eaeaea;
  --success: #00FF41;
  --danger: #FF4444;
  --warning: #FFA500;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  color: #eaeaea;
  overflow-x: hidden;
}

/* Auth Modal */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  border: 2px solid #FF1493;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.5);
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease;
}

.notification-success {
  background: linear-gradient(135deg, #00FF41, #00D9FF);
}

.notification-error {
  background: linear-gradient(135deg, #FF4444, #FF1493);
}

.notification-info {
  background: linear-gradient(135deg, #FFD700, #FF1493);
}

.notification button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #00D9FF;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  color: #00D9FF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: #FF1493;
  border-bottom-color: #FF1493;
}

.tab-content {
  display: none;
  animation: slideIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  margin-bottom: 20px;
  font-size: 24px;
  background: linear-gradient(135deg, #FF1493, #00D9FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tab-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tab-content input {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #00D9FF;
  border-radius: 8px;
  color: #eaeaea;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tab-content input:focus {
  outline: none;
  border-color: #FF1493;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.tab-content input::placeholder {
  color: #888;
}

/* Main App */
.app {
  display: block;
  min-height: 100vh;
  padding-bottom: 160px; /* ensure room for footer logout + bottom-nav */
}

.app.hidden {
  display: none;
}

/* Pages */
.page {
  display: none;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

.page-header {
  text-align: center;
  margin: 0 0 30px 0;
  padding-top: 0;
}

.page-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FF1493, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  color: #00D9FF;
  font-size: 14px;
}

/* Dashboard */
.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.greeting h1 {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FF1493, #00D9FF, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s infinite;
}

.greeting p {
  color: #FFD700;
  font-size: 14px;
}

.balance-card {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(0, 217, 255, 0.1));
  border: 2px solid rgba(255, 20, 147, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(255, 20, 147, 0.2);
}

.balance-info h2 {
  font-size: 36px;
  background: linear-gradient(135deg, #FF1493, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 10px 0 0 0;
}

.balance-info .label {
  color: #00D9FF;
  font-size: 12px;
  text-transform: uppercase;
}

.balance-actions {
  display: flex;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 20, 147, 0.1));
  border: 2px solid #00D9FF;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #FF1493;
  box-shadow: 0 10px 25px rgba(255, 20, 147, 0.3);
}

.stat-card i {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 10px;
}

.stat-card h3 {
  font-size: 20px;
  color: #FF1493;
}

.stat-label {
  color: #00D9FF;
  font-size: 11px;
  text-transform: uppercase;
  margin: 8px 0;
}

/* Recent Activity */
.recent-section {
  margin-top: 30px;
}

.recent-section h3 {
  margin-bottom: 15px;
  color: #00D9FF;
}

.activity-list, .team-members, .history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item, .team-member, .history-item {
  background: rgba(255, 20, 147, 0.05);
  border-left: 4px solid #FF1493;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-item span, .team-member span, .history-item span {
  font-size: 13px;
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: #888;
  font-style: italic;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 48px; /* Better touch target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  pointer-events: none;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.btn:focus {
  outline: 3px solid #00D9FF;
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF1493, #FFD700);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF1493, #FFD700);
  box-shadow: 0 8px 30px rgba(255, 20, 147, 0.6);
  transform: translateY(-3px);
}

.btn-primary:active {
  box-shadow: 0 2px 10px rgba(255, 20, 147, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #00D9FF, #00BFFF);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
  transform: translateY(-3px);
}

.btn-wheel {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-wheel:hover {
  animation: pulse 1s infinite;
  box-shadow: 0 10px 35px rgba(255, 215, 0, 0.7);
  transform: translateY(-4px) scale(1.05);
}

@keyframes pulse {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(-4px); }
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
}

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

.btn-danger {
  background: linear-gradient(135deg, #FF4444, #FF0000);
  color: #fff;
}

.btn-danger:hover {
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

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

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.full-width {
  width: 100%;
}

/* Tabs */
.action-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: rgba(0, 217, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
}

.action-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 2px solid transparent;
  color: #00D9FF;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.action-tab.active {
  background: rgba(255, 20, 147, 0.2);
  border-color: #FF1493;
  color: #FF1493;
}

.action-content {
  display: none;
  animation: slideIn 0.3s ease;
}

.action-content.active {
  display: block;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #00D9FF;
  font-weight: 600;
  font-size: 14px;
}

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

.input-wrapper input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #00D9FF;
  border-radius: 8px;
  color: #eaeaea;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #FF1493;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.currency {
  position: absolute;
  left: 15px;
  color: #FFD700;
  font-weight: 600;
  font-size: 16px;
}

.input-wrapper input {
  padding-left: 35px;
}

/* Payment Options */
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.payment-btn {
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00D9FF;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #00D9FF;
  font-weight: 600;
  transition: all 0.3s ease;
}

.payment-btn.active {
  background: rgba(255, 20, 147, 0.2);
  border-color: #FF1493;
  color: #FF1493;
}

.payment-btn i {
  font-size: 24px;
}

/* Withdrawal Type Options */
.withdrawal-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00D9FF;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background: rgba(255, 20, 147, 0.1);
  border-color: #FF1493;
}

.radio-option input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #FF1493;
}

.radio-label {
  color: #eaeaea;
  font-size: 14px;
  font-weight: 500;
}

.payment-details {
  background: rgba(255, 217, 0, 0.1);
  border-left: 4px solid #FFD700;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.detail-box h4 {
  color: #FFD700;
  margin-bottom: 10px;
}

.detail-box p {
  color: #eaeaea;
  font-size: 14px;
  margin: 5px 0;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #00D9FF;
  padding: 2px 6px;
  margin-left: 6px;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.copy-btn:hover {
  color: #FF1493;
  transform: scale(1.2);
}

.copy-btn-large {
  background: linear-gradient(135deg, #FF1493, #FFD700);
  border: none;
  border-radius: 6px;
  color: #000;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  margin-left: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 60px;
}

.copy-btn-large:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.4);
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.payment-row div {
  flex: 1;
  min-width: 0;
}

.payment-row button {
  flex-shrink: 0;
}

.hint {
  color: #888;
  font-size: 12px;
  margin-top: 10px !important;
}

/* Referral Section */
.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 217, 0, 0.1));
  border: 2px solid #FF1493;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 28px;
  color: #FFD700;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-name {
  color: #00D9FF;
  font-size: 12px;
  text-transform: uppercase;
}

.referral-link-section {
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00D9FF;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.referral-link-section p {
  color: #00D9FF;
  margin-bottom: 15px;
  font-weight: 600;
}

.referral-link-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.referral-link-input {
  flex: 1;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #FF1493;
  border-radius: 8px;
  color: #FF1493;
  font-size: 12px;
  font-family: monospace;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  background: rgba(255, 217, 0, 0.1);
  color: #FFD700;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn.whatsapp {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

.share-btn.facebook {
  border-color: #1877F2;
  color: #1877F2;
  background: rgba(24, 119, 242, 0.1);
}

.share-btn.twitter {
  border-color: #1DA1F2;
  color: #1DA1F2;
  background: rgba(29, 161, 242, 0.1);
}

.share-btn.telegram {
  border-color: #0088CC;
  color: #0088CC;
  background: rgba(0, 136, 204, 0.1);
}

/* Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 20, 147, 0.05);
  border-radius: 12px;
  border: 2px solid #FF1493;
}

.profile-avatar {
  margin-bottom: 15px;
}

.profile-avatar i {
  font-size: 60px;
  color: #FFD700;
}

.profile-info h3 {
  font-size: 22px;
  color: #FF1493;
  margin-bottom: 5px;
}

.profile-info p {
  color: #00D9FF;
  font-size: 14px;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.info-card {
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00D9FF;
  border-radius: 8px;
  padding: 15px;
}

.info-card label {
  display: block;
  color: #00D9FF;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-card p {
  color: #FF1493;
  font-weight: 600;
  word-break: break-all;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 15, 30, 0.95);
  border-top: 2px solid #FF1493;
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 6px 8px;
  height: 65px;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  background: none;
  border: none;
  color: #888;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 2px;
  flex: 1;
  max-width: 60px;
  overflow: hidden;
  white-space: nowrap;
}

.nav-btn i {
  font-size: 16px;
}

.nav-btn.active {
  color: #FF1493;
}

.nav-btn.glow {
  position: absolute;
  bottom: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(90deg, #00D9FF, #6EE7B7);
  color: #002;
  font-weight: 700;
  font-size: 11px;
  padding: 0;
  max-width: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: glowPulseColor 4s infinite;
  white-space: normal;
}

.nav-tasks-center {
  /* Inline placement next to other nav buttons */
  position: static !important;
  transform: none !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 12px !important;
  background: linear-gradient(135deg, #00FF41, #FFD700, #FF1493, #00D9FF) !important;
  background-size: 400% 400% !important;
  animation: spinGradient 3s ease infinite !important;
  font-size: 12px !important;
  padding: 0 !important;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.45), 0 0 12px rgba(255, 215, 0, 0.25) !important;
  overflow: hidden;
  border: none !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
}

.nav-tasks-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

.tasks-text {
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  color: #000 !important;
  position: relative !important;
  z-index: 2 !important;
}

@keyframes tasksFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes tasksColorShift {
  0% {
    background: linear-gradient(90deg, #00D9FF, #6EE7B7);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
  }
  25% {
    background: linear-gradient(90deg, #FF1493, #00D9FF);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
  }
  50% {
    background: linear-gradient(90deg, #FFD700, #FF1493);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  }
  75% {
    background: linear-gradient(90deg, #6EE7B7, #FFD700);
    box-shadow: 0 0 20px rgba(110, 231, 183, 0.4);
  }
  100% {
    background: linear-gradient(90deg, #00D9FF, #6EE7B7);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
  }
}

@keyframes glowPulseColor {
  0% {
    background: linear-gradient(90deg, #00D9FF, #6EE7B7);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
  }
  25% {
    background: linear-gradient(90deg, #FF1493, #00D9FF);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
  }
  50% {
    background: linear-gradient(90deg, #FFD700, #FF1493);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  }
  75% {
    background: linear-gradient(90deg, #6EE7B7, #FFD700);
    box-shadow: 0 0 20px rgba(110, 231, 183, 0.4);
  }
  100% {
    background: linear-gradient(90deg, #00D9FF, #6EE7B7);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
  }
}

/* Global logout button */
.global-logout{
  position: fixed;
  right: 12px;
  bottom: 82px;
  z-index: 250;
}

/* Footer logout styling - appears at page bottom */
.page-footer{
  width:100%;
  padding: 28px 12px;
  background: transparent;
  display:flex;
  justify-content:center;
  align-items:center;
}
.footer-logout{
  padding: 10px 18px;
  font-weight:700;
}

/* Floating Social Button */
.floating-social {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1493, #FFD700);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
  transition: all 0.3s ease;
  z-index: 99;
}

.floating-social:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 20, 147, 0.6);
}

.social-menu {
  position: fixed;
  bottom: 160px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 15, 30, 0.95);
  border: 2px solid #FF1493;
  border-radius: 12px;
  padding: 10px;
  z-index: 99;
  min-width: 180px;
}

.social-menu.hidden {
  display: none;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: #eaeaea;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  background: rgba(255, 20, 147, 0.1);
  border-left: 3px solid #FF1493;
}

.social-link:hover {
  background: rgba(255, 20, 147, 0.2);
  color: #FF1493;
}

.social-link.whatsapp {
  border-left-color: #25D366;
  color: #25D366;
}

.social-link.telegram {
  border-left-color: #0088CC;
  color: #0088CC;
}

.social-link.facebook {
  border-left-color: #1877F2;
  color: #1877F2;
}

/* Admin Dashboard */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: rgba(0, 217, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
}

.admin-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 2px solid transparent;
  color: #00D9FF;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.admin-tab.active {
  background: rgba(255, 20, 147, 0.2);
  border-color: #FF1493;
  color: #FF1493;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.transactions-table-container, .users-table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

th {
  background: rgba(255, 20, 147, 0.1);
  color: #FF1493;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #FF1493;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 20, 147, 0.2);
  color: #eaeaea;
  font-size: 14px;
}

tr:hover {
  background: rgba(0, 217, 255, 0.1);
}

.admin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-search input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #00D9FF;
  border-radius: 8px;
  color: #eaeaea;
  font-size: 14px;
}

.admin-search input:focus {
  outline: none;
  border-color: #FF1493;
}

.action-btns {
  display: flex;
  gap: 8px;
}

.action-btns button {
  padding: 6px 12px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-approve {
  background: linear-gradient(135deg, #00FF41, #00CC00);
  color: #000;
}

.btn-reject {
  background: linear-gradient(135deg, #FF4444, #FF0000);
  color: #fff;
}

.btn-edit {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 25px;
  }

  .balance-card {
    flex-direction: column;
    gap: 15px;
  .footer-logout{
    padding: 10px 18px;
    position: relative;
    z-index: 999; /* put above fixed bottom-nav */
  }
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .referral-stats {
    grid-template-columns: 1fr;
  }

  .referral-link-box {
    flex-direction: column;
  }

  .referral-link-box .btn {
    width: 100%;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .greeting h1 {
    font-size: 22px;
  }

  table {
    font-size: 12px;
  }

  td, th {
    padding: 8px 10px;
  }

  .action-tabs {
    flex-direction: column;
  }

  .action-tab {
    padding: 10px;
  }
}

/* TASKS & wheel UI additions */
.hidden { display: none !important; }

#saBankSelectWrapper { display: none; margin-top: 8px; }
#saBankSelectWrapper label { display:block; margin-bottom:6px; font-weight:600; }
#saBankSelect { width:100%; padding:8px; border-radius:6px; border:1px solid #ddd; }

#tasks { background: linear-gradient(180deg,#071028 0%, #0b1b2d 100%); color:#E6F7FF; padding:20px; }
.tasks-inner { max-width:1200px; margin:0 auto; }
.tasks-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.tasks-header h2 { margin:0; letter-spacing:1px; color:#00D9FF; }
.signal-block { display:flex; align-items:center; gap:10px; }
.signal-block .btn.small { font-size:12px; padding:6px 8px; }

.tasks-grid { display:grid; grid-template-columns: 1fr 320px; gap:18px; align-items:start; }

.chart-card { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border-radius:10px; padding:14px; box-shadow:0 6px 18px rgba(2,6,23,0.6); }
.chart-container { position:relative; width:100%; height:320px; }
#tasksChart { width:100% !important; height:100% !important; display:block; }

.trade-controls { margin-top:12px; display:flex; gap:10px; }
.btn.trade { padding:16px 32px; border-radius:8px; border:none; cursor:pointer; font-weight:700; font-size:16px; }
.btn.trade.buy { background:#00C853; color:#001; }
.btn.trade.sell { background:#FF3B30; color:#fff; }

.tasks-sidebar .rewards-card, .tasks-sidebar .spin-card { background:#031426; border:1px solid rgba(255,255,255,0.04); padding:12px; border-radius:8px; margin-bottom:12px; color:#DFF8FF; }
.tasks-sidebar h4 { margin:0 0 8px 0; font-size:14px; }

.btn { display:inline-block; padding:8px 12px; border-radius:8px; background:#00AEEF; color:white; border:none; cursor:pointer; }
.btn.small { padding:6px 8px; font-size:12px; border-radius:6px; }
.btn.primary { background:#0066FF; }

.glow {
  position:relative;
  background: linear-gradient(90deg,#00D9FF,#6EE7B7);
  color:#002;
  font-weight:800;
  box-shadow: 0 8px 30px rgba(0,217,255,0.18), 0 2px 6px rgba(0,0,0,0.25);
  transition: transform .12s ease;
}
.glow:hover { transform: translateY(-4px); }
@keyframes glowPulse {
  0% { box-shadow: 0 0 8px rgba(0,217,255,0.14); }
  50% { box-shadow: 0 0 22px rgba(0,217,255,0.28); }
  100% { box-shadow: 0 0 8px rgba(0,217,255,0.14); }
}
.glow { animation: glowPulse 2.5s infinite; }

.overlay { position:fixed; inset:0; z-index:1200; display:flex; align-items:center; justify-content:center; }
.overlay-backdrop { position:absolute; inset:0; background:rgba(4,10,20,0.72); }
.overlay-panel {
  position:relative;
  z-index:2;
  width:min(920px,94%);
  max-width:920px;
  background:linear-gradient(180deg,#071226,#051428);
  border-radius:12px;
  padding:18px;
  box-shadow:0 10px 40px rgba(0,0,0,0.7);
  color:#E6F7FF;
}
.overlay-close { position:absolute; top:10px; right:12px; background:transparent; color:#fff; border:none; font-size:18px; cursor:pointer; }

.wheel-stage { display:flex; align-items:center; gap:18px; justify-content:center; padding:12px 0; }
.wheel { width:320px; height:320px; border-radius:50%; background:
  conic-gradient(
    #ffcc80 0deg 45deg,
    #ffe082 45deg 90deg,
    #ffd54f 90deg 135deg,
    #ffb74d 135deg 180deg,
    #ff8a65 180deg 225deg,
    #f48fb1 225deg 270deg,
    #b39ddb 270deg 315deg,
    #81d4fa 315deg 360deg
  );
  border:6px solid rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center;
  transition: transform 4s cubic-bezier(.15,.9,.35,1);
  will-change: transform;
  position:relative;
}
.wheel-pointer { position:relative; top:-18px; font-size:20px; color:#fffb; text-shadow:0 2px 6px rgba(0,0,0,0.6); }

.spin-result { margin-top:12px; font-weight:700; text-align:center; color:#fff; }

@media (max-width:940px) {
  .tasks-grid { grid-template-columns: 1fr; }
  .wheel { width:260px; height:260px; }
}

/* New Colorful Design Updates */
.balance-display {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
}

.balance-amount {
  color: #00FF41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
  animation: glow 2s ease-in-out infinite;
}

.gain-amount {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px currentColor; }
  50% { text-shadow: 0 0 20px currentColor; }
}

.tasks-title {
  font-size: 48px !important;
  background: linear-gradient(45deg, #00D9FF, #FF1493, #FFD700, #00D9FF);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  margin: 10px 0;
}

.tasks-title-header {
  font-size: 64px !important;
  background: linear-gradient(45deg, #00D9FF, #FF1493, #FFD700, #00D9FF);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  margin: 0;
  font-weight: 900;
}

.tasks-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  gap: 20px !important;
  padding: 15px !important;
  background: rgba(0, 217, 255, 0.05) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 217, 255, 0.2) !important;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.balance-amount-header {
  color: #00FF41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
  font-size: 24px;
  font-weight: 700;
  animation: glow 2s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.spin-card.premium {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 20, 147, 0.1));
  border: 2px solid;
  border-image: linear-gradient(135deg, #00D9FF, #FF1493, #FFD700) 1;
  padding: 24px !important;
  text-align: center;
}

.spin-card.premium h4 {
  font-size: 28px !important;
  font-weight: 900 !important;
  background: linear-gradient(90deg, #00D9FF, #FF1493, #FFD700, #00FF41, #FF1493, #00D9FF);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wheelTextGlow 3s ease infinite;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

@keyframes wheelTextGlow {
  0%, 100% { 
    background-position: 0% 50%;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
  }
  50% { 
    background-position: 100% 50%;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.5));
  }
}

.btn-wheel {
  background: linear-gradient(135deg, #00D9FF, #FF1493, #FFD700, #00D9FF) !important;
  background-size: 300% 300% !important;
  animation: wheelButtonGlow 2s ease infinite, pulse 1.5s ease-in-out infinite !important;
  padding: 18px 36px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  cursor: pointer;
  transform: scale(1);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.6), 0 0 60px rgba(255, 20, 147, 0.3);
}

.btn-wheel:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.8), 0 0 80px rgba(255, 20, 147, 0.5);
}

.btn-wheel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes wheelButtonGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Smooth TASKS button color transition */
.nav-btn.glow {
  animation: smoothColorChange 6s ease-in-out infinite, floatButton 3s ease-in-out infinite;
}

@keyframes smoothColorChange {
  0% { 
    background: linear-gradient(135deg, #00D9FF, #00D9FF);
    box-shadow: 0 0 30px #00D9FF;
  }
  25% {
    background: linear-gradient(135deg, #FF1493, #FF1493);
    box-shadow: 0 0 30px #FF1493;
  }
  50% {
    background: linear-gradient(135deg, #FFD700, #FFD700);
    box-shadow: 0 0 30px #FFD700;
  }
  75% {
    background: linear-gradient(135deg, #00FF41, #00FF41);
    box-shadow: 0 0 30px #00FF41;
  }
  100% {
    background: linear-gradient(135deg, #00D9FF, #00D9FF);
    box-shadow: 0 0 30px #00D9FF;
  }
}

@keyframes floatButton {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Copy button enhancements */
.copy-btn {
  background: linear-gradient(135deg, #00D9FF, #FF1493) !important;
  font-size: 18px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  color: white;
}

.copy-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}

/* Popup animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

.overlay.show {
  animation: slideInUp 0.4s ease;
}

.overlay.hide {
  animation: slideOutDown 0.4s ease;
}

/* Colorful text throughout app */
.btn {
  background: linear-gradient(135deg, #00D9FF, #FF1493) !important;
  color: #fff !important;
}

.btn.trade.buy {
  background: linear-gradient(135deg, #00FF41, #32CD32) !important;
}

.btn.trade.sell {
  background: linear-gradient(135deg, #FF6B6B, #DC143C) !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tasks-title {
    font-size: 32px !important;
  }
  
  .btn-wheel {
    padding: 14px 28px !important;
    font-size: 16px !important;
  }
}

/* Infinity Logo */
.infinity-logo-section {
  text-align: center;
  margin-bottom: 30px;
  animation: slideInDown 0.6s ease;
}

.infinity-symbol {
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(45deg, #00D9FF, #FF1493, #FFD700, #00FF41, #00D9FF);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  text-shadow: 
    0 0 10px rgba(0, 217, 255, 0.8),
    0 0 20px rgba(255, 20, 147, 0.6),
    0 0 30px rgba(255, 215, 0, 0.4);
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5)) drop-shadow(0 0 40px rgba(255, 20, 147, 0.3));
}

/* Home page override for larger infinity */
.home-infinity .infinity-symbol {
  font-size: 120px;
  margin-bottom: 6px;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.infinity-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(45deg, #00D9FF, #FF1493, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* Payment details layout */
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 217, 255, 0.05);
  border-radius: 6px;
  margin: 10px 0;
}

.copy-btn-large {
  background: linear-gradient(135deg, #00D9FF, #FF1493) !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.5) !important;
}

.copy-btn-large:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.8), 0 0 15px rgba(255, 20, 147, 0.5) !important;
}

.copy-btn-large:active {
  transform: scale(0.98) !important;
}

/* Premium Wheel Design */
.premium-wheel-visual {
  background: conic-gradient(
    #E74C3C 0deg 51.43deg,    /* SPIN AGAIN - Red */
    #3498DB 51.43deg 102.86deg, /* R100 - Blue */
    #9B59B6 102.86deg 154.29deg, /* R250 - Purple */
    #FF6B6B 154.29deg 205.72deg, /* R300 - Red */
    #4ECDC4 205.72deg 257.15deg, /* CAR - Teal */
    #FFD93D 257.15deg 308.58deg, /* TV - Yellow */
    #FF8B94 308.58deg 360deg    /* iPHONE - Pink */
  ) !important;
  border: 8px solid #00D9FF !important;
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.1) !important;
}

.wheel-pointer {
  position: relative;
  top: -18px;
  font-size: 32px;
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  z-index: 10;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.btn-spin-now {
  background: linear-gradient(135deg, #00FF41, #FFD700, #FF1493, #00D9FF) !important;
  background-size: 400% 400% !important;
  animation: spinGradient 3s ease infinite !important;
  font-size: 18px !important;
  padding: 16px 40px !important;
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.6), 0 0 20px rgba(255, 215, 0, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.btn-spin-now::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes spinGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.premium-result {
  font-size: 20px !important;
  font-weight: 900 !important;
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(255, 20, 147, 0.2));
  border: 2px solid #FFD700;
  animation: resultPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.premium-wheel {
  border: 3px solid #00D9FF !important;
  box-shadow: 0 0 80px rgba(0, 217, 255, 0.6), 0 0 40px rgba(255, 215, 0, 0.3) !important;
}

/* Animation for wheel spinning */
@keyframes wheelSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#wheelCanvas {
  width: 100% !important;
  height: 100% !important;
}

/* Download App Button */
.download-app-banner {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 999;
  animation: slideInUp 0.5s ease-out;
}

.download-app-btn {
  background: linear-gradient(135deg, #00D9FF 0%, #FF1493 100%);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(255, 20, 147, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-app-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.7), 0 0 60px rgba(255, 20, 147, 0.5);
}

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

.download-app-btn i {
  font-size: 16px;
}

/* Hide download button when inside APK */
.app.isAPK .download-app-banner {
  display: none;
}

/* Admin Access Section */
.admin-access-section {
  margin: 20px 0;
  text-align: center;
}

.admin-access-section.hidden {
  display: none;
}

.btn-admin {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

.btn-admin i {
  margin-right: 8px;
}



