@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   3M MINING OPERATIONS — PREMIUM LIGHT EDITION
   Light green canvas · white glass · emerald + amber accents
   ============================================================ */

:root {
  /* palette */
  --bg: #E9F4EC;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-2: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --primary: #10B981;
  --primary-2: #047857;
  --primary-dim: rgba(16, 185, 129, 0.14);
  --gold: #D97706;
  --gold-2: #B45309;
  --gold-dim: rgba(217, 119, 6, 0.12);
  --success: #16A34A;
  --danger: #DC2626;
  --warning: #D97706;
  --text: #0E2A1F;
  --muted: #557465;
  --faint: #8CA697;
  --border: rgba(16, 185, 129, 0.2);
  --hairline: rgba(14, 42, 31, 0.09);

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-blur: 18px;
  --sheen: rgba(255, 255, 255, 0.65);

  /* elevation — soft, green-tinted */
  --shadow-sm: 0 1px 2px rgba(14, 42, 31, 0.06), 0 4px 14px rgba(14, 42, 31, 0.07);
  --shadow-md: 0 2px 4px rgba(14, 42, 31, 0.05), 0 12px 32px rgba(14, 42, 31, 0.1);
  --shadow-lg: 0 4px 10px rgba(14, 42, 31, 0.06), 0 28px 64px rgba(14, 42, 31, 0.16);
  --glow-cyan: 0 0 28px rgba(16, 185, 129, 0.18);
  --glow-gold: 0 0 28px rgba(217, 119, 6, 0.16);

  /* type & shape */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 18px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 560px at 100% -8%, rgba(16, 185, 129, 0.16), transparent 62%),
    radial-gradient(820px 460px at -12% 38%, rgba(217, 119, 6, 0.08), transparent 62%),
    radial-gradient(700px 700px at 50% 120%, rgba(52, 211, 153, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: 'cv11', 'ss01';
  min-height: 100vh;
  padding-bottom: 100px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(16, 185, 129, 0.25); color: var(--text); }
h1, h2, h3, .sora { font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; }
i { font-style: normal; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.35), rgba(4, 120, 87, 0.35));
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(16, 185, 129, 0.55); background-clip: padding-box; }

/* ---------- LAYOUT ---------- */
.page { max-width: 600px; margin: 0 auto; padding: 20px 16px; }
.page-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.03em; }
.page-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; line-height: 1.55; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 28px 0 14px;
  color: var(--muted);
}
.section-title i { color: var(--primary); font-size: 0.95rem; }
.muted { color: var(--muted); }
.mint { color: var(--primary-2); }
.gold { color: var(--gold); }

/* ---------- GLASS SURFACE PRIMITIVES ---------- */
.card, .stat-card, .task-card, .pkg-card, .feature-card, .step-card, .auth-card, .streak-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4) 38%), var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--hairline);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--sheen);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::after, .pkg-card::after, .feature-card::after, .step-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover::after, .pkg-card:hover::after, .feature-card:hover::after, .step-card:hover::after { opacity: 1; }
.card:hover, .stat-card:hover, .pkg-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-lg), var(--glow-cyan), inset 0 1px 0 var(--sheen);
}

