@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070913;
  --bg-card: rgba(15, 18, 36, 0.65);
  --bg-card-hover: rgba(22, 26, 51, 0.8);
  --neon-cyan: #00f2fe;
  --neon-purple: #9d4edf;
  --neon-pink: #ff007f;
  --text-primary: #ffffff;
  --text-secondary: #bac0d8;
  --border-glow: rgba(0, 242, 254, 0.2);
  --border-normal: rgba(255, 255, 255, 0.08);
  --gradient-neon: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  --gradient-dark: linear-gradient(180deg, #070913 0%, #0d1024 100%);
  --success: #00e676;
  --error: #ff1744;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
  background-color: #070913;
  background-image: linear-gradient(180deg, #070913 0%, #0d1024 100%);
  color-scheme: dark;
  color: #ffffff;
  min-height: 100%;
}

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

/* Override browser autofill white box background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #070913 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 5000s ease-in-out 0s;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  background-image: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Background Animated Glow Blobs */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--neon-cyan);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--neon-purple);
  bottom: -15%;
  right: -5%;
  animation-delay: 4s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--neon-pink);
  top: 40%;
  left: 60%;
  animation-delay: 8s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -40px) scale(1.15);
  }
  100% {
    transform: translate(-30px, 50px) scale(0.9);
  }
}

/* Page Wrapper for login/signup */
.auth-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Card Container with Glassmorphism */
.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--border-normal);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  padding: 2.6rem 2.4rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 
              0 0 50px rgba(157, 78, 223, 0.05);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-neon);
}

.auth-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 
              0 0 60px rgba(0, 242, 254, 0.08);
}

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

/* Headings */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.brand-logo {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Alert Notification Banner */
.alert-banner {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  animation: bannerFade 0.3s ease;
}

.alert-banner.success {
  display: flex;
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--success);
}

.alert-banner.error {
  display: flex;
  background: rgba(255, 23, 68, 0.1);
  border-color: rgba(255, 23, 68, 0.3);
  color: var(--error);
}

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

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

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

.input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition);
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 2.8rem;
  background: rgba(7, 9, 19, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(13, 16, 37, 0.85);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-input:focus + .input-icon {
  color: var(--neon-cyan);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--text-primary);
}

/* Shaking animation on input validation error */
.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* Auth Buttons */
.auth-btn {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1.1rem;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  border: none;
  border-radius: 10px;
  color: #070913;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
  filter: brightness(1.05);
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(7, 9, 19, 0.3);
  border-radius: 50%;
  border-top-color: #070913;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

/* Links & Redirect Text */
.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.3rem;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(157, 78, 223, 0.4);
}


/* HOMEPAGE / DASHBOARD SYSTEM */

/* Dashboard Layout Wrapper */
.dashboard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-normal);
  background: rgba(11, 13, 25, 0.6);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-glow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #070913;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username-display {
  font-weight: 600;
  font-size: 1rem;
}

.user-role {
  font-size: 0.75rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logout-btn {
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.55);
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  color: #ff4060;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem !important;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.logout-btn:hover {
  background: rgba(255, 23, 68, 0.1);
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.25);
  border-color: var(--error);
}

/* Dashboard Body */
.dashboard-content {
  padding: 1.5rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

/* Welcome Grid Info Banner */
.welcome-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(157, 78, 223, 0.08) 100%);
  border: 1px solid rgba(157, 78, 223, 0.25);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-banner h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.welcome-banner p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 600px;
}

