* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Updated color scheme to purple + blue + white Web3 theme */
:root {
  --primary-purple: #8b5cf6;
  --primary-blue: #3b82f6;
  --dark-purple: #6d28d9;
  --dark-blue: #1e40af;
  --light-purple: #c4b5fd;
  --light-blue: #93c5fd;
  --white: #ffffff;
  --off-white: #f9fafb;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;

  /* Web3 gradients with purple and blue */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --gradient-purple: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  --gradient-blue: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --gradient-purple-blue: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-dark: linear-gradient(135deg, #6d28d9 0%, #1e40af 100%);
  --gradient-light: linear-gradient(135deg, #ddd6fe 0%, #dbeafe 100%);

  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--gradient-primary);
  background-attachment: fixed;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced buttons with Web3 styling */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background: var(--primary-purple);
  color: var(--white);
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Modern navbar with glass effect */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 12px;
}

/* Enhanced hero section with modern animations */
.hero {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Web3 styled rate cards with gradients */
.rates-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}

.rates-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--gradient-primary);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.rates-section h2 {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 50px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.rate-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.rate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.rate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3);
  border-color: var(--primary-purple);
}

.rate-icon {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(139, 92, 246, 0.3));
}

.rate-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: 700;
}

.rate-value {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 15px 0;
}

.rate-desc {
  color: var(--text-light);
  font-size: 14px;
}

/* Features section with modern card design */
.features {
  padding: 80px 0;
  background: var(--off-white);
}

.features h2 {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 50px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
  border-color: var(--light-purple);
}

.feature-icon {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Modern auth pages with glass effect */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  top: -250px;
  right: -250px;
  border-radius: 50%;
}

.auth-page::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  bottom: -200px;
  left: -200px;
  border-radius: 50%;
}

.auth-container {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-header h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.auth-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-weight: 700;
}

.auth-header p {
  color: var(--text-light);
  font-size: 15px;
}

/* Forms */
/* Enhanced form styling */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--text-light);
  font-size: 13px;
}

/* Alerts */
/* Modern alert styling */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 500;
  border: 2px solid;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Dashboard */
/* Enhanced dashboard with Web3 styling */
.dashboard {
  min-height: 100vh;
  background: var(--off-white);
}

.dashboard-header {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: 800;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dashboard-container {
  display: flex;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--white);
  min-height: calc(100vh - 70px);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

.sidebar-nav {
  padding: 20px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--gradient-light);
  color: var(--primary-purple);
}

.nav-item.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-icon {
  margin-right: 12px;
  font-size: 20px;
}

.dashboard-main {
  flex: 1;
  padding: 35px;
  background: transparent;
}

.page-header {
  margin-bottom: 35px;
}

.page-header h1 {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 800;
}

.page-header p {
  color: var(--text-light);
  font-size: 16px;
}

/* Stats Grid */
/* Web3 styled stat cards with gradients */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
  border-color: var(--light-purple);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  font-size: 44px;
}

.stat-content h3 {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
}

/* Action Cards */
/* Enhanced action cards */
.action-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.action-card {
  background: var(--white);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
  border-color: var(--light-purple);
}

.action-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.action-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Tables */
/* Modern table styling */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table thead {
  background: var(--gradient-light);
}

.table th,
.table td {
  padding: 16px;
  text-align: left;
}

.table th {
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: var(--off-white);
}

.table tbody tr:last-child {
  border-bottom: none;
}

/* Badges */
/* Enhanced badges with modern styling */
.badge,
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-processing {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* Footer */
/* Modern footer */
.footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
  margin-top: 80px;
}

.footer a {
  color: var(--light-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--white);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--white);
  border-radius: 16px;
}

.empty-state p {
  color: var(--text-light);
  font-size: 16px;
}

/* Web3 styled cards */
/* Web3 gradient cards for special effects */
.gradient-purple {
  background: var(--gradient-purple);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.gradient-blue {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.gradient-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.gradient-purple .stat-content h3,
.gradient-blue .stat-content h3,
.gradient-primary .stat-content h3 {
  color: rgba(255, 255, 255, 0.9);
}

.gradient-purple .stat-value,
.gradient-blue .stat-value,
.gradient-primary .stat-value {
  color: var(--white);
}

/* Admin action buttons */
.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.action-btn {
  background: white;
  padding: 25px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.action-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-icon {
  font-size: 40px;
  background: var(--gradient-purple);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.action-btn h4 {
  margin: 0 0 5px 0;
  font-size: 18px;
}

.action-btn p {
  margin: 0;
  font-size: 14px;
  color: var(--secondary-color);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--gradient-purple);
  color: white;
}

/* Details grid */
.details-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.details-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.details-card h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--dark-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--secondary-color);
}

.detail-value {
  color: var(--dark-color);
  text-align: right;
}

.auth-footer {
  margin-top: 25px;
  text-align: center;
}

.auth-footer p {
  margin: 8px 0;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: var(--dark-purple);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    min-height: auto;
  }

  .auth-container {
    padding: 35px 24px;
  }

  .rates-section h2,
  .features h2 {
    font-size: 32px;
  }
}

.btn-danger {
  background: var(--danger-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}