/* ---------- HEADER ---------- */
.apm-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(233, 244, 236, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--hairline);
}
.apm-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.apm-logo .coin {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(150deg, #6EE7B7 0%, #10B981 40%, #047857 100%);
  display: grid; place-items: center;
  color: #ffffff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 0, 0, 0.18);
}
.apm-logo .bolt { color: var(--gold); }
.header-right { display: flex; gap: 8px; align-items: center; }

.tier-badge {
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(85, 116, 101, 0.1); color: var(--muted);
  border: 1px solid rgba(85, 116, 101, 0.22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tier-badge.paid {
  background: linear-gradient(150deg, #FCD34D, #F59E0B 45%, #D97706);
  color: #3B2503; border: none;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.55);
}
.wallet-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.1); color: var(--primary-2);
  font-weight: 800; font-size: 0.8rem; font-variant-numeric: tabular-nums;
  border: 1px solid rgba(16, 185, 129, 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ---------- BOTTOM NAV ---------- */
.apm-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(233, 244, 236, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--hairline);
}
.apm-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 0.66rem; font-weight: 600; text-decoration: none;
  transition: color 0.25s var(--ease);
}
.apm-nav a i { font-size: 1.15rem; transition: transform 0.25s var(--ease); }
.apm-nav a:hover i { transform: translateY(-2px); }
.apm-nav a.active { color: var(--primary-2); }
.apm-nav a.active i { filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.5)); }
.apm-nav a.center .nav-bubble {
  width: 52px; height: 52px; border-radius: 18px;
  background: linear-gradient(150deg, #6EE7B7, #10B981 40%, #047857);
  display: grid; place-items: center;
  color: #ffffff; font-size: 1.35rem;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.55), inset 0 -2px 8px rgba(0, 0, 0, 0.18);
  margin-top: -28px; border: 4px solid var(--bg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.apm-nav a.center:hover .nav-bubble { transform: translateY(-3px) scale(1.04); }
.apm-nav a.center.active { color: var(--primary-2); }

/* ---------- CARDS ---------- */
.card { padding: 20px; margin-bottom: 16px; }

.hero-card {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.5) 45%),
    linear-gradient(135deg, #D8F3E4, #EAF8F0 58%, #FBF0D9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg), 0 0 48px rgba(16, 185, 129, 0.14), inset 0 1px 0 var(--sheen);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.hero-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 78% -10%, rgba(16, 185, 129, 0.2), transparent 60%),
    radial-gradient(300px 200px at 10% 110%, rgba(217, 119, 6, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-card::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  animation: hero-sheen 7s var(--ease) infinite;
  pointer-events: none;
}
@keyframes hero-sheen { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

.hero-label {
  font-size: 0.7rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.18em; font-weight: 700;
}
.hero-amount {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-2); margin: 8px 0;
  text-shadow: 0 2px 16px rgba(16, 185, 129, 0.25);
  font-variant-numeric: tabular-nums;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card { padding: 16px; }
.stat-value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.68rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: none; border-radius: 14px;
  font-weight: 800; font-size: 0.95rem; cursor: pointer;
  font-family: var(--font-body); letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease), opacity 0.15s;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%);
  opacity: 0.9; pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: none; }

.btn-primary {
  background: linear-gradient(150deg, #6EE7B7, #10B981 40%, #047857);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 8px rgba(0, 0, 0, 0.15); }
.btn-gold {
  background: linear-gradient(150deg, #FCD34D, #F59E0B 45%, #D97706);
  color: #3B2503;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.55), inset 0 -2px 8px rgba(0, 0, 0, 0.12);
}
.btn-gold:hover { box-shadow: 0 10px 32px rgba(217, 119, 6, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.55), inset 0 -2px 8px rgba(0, 0, 0, 0.12); }
.btn-danger {
  background: rgba(220, 38, 38, 0.08); color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.6); color: var(--text);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(16, 185, 129, 0.4); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 10px; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.input, .select {
  width: 100%; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { border-color: rgba(16, 185, 129, 0.4); }
.input:focus, .select:focus {
  outline: none; border-color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px var(--primary-dim), 0 0 24px rgba(16, 185, 129, 0.12);
}
.select option { background: var(--surface-solid); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge-mint { background: rgba(16, 185, 129, 0.1); color: var(--primary-2); border-color: rgba(16, 185, 129, 0.28); }
.badge-gold { background: rgba(217, 119, 6, 0.1); color: var(--gold); border-color: rgba(217, 119, 6, 0.28); }
.badge-red { background: rgba(220, 38, 38, 0.08); color: var(--danger); border-color: rgba(220, 38, 38, 0.25); }
.badge-amber { background: rgba(217, 119, 6, 0.1); color: var(--warning); border-color: rgba(217, 119, 6, 0.28); }
.badge-gray { background: rgba(85, 116, 101, 0.1); color: var(--muted); border-color: rgba(85, 116, 101, 0.2); }

/* ---------- TASK CARDS ---------- */
.task-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; margin-bottom: 12px;
  overflow: hidden;
  border-color: rgba(16, 185, 129, 0.18);
}
.task-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary), transparent);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.task-card:hover { border-color: rgba(16, 185, 129, 0.45); }
.task-card:hover::before { opacity: 1; }
.task-card:active { transform: scale(0.99); }
.task-card.claimed { opacity: 0.55; }
.task-card.locked .task-icon { background: rgba(85, 116, 101, 0.1); color: var(--muted); }

.task-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(16, 185, 129, 0.18), rgba(4, 120, 87, 0.12));
  color: var(--primary-2);
  display: grid; place-items: center; font-size: 1.2rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.task-info { flex: 1; min-width: 0; }
.task-title { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.task-desc { font-size: 0.78rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.task-reward {
  font-family: var(--font-display); font-weight: 800; color: var(--gold);
  font-size: 1rem; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(217, 119, 6, 0.2);
}

/* ---------- TOASTS ---------- */
#toast-container {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 99999; display: flex; flex-direction: column; gap: 8px;
  width: min(92vw, 420px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--hairline);
  border-top-color: rgba(255, 255, 255, 0.95);
  color: var(--text); font-weight: 600; font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.35s var(--ease);
}
.toast.leaving { opacity: 0; transform: translateY(-8px); transition: all 0.3s var(--ease); }
.toast.success { border-color: rgba(16, 185, 129, 0.4); } .toast.success i { color: var(--primary-2); }
.toast.gold { border-color: rgba(217, 119, 6, 0.4); } .toast.gold i { color: var(--gold); }
.toast.error { border-color: rgba(220, 38, 38, 0.35); } .toast.error i { color: var(--danger); }
.toast.info i { color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(14, 42, 31, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6) 40%),
    rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg); padding: 26px;
  width: 100%; max-width: 460px; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(16, 185, 129, 0.12);
  animation: pop 0.35s var(--ease);
}
@keyframes pop { from { transform: scale(0.94) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* ---------- MISC ---------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state i {
  font-size: 2.6rem; opacity: 0.5; display: block; margin-bottom: 14px;
  color: var(--primary); filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.35));
}
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(14, 42, 31, 0.15), transparent); margin: 18px 0; }
.list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 0.9rem;
}
.list-row:last-child { border-bottom: none; }