/* Earning Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(13, 16, 37, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  transition: var(--transition);
}

.stat-card:hover::before {
  transform: translate(10px, 10px);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.stat-card.cyan {
  border-left: 3px solid var(--neon-cyan);
}

.stat-card.purple {
  border-left: 3px solid var(--neon-purple);
}

.stat-card.pink {
  border-left: 3px solid var(--neon-pink);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.stat-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.stat-card.cyan .stat-icon {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-cyan);
}

.stat-card.purple .stat-icon {
  background: rgba(157, 78, 223, 0.1);
  color: var(--neon-purple);
}

.stat-card.pink .stat-icon {
  background: rgba(255, 0, 127, 0.1);
  color: var(--neon-pink);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.stat-change {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-change.up {
  color: var(--success);
}

.stat-change.down {
  color: var(--error);
}

/* Dashboard Bottom Grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .details-grid {
    grid-template-columns: 1.8fr 1.2fr;
  }
}

/* Section Card */
.section-card {
  background: rgba(13, 16, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.section-card:hover {
  border-color: rgba(157, 78, 223, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 15px rgba(157, 78, 223, 0.03);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Custom Styled Table */
.table-wrapper {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-normal);
}

.custom-table td {
  padding: 1.2rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-normal);
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.task-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.task-tag.survey {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-cyan);
}

.task-tag.video {
  background: rgba(157, 78, 223, 0.1);
  color: var(--neon-purple);
}

.task-tag.referral {
  background: rgba(255, 0, 127, 0.1);
  color: var(--neon-pink);
}

.amount-text {
  font-weight: 700;
}

.amount-text.plus {
  color: var(--success);
}

/* Tasks / Offers List styling */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-item {
  background: rgba(13, 16, 37, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.offer-item:hover {
  background: rgba(19, 23, 51, 0.7);
  border-color: rgba(0, 242, 254, 0.2);
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.offer-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.offer-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.offer-reward {
  text-align: right;
}

.offer-reward span {
  display: block;
  font-weight: 700;
  color: var(--neon-cyan);
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.offer-action-btn {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #00b8d4 100%);
  color: #070913;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

.offer-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
  filter: brightness(1.1);
}

/* Footer Section */
footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-normal);
}

/* Bottom Navigation Bar Styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-normal);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 1rem;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6);
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 80px;
  height: 100%;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  outline: none;
}

.nav-item i {
  font-size: 1.25rem;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: lineGlow 0.4s ease;
}

@keyframes lineGlow {
  from { width: 0; }
  to { width: 30px; }
}

.nav-item.active i {
  transform: translateY(-4px) scale(1.1);
  color: var(--neon-cyan);
}

/* Tab View Layouts */
.tab-view {
  display: none;
  animation: fadeInTab 0.35s ease-out;
}

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

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

.dashboard-container {
  padding-bottom: 90px;
}

/* Levels View Styling */
.levels-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-normal);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.level-badge {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(157, 78, 223, 0.3);
}

.xp-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border-normal);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 6px;
  box-shadow: 0 0 12px var(--neon-cyan);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.levels-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.level-milestone {
  background: rgba(13, 16, 37, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.level-milestone:hover {
  background: rgba(19, 23, 51, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.level-milestone.active {
  border-color: var(--neon-purple);
  background: linear-gradient(135deg, rgba(157, 78, 223, 0.08) 0%, rgba(13, 16, 37, 0.75) 100%);
  box-shadow: 0 6px 20px rgba(157, 78, 223, 0.15), 0 0 15px rgba(157, 78, 223, 0.05);
}

.milestone-badge {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 160px;
}

.milestone-badge.bronze { color: #cd7f32; }
.milestone-badge.silver { color: #c0c0c0; }
.milestone-badge.gold { color: #ffd700; }

.milestone-details {
  flex: 1;
  padding: 0 1rem;
}

.milestone-details p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.milestone-status {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--neon-cyan);
}

.milestone-status.locked {
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.milestone-tips {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tip-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.tip-icon {
  color: var(--neon-cyan);
  font-size: 1.1rem;
}

.tip-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.tip-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

/* Profile View Styling */
.profile-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-normal);
  border-radius: 12px;
}

.detail-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.balance-display-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-normal);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* M-Pesa Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeInTab 0.3s ease-out;
}

.modal-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-normal);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 90%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-top: 2px solid var(--neon-cyan);
}

.modal-icon-glow {
  font-size: 3rem;
  color: var(--neon-cyan);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  animation: bounceSlow 2s infinite alternate ease-in-out;
}

@keyframes bounceSlow {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.modal-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.modal-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  border-top-color: var(--neon-cyan);
  animation: spin 1s infinite linear;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

#modal-status-text {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }
  
  .dashboard-content {
    padding: 1rem;
  }
  
  .welcome-banner {
    padding: 1.5rem;
    text-align: center;
  }
  
  .welcome-banner h1 {
    font-size: 1.8rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
}

/* Captcha Challenge Canvas Enhancements */
#captcha-canvas {
  transition: var(--transition);
}

#captcha-canvas:hover {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Category Tabs Styling */
.category-tabs {
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.category-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Opera */
}

.category-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-normal);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(157, 78, 223, 0.15) 100%);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Quick Access Cards Styling */
.quick-access-card {
  background: rgba(13, 16, 37, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.quick-access-card i {
  font-size: 1.15rem;
  color: var(--neon-cyan);
  transition: var(--transition);
}

.quick-access-card:hover {
  color: var(--text-primary);
  border-color: rgba(0, 242, 254, 0.2);
  background: rgba(19, 23, 51, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 242, 254, 0.1);
}

.quick-access-card:hover i {
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* Team Member Row Items */
.team-member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-normal);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.team-member-item:hover {
  background: rgba(157, 78, 223, 0.05) !important;
  border-color: rgba(157, 78, 223, 0.2) !important;
  transform: translateX(-2px);
}

/* Quick Access Grid Container Layout */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 576px) {
  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 375px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide scrollbars on horizontal category tabs */
.category-tabs::-webkit-scrollbar {
  display: none;
}
.category-tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Responsive Task Detail Reward Banner */
.detail-reward-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(157, 78, 223, 0.08) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .detail-reward-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 1rem;
  }
  .detail-reward-banner > div {
    text-align: left !important;
  }
}

/* Category Task Tags Styling colors */
.task-tag.survey {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-cyan);
}
.task-tag.video {
  background: rgba(255, 0, 127, 0.12);
  color: var(--neon-pink);
}
.task-tag.quiz {
  background: rgba(157, 78, 223, 0.1);
  color: var(--neon-purple);
}
.task-tag.buysell {
  background: rgba(0, 242, 254, 0.1);
  color: var(--neon-cyan);
}
.task-tag.ai {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}
.task-tag.microtask {
  background: rgba(255, 51, 102, 0.1);
  color: #ff3366;
}
.task-tag.referral {
  background: rgba(255, 0, 127, 0.1);
  color: var(--neon-pink);
}

/* ==========================================================================
   DOWNLOAD APP BUTTON & PROMO STYLES
   ========================================================================== */
.download-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00f2fe 0%, #00b8d4 50%, #9d4edf 100%);
  color: #070913;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  text-decoration: none;
  white-space: nowrap;
}

