/* ==========================================
   NIMBOUNTY V2 - VERBATIM MAIN DESIGN SYSTEM
   ========================================== */

:root {
  --bg:           #f5f3ef;
  --bg-subtle:    #ebe7de;
  --card:        #ffffff;
  --card-subtle: #faf8f4;
  --ink:         #1a1917;
  --muted:       #6e6a61;
  --border:      #e2ded4;
  --border-dark: #2a2926;
  
  --accent:      #1a1917;
  
  /* Rich Nimiq Gold Colors */
  --gold:        #d99b00;
  --gold-dark:   #b88300;
  --gold-tint:   #fef9eb;
  --gold-border: rgba(217, 155, 0, 0.35);
  
  --g:           #1a7a4a;
  --gl:          #e8f5ee;
  --purple:      #7a3a9a;
  --purple-tint: #f6edf9;
  --danger:      #dc2626;
  --emerald:     #1a7a4a;
  
  --r-btn:       999px;
  --r-card:      18px;
  --r-box:       12px;
  
  --shadow-sm:   0 2px 8px rgba(26, 25, 23, 0.04);
  --shadow-card: 0 8px 30px rgba(26, 25, 23, 0.06);
  --shadow-hover: 0 16px 40px rgba(26, 25, 23, 0.12);
  --gold-glow:   0 0 20px rgba(217, 155, 0, 0.25);
  --font-mono:   'Geist Mono', monospace;
}

[data-theme="dark"] {
  --bg:           #0f0e0c;
  --bg-subtle:    #181714;
  --card:        #1c1b18;
  --card-subtle: #24221e;
  --ink:         #f7f5f0;
  --muted:       #a39e93;
  --border:      #33302a;
  --border-dark: #444038;
  
  --accent:      #ffb800;
  
  --gold:        #ffc107;
  --gold-dark:   #ffd54f;
  --gold-tint:   #2b2413;
  --gold-border: rgba(255, 193, 7, 0.3);
  
  --g:           #22c55e;
  --gl:          #0f2d1c;
  --purple:      #c084fc;
  --purple-tint: #2c163b;
  --danger:      #ff4d4f;
  --emerald:     #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

/* Toast Notifications Container — Bottom Positioned */
.toast-container {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}

.toast-msg {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(245, 243, 239, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 14, 12, 0.96);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.logo-svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.nav-center-links {
  display: flex;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--r-btn);
  border: 1px solid var(--border);
}

.nav-link-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link-btn:hover {
  color: var(--ink);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

textarea {
  resize: none !important;
  font-family: inherit;
}

.btn-primary-sm {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 20px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-sm:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-ghost-sm {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallet-dot {
  width: 7px;
  height: 7px;
  background: var(--g);
  border-radius: 50%;
}

/* ─────────────────────────────────────────
   HERO SECTION (VERBATIM MAIN PROJECT)
───────────────────────────────────────── */
.hero-section {
  padding: 36px 20px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, var(--gold-tint) 0%, var(--bg) 80%);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: var(--r-btn);
  margin-bottom: 24px;
}

.tag-pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

.hero-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 18px;
}

.serif-italic {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
}

.typewriter-cursor {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  color: var(--gold);
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Process Flow Pills */
.flow-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--muted);
}

.flow-pill.active {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 600;
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
}

.flow-arrow {
  color: var(--border-dark);
  font-size: 1rem;
}

/* Hero Action Buttons */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-primary-lg {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-lg:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary-lg {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-lg:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Stats Card Ribbon Container (VERBATIM FLEX RIBBON) */
.stats-card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-family: 'Geist Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.stats-subcaption {
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ─────────────────────────────────────────
   SECTIONS & HOW IT WORKS (Step Cards)
───────────────────────────────────────── */
.section-padded {
  padding: 28px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.bg-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Steps List (One Card Per Line, Full Screen Width) */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.step-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gold-tint);
  color: var(--gold-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0;
  border: 1.5px solid var(--gold-border);
  flex-shrink: 0;
}

.step-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-text);
  font-weight: 800;
  margin-bottom: 4px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ─────────────────────────────────────────
   BUILT-IN PROTECTIONS (2x2 SVG Icon Cards)
───────────────────────────────────────── */
.protections-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .protections-grid { grid-template-columns: 1fr; }
}

.protection-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.protection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-emerald { background: var(--gl); color: var(--g); }
.icon-purple { background: var(--purple-tint); color: var(--purple); }
.icon-gold { background: var(--gold-tint); color: var(--gold); }

.prot-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.prot-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   FAQ ACCORDION SECTION
───────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-toggle {
  font-family: 'Geist Mono', monospace;
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Bottom CTA Banner */
.bottom-cta-banner {
  background: var(--card-subtle);
  border-top: 1px solid var(--border);
  color: var(--ink);
  padding: 70px 20px;
  text-align: center;
}

@keyframes spinIcon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-icon {
  animation: spinIcon 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Wallet Gate Universal Blur Utilities */
.app-blur-locked {
  filter: blur(12px) opacity(0.25) grayscale(0.6) !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.nav-blur-locked {
  filter: blur(8px) opacity(0.3) !important;
  pointer-events: none !important;
  transition: filter 0.3s ease;
}

.banner-content {
  max-width: 600px;
  margin: 0 auto;
}

.banner-content h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.banner-content p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* Console Main & Filter Controls */
.console-main {
  max-width: 1100px;
  margin: 16px auto 24px;
  padding: 0 24px;
}

/* Console Session / Wallet Header Card (Sticky Static at top) */
.console-header-paper, .console-session-bar {
  position: sticky;
  top: 64px;
  z-index: 995;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.session-wallet-info, .session-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.session-avatar, .session-avatar-dot {
  width: 44px;
  height: 44px;
  background: var(--gold-tint);
  border: 1.5px solid var(--gold-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.session-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-address, .session-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.session-role-badge, .session-mode-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-tint);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
  display: inline-block;
}

#session-nim-earned {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: inline-block;
}

.subtab-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.subtab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.subtab-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tab-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a1917;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  margin-left: 4px;
  min-width: 18px;
}

/* Filter Paper Card & Search Bar */
.filter-paper-card, .filter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box, .search-input-wrap {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within, .search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}

.search-box input, .search-input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
}

.search-box input::placeholder, .search-input-wrap input::placeholder {
  color: var(--muted);
}

.search-box svg {
  color: var(--gold);
  flex-shrink: 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group select, select.select-filter, #category-select, #sort-select {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.filter-group select:focus, select.select-filter:focus {
  border-color: var(--gold);
}

/* Bounties Grid */
.bounties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.bounty-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.bounty-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.bounty-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bounty-category-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-tint);
  padding: 4px 10px;
  border-radius: 8px;
}