/* ============================================================
   3M CONSOLE LAYOUT — structural redesign
   ============================================================ */
body { padding-bottom: 24px; }

.ops-topbar {
  position: sticky; top: 0; z-index: 100; height: 76px;
  display: flex; align-items: center; gap: 28px; padding: 12px 32px;
  background: rgba(233, 244, 236, 0.75);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid var(--hairline);
}
.ops-topbar .apm-logo { min-width: 220px; }
.ops-topbar .apm-logo > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.ops-topbar .apm-logo small {
  margin-top: 5px; font-family: var(--font-body); font-size: 0.55rem;
  letter-spacing: 0.18em; color: var(--muted); font-weight: 700;
}
.ops-topbar .apm-logo b { color: var(--text); letter-spacing: -0.01em; }

.ops-status {
  display: flex; align-items: center; gap: 9px; margin-right: auto;
  color: var(--muted); font-size: 0.62rem; letter-spacing: 0.14em; font-weight: 800;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.7);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.ops-sidebar {
  position: fixed; top: 76px; bottom: 0; left: 0; width: 238px; z-index: 90;
  display: flex; flex-direction: column; padding: 28px 16px 20px;
  background: rgba(240, 248, 243, 0.68);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  border-right: 1px solid var(--hairline);
}
.sidebar-kicker {
  padding: 0 12px 16px; color: var(--faint);
  font-size: 0.58rem; letter-spacing: 0.16em; font-weight: 800;
}
.ops-sidebar nav { display: grid; gap: 5px; }
.ops-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-size: 0.78rem; font-weight: 700;
  border-left: 2px solid transparent;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ops-nav-item:hover { color: var(--text); background: rgba(16, 185, 129, 0.08); }
.ops-nav-item.active {
  color: var(--primary-2);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.03) 70%, transparent);
  border-left-color: var(--primary);
}
.nav-icon { width: 28px; text-align: center; font-size: 0.95rem; }

.sidebar-footer {
  display: flex; gap: 10px; align-items: center; margin-top: auto;
  padding: 14px 12px; color: var(--faint);
  border-top: 1px solid var(--hairline); font-size: 0.57rem; line-height: 1.5; letter-spacing: 0.08em;
}
.sidebar-footer i { color: var(--primary-2); font-size: 1.1rem; }
.sidebar-footer b { color: var(--muted); }

.ops-mobile-nav { display: none; }

