* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --accent: #f0c040;
  --accent-hover: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6c6c8a;
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: #2a2a4a;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Particles BG */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar .logo img {
  height: 30px;
  width: auto;
}
.navbar .logo span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { padding: 0.5rem 1.2rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.nav-links .btn-primary { color: #000; }
.nav-links .btn-primary:hover { color: #fff; }
.balance-display { color: var(--accent); font-weight: 700; font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(240, 192, 64, 0.4); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); transform: translateY(-2px); }
.btn-success { background: var(--success); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), #ff8c00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 2rem; }
.hero .cta-buttons { display: flex; gap: 1rem; }
.hero .btn { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.page-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.card:hover { border-color: var(--accent); }
.card-glow:hover { box-shadow: 0 0 20px rgba(240, 192, 64, 0.15); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Form */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.1);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo { display: block; text-align: center; margin-bottom: 1rem; }
.auth-logo img { height: 40px; width: auto; }
.auth-card h2 { text-align: center; margin-bottom: 0.5rem; font-size: 1.8rem; }
.auth-card .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; }
.auth-card .btn { width: 100%; justify-content: center; padding: 0.9rem; }
.auth-card .auth-link { text-align: center; margin-top: 1.2rem; color: var(--text-secondary); font-size: 0.9rem; }

/* Job cards */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.3s ease;
}
.job-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.job-card .job-title { font-size: 1.2rem; font-weight: 600; }
.job-card .job-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.job-card .job-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.job-card .reward { color: var(--accent); font-size: 1.3rem; font-weight: 700; }
.job-card .slots { color: var(--text-muted); font-size: 0.85rem; }
.job-card .job-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding-top: 90px;
}
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.sidebar .user-info { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.sidebar .user-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin: 0 auto 0.8rem;
}
.sidebar .user-name { font-weight: 600; font-size: 1rem; }
.sidebar .user-email { color: var(--text-muted); font-size: 0.8rem; }
.sidebar .sidebar-balance { text-align: center; padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar .sidebar-balance .amount { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.sidebar .sidebar-balance .label { color: var(--text-muted); font-size: 0.8rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-nav a {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 0.7rem;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(240, 192, 64, 0.1); color: var(--accent); }

.main-content { min-height: 80vh; }

/* Section tabs */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Stats */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card .stat-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.3rem; }

/* Withdrawal modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal h3 { margin-bottom: 1.5rem; }
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-approved, .badge-completed { background: rgba(74, 222, 128, 0.2); color: var(--success); }
.badge-rejected { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-submitted { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-open { background: rgba(74, 222, 128, 0.2); color: var(--success); }
.badge-closed { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success { background: rgba(74, 222, 128, 0.15); color: var(--success); border: 1px solid rgba(74, 222, 128, 0.3); }
.alert-error { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-secondary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
td { font-size: 0.9rem; }
tr:hover td { background: rgba(240, 192, 64, 0.03); }

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Proof image */
.proof-img { max-width: 200px; max-height: 200px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); }
.proof-img:hover { opacity: 0.8; }

/* Loading */
.loading { text-align: center; padding: 3rem; color: var(--text-secondary); }
.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
  .nav-links { gap: 0.8rem; }
  .hero .cta-buttons { flex-direction: column; }
  .container { padding: 1rem; }
}
