@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@300;400;500;700&display=swap');

/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --or: #f7931a;
  --or2: #e07d0a;
  --or3: #ffa94d;
  --or-glow: rgba(247,147,26,0.2);
  --or-glow-lg: rgba(247,147,26,0.35);
  --or-dim: rgba(247,147,26,0.08);

  --bg:    #050709;
  --bg1:   #080c11;
  --bg2:   #0c1219;
  --bg3:   #111a24;
  --bg4:   #16212e;
  --glass: rgba(14,20,30,0.75);
  --glass2: rgba(20,28,42,0.6);

  --border:  rgba(247,147,26,0.12);
  --border2: rgba(247,147,26,0.25);
  --border3: rgba(247,147,26,0.5);

  --text:    #f0f2f5;
  --text2:   #a8b4c0;
  --text3:   #586878;
  --text4:   #2e3d4d;

  --green:  #00e5a0;
  --red:    #ff4d6a;
  --blue:   #4da6ff;
  --purple: #b06eff;

  --radius: 12px;
  --radius2: 18px;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Syne', sans-serif;

  --sidebar-w: 230px;
  --topbar-h: 62px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: var(--mono); }

/* ═══════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ═══════════════════════════════════════════════
   ANIMATED BACKGROUND
═══════════════════════════════════════════════ */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  animation: orb-drift 20s ease-in-out infinite;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: var(--or);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.bg-orb-2 {
  width: 400px; height: 400px;
  background: #ff6b35;
  bottom: -100px; right: -100px;
  animation-delay: -7s;
}
.bg-orb-3 {
  width: 300px; height: 300px;
  background: var(--or3);
  top: 50%; left: 60%;
  animation-delay: -13s;
}
@keyframes orb-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-20px,40px) scale(0.95); }
}

.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(247,147,26,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,147,26,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ═══════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════ */
.topbar {
  position: fixed; top:0; left:0; right:0;
  height: var(--topbar-h);
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(5,7,9,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: 2px;
  color: var(--or);
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--or), var(--or2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px var(--or-glow);
}
.topbar-right {
  display: flex; align-items: center; gap: 12px;
}
.net-badge {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px;
  background: var(--or-dim);
  border: 1px solid var(--or);
  color: var(--or);
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 6px var(--or-glow); }
  50%      { box-shadow: 0 0 18px var(--or-glow-lg); }
}
.wallet-chip {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 14px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text2);
  display: none;
}
.wallet-chip.show { display: block; }

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: var(--topbar-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 100;
  background: var(--bg1);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 20px 0;
}
.sidebar-profile {
  padding: 0 16px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-avatar {
  width: 42px; height: 42px;
  background: var(--or-dim);
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
}
.sidebar-addr {
  font-family: var(--mono); font-size: 11px; color: var(--text2);
  word-break: break-all;
}
.sidebar-tier {
  margin-top: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--or);
}

.nav-group-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text4); padding: 0 20px; margin-bottom: 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; margin: 0 8px 2px;
  border-radius: var(--radius);
  color: var(--text2); font-size: 14px; font-weight: 600;
  border: none; background: none; text-align: left; width: calc(100% - 16px);
  transition: all 0.15s ease; cursor: pointer;
  letter-spacing: 0.3px;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active {
  background: var(--or-dim);
  color: var(--or);
  border-left: 2px solid var(--or);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-left: 0; padding-left: 22px;
}
.nav-icon { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--or); color: #000;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 10px;
  font-family: var(--mono);
}
.sidebar-bottom {
  margin-top: auto; padding: 16px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════ */
.app-shell {
  position: relative; z-index: 1;
  padding-top: var(--topbar-h);
}
.main-wrap {
  margin-left: var(--sidebar-w);
  padding: 28px 32px;
  min-height: calc(100vh - var(--topbar-h));
  max-width: 1100px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  margin-bottom: 20px;
}
.breadcrumb-sep { color: var(--text4); }
.breadcrumb-current { color: var(--or); }

/* Page Header */
.page-hdr { margin-bottom: 28px; }
.page-title {
  font-size: 30px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; line-height: 1;
  margin-bottom: 4px;
}
.page-title span { color: var(--or); }
.page-sub {
  font-family: var(--mono); font-size: 11px;
  color: var(--text3); letter-spacing: 2px; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   GLASS CARDS
═══════════════════════════════════════════════ */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border2); }
.card-glow {
  position: relative; overflow: hidden;
}
.card-glow::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--or) 50%, transparent 100%);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 20px;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: attr(data-icon);
  position: absolute; right: 16px; bottom: 12px;
  font-size: 36px; opacity: 0.08;
}
.stat-label {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 10px;
}
.stat-val {
  font-size: 26px; font-weight: 800; line-height: 1;
  margin-bottom: 4px;
}
.stat-val.orange { color: var(--or); }
.stat-val.green  { color: var(--green); }
.stat-val.red    { color: var(--red); }
.stat-val.blue   { color: var(--blue); }
.stat-meta {
  font-family: var(--mono); font-size: 10px; color: var(--text3);
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px 26px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}
.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.98); }
.btn:disabled {
  opacity: 0.35; cursor: not-allowed; transform: none !important;
}

