/* ============================================
   HashHadge — Main CSS
   Dark Theme Prop Trading Platform
   ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  background: #0a0a0e;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.5;
}
a { color: #f5c341; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffd96a; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* ==================== APP LAYOUT ==================== */
.app-body { display: flex; min-height: 100vh; background: #0a0a0e; }

/* Sidebar */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #0c0c14;
  border-right: 1px solid #1a1a2e;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 22px 20px 20px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f5c341;
  border-bottom: 1px solid #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.sidebar-logo span { font-size: 1.4rem; }
.sidebar-nav { flex: 1; padding: 12px 0; display: flex; flex-direction: column; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: #6b6b85;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-nav a:hover { color: #c8b5e0; background: rgba(255,255,255,0.03); }
.sidebar-nav a.active {
  color: #f5c341;
  background: rgba(245,195,65,0.07);
  border-left-color: #f5c341;
}
.sidebar-nav .nav-icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-nav .nav-sep { height: 1px; background: #1a1a2e; margin: 8px 12px; }
.sidebar-nav .nav-logout { margin-top: auto; color: #555570; }
.sidebar-nav .nav-logout:hover { color: #ef4444; }

/* Main Content */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0a0e;
}

/* Topbar */
.topbar {
  height: 60px;
  background: #0c0c14;
  border-bottom: 1px solid #1a1a2e;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.topbar-mobile-logo {
  display: none;
  font-weight: 800;
  color: #f5c341;
  font-size: 1rem;
  margin-right: auto;
}
.topbar-spacer { flex: 1; }
.topbar-user {
  color: #8b8b9e;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-bell {
  color: #6b6b85;
  cursor: pointer;
  font-size: 1.1rem;
  background: none;
  border: none;
  padding: 4px;
  transition: color 0.2s;
}
.topbar-bell:hover { color: #f5c341; }
.lang-select {
  background: #0a0a0e;
  border: 1px solid #2a2a42;
  color: #8b8b9e;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.lang-select:focus, .lang-select:hover { border-color: #f5c341; color: #e0e0e0; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #8b8b9e;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99;
}

/* Page content */
.page-content { padding: 28px 24px; flex: 1; max-width: 1400px; width: 100%; }
.page-header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 1.65rem; font-weight: 700; color: #fff; line-height: 1.2; }
.page-subtitle { color: #6b6b85; font-size: 0.9rem; margin-top: 4px; }

/* ==================== CARDS ==================== */
.card {
  background: #12121e;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 0.95rem; font-weight: 600; color: #c0c0d8; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #12121e;
  border: 1px solid #1a1a2e;
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(245,195,65,0.3); }
.stat-label {
  color: #6b6b85;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-bottom: 10px;
}
.stat-value { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-value.gold { color: #f5c341; }
.stat-change { font-size: 0.78rem; margin-top: 6px; color: #6b6b85; }
.stat-change.positive { color: #22c55e; }
.stat-change.negative { color: #ef4444; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #f5c341; color: #0a0a0e; }
.btn-primary:hover { background: #ffd55a; color: #0a0a0e; box-shadow: 0 4px 20px rgba(245,195,65,0.35); }
.btn-outline { background: transparent; color: #f5c341; border: 1.5px solid #f5c341; }
.btn-outline:hover { background: rgba(245,195,65,0.1); color: #ffd55a; border-color: #ffd55a; }
.btn-ghost { background: transparent; color: #8b8b9e; border: 1px solid #2a2a42; }
.btn-ghost:hover { background: #1a1a2e; color: #e0e0e0; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: 6px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.badge-gold { background: rgba(245,195,65,0.15); color: #f5c341; border: 1px solid rgba(245,195,65,0.25); }
.badge-green { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.badge-red { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.badge-blue { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }
.badge-gray { background: rgba(139,139,158,0.12); color: #8b8b9e; border: 1px solid rgba(139,139,158,0.25); }
.badge-purple { background: rgba(168,85,247,0.12); color: #a855f7; border: 1px solid rgba(168,85,247,0.25); }
.badge-orange { background: rgba(249,115,22,0.12); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }

/* ==================== TABLES ==================== */
.table-wrap { overflow-x: auto; }
.table-card { background: #12121e; border: 1px solid #1a1a2e; border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid #1a1a2e; }
th {
  background: #0e0e1a;
  color: #6b6b85;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid #161622;
  font-size: 0.85rem;
  color: #b0b0c8;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(245,195,65,0.025); }
td .email-cell { color: #e0e0e0; font-weight: 500; }
td .mono { font-family: 'Courier New', monospace; font-size: 0.8rem; color: #8b8b9e; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 0.82rem; color: #8b8b9e; margin-bottom: 7px; font-weight: 500; }
.form-label .required { color: #ef4444; margin-left: 3px; }
.form-control {
  width: 100%;
  background: #0e0e1a;
  border: 1.5px solid #1e1e32;
  border-radius: 8px;
  color: #e0e0e0;
  padding: 11px 14px;
  font-size: 0.9rem;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: #f5c341; background: #0a0a16; box-shadow: 0 0 0 3px rgba(245,195,65,0.08); }
.form-control::placeholder { color: #3a3a56; }
.form-control.error { border-color: #ef4444; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b85' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 0.78rem; color: #484862; margin-top: 5px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: #f5c341; cursor: pointer; flex-shrink: 0; }
.form-check label { font-size: 0.85rem; color: #8b8b9e; cursor: pointer; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-danger { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.alert-warning { background: rgba(245,195,65,0.08); border: 1px solid rgba(245,195,65,0.3); color: #f5c341; }

/* ==================== AUTH PAGES ==================== */
.auth-page {
  min-height: 100vh;
  background: #0a0a0e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(245,195,65,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(168,85,247,0.03) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0e 0%, #0d0d14 100%);
}
.auth-card {
  width: 100%;
  max-width: 450px;
  background: #12121e;
  border: 1px solid #1e1e30;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #f5c341;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.auth-title { font-size: 1.35rem; font-weight: 700; color: #fff; margin-bottom: 6px; text-align: center; }
.auth-subtitle { color: #6b6b85; text-align: center; font-size: 0.875rem; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 0.875rem; color: #6b6b85; }
.auth-footer a { color: #f5c341; font-weight: 600; }
.auth-footer a:hover { color: #ffd55a; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #3a3a56; font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #1a1a2e; }
.forgot-link { font-size: 0.8rem; color: #6b6b85; float: right; margin-top: 6px; }
.forgot-link:hover { color: #f5c341; }

/* ==================== PROGRESS BARS ==================== */
.progress-wrap { margin-bottom: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: #6b6b85; margin-bottom: 6px; font-weight: 500; }
.progress-label .progress-current { color: #c0c0d8; }
.progress-bar { height: 6px; background: #1a1a2e; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: #f5c341; border-radius: 4px; transition: width 0.5s ease; }
.progress-fill.green { background: linear-gradient(90deg, #22c55e, #16a34a); }
.progress-fill.red { background: linear-gradient(90deg, #ef4444, #dc2626); }
.progress-fill.blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }

/* ==================== CHALLENGE CARDS ==================== */
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.challenge-card {
  background: #12121e;
  border: 1px solid #1a1a2e;
  border-radius: 14px;
  padding: 22px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.challenge-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f5c341, #ff8c42);
  opacity: 0;
  transition: opacity 0.3s;
}
.challenge-card:hover { border-color: rgba(245,195,65,0.4); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.challenge-card:hover::before { opacity: 1; }
.challenge-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.challenge-card-size { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.challenge-platform { font-size: 0.72rem; color: #6b6b85; margin-top: 3px; }
.challenge-stage { font-size: 0.8rem; color: #8b8b9e; margin-bottom: 14px; font-weight: 500; }
.challenge-tasks { margin-bottom: 14px; }
.challenge-risks {}
.challenge-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #1a1a2e; }

/* ==================== PAYMENT PAGE ==================== */
.payment-page { max-width: 580px; margin: 0 auto; }
.payment-header-card { text-align: center; padding: 28px; }
.payment-order-id { font-size: 0.75rem; color: #6b6b85; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.payment-amount-big { font-size: 2.8rem; font-weight: 800; color: #f5c341; margin-bottom: 6px; line-height: 1; }
.payment-amount-sub { font-size: 0.9rem; color: #6b6b85; margin-bottom: 16px; }
.payment-expires-label { font-size: 0.8rem; color: #6b6b85; margin-bottom: 6px; }
.payment-countdown {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 6px;
  font-variant-numeric: tabular-nums;
  font-family: 'Courier New', monospace;
}
.payment-countdown.expiring { color: #ef4444; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.network-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.network-tab {
  flex: 1; padding: 10px 14px; background: #0e0e1a; border: 1.5px solid #1e1e32;
  border-radius: 8px; text-align: center; font-size: 0.85rem; color: #6b6b85;
  cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.network-tab:hover { border-color: rgba(245,195,65,0.4); color: #c0c0d8; }
.network-tab.active { border-color: #f5c341; color: #f5c341; background: rgba(245,195,65,0.06); }
.address-section label { font-size: 0.8rem; color: #6b6b85; margin-bottom: 8px; display: block; font-weight: 500; }
.address-box {
  background: #0a0a14;
  border: 1.5px solid #1e1e32;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #c0c0d8;
  word-break: break-all;
  line-height: 1.6;
  margin-bottom: 8px;
}
.copy-btn {
  width: 100%; background: #1a1a2e; border: 1px solid #2a2a42; color: #f5c341;
  padding: 10px; border-radius: 7px; cursor: pointer; font-size: 0.85rem;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600;
}
.copy-btn:hover { background: #222236; }
.copy-btn.copied { background: rgba(34,197,94,0.1); color: #22c55e; border-color: rgba(34,197,94,0.4); }
.qr-section { text-align: center; padding: 20px 0; }
#qrcode { display: inline-block; border: 8px solid #fff; border-radius: 6px; background: #fff; }
.payment-status-box { text-align: center; padding: 18px; border-radius: 10px; background: #0e0e1a; border: 1px solid #1a1a2e; margin-top: 12px; }
.payment-status-text { font-size: 1rem; font-weight: 500; color: #c0c0d8; }
.pulse { display: inline-block; animation: pulse-anim 2s ease-in-out infinite; }
@keyframes pulse-anim { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ==================== NEW CHALLENGE ==================== */
.challenge-builder { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 20px; align-items: start; }
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.size-option {
  background: #0e0e1a; border: 2px solid #1a1a2e; border-radius: 10px;
  padding: 14px 10px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.size-option:hover { border-color: rgba(245,195,65,0.5); background: rgba(245,195,65,0.03); }
.size-option.selected { border-color: #f5c341; background: rgba(245,195,65,0.07); }
.size-option .size-label { font-size: 1rem; font-weight: 700; color: #fff; }
.size-option .size-price { font-size: 0.78rem; color: #6b6b85; margin-top: 4px; }
.size-option .size-price span { color: #f5c341; font-weight: 600; }
.type-tabs { display: flex; flex-direction: column; gap: 10px; }
.type-tab {
  background: #0e0e1a; border: 2px solid #1a1a2e; border-radius: 10px;
  padding: 16px; cursor: pointer; transition: all 0.2s; text-align: left;
}
.type-tab:hover { border-color: rgba(245,195,65,0.4); }
.type-tab.selected { border-color: #f5c341; background: rgba(245,195,65,0.05); }
.type-tab-name { font-weight: 700; color: #fff; margin-bottom: 5px; font-size: 0.95rem; }
.type-tab-badge { float: right; }
.type-tab-desc { font-size: 0.8rem; color: #6b6b85; line-height: 1.5; }
.order-card { position: sticky; top: 80px; }
.order-summary-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #1a1a2e; font-size: 0.875rem; }
.order-summary-line .label { color: #6b6b85; }
.order-summary-line .value { color: #c0c0d8; font-weight: 500; }
.order-total-line { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.order-total-line .value { color: #f5c341; font-size: 1.3rem; }
.market-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.market-option {
  background: #0e0e1a; border: 2px solid #1a1a2e; border-radius: 8px;
  padding: 12px; text-align: center; cursor: pointer; transition: all 0.2s;
  font-size: 0.85rem; font-weight: 500; color: #8b8b9e;
}
.market-option:hover { border-color: rgba(245,195,65,0.4); color: #c0c0d8; }
.market-option.selected { border-color: #f5c341; color: #f5c341; background: rgba(245,195,65,0.06); }

/* ==================== LANDING PAGE ==================== */
.landing-page { background: #0a0a0e; color: #e0e0e0; overflow-x: hidden; }
.landing-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px; border-bottom: 1px solid rgba(30,30,46,0.8);
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,14,0.92);
  backdrop-filter: blur(12px);
}
.landing-logo { font-size: 1.3rem; font-weight: 800; color: #f5c341; display: flex; align-items: center; gap: 8px; letter-spacing: -0.3px; }
.landing-nav { display: flex; gap: 10px; align-items: center; }
.hero {
  text-align: center; padding: 90px 48px 70px;
  max-width: 960px; margin: 0 auto;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,195,65,0.06) 0%, transparent 60%);
}
.hero h1 {
  font-size: 3.8rem; font-weight: 900; color: #fff; line-height: 1.08;
  margin-bottom: 22px; letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, #f5c341 60%, #ff8c42 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.15rem; color: #8b8b9e; margin-bottom: 38px; max-width: 550px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stats-bar {
  display: flex; justify-content: center; align-items: center;
  gap: 0; padding: 28px 48px;
  background: #12121e; border-top: 1px solid #1a1a2e; border-bottom: 1px solid #1a1a2e;
  flex-wrap: wrap;
}
.stats-bar-item { text-align: center; flex: 1; min-width: 160px; padding: 8px 24px; position: relative; }
.stats-bar-item + .stats-bar-item::before { content: '|'; position: absolute; left: 0; color: #1a1a2e; font-size: 1.5rem; top: 50%; transform: translateY(-50%); }
.stats-bar-num { font-size: 1.6rem; font-weight: 800; color: #f5c341; line-height: 1; }
.stats-bar-label { font-size: 0.8rem; color: #6b6b85; margin-top: 5px; }
.section { max-width: 1100px; margin: 0 auto; padding: 70px 48px; }
.section-title { text-align: center; font-size: 2.1rem; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.section-sub { text-align: center; color: #6b6b85; margin-bottom: 44px; font-size: 1rem; }
.challenge-types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.challenge-type-card {
  background: #12121e; border: 1px solid #1a1a2e; border-radius: 16px;
  padding: 30px 24px; text-align: center; transition: all 0.25s; cursor: pointer;
}
.challenge-type-card:hover { border-color: #f5c341; transform: translateY(-5px); box-shadow: 0 16px 50px rgba(0,0,0,0.4); }
.challenge-type-card.featured { border-color: rgba(245,195,65,0.4); background: rgba(245,195,65,0.02); }
.challenge-type-icon { font-size: 2.5rem; margin-bottom: 16px; }
.challenge-type-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.challenge-type-desc { color: #6b6b85; font-size: 0.875rem; line-height: 1.6; }
.challenge-type-tag { display: inline-block; background: rgba(245,195,65,0.1); color: #f5c341; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; }
.pricing-card {
  background: #12121e; border: 1.5px solid #1a1a2e; border-radius: 12px;
  padding: 20px 16px; text-align: center; transition: all 0.2s;
  cursor: pointer; position: relative;
}
.pricing-card:hover { border-color: rgba(245,195,65,0.5); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.pricing-card.popular { border-color: #f5c341; }
.popular-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: #f5c341; color: #0a0a0e; font-size: 0.68rem; font-weight: 800;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.pricing-size { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pricing-price { font-size: 1.9rem; font-weight: 800; color: #f5c341; line-height: 1; }
.pricing-period { font-size: 0.72rem; color: #6b6b85; margin-top: 6px; }
.rules-table-wrap { overflow-x: auto; margin-top: 24px; border-radius: 12px; border: 1px solid #1a1a2e; }
.rules-table { width: 100%; border-collapse: collapse; background: #12121e; }
.rules-table th { background: #0e0e1a; padding: 14px 20px; font-size: 0.8rem; font-weight: 700; color: #8b8b9e; text-transform: uppercase; letter-spacing: 0.5px; }
.rules-table th:first-child { text-align: left; }
.rules-table td { padding: 14px 20px; border-bottom: 1px solid #161622; text-align: center; color: #b0b0c8; font-size: 0.9rem; }
.rules-table td:first-child { text-align: left; color: #e0e0e0; font-weight: 500; }
.rules-table tr:last-child td { border-bottom: none; }
.check-green { color: #22c55e; }
.check-gold { color: #f5c341; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; }
.testimonial-card { background: #12121e; border: 1px solid #1a1a2e; border-radius: 12px; padding: 22px; transition: border-color 0.2s; }
.testimonial-card:hover { border-color: rgba(245,195,65,0.3); }
.testimonial-stars { color: #f5c341; margin-bottom: 12px; font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { color: #9090a8; font-size: 0.875rem; line-height: 1.65; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 38px; height: 38px; background: linear-gradient(135deg, #f5c341, #ff8c42); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; color: #0a0a0e; flex-shrink: 0; }
.testimonial-name { font-weight: 600; color: #fff; font-size: 0.875rem; }
.testimonial-country { font-size: 0.75rem; color: #6b6b85; }
.markets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.market-card { background: #12121e; border: 1px solid #1a1a2e; border-radius: 12px; padding: 22px; }
.market-card-icon { font-size: 2rem; margin-bottom: 12px; }
.market-card-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.market-card-desc { font-size: 0.85rem; color: #6b6b85; line-height: 1.55; }
.landing-footer { background: #0c0c14; border-top: 1px solid #1a1a2e; padding: 40px 48px; }
.footer-content { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #6b6b85; font-size: 0.875rem; }
.footer-links a:hover { color: #f5c341; }
.footer-copy { color: #3a3a56; font-size: 0.8rem; }

/* ==================== WALLET / ORDERS ==================== */
.transaction-amount.positive { color: #22c55e; font-weight: 600; }
.transaction-amount.negative { color: #ef4444; font-weight: 600; }

/* ==================== AFFILIATE ==================== */
.referral-box { background: #0a0a14; border: 1.5px solid #1e1e32; border-radius: 10px; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 0.85rem; color: #c0c0d8; word-break: break-all; margin-bottom: 10px; }
.tier-table th { text-align: center; }
.tier-table td { text-align: center; }
.tier-table td:first-child { text-align: left; }
.commission-highlight { color: #f5c341; font-weight: 700; font-size: 1.1rem; }

/* ==================== TRADING PAGE ==================== */
.trading-fullscreen { min-height: 100vh; background: #04040a; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.trading-loading { text-align: center; }
.trading-eagle { font-size: 6rem; display: block; margin-bottom: 24px; animation: float 3s ease-in-out infinite; }
.trading-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.trading-sub { color: #6b6b85; font-size: 0.9rem; }
@keyframes float { 0%, 100% { transform: translateY(0px) rotate(-2deg); } 50% { transform: translateY(-15px) rotate(2deg); } }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 70px 24px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 18px; }
.empty-state-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.empty-state-text { color: #6b6b85; margin-bottom: 28px; font-size: 0.9rem; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ==================== TOAST ==================== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #1a1a2e; border: 1px solid #2a2a42; border-radius: 10px;
  padding: 12px 18px; color: #e0e0e0; font-size: 0.875rem; max-width: 320px;
  animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 10px;
  pointer-events: all; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }
.toast.warning { border-color: rgba(245,195,65,0.4); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==================== ADMIN ==================== */
.admin-body { display: flex; min-height: 100vh; background: #0a0a0e; }
.admin-sidebar-wrap {
  width: 220px; background: #0c0c14; border-right: 1px solid #1a1a2e;
  position: fixed; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column;
}
.admin-content { margin-left: 220px; flex: 1; padding: 28px 24px; min-height: 100vh; }
.admin-topbar { height: 52px; background: #0c0c14; border-bottom: 1px solid #1a1a2e; display: flex; align-items: center; padding: 0 20px; margin-bottom: 24px; border-radius: 10px; }
.admin-topbar-title { font-weight: 600; color: #c0c0d8; font-size: 0.9rem; }
.search-box { display: flex; gap: 8px; margin-bottom: 16px; }
.search-input { flex: 1; background: #0e0e1a; border: 1.5px solid #1e1e32; border-radius: 8px; color: #e0e0e0; padding: 9px 14px; font-size: 0.875rem; outline: none; }
.search-input:focus { border-color: #f5c341; }
.search-input::placeholder { color: #3a3a56; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.page-btn { background: #12121e; border: 1px solid #1a1a2e; color: #6b6b85; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; text-decoration: none; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { border-color: #f5c341; color: #f5c341; }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* Info list for user detail */
.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #161622; font-size: 0.875rem; }
.info-list li:last-child { border-bottom: none; }
.info-list .il-key { color: #6b6b85; }
.info-list .il-val { color: #c0c0d8; font-weight: 500; }

/* Settings form */
.settings-section { margin-bottom: 32px; }
.settings-section-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #1a1a2e; }

/* ==================== UTILITIES ==================== */
.text-gold { color: #f5c341; }
.text-green { color: #22c55e; }
.text-red { color: #ef4444; }
.text-muted { color: #6b6b85; }
.text-white { color: #fff; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'Courier New', monospace; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.w-full { width: 100%; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .challenge-builder { grid-template-columns: 1fr 1fr; }
  .order-card { position: static; grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .challenge-builder { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); z-index: 101; width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .topbar-mobile-logo { display: block; }
  .sidebar-overlay.show { display: block; }
  .page-content { padding: 16px; }
  .landing-header { padding: 12px 20px; }
  .hero { padding: 60px 20px 48px; }
  .hero h1 { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-sub { font-size: 1rem; }
  .section { padding: 48px 20px; }
  .stats-bar { padding: 20px; gap: 0; }
  .stats-bar-item { min-width: 140px; }
  .section-title { font-size: 1.7rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .challenge-grid { grid-template-columns: 1fr; }
  .admin-content { margin-left: 0; padding: 16px; }
  .admin-sidebar-wrap { transform: translateX(-100%); z-index: 101; }
  .auth-card { padding: 28px 24px; }
  .payment-amount-big { font-size: 2.2rem; }
  .landing-footer { padding: 30px 20px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .stats-bar-item { padding: 6px 12px; }
  .stats-bar-item + .stats-bar-item::before { display: none; }
  .challenge-types-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }
  .network-tabs { flex-direction: column; }
}