.bounty-reward {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold);
}

.bounty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.bounty-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.bounty-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-paper {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-hover);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

.full-width {
  width: 100%;
}

.btn-icon-only {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.btn-icon-only:hover {
  background: var(--gold-tint);
  border-color: var(--gold-border);
  color: var(--gold);
}

.wallet-dot-mobile {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--emerald);
}

/* Mobile Media Queries */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px !important;
    -webkit-overflow-scrolling: touch;
  }

  .console-main {
    padding: 0 16px;
    margin: 12px auto 16px;
    padding-bottom: 10px !important;
  }

  .console-header-paper {
    top: 64px;
  }

  .page-view,
  #view-orders,
  #view-app {
    padding-bottom: 0 !important;
  }

  .desktop-only, .desktop-nav {
    display: none !important;
  }
  .mobile-only, .btn-icon-only.mobile-only {
    display: flex !important;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 99999;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }
  .mobile-bottom-tab {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: color 0.15s ease;
  }
  .mobile-bottom-tab.active {
    color: var(--gold);
  }
  .mode-center-tab {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ffc72c, #e5a400) !important;
    color: #1a1917 !important;
    font-weight: 900 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    top: -16px !important;
    box-shadow: 0 4px 16px rgba(229, 164, 0, 0.45), 0 0 0 5px var(--card) !important;
    border: none !important;
    flex: 0 0 56px !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .mode-center-tab:active {
    transform: scale(0.92) translateY(-14px);
  }
  .mode-center-tab svg {
    stroke: #1a1917 !important;
    width: 22px !important;
    height: 22px !important;
  }
  #view-app, #view-orders, #view-faq, #view-protections, #view-how-it-works, #view-registry {
    padding-bottom: 80px !important;
  }
  .toast-container {
    bottom: 80px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
  .stat-divider { display: none; }
  .stats-card-container { grid-template-columns: 1fr 1fr; gap: 16px; }
  .btn-primary-lg, .btn-secondary-lg { width: 100%; }
}

/* ─────────────────────────────────────────
   PROFILE PANEL SYSTEM
───────────────────────────────────────── */
#panel-profile {
  padding: 0 0 16px 0 !important;
  display: none;
}