.btn-primary {
  background: var(--or); color: #000;
  box-shadow: 0 0 28px rgba(247,147,26,0.25);
}
.btn-primary:hover { background: var(--or3); box-shadow: 0 0 40px rgba(247,147,26,0.4); }

.btn-outline {
  background: transparent; color: var(--or);
  border: 1px solid var(--or);
}
.btn-outline:hover { background: var(--or-dim); }

.btn-ghost {
  background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }

.btn-danger {
  background: transparent; color: var(--red);
  border: 1px solid rgba(255,77,106,0.4);
}
.btn-danger:hover { background: rgba(255,77,106,0.08); }

.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 11px; }

/* Spinner */
.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(247,147,26,0.2);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: none;
}
.spin.active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════ */
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 8px;
}
.field-input {
  width: 100%;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text); font-size: 15px;
  outline: none; transition: all 0.2s;
}
.field-input:focus {
  border-color: var(--or);
  box-shadow: 0 0 0 3px var(--or-glow);
}
.field-input::placeholder { color: var(--text4); }

.input-wrap { position: relative; }
.input-wrap .field-input { padding-right: 60px; }
.input-unit {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--or); pointer-events: none;
}

.field-textarea {
  width: 100%; resize: vertical; min-height: 90px;
  background: var(--bg1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-size: 13px;
  outline: none; transition: all 0.2s;
}
.field-textarea:focus { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-glow); }

/* Quick-fill pills */
.quick-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.pill {
  font-family: var(--mono); font-size: 11px;
  padding: 5px 12px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; transition: all 0.15s;
}
.pill:hover { border-color: var(--or); color: var(--or); background: var(--or-dim); }

/* Duration selector */
.dur-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin-bottom: 16px;
}
.dur-btn {
  padding: 14px 8px; border-radius: var(--radius);
  background: var(--bg1); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  text-align: center; transition: all 0.15s;
}
.dur-btn small {
  display: block; font-family: var(--mono); font-size: 9px;
  color: var(--text3); margin-top: 2px; letter-spacing: 1px;
}
.dur-btn:hover, .dur-btn.sel {
  border-color: var(--or); color: var(--or); background: var(--or-dim);
}

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
#toasts {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  max-width: 380px; pointer-events: none;
}
.toast {
  background: var(--bg3);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  border-left: 3px solid var(--or);
  animation: t-in 0.3s ease;
  pointer-events: all;
}
.toast.ok  { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.info{ border-left-color: var(--blue); }
.toast-ico { font-size: 20px; flex-shrink: 0; margin-top: -1px; }
.toast-ttl { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.toast-msg { font-family: var(--mono); font-size: 11px; color: var(--text2); }
@keyframes t-in  { from { opacity:0; transform: translateX(24px); } }
@keyframes t-out { to   { opacity:0; transform: translateX(24px); } }

/* ═══════════════════════════════════════════════
   TX RESULT
═══════════════════════════════════════════════ */
.tx-box {
  background: rgba(0,229,160,0.05);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: none; margin-top: 14px;
}
.tx-box.show { display: block; }
.tx-lbl {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 6px;
}
.tx-hash {
  font-family: var(--mono); font-size: 11px; color: var(--text2);
  word-break: break-all;
}
.tx-hash a { color: var(--or); border-bottom: 1px dashed rgba(247,147,26,0.3); }
.tx-hash a:hover { border-bottom-color: var(--or); }

/* ═══════════════════════════════════════════════
   LOCK STATUS / BADGES
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.badge-lock   { background: rgba(255,77,106,0.1); border: 1px solid rgba(255,77,106,0.35); color: var(--red); }
.badge-unlock { background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.3); color: var(--green); }
.badge-or     { background: var(--or-dim); border: 1px solid var(--border2); color: var(--or); }

/* ═══════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════ */
.countdown-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 12px 0;
}
.cd-unit {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; text-align: center;
  min-width: 72px;
}
.cd-num {
  font-family: var(--mono); font-size: 28px; font-weight: 700;
  color: var(--or); line-height: 1;
}
.cd-lbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text3); margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   ACTIVITY TABLE
═══════════════════════════════════════════════ */
.act-table { overflow: hidden; border-radius: var(--radius2); }
.act-head {
  display: grid; grid-template-columns: 100px 1fr 120px 100px;
  padding: 10px 20px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text3);
}
.act-row {
  display: grid; grid-template-columns: 100px 1fr 120px 100px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 13px; align-items: center;
  transition: background 0.1s;
}
.act-row:hover { background: var(--bg3); }
.act-row:last-child { border-bottom: none; }
.act-type { font-weight: 700; }
.act-type.dep  { color: var(--green); }
.act-type.wd   { color: var(--red); }
.act-type.lock { color: var(--or); }
.act-type.nom  { color: var(--purple); }
.act-type.ref  { color: var(--blue); }
.act-hash { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.act-hash a { color: var(--text2); transition: color 0.1s; }
.act-hash a:hover { color: var(--or); }
.act-amt { font-family: var(--mono); font-size: 12px; }
.act-time { font-family: var(--mono); font-size: 10px; color: var(--text3); }
.act-empty {
  padding: 40px; text-align: center;
  font-family: var(--mono); font-size: 12px; color: var(--text3);
}

/* ═══════════════════════════════════════════════
   TIER DISPLAY
═══════════════════════════════════════════════ */
.tier-bar { margin: 16px 0; }
.tier-track {
  height: 6px; border-radius: 3px;
  background: var(--bg2); overflow: hidden; margin-bottom: 6px;
}
.tier-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--or2), var(--or3));
  transition: width 0.6s ease;
}
.tier-info {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--text3);
}