.download-app-btn i {
  font-size: 1rem;
}

.download-app-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  filter: brightness(1.1);
}

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

.download-app-pill {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--neon-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.download-app-pill:hover {
  background: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* App Download Floating Banner */
.app-promo-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(157, 78, 223, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   SMALL SCREEN & MOBILE ADAPTABILITY ENHANCEMENTS (320px - 768px)
   ========================================================================== */

html, body {
  width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
  }
}

/* Responsive Table Wrapper */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  min-width: 520px;
}

@media (max-width: 576px) {
  .app-promo-banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }
  .app-promo-banner .download-app-btn {
    justify-content: center;
    width: 100%;
  }
}

/* Extra small devices (phones, 320px to 480px) */
@media (max-width: 480px) {
  .auth-wrapper {
    padding: 1rem 0.75rem;
  }
  
  .auth-card {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }
  
  .form-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .dashboard-content {
    padding: 0.8rem 0.6rem;
    gap: 1rem;
  }

  .welcome-banner {
    padding: 1.2rem 1rem;
    border-radius: 12px;
  }

  .welcome-banner h1 {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .welcome-banner p {
    font-size: 0.82rem;
  }

  .welcome-header-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.8rem;
  }

  .user-profile {
    width: 100%;
    justify-content: space-between;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.9rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .quick-access-card {
    padding: 0.6rem 0.3rem;
    font-size: 0.72rem;
  }

  .quick-access-card i {
    font-size: 1rem;
  }

  .bottom-nav {
    height: 62px;
    padding: 0 0.4rem;
  }

  .nav-item {
    font-size: 0.65rem;
    width: 20%;
  }

  .nav-item i {
    font-size: 1.1rem;
  }

  .modal-card {
    padding: 1.5rem 1.2rem;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 1.15rem;
  }
}

/* Ultra small devices (< 360px width e.g., Galaxy Fold outer, iPhone SE) */
@media (max-width: 360px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-card {
    padding: 1.2rem 0.9rem;
  }

  .nav-item span {
    font-size: 0.6rem;
  }
}



