/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Cairo', sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}
.btn-primary {
  background: #FF6B35;
  color: white;
}
.btn-primary:hover { background: #e85a28; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: #666;
  border: 2px solid #ddd;
}
.btn-outline {
  background: transparent;
  color: #FF6B35;
  border: 2px solid #FF6B35;
}
.btn-outline:hover { background: #FF6B35; color: white; }
.btn-white {
  background: white;
  color: #FF6B35;
  font-weight: 700;
}
.btn-large { padding: 16px 32px; font-size: 18px; }

/* Header */
.header {
  background: white;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  color: #FF6B35;
}
.logo-icon { font-size: 28px; }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-weight: 600;
  color: #333;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: #FF6B35; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #FF6B35 0%, #f7931e 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 22px;
  margin-bottom: 32px;
  opacity: 0.95;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-cta .btn-primary {
  background: white;
  color: #FF6B35;
}
.hero-cta .btn-outline {
  border-color: white;
  color: white;
}
.hero-cta .btn-outline:hover { background: white; color: #FF6B35; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.stat-num { font-size: 40px; font-weight: 900; }
.stat-label { font-size: 14px; opacity: 0.9; }

/* April Banner */
.april-banner { padding: 40px 0; }
.banner-card {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}
.banner-card:hover { transform: translateY(-4px); }
.banner-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.banner-card h2 { font-size: 28px; margin-bottom: 4px; }
.banner-card p { opacity: 0.95; }

/* How It Works */
.how-it-works { padding: 80px 0; background: white; }
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 48px;
  color: #1a1a1a;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.step {
  text-align: center;
  padding: 32px;
  background: #f9f9f9;
  border-radius: 20px;
  position: relative;
  transition: transform 0.2s;
}
.step:hover { transform: translateY(-8px); }
.step-number {
  position: absolute;
  top: -16px;
  right: 24px;
  background: #FF6B35;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
}
.step-icon { font-size: 64px; margin-bottom: 16px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: #666; }

/* FAQ */
.faq { padding: 80px 0; background: #f5f5f5; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.faq-item summary {
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 24px; color: #FF6B35; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: #666; }

/* Footer */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 32px 0;
  text-align: center;
}

/* Auth Pages */
.auth-wrapper {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #f7931e 100%);
}
.auth-card {
  background: white;
  padding: 48px;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #FF6B35;
}
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 24px; color: #666; }
.auth-footer a { color: #FF6B35; font-weight: 600; }
.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Dashboard */
.dashboard { padding: 40px 0; min-height: calc(100vh - 76px); }
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.balance-card {
  padding: 32px;
  border-radius: 20px;
  color: white;
}
.balance-card.available {
  background: linear-gradient(135deg, #FF6B35 0%, #f7931e 100%);
}
.balance-card.pending {
  background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
}
.balance-label { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.balance-amount { font-size: 42px; font-weight: 900; }
.balance-note { font-size: 13px; opacity: 0.8; margin-top: 4px; }

.orders-section {
  background: white;
  padding: 32px;
  border-radius: 20px;
}
.orders-section h2 { margin-bottom: 20px; }
.order-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.order-row:last-child { border: none; }
.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-declined { background: #fee2e2; color: #991b1b; }

/* Generate page */
.generate-section {
  padding: 60px 0;
  min-height: calc(100vh - 76px);
}
.generate-card {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.generate-card h1 { font-size: 32px; margin-bottom: 8px; }
.generate-card .subtitle { color: #666; margin-bottom: 32px; }
.result-box {
  margin-top: 24px;
  padding: 20px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  display: none;
}
.result-box.show { display: block; }
.result-box.error { background: #fef2f2; border-color: #fca5a5; }
.result-link {
  word-break: break-all;
  font-size: 14px;
  color: #333;
  background: white;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-family: monospace;
}

.offers-section {
  padding: 20px 0 60px;
  background: white;
}
.offers-head {
  margin-bottom: 24px;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.offer-card {
  background: #fff7f2;
  border: 1px solid #ffd7c8;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-card h3 {
  font-size: 22px;
}
.offer-card p {
  color: #666;
}
.offer-badge {
  display: inline-block;
  background: #FF6B35;
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.offer-empty {
  background: #fafafa;
  border-radius: 20px;
  padding: 24px;
  color: #666;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 18px; }
  .hero-stats { gap: 32px; }
  .stat-num { font-size: 32px; }
  .section-title { font-size: 28px; }
  .nav { gap: 12px; }
  .nav-link { font-size: 14px; }
  .auth-card { padding: 32px 24px; }
  .banner-card { flex-direction: column; text-align: center; }
  .offer-form { grid-template-columns: 1fr; }
}

/* Password Hints */
.pw-hint {
  padding: 4px 0;
  color: #999;
  transition: color 0.2s;
}
.pw-hint.valid {
  color: #16a34a;
  font-weight: 600;
}

/* Admin */
.admin-login-card {
  max-width: 520px;
}
.admin-note {
  margin-top: 16px;
  color: #666;
  font-size: 14px;
  text-align: center;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.admin-stat-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}
.admin-stat-value {
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 900;
}
.admin-section {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  text-align: right;
  font-size: 14px;
}
.admin-table th {
  color: #555;
  font-size: 13px;
  background: #fafafa;
}
.offer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.admin-table code {
  font-size: 12px;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 8px;
}