/* ═══════════════════════════════════════════════
   REFERRAL BOX
═══════════════════════════════════════════════ */
.ref-link-box {
  display: flex; gap: 8px; align-items: stretch;
  background: var(--bg1); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px;
}
.ref-link-input {
  flex: 1; background: transparent; border: none;
  padding: 12px 16px; color: var(--or);
  font-family: var(--mono); font-size: 12px;
  outline: none;
}
.ref-copy-btn {
  padding: 0 18px; background: var(--or); color: #000;
  border: none; font-family: var(--display); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; cursor: pointer;
  transition: background 0.15s;
}
.ref-copy-btn:hover { background: var(--or3); }

/* ═══════════════════════════════════════════════
   NOMINATION CARDS
═══════════════════════════════════════════════ */
.nom-card {
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px;
}
.nom-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nom-info { flex: 1; }
.nom-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.nom-desc { font-size: 12px; color: var(--text2); }
.nom-addr { font-family: var(--mono); font-size: 10px; color: var(--text3); margin-top: 2px; }
.nom-actions { display: flex; align-items: center; gap: 10px; }
.vote-count {
  font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--or);
  min-width: 36px; text-align: center;
}
.vote-lbl { font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); text-align: center; }

/* ═══════════════════════════════════════════════
   GATE OVERLAY
═══════════════════════════════════════════════ */
.gate {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5,7,9,0.95);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 24px;
}
.gate.hide { display: none; }
.gate-ico { font-size: 64px; }
.gate-title { font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--or); }
.gate-sub { font-family: var(--mono); font-size: 13px; color: var(--text2); max-width: 380px; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PAGE SECTIONS
═══════════════════════════════════════════════ */
.section { display: none; }
.section.active { display: block; }

/* ═══════════════════════════════════════════════
   AUDIO TOGGLE
═══════════════════════════════════════════════ */
.audio-btn {
  position: fixed; bottom: 24px; left: calc(var(--sidebar-w) + 24px);
  z-index: 150;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.audio-btn:hover { border-color: var(--or); background: var(--or-dim); }

/* ═══════════════════════════════════════════════
   WELCOME PAGE (index.html)
═══════════════════════════════════════════════ */
.landing { position: relative; z-index: 1; }

.hero-section {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 60px; text-align: center;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--or); margin-bottom: 24px;
  border: 1px solid var(--border2); padding: 6px 20px; border-radius: 20px;
  background: var(--or-dim); display: inline-block;
}
.hero-shield {
  width: 140px; height: 160px; margin: 0 auto 32px;
  position: relative; animation: hero-float 5s ease-in-out infinite;
}
@keyframes hero-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
.hero-title {
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -1px; margin-bottom: 20px;
}
.hero-title .accent { color: var(--or); }
.hero-title .dim { color: var(--text3); font-weight: 400; }
.hero-tagline {
  font-size: 18px; color: var(--text2); max-width: 560px;
  line-height: 1.6; margin: 0 auto 44px;
  font-weight: 500;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; justify-content: center;
  flex-wrap: wrap; margin-top: 72px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-size: 34px; font-weight: 800; color: var(--or);
  font-family: var(--mono);
}
.hero-stat-lbl {
  font-size: 11px; color: var(--text3); letter-spacing: 2px;
  text-transform: uppercase; margin-top: 4px;
}

/* Features section */
.features-section {
  padding: 80px 24px;
  max-width: 1100px; margin: 0 auto;
}
.features-title {
  text-align: center; font-size: 36px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 8px;
}
.features-title span { color: var(--or); }
.features-sub {
  text-align: center; font-family: var(--mono); font-size: 12px;
  color: var(--text3); letter-spacing: 2px; margin-bottom: 48px;
}
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.feat-card {
  padding: 28px;
  position: relative; overflow: hidden;
}
.feat-ico {
  font-size: 36px; margin-bottom: 16px;
  display: block;
}
.feat-title {
  font-size: 18px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 8px; color: var(--text);
}
.feat-desc {
  font-size: 14px; color: var(--text2); line-height: 1.65;
}
.feat-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px;
  background: var(--or-dim); color: var(--or);
  border: 1px solid var(--border2);
}