.page { max-width: 1180px; padding: 36px 42px 60px; margin: 0 0 0 238px; }
.page-title { font-size: 2rem; letter-spacing: -0.04em; }
.page-sub { max-width: 720px; }
.card, .stat-card, .task-card, .pkg-card, .feature-card, .step-card { border-radius: 14px; }

/* machine bay — responsive equipment grid */
#task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#task-list .empty-state { grid-column: 1 / -1; }
.task-card { min-height: 154px; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: 1fr auto; align-items: start; gap: 8px 14px; padding: 20px; }
.task-card .task-icon { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 12px; }
.task-card .task-info { align-self: center; }
.task-card .claim-btn { grid-column: 2; justify-self: start; }
.task-title { font-family: var(--font-display); font-size: 0.92rem; }
.streak-card { max-width: 720px; }
.info-chips { max-width: 720px; }

@media (min-width: 900px) {
  .page > .hero-card { max-width: 720px; text-align: left; }
  .page > .hero-card .hero-actions { justify-content: flex-start; }
  .stats-grid { max-width: 760px; grid-template-columns: repeat(4, 1fr); }
  .quick-grid { max-width: 760px; }
}
@media (max-width: 899px) {
  body { padding-bottom: 82px; }
  .ops-topbar { height: 68px; padding: 10px 16px; gap: 10px; }
  .ops-topbar .apm-logo { min-width: 0; }
  .ops-topbar .apm-logo .coin { width: 34px; height: 34px; font-size: 0.75rem; }
  .ops-topbar .apm-logo small, .ops-status { display: none; }
  .ops-topbar .apm-logo > span:last-child { font-size: 1rem; }
  .ops-topbar .header-right { margin-left: auto; }
  .wallet-chip { padding: 6px 8px; font-size: 0.7rem; }
  .ops-sidebar { display: none; }
  .ops-mobile-nav {
    position: fixed; display: grid; grid-template-columns: repeat(4, 1fr);
    bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(233, 244, 236, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid var(--hairline);
  }
  .ops-mobile-nav .ops-nav-item { flex-direction: column; justify-content: center; gap: 4px; padding: 6px; font-size: 0.6rem; border: 0; }
  .ops-mobile-nav .nav-icon { width: auto; font-size: 1rem; }
  .ops-mobile-nav .active { background: rgba(16, 185, 129, 0.12); }
  .page { margin: 0; padding: 24px 16px 28px; }
  #task-list { grid-template-columns: 1fr; }
}

.console-heading {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 22px;
}
.console-heading .eyebrow {
  color: var(--primary-2); font-size: 0.65rem; letter-spacing: 0.14em; font-weight: 800;
  text-transform: uppercase;
}
@media (max-width: 899px) {
  .console-heading { display: block; }
  .console-heading > .btn { width: 100%; margin-top: 10px; }
}

/* ---------- THEME VARIANT EXTRAS ---------- */
.auth-logo .coin {
  border-radius: 11px;
  background: linear-gradient(150deg, #6EE7B7, #10B981 40%, #047857);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.55);
}
.auth-logo .bolt { color: var(--gold); }
.auth-card { border-color: rgba(16, 185, 129, 0.22); }

.bank-card {
  background:
    linear-gradient(160deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.5) 45%),
    linear-gradient(135deg, #D8F3E4, #EAF8F0 58%, #FBF0D9);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-top-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.12), inset 0 1px 0 var(--sheen);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}

.streak-card {
  background:
    linear-gradient(160deg, rgba(217, 119, 6, 0.09), transparent 50%),
    var(--glass-bg);
  border-color: rgba(217, 119, 6, 0.28);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}

.claim-btn {
  background: linear-gradient(150deg, #6EE7B7, #10B981 40%, #047857);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  color: #ffffff; font-weight: 800; border: none; border-radius: 10px;
  padding: 8px 16px; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.claim-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5); }
.claim-btn.done {
  background: rgba(16, 185, 129, 0.1); color: var(--primary-2);
  border: 1px solid rgba(16, 185, 129, 0.35); box-shadow: none;
}

.chip.mint { color: var(--primary-2); border-color: rgba(16, 185, 129, 0.3); }
.chip.gold { color: var(--gold); border-color: rgba(217, 119, 6, 0.3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