.profile-card-xcrow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.profile-avatar-circle {
  width: 68px;
  height: 68px;
  background: var(--gold-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-border);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.profile-camera-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.profile-camera-badge:hover {
  background: var(--gold-tint);
  color: var(--gold);
}

.address-pill-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.address-pill-copy:hover {
  background: var(--gold-tint);
  color: var(--gold);
  border-color: var(--gold-border);
}

.profile-stats-bar-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stat-col {
  padding: 16px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-col:last-child {
  border-right: none;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Geist Mono', monospace;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.menu-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.menu-action-card:hover {
  background: var(--gold-tint);
  border-color: var(--gold-border);
  transform: translateX(3px);
}

.menu-action-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.menu-action-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.menu-action-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.menu-action-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  margin-left: auto;
  flex-shrink: 0;
  transition: color 0.18s;
}
.menu-action-card:hover .menu-action-arrow {
  color: var(--gold);
}

@media (max-width: 480px) {
  .profile-stats-bar-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-col:nth-child(2) {
    border-right: none;
  }
  .stat-col:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .stat-col:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

/* ─────────────────────────────────────────
   INFO PAGE VIEWS (How It Works, Protections, FAQ)
───────────────────────────────────────── */
.info-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.info-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 28px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.info-page-back:hover {
  background: var(--gold-tint);
  color: var(--gold);
  border-color: var(--gold-border);
}

/* Bottom Navigation Blur & Lock State when Wallet is Disconnected */
/* Guided Onboarding Tour Target Element Highlighting */
.tour-highlight {
  position: relative;
  z-index: 100002 !important;
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: 3px solid var(--gold) !important;
  outline-offset: 4px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 199, 44, 0.9), 0 0 50px rgba(255, 199, 44, 0.5) !important;
  animation: tourPulse 1.8s infinite ease-in-out;
  transition: all 0.3s ease;
}

@keyframes tourPulse {
  0%   { box-shadow: 0 0 20px rgba(255, 199, 44, 0.6), 0 0 40px rgba(255, 199, 44, 0.2); }
  50%  { box-shadow: 0 0 35px rgba(255, 199, 44, 0.95), 0 0 65px rgba(255, 199, 44, 0.5); }
  100% { box-shadow: 0 0 20px rgba(255, 199, 44, 0.6), 0 0 40px rgba(255, 199, 44, 0.2); }
}

/* Entire App View Blur & Lock State when Wallet is Disconnected */
.app-blur-locked {
  filter: blur(8px) grayscale(0.3) !important;
  opacity: 0.55 !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Onboarding Walkthrough — NO BLUR so highlighted UI features are completely crystal clear */
#onboarding-overlay {
  z-index: 300000 !important;
  background: rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
}

#onboarding-overlay .modal-paper {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 440px !important;
  z-index: 300005 !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--gold-border) !important;
  pointer-events: auto !important;
  transition: top 0.38s cubic-bezier(0.4,0,0.2,1) !important;
}

@media (max-width: 768px) {
  #onboarding-overlay .modal-paper {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 440px !important;
  z-index: 300005 !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--gold-border) !important;
  pointer-events: auto !important;
  transition: top 0.38s cubic-bezier(0.4,0,0.2,1) !important;
}
}

/* Remove extra bottom space on landing view */
#view-landing {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Landing Page Footer */
.landing-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 28px 20px 20px;
  color: var(--ink);
  margin-top: 20px;
  margin-bottom: 0 !important;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 360px;
}
.nav-blur-locked {
  filter: blur(5px) grayscale(0.4) !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-hackathon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: var(--r-btn);
  font-weight: 600;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: blink 1.2s infinite;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: var(--gold);
}

.btn-github-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-github-footer:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-network-badge {
  display: flex;
  align-items: center;
}
.nav-blur-locked {
  filter: blur(5px) grayscale(0.4) !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
  user-select: none !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-hackathon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: var(--r-btn);
  font-weight: 600;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: blink 1.2s infinite;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: var(--gold);
}

.btn-github-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-github-footer:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.net-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .navbar {
    height: 56px;
    padding: 0 16px;
  }
  .console-header-paper, .console-session-bar {
    top: 56px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
  }
}

/* ==========================================
   SMALL VIEWPORT & MOBILE RESPONSIVENESS (<380px & <480px)
   ========================================== */
html, body {
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 480px) {
  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    padding: 6px 4px max(6px, env(safe-area-inset-bottom)) 4px !important;
    gap: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-bottom-tab {
    padding: 6px 2px !important;
    min-width: 0 !important;
    font-size: 0.65rem !important;
    text-align: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-bottom-tab svg {
    width: 18px !important;
    height: 18px !important;
  }

  .bounty-card {
    padding: 14px 12px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .bounty-title {
    font-size: 1.05rem !important;
    word-break: break-word !important;
  }

  .bounty-desc {
    font-size: 0.82rem !important;
    word-break: break-word !important;
  }

  .bounty-card-header {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .section-padded {
    padding: 20px 12px !important;
  }
}

@media (max-width: 360px) {
  .mobile-bottom-tab {
    font-size: 0.58rem !important;
    letter-spacing: -0.02em !important;
  }
  .mobile-bottom-tab svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ==========================================
   UNIVERSAL MOBILE MODAL SCROLLING & FIXED NAV SAFEGUARDS
   ========================================== */
.modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 12px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-paper {
  max-height: calc(100vh - 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 9999 !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: var(--card) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08) !important;
  }

  .console-main {
    padding-bottom: 16px !important;
  }

  .modal-paper {
    max-height: calc(100vh - 16px) !important;
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
}