/* Footer */
.landing-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--mono); font-size: 11px; color: var(--text4);
  letter-spacing: 1px;
}
.landing-footer span { color: var(--or); }

/* ═══════════════════════════════════════════════
   REWARDS PAGE TIERS
═══════════════════════════════════════════════ */
.tier-cards {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
  margin-bottom: 24px;
}
.tier-card {
  padding: 18px 16px; text-align: center;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: var(--glass); cursor: default;
  transition: all 0.2s;
}
.tier-card.current {
  border-color: var(--or);
  box-shadow: 0 0 24px var(--or-glow);
  background: var(--or-dim);
}
.tier-ico  { font-size: 32px; margin-bottom: 8px; }
.tier-name {
  font-weight: 800; font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 4px;
}
.tier-pts  { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.tier-pts span { color: var(--text2); }

/* ═══════════════════════════════════════════════
   SETTINGS
═══════════════════════════════════════════════ */
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-key { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.settings-val { font-family: var(--mono); font-size: 11px; color: var(--text3); }

/* Toggle switch */
.toggle {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 12px; cursor: pointer; transition: all 0.2s;
}
.toggle-slider::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text3); transition: all 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--or-dim); border-color: var(--or); }
.toggle input:checked + .toggle-slider::after { background: var(--or); transform: translateX(20px); }

/* ═══════════════════════════════════════════════
   WALLET REQUIRED PANEL
═══════════════════════════════════════════════ */
.wallet-req-panel {
  background: var(--bg2); border: 1px solid rgba(255,77,106,0.3);
  border-radius: var(--radius2); padding: 32px;
  text-align: center; display: none; max-width: 460px; margin: 0 auto;
}
.wallet-req-panel.show { display: block; }
.wallet-req-panel h3 { color: var(--red); font-size: 18px; letter-spacing: 1px; margin-bottom: 10px; }
.wallet-req-panel p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.wallet-req-panel a { color: var(--or); border-bottom: 1px solid var(--border2); }

/* ═══════════════════════════════════════════════
   ERROR PANEL
═══════════════════════════════════════════════ */
.err-panel {
  background: rgba(255,77,106,0.06); border: 1px solid rgba(255,77,106,0.25);
  border-radius: var(--radius); padding: 14px 18px;
  display: none; margin-top: 14px;
}
.err-panel.show { display: block; }
.err-title { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--red); margin-bottom: 4px; }
.err-msg   { font-size: 13px; color: var(--text2); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main-wrap { margin-left: 0; padding: 16px; }
  .tier-cards { grid-template-columns: repeat(2,1fr); }
  .act-head, .act-row { grid-template-columns: 80px 1fr 80px; }
  .act-time { display: none; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 42px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .dur-grid  { grid-template-columns: repeat(2,1fr); }
}
