/* ========================================================
   EARNDALA - PAGE STYLES (Landing, Auth, Dashboard, Profile, Admin)
   ======================================================== */

/* 1. LANDING PAGE STYLES */
.hero-section {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--clr-emerald-400);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  color: var(--clr-slate-300);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Features Grid */
.features-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--clr-emerald-400);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--clr-emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* How It Works Steps */
.how-it-works-section {
  padding: 4rem 0 6rem;
  background: rgba(15, 23, 42, 0.4);
  border-y: 1px solid var(--border-glass);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(16, 185, 129, 0.3);
  line-height: 1;
}

/* 2. AUTH PAGES (Login, Signup, Forgot Password) */
.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header img {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--clr-slate-400);
}

.auth-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--clr-slate-400);
}

/* Password Strength Indicator */
.password-strength-bar {
  height: 4px;
  width: 100%;
  background: var(--clr-slate-700);
  border-radius: 2px;
  margin-top: 0.4rem;
  overflow: hidden;
  display: flex;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

/* 3. DASHBOARD PAGE STYLES */
.dashboard-wrapper {
  padding: 2rem 0 4rem;
}

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

.user-welcome-title {
  font-size: 1.75rem;
  font-weight: 800;
}

.user-role-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Balance Overview Grid */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.balance-card-main {
  background: linear-gradient(135deg, rgba(15, 90, 71, 0.6) 0%, rgba(6, 78, 59, 0.8) 100%);
  border: 1px solid var(--border-emerald);
  position: relative;
  overflow: hidden;
}

.balance-card-main::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.balance-card-pending {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-gold);
}

.balance-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.balance-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--clr-white);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.balance-currency {
  font-size: 1.4rem;
  color: var(--clr-gold-400);
}

.balance-subtext {
  font-size: 0.8rem;
  color: var(--clr-slate-400);
  margin-top: 0.75rem;
}

/* Quick Action Cards Grid */
.quick-actions-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.action-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--clr-emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--transition-bounce);
}

.action-card:hover .action-icon {
  transform: scale(1.1);
  background: rgba(16, 185, 129, 0.25);
}

.action-name {
  font-weight: 700;
  color: var(--clr-white);
  font-size: 1rem;
}

/* 4. PROFILE PAGE STYLES */
.profile-wrapper {
  padding: 2rem 0 4rem;
}

.profile-card-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .profile-card-layout {
    grid-template-columns: 1fr;
  }
}

.profile-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-emerald-700) 0%, var(--clr-emerald-900) 100%);
  border: 3px solid var(--clr-emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--clr-white);
  box-shadow: var(--glow-emerald);
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
  color: var(--clr-slate-300);
}

.profile-meta-value {
  font-weight: 600;
  color: var(--clr-white);
}

/* 5. ADMIN PANEL STYLES */
.admin-wrapper {
  padding: 2rem 0 4rem;
}

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

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  color: var(--clr-emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--clr-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Admin Tabs */
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--clr-slate-400);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--clr-slate-100);
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  color: var(--clr-emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border-bottom: 2px solid var(--clr-emerald-500);
}
