
:root {

  --bg-page: #040406;
  --bg-sidebar: #010103;
  --bg-elevated: #09090e;
  --bg-surface: #0e0e16;
  --bg-inset: #060609;
  --bg-hover: rgba(124, 58, 237, 0.08);
  --bg-card: #09090e;


  --accent: #7c3aed;
  --accent-dim: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.45);
  --accent-bg: rgba(124, 58, 237, 0.08);
  --accent-bg-h: rgba(124, 58, 237, 0.14);


  --burn: #ff5a1f;
  --burn-dim: #e04b12;
  --burn-bg: rgba(255, 90, 31, 0.08);

  /* Semantic status colors */
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.08);
  --err: #ef4444;
  --err-bg: rgba(239, 68, 68, 0.08);

  /* Borders & Dividers */
  --border: rgba(124, 58, 237, 0.12);
  --border-s: rgba(124, 58, 237, 0.2);

  /* Typography */
  --t1: #f8fafc;
  --t2: #e2e8f0;
  --t3: #94a3b8;
  --t4: #64748b;
  --t5: #475569;

  /* Font Families */
  --sans: 'Outfit', 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* UI Tokens */
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1280px;
}

/* --- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hide scrollbars globally */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
*::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background: var(--bg-page);
  color: var(--t1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(75, 156, 245, 0.25);
}

/* --- Shell ------------------------------------------------------------- */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* --- Sidebar Layout ----------------------------------------------------- */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
  border: 1.5px solid rgba(124, 58, 237, 0.4);
}

.brand-name-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--t1);
  background: linear-gradient(135deg, var(--t1) 40%, rgba(124, 58, 237, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtext {
  font-size: 10px;
  font-weight: 600;
  color: var(--t4);
  letter-spacing: 1px;
}

.sidebar-brand .testnet-tag {
  align-self: flex-start;
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--t5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 8px 10px;
}

.nav-group-title:first-child {
  margin-top: 0;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t3);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.sidebar-nav .nav-item:hover {
  color: var(--t1);
  background: var(--bg-hover);
  border-color: rgba(124, 58, 237, 0.08);
}

.sidebar-nav .nav-item.active {
  color: var(--t1);
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: inset 0 0 12px rgba(124, 58, 237, 0.05);
}

.sidebar-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-nav .nav-item:hover .nav-icon {
  stroke: var(--accent);
}

.sidebar-nav .nav-item.active .nav-icon {
  stroke: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent-glow));
}

.sidebar-nav .nav-item.active .text-burn {
  stroke: var(--burn);
  filter: drop-shadow(0 0 4px var(--burn));
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 4, 6, 0.4);
}

.sidebar-footer .net-badge {
  background: rgba(124, 58, 237, 0.04);
  border-color: var(--border);
  font-weight: 500;
  align-self: flex-start;
}

.sidebar-version {
  font-size: 9.5px;
  color: var(--t5);
  font-family: var(--mono);
}

/* --- Container & Topbar Layout ------------------------------------------- */
.explorer-container {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.gas-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--t3);
  background: rgba(124, 58, 237, 0.04);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.gas-tracker-icon {
  color: var(--accent);
}

.gas-tracker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--t2);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* --- Dashboard Header & Large Search Box ---------------------------------- */
.dashboard-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.dashboard-header-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.dashboard-header-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--t1);
  margin-bottom: 8px;
}

.dashboard-subtitle {
  font-size: 13.5px;
  color: var(--t3);
  margin-bottom: 24px;
  max-width: 580px;
  line-height: 1.6;
}

.dashboard-search-wrap {
  width: 100%;
  max-width: 500px;
}

.dashboard-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 6, 9, 0.6);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  padding: 0 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-search-box:focus-within {
  border-color: var(--accent);
  background: rgba(6, 6, 9, 0.9);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dashboard-search-box .search-icn {
  color: var(--t4);
  width: 16px;
  height: 16px;
}

.dashboard-search-box:focus-within .search-icn {
  color: var(--accent);
}

#dash-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--t1);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 12px 0;
  width: 100%;
  letter-spacing: -0.1px;
}

#dash-search-input::placeholder {
  color: var(--t4);
}

.search-shortcut {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--t4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* --- Quest Promo Banner -------------------------------------------------- */
.quest-promo-banner {
  width: 320px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(93, 36, 182, 0.1) 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.quest-promo-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15), 0 0 15px rgba(124, 58, 237, 0.1);
}

.quest-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quest-badge {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.15);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 1px;
  align-self: flex-start;
  margin-bottom: 12px;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.quest-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 6px;
}

.quest-desc {
  font-size: 11.5px;
  color: var(--t3);
  line-height: 1.5;
  margin-bottom: 16px;
}

.quest-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.quest-action svg {
  transition: transform 0.2s ease;
}

.quest-promo-banner:hover .quest-action svg {
  transform: translateX(3px);
}

.quest-banner-glow {
  position: absolute;
  top: 30%;
  right: -30%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* --- Dashboard Hero Grid ------------------------------------------------- */
.dashboard-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(124, 58, 237, 0.05);
  transform: translateY(-1px);
}

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

.metric-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t4);
}

.metric-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-icon-wrapper.accent {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.15);
  color: var(--accent);
}

.metric-icon-wrapper.golden {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.15);
}

.metric-icon-wrapper.burn {
  background: rgba(255, 90, 31, 0.08);
  border-color: rgba(255, 90, 31, 0.15);
  color: var(--burn);
}

.metric-icon-wrapper.green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--ok);
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.metric-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--t4);
}

.metric-subtitle {
  font-size: 11px;
  color: var(--t4);
  margin-top: 6px;
}

.status-green {
  color: var(--ok);
  font-weight: 600;
}

.burn-value {
  color: var(--burn);
}

.burn-unit {
  color: var(--burn-dim);
}

/* --- Daily Transactions Sparkline Chart Card ----------------------------- */
.chart-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.chart-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chart-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t4);
}

.chart-info-icon {
  font-size: 11px;
  color: var(--t5);
  cursor: help;
  transition: color 0.15s;
}

.chart-info-icon:hover {
  color: var(--t3);
}

.chart-value-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chart-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.chart-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.chart-change.positive {
  color: var(--ok);
}

.chart-change.negative {
  color: var(--err);
}

.chart-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 90px;
  position: relative;
  margin-top: 10px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawLine 2.5s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.sparkline-pulse-circle {
  animation: pulseNode 2s infinite;
}

.sparkline-pulse-ring {
  transform-origin: 300px 10px;
  animation: rippleNode 2s infinite;
}

@keyframes pulseNode {
  0% { r: 4; opacity: 1; }
  50% { r: 5.5; opacity: 0.8; }
  100% { r: 4; opacity: 1; }
}

@keyframes rippleNode {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- Ecosystem NFT Tab System --------------------------------------------- */
.nft-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  padding-bottom: 1px;
}

.nft-tab-btn {
  background: none;
  border: none;
  color: var(--t4);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.nft-tab-btn:hover {
  color: var(--t2);
}

.nft-tab-btn.active {
  color: var(--accent);
}

.nft-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nft-tab-btn.active::after {
  transform: scaleX(1);
}

/* --- Marketplace Banner & Hero ------------------------------------------- */
.marketplace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(6, 6, 9, 0.4) 0%, rgba(12, 12, 16, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.market-hero-left h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 6px;
}

.market-hero-left p {
  font-size: 12.5px;
  color: var(--t3);
  line-height: 1.5;
  max-width: 600px;
}

.market-hero-right {
  display: flex;
  gap: 16px;
}

.market-stats-card {
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 120px;
}

.mstat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--t4);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mstat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--t2);
}

/* --- Marketplace Card Layout & Rarities ----------------------------------- */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.market-item-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.market-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.market-item-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-inset);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.market-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.market-item-card:hover .market-item-img {
  transform: scale(1.05);
}

.market-item-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.25;
}

.market-item-price-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(124, 58, 237, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--t1);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: -0.2px;
}

.market-item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.market-item-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 6px;
  line-height: 1.3;
}

.market-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--t4);
  margin-bottom: 12px;
}

.market-item-coll {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.market-item-id {
  font-family: var(--mono);
  font-weight: 600;
}

.market-item-seller {
  font-size: 11px;
  color: var(--t5);
  margin-top: auto;
  border-top: 1px dashed rgba(124, 58, 237, 0.08);
  padding-top: 8px;
}

/* Rarity Frames (Apply glowing shadows on hover) */
.market-item-card.common { border-color: rgba(100, 116, 139, 0.2); }
.market-item-card.rare { border-color: rgba(59, 130, 246, 0.35); }
.market-item-card.epic { border-color: rgba(168, 85, 247, 0.45); }
.market-item-card.legendary { border-color: rgba(234, 179, 8, 0.5); }

.market-item-card.rare:hover { box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.6); }
.market-item-card.epic:hover { box-shadow: 0 12px 24px rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.7); }
.market-item-card.legendary:hover { box-shadow: 0 12px 24px rgba(234, 179, 8, 0.25); border-color: rgba(234, 179, 8, 0.8); }

/* --- Developer Hub UI Panels --------------------------------------------- */
.developer-wallet-panel {
  background: linear-gradient(135deg, rgba(16, 16, 24, 0.4) 0%, rgba(8, 8, 12, 0.6) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.developer-wallet-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.dev-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 16px 8px;
}

.dev-hub-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dev-hub-info h3 {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.dev-hub-info p {
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.7;
  margin-bottom: 24px;
}

.dev-hub-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.spec-tag svg {
  opacity: 0.85;
}

.spec-tag.security {
  color: #10b981;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.spec-tag.security:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.spec-tag.speed {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.spec-tag.speed:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.spec-tag.burn {
  color: #c084fc;
  background: rgba(167, 139, 250, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.15);
}
.spec-tag.burn:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.3);
}

.dev-hub-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dev-link-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dev-link-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dev-link-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.dev-link-icon-box.js {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.dev-link-icon-box.rust {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.dev-link-icon-box.api {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.dev-link-details {
  display: flex;
  flex-direction: column;
}

.dev-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  font-family: var(--mono);
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.dev-link-desc {
  font-size: 11.5px;
  color: var(--t4);
}

.dev-link-card-right {
  color: var(--t5);
  opacity: 0.5;
  transform: translateX(0);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.dev-link-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

.dev-link-card:hover .dev-link-title {
  color: #c084fc;
}

.dev-link-card:hover .dev-link-icon-box.js {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.dev-link-card:hover .dev-link-icon-box.rust {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

.dev-link-card:hover .dev-link-icon-box.api {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.dev-link-card:hover .dev-link-card-right {
  opacity: 1;
  color: #c084fc;
  transform: translateX(4px);
}

/* --- Marketplace Detail Cards -------------------------------------------- */
.nft-market-detail-card {
  background: rgba(124, 58, 237, 0.04);
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nft-market-detail-card.listed {
  background: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.15);
}

.nmd-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.listed .nmd-status {
  color: var(--ok);
}

.nmd-desc {
  font-size: 12.5px;
  color: var(--t3);
  line-height: 1.5;
}

.nmd-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nmd-price-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -0.5px;
}

.nmd-price-denom {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.listed .nmd-price-denom {
  color: var(--ok);
}

.nmd-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nmd-input-row input {
  background: var(--bg-inset);
  border: 1px solid var(--border-s);
  border-radius: var(--radius-sm);
  color: var(--t1);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  flex: 1;
  transition: border-color 0.2s;
}

.nmd-input-row input:focus {
  border-color: var(--accent);
}

.nmd-action-btn {
  background: var(--accent);
  border: none;
  color: var(--t1);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nmd-action-btn:hover {
  background: var(--accent-dim);
}

.nmd-action-btn.cancel {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--err);
  align-self: flex-start;
}

.nmd-action-btn.cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.nmd-action-btn.buy.glow {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.nmd-action-btn.buy.glow:hover {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
}

.nmd-status-msg {
  font-size: 12px;
  font-weight: 500;
}

.nmd-status-msg.error { color: var(--err); }
.nmd-status-msg.success { color: var(--ok); }
.nmd-status-msg.loading { color: var(--t3); }

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 6, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Main content
   ========================================================================== */
#main {
  flex: 1;
  padding: 28px 0 56px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeUp 0.22s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   KPI Grid — the overview metrics
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.kpi-grid--compact {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
}

.kpi {
  background: var(--bg-elevated);
  padding: 18px 20px 16px;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t5);
}

.kpi-icon {
  color: var(--n-500);
}

.kpi-val {
  display: block;
  font-size: 22px;
  font-weight: 650;
  color: var(--t1);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  min-height: 27px;
}

.kpi-sub {
  display: block;
  font-size: 11px;
  color: var(--t5);
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.kpi--burn .kpi-val {
  color: var(--burn);
}

.kpi--burn .kpi-label {
  color: var(--burn-dim);
}

/* Skeleton loading */
.skel {
  display: inline-block;
  width: 80px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--n-800) 25%, var(--n-750) 50%, var(--n-800) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite ease-in-out;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   Panels — the main content containers
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.split .panel {
  margin-bottom: 0;
}

.panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: -0.1px;
}

.panel-link {
  font-size: 12px;
  font-weight: 450;
  color: var(--t5);
  transition: color 0.12s;
  cursor: pointer;
}

.panel-link:hover {
  color: var(--accent);
}

.panel-body {}

/* Placeholder / empty state */
.placeholder {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--t5);
}

.placeholder--disconnected {
  color: var(--err);
}

/* ==========================================================================
   Row items — dashboard list entries
   ========================================================================== */
.row {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  cursor: pointer;
}

.row:last-child {
  border-bottom: none;
}

.row:hover {
  background: var(--bg-hover);
}

.row-tag {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: -0.3px;
}

.row-tag--blk {
  background: var(--accent-bg);
  color: var(--accent);
}

.row-tag--tx {
  background: rgba(139, 122, 240, 0.07);
  color: #8b7af0;
}

.row-tag--burn {
  background: var(--burn-bg);
  color: var(--burn);
  font-size: 13px;
}

.row-mid {
  flex: 1;
  min-width: 0;
}

.row-primary {
  font-size: 13px;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.3;
}

.row-secondary {
  font-size: 11.5px;
  color: var(--t5);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-end {
  text-align: right;
  flex-shrink: 0;
}

.row-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--t3);
  font-variant-numeric: tabular-nums;
}

.row-val--burn {
  color: var(--burn);
}

.row-time {
  font-size: 11px;
  color: var(--t5);
  margin-top: 1px;
}

/* Badge */
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag--ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.tag--err {
  background: var(--err-bg);
  color: var(--err);
}

/* ==========================================================================
   Tables — full list views
   ========================================================================== */
.pg-head {
  margin-bottom: 20px;
}

.pg-title {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  color: var(--t1);
}

.pg-desc {
  font-size: 13px;
  color: var(--t4);
  margin-top: 4px;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t5);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-s);
  background: var(--bg-surface);
}

.tbl td {
  padding: 11px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--t3);
  vertical-align: middle;
}

.tbl tbody tr {
  transition: background 0.08s;
  cursor: pointer;
}

.tbl tbody tr:hover {
  background: var(--bg-hover);
}

.tbl tbody tr:last-child td {
  border-bottom: none;
}

.tbl .text-r {
  text-align: right;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.3px;
}

.trunc {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

.c-accent {
  color: var(--accent);
}

.c-burn {
  color: var(--burn);
}

.c-dim {
  color: var(--t5);
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

/* ==========================================================================
   Detail view
   ========================================================================== */
#detail-root {
  max-width: 760px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--t4);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color 0.12s;
  background: none;
  border: none;
  font-family: var(--sans);
}

.back-btn:hover {
  color: var(--accent);
}

.detail-title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.dl-grid {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dl-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--border);
}

.dl-row:last-child {
  border-bottom: none;
}

.dl-label {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t5);
  background: var(--bg-surface);
}

.dl-value {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--t2);
  word-break: break-all;
}

/* ==========================================================================
   Testnet Banner
   ========================================================================== */
.testnet-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 16px;
  text-align: center;
  font-size: 12px;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.testnet-banner-icon {
  font-size: 14px;
}

/* ==========================================================================
   Wallet Button
   ========================================================================== */
.wallet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(75, 156, 245, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.wallet-btn:hover {
  background: var(--accent-bg-h);
  border-color: rgba(75, 156, 245, 0.35);
}

.wallet-btn.connected {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: rgba(61, 186, 122, 0.25);
}

.wallet-btn.connected.sandbox {
  color: var(--burn);
  background: var(--burn-bg);
  border-color: rgba(255, 90, 31, 0.25);
}

/* Wallet dropdown */
.wallet-wrap {
  position: relative;
}

.wallet-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  padding: 4px;
  z-index: 400;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: ddFadeIn 0.15s ease;
}

.wallet-dropdown.open {
  display: block;
}

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wallet-dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--t2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 450;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}

.wallet-dd-item:hover {
  background: var(--bg-hover);
  color: var(--t1);
}

.wallet-dd-item--danger:hover {
  background: var(--err-bg);
  color: var(--err);
}

.wallet-dd-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.wallet-dd-item:hover svg {
  opacity: 1;
}

/* ==========================================================================
   Mobile Wallet Modal
   ========================================================================== */
.wallet-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wallet-modal-overlay.open {
  display: flex;
}

.wallet-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-s);
  border-radius: 12px;
  padding: 28px 24px 24px;
  max-width: 380px;
  width: 100%;
  animation: ddFadeIn 0.2s ease;
}

.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-modal-title {
  font-size: 17px;
  font-weight: 650;
  color: var(--t1);
  letter-spacing: -0.3px;
}

.wallet-modal-close {
  background: none;
  border: none;
  color: var(--t4);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}

.wallet-modal-close:hover {
  color: var(--t1);
  background: var(--bg-hover);
}

.wallet-modal-desc {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.6;
  margin-bottom: 20px;
}

.wallet-modal-desc strong {
  color: var(--t1);
}

.wallet-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}

.wallet-modal-btn:active {
  transform: scale(0.98);
}

.wallet-modal-btn--primary {
  background: linear-gradient(135deg, #4b9cf5, #3a7cc7);
  color: #fff;
}

.wallet-modal-btn--primary:hover {
  opacity: 0.9;
}

/* WalletConnect modal states */
.wm-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 12px;
}

.wm-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: wmSpin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes wmSpin {
  to { transform: rotate(360deg); }
}

.wm-status {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 6px;
}

.wm-substatus {
  font-size: 12.5px;
  color: var(--t4);
}

.wm-error {
  text-align: center;
  padding: 12px 0 4px;
}

.wm-error-text {
  font-size: 13px;
  color: var(--err);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Wallet picker grid */
.wm-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wm-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 14px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wm-section-title:first-of-type {
  margin-top: 0;
}

.sandbox-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid rgba(16, 185, 129, 0.20);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wm-alt-details {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(4, 4, 6, 0.2);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.wm-alt-details[open] {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: inset 0 0 12px rgba(124, 58, 237, 0.04);
}

.wm-alt-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}

.wm-alt-summary::-webkit-details-marker {
  display: none;
}

.wm-alt-summary:hover {
  color: var(--t1);
  background: rgba(124, 58, 237, 0.04);
}

.wm-alt-caret {
  color: var(--t4);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s;
}

.wm-alt-summary:hover .wm-alt-caret {
  color: var(--t1);
}

.wm-alt-details[open] .wm-alt-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.wm-alt-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: rgba(1, 1, 3, 0.4);
}

.wm-wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-s);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  font-family: var(--sans);
}

.wm-wallet-option:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.wm-wallet-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wm-wallet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wm-wallet-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
}

.wm-wallet-desc {
  font-size: 11.5px;
  color: var(--t4);
  font-weight: 400;
}

.wm-wallet-arrow {
  color: var(--t4);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.wm-wallet-option:hover .wm-wallet-arrow {
  opacity: 1;
}

/* Install flow */
.wm-install {
  text-align: center;
  padding: 12px 0 4px;
}

.wm-install-text {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 16px;
  line-height: 1.5;
}


/* ==========================================================================
   KPI Coin Icon
   ========================================================================== */
.kpi-coin-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Faucet Page
   ========================================================================== */
.faucet-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  text-align: center;
}

.faucet-icon-wrap {
  margin-bottom: 16px;
}

.faucet-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.25);
}

.faucet-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}

.faucet-sub {
  font-size: 13px;
  color: var(--t4);
  margin-bottom: 28px;
}

.faucet-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.faucet-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--n-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.faucet-input-wrap:focus-within {
  border-color: var(--accent-dim);
}

.faucet-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--t1);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 14px;
  width: 100%;
}

.faucet-input::placeholder {
  color: var(--t5);
}

.faucet-use-wallet {
  background: none;
  border: none;
  color: var(--t4);
  cursor: pointer;
  padding: 10px 12px;
  transition: color 0.15s;
}

.faucet-use-wallet:hover {
  color: var(--accent);
}

.faucet-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.faucet-btn:hover {
  opacity: 0.9;
}

.faucet-btn:active {
  transform: scale(0.98);
}

.faucet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.faucet-result {
  min-height: 20px;
  font-size: 12.5px;
  margin-top: 4px;
}

.faucet-result.success {
  color: var(--ok);
}

.faucet-result.error {
  color: var(--err);
}

.faucet-result.loading {
  color: var(--t4);
}

.faucet-info {
  margin-top: 28px;
  text-align: left;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.faucet-info h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faucet-info ul {
  list-style: none;
  padding: 0;
}

.faucet-info li {
  font-size: 12.5px;
  color: var(--t4);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.faucet-info li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--t5);
}

.faucet-info a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Profile Page
   ========================================================================== */
.profile-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-s);
  border-radius: var(--radius);
  padding: 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-addr {
  font-size: 13px;
  color: var(--t3);
  word-break: break-all;
  margin-bottom: 4px;
}

.profile-balance {
  font-size: 14px;
}

.profile-meta-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--t5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-meta-val {
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
}

.profile-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
}

.profile-tag--sent {
  background: rgba(224, 85, 85, 0.12);
  color: #e05555;
}

.profile-tag--recv {
  background: rgba(61, 186, 122, 0.12);
  color: #3dba7a;
}

.nav-profile {
  color: var(--accent) !important;
}

.fw-700 {
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
  border-top: 1px solid var(--border);
  padding: 16px 0 12px;
}

.ftr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--t5);
}

.ftr-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ftr-brand {
  font-weight: 550;
  color: var(--t4);
}

.ftr-sep {
  color: var(--n-600);
}

.ftr-coin {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.ftr-testnet-label {
  color: #f59e0b;
  font-weight: 500;
  font-size: 11px;
}

.ftr-disclaimer {
  font-size: 10.5px;
  color: var(--n-500);
  margin-top: 8px;
  text-align: center;
}

/* ==========================================================================
   Hamburger & Mobile Nav
   ========================================================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
  z-index: 310;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--t3);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }



/* Mobile search */
.mobile-search {
  display: none;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.mobile-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--n-800);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
}

.mobile-search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--t1);
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 0;
  width: 100%;
}

.mobile-search-box input::placeholder { color: var(--t5); }
.mobile-search-box svg { color: var(--t5); flex-shrink: 0; }

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Responsive — Small tablet
   ========================================================================== */
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 180px;
  }

  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-grid--compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .dl-row {
    grid-template-columns: 130px 1fr;
  }
}

/* ==========================================================================
   Responsive — Mobile (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --hdr-h: 58px;
  }

  .hamburger {
    display: flex;
  }

  .mobile-search {
    display: block;
  }

  /* Hide desktop search */
  .search-box {
    display: none;
  }



  .nav-item {
    font-size: 15px;
    padding: 14px 16px;
    border-radius: var(--radius);
    width: 100%;
  }

  .nav-item.active {
    background: var(--accent-bg);
    color: var(--accent);
  }

  /* Header adjustments */
  .hdr-inner {
    gap: 12px;
    padding: 0 16px;
  }

  .brand-label, .brand-sep { display: none; }

  .brand {
    gap: 8px;
  }

  .brand-text {
    font-size: 14px;
  }

  .net-badge { display: none; }

  .wallet-btn span { display: none; }
  .wallet-btn { padding: 9px 11px; }

  .testnet-tag {
    font-size: 8.5px;
    padding: 2px 5px;
  }

  /* Main */
  .shell { padding: 0 16px; }
  #main { padding: 16px 0 36px; }

  /* KPI */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 16px;
  }

  .kpi-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpi {
    padding: 14px 16px 12px;
  }

  .kpi-val {
    font-size: 18px;
  }

  .kpi-label {
    font-size: 10px;
  }

  /* Rows */
  .row {
    padding: 12px 14px;
    gap: 10px;
  }

  .row-tag {
    width: 32px;
    height: 32px;
    font-size: 10px;
    border-radius: 6px;
  }

  .row-primary { font-size: 12.5px; }
  .row-secondary { font-size: 11px; }
  .row-val { font-size: 12px; }
  .row-time { font-size: 10px; }

  /* Panel */
  .panel { border-radius: var(--radius-sm); margin-bottom: 12px; }
  .panel-hd { padding: 12px 14px; }
  .panel-title { font-size: 12.5px; }
  .panel-link { font-size: 11px; }

  /* Tables */
  .tbl th, .tbl td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .trunc { max-width: 100px; }

  /* Detail */
  .dl-row {
    grid-template-columns: 1fr;
  }

  .dl-label {
    padding: 10px 14px 4px;
    background: transparent;
    font-size: 11px;
  }

  .dl-value {
    padding: 2px 14px 12px;
    font-size: 12.5px;
  }

  #detail-root { max-width: 100%; }
  .detail-title { font-size: 16px; }

  /* Pages */
  .pg-title { font-size: 17px; }
  .pg-desc { font-size: 12px; }

  /* Faucet */
  .faucet-card {
    padding: 28px 20px 24px;
  }

  .faucet-amount { font-size: 24px; }
  .faucet-icon { width: 52px; height: 52px; }
  .faucet-input { font-size: 12px; padding: 11px 12px; }
  .faucet-btn { padding: 12px 16px; font-size: 13px; }

  /* Profile */
  .profile-card { padding: 20px; }
  .profile-header { gap: 14px; flex-wrap: wrap; }
  .profile-addr { font-size: 11.5px; }
  .profile-meta-grid { gap: 16px; }

  /* Footer */
  .ftr-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .ftr-disclaimer { font-size: 10px; }

  /* Testnet banner */
  .testnet-banner { font-size: 11px; padding: 5px 12px; }
}

/* ==========================================================================
   Responsive — Small phone (<= 440px)
   ========================================================================== */
@media (max-width: 440px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-val { font-size: 16px; }
  .kpi { padding: 12px 14px 10px; }

  .row-tag { width: 28px; height: 28px; font-size: 9px; border-radius: 5px; }
  .row { gap: 8px; padding: 10px 12px; }

  .brand-text { font-size: 13px; }
  .brand-icon-img { width: 24px; height: 24px; }

  .profile-header { flex-direction: column; align-items: flex-start; }
  .profile-meta-grid { flex-direction: column; gap: 12px; }
}

/* ==========================================================================
   Responsive — Ultra small (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .shell { padding: 0 12px; }
  .hdr-inner { padding: 0 12px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-grid--compact { grid-template-columns: 1fr; }
  .faucet-card { padding: 20px 16px; }
  .mobile-search-box { padding: 0 10px; }
}

/* ==========================================================================
   Staking UI
   ========================================================================== */

.staking-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.staking-stat-card {
  background: var(--n-750);
  border: 1px solid var(--n-600);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.staking-stat-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.staking-stat-label {
  font-size: 12px;
  color: var(--c-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.staking-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.staking-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.staking-claim-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.staking-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.staking-connect-btn {
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.staking-connect-btn:hover {
  opacity: 0.9;
}

.staking-delegation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--n-700);
  transition: background 0.15s;
}

.staking-delegation-row:last-child {
  border-bottom: none;
}

.staking-delegation-row:hover {
  background: var(--accent-bg);
}

.staking-del-info {
  flex: 1;
  min-width: 0;
}

.staking-del-val {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-dim);
  margin-bottom: 4px;
}

.staking-del-amount { font-size: 14px; }

.staking-del-reward { font-size: 13px; margin-top: 2px; }

.staking-del-actions { flex-shrink: 0; margin-left: 12px; }

.staking-val-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--n-700);
  transition: background 0.15s;
}

.staking-val-card:last-child { border-bottom: none; }

.staking-val-card:hover { background: var(--accent-bg); }

.staking-val-info { flex: 1; min-width: 0; }

.staking-val-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-txt);
  margin-bottom: 4px;
}

.staking-val-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--c-dim);
  margin-bottom: 4px;
}

.staking-val-details b { color: var(--c-txt); font-weight: 600; }

.staking-val-addr {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staking-val-actions { flex-shrink: 0; margin-left: 16px; }

.stk-action-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.stk-action-btn--delegate { background: var(--accent); color: #fff; }

.stk-action-btn--delegate:hover { opacity: 0.85; transform: translateY(-1px); }

.stk-action-btn--undelegate {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.stk-action-btn--undelegate:hover { background: rgba(239, 68, 68, 0.25); }

.staking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.staking-modal-overlay.open { opacity: 1; pointer-events: auto; }

.staking-modal {
  background: var(--n-800);
  border: 1px solid var(--n-600);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  margin: 16px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s;
}

.staking-modal-overlay.open .staking-modal { transform: scale(1); }

.staking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--n-700);
}

.staking-modal-title { font-size: 18px; font-weight: 700; color: var(--c-txt); margin: 0; }

.staking-modal-close {
  background: none;
  border: none;
  color: var(--c-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.staking-modal-close:hover { color: var(--c-txt); }

.staking-modal-body { padding: 24px; }

.staking-modal-validator {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--c-dim);
  word-break: break-all;
  margin-bottom: 20px;
  padding: 10px;
  background: var(--n-750);
  border-radius: 8px;
}

.staking-modal-label { display: block; font-size: 13px; color: var(--c-dim); margin-bottom: 6px; font-weight: 500; }

.staking-modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--n-750);
  border: 1px solid var(--n-600);
  border-radius: 8px;
  color: var(--c-txt);
  font-size: 16px;
  font-family: var(--ff);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.staking-modal-input:focus { border-color: var(--accent); }

.staking-modal-available { font-size: 12px; color: var(--c-dim); margin-top: 6px; margin-bottom: 20px; }

.staking-modal-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.staking-modal-submit:hover:not(:disabled) { opacity: 0.9; }

.staking-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.staking-modal-status { margin-top: 12px; font-size: 13px; text-align: center; min-height: 20px; }

.staking-modal-status.loading { color: var(--accent); }

.staking-modal-status.success { color: #22c55e; }

.staking-modal-status.error { color: #ef4444; }

@media (max-width: 768px) {
  .staking-overview-grid { grid-template-columns: repeat(2, 1fr); }

  .staking-val-card { flex-direction: column; align-items: flex-start; gap: 12px; }

  .staking-val-actions { margin-left: 0; width: 100%; }

  .stk-action-btn { width: 100%; text-align: center; }

  .staking-delegation-row { flex-direction: column; align-items: flex-start; gap: 10px; }

  .staking-del-actions { margin-left: 0; width: 100%; }

  .stk-action-btn--undelegate { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .staking-overview-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .staking-stat-card { padding: 14px; }

  .staking-stat-value { font-size: 16px; }
}

/* ==========================================================================
   NFT Styles
   ========================================================================== */

/* --- Collection Cards -------------------------------------------------- */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.nft-collection-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

/* --- NFT Page Header --------------------------------------------------- */
.nft-pg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.nft-pg-head-left { flex: 1; min-width: 200px; }

.nft-pg-head-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.nft-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
  letter-spacing: -0.1px;
}

.nft-create-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.nft-create-btn:active { transform: translateY(0); }

/* --- NFT Empty State --------------------------------------------------- */
.nft-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.nft-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.nft-empty-title {
  font-size: 18px;
  font-weight: 650;
  color: var(--t2);
  margin-bottom: 8px;
}

.nft-empty-desc {
  font-size: 13px;
  color: var(--t4);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.nft-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(139, 92, 246, 0.35);
}

.nft-empty-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}

/* --- Create Collection Modal Hero -------------------------------------- */
.nft-create-coll-hero {
  text-align: center;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.nft-create-coll-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.nft-create-coll-desc {
  font-size: 12.5px;
  color: var(--t4);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

.nft-collection-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nft-coll-name {
  font-size: 17px;
  font-weight: 650;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.nft-coll-symbol {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.nft-coll-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nft-coll-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--c-dim);
}

.nft-coll-meta-val {
  font-weight: 500;
  color: var(--c-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.nft-coll-addr {
  font-size: 11px;
  color: var(--c-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 10px;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-coll-mint-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 9px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
}

.nft-coll-mint-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nft-coll-mint-btn:active { transform: translateY(0); }

/* --- NFT Gallery Grid -------------------------------------------------- */
.nft-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.nft-gallery-info {
  flex: 1;
  min-width: 200px;
}

.nft-gallery-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
}

.nft-gallery-sub {
  font-size: 13px;
  color: var(--c-dim);
}

.nft-gallery-actions {
  display: flex;
  gap: 10px;
}

.nft-mint-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.nft-mint-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nft-mint-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.nft-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.nft-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nft-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.nft-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-inset);
  display: block;
}

.nft-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--c-dim);
  opacity: 0.4;
}

.nft-card-body {
  padding: 12px;
}

.nft-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-card-id {
  font-size: 11px;
  color: var(--c-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* --- NFT Detail View --------------------------------------------------- */
.nft-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.nft-detail-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.nft-detail-img {
  width: 100%;
  display: block;
}

.nft-detail-img-none {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--c-dim);
  opacity: 0.3;
}

.nft-detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nft-detail-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-primary);
}

.nft-detail-desc {
  font-size: 14px;
  color: var(--c-secondary);
  line-height: 1.5;
}

.nft-detail-owner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.nft-detail-owner-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.nft-detail-owner-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  word-break: break-all;
}

.nft-detail-owner-addr:hover { text-decoration: underline; }

.nft-detail-actions {
  display: flex;
  gap: 10px;
}

.nft-transfer-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.nft-transfer-btn:hover { background: var(--accent-bg); }
.nft-transfer-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- NFT Attributes ---------------------------------------------------- */
.nft-attrs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.nft-attr {
  background: var(--accent-bg);
  border: 1px solid rgba(75, 156, 245, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.nft-attr-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 3px;
}

.nft-attr-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
}

/* --- NFT Modals -------------------------------------------------------- */
.nft-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.nft-modal-overlay.open { display: flex; }

.nft-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 440px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nft-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.nft-modal-title {
  font-size: 16px;
  font-weight: 650;
  color: var(--c-primary);
  margin: 0;
}

.nft-modal-close {
  background: none;
  border: none;
  color: var(--c-dim);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.nft-modal-close:hover { color: var(--c-primary); }

.nft-modal-body { padding: 20px; }

.nft-modal-field {
  margin-bottom: 14px;
}

.nft-modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nft-modal-field input,
.nft-modal-field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--c-primary);
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.nft-modal-field input:focus,
.nft-modal-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.nft-modal-readonly {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--c-secondary);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-modal-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s;
}

.nft-modal-submit:hover { opacity: 0.9; }
.nft-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.nft-modal-status {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}

.nft-modal-status.success { color: var(--ok); }
.nft-modal-status.error { color: var(--err); }
.nft-modal-status.loading { color: var(--accent); }

.nft-attr-add-btn {
  background: none;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--c-dim);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.nft-attr-add-btn:hover { color: var(--accent); border-color: var(--accent); }

.nft-attr-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.nft-attr-row input {
  flex: 1;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--c-primary);
  font-family: inherit;
}

.nft-attr-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.nft-attr-remove {
  background: none;
  border: none;
  color: var(--err);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  opacity: 0.6;
}

.nft-attr-remove:hover { opacity: 1; }

/* --- NFT Responsive ---------------------------------------------------- */
@media (max-width: 768px) {
  .nft-detail { grid-template-columns: 1fr; }
  .nft-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .nft-gallery-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nft-grid { grid-template-columns: 1fr; }
  .nft-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nft-attrs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Profile NFT Ownership
   ========================================================================== */

.profile-nfts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 4px 0;
}

.profile-nft-card {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.profile-nft-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.profile-nft-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.profile-nft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-nft-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--c-dim);
  opacity: 0.35;
}

.profile-nft-body {
  padding: 10px 12px 12px;
}

.profile-nft-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.profile-nft-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.profile-nft-collection {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.profile-nft-id {
  font-size: 11px;
  color: var(--c-dim);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

/* --- Profile NFT Empty State ------------------------------------------- */
.profile-nfts-empty {
  text-align: center;
  padding: 32px 16px;
}

.profile-nfts-empty-icon {
  font-size: 36px;
  opacity: 0.3;
  margin-bottom: 10px;
}

.profile-nfts-empty-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-secondary);
  margin-bottom: 4px;
}

.profile-nfts-empty-sub {
  font-size: 12.5px;
  color: var(--c-dim);
}

/* --- Profile NFT Responsive -------------------------------------------- */
@media (max-width: 768px) {
  .profile-nfts-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .profile-nfts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .profile-nft-body { padding: 8px 10px 10px; }
  .profile-nft-name { font-size: 12px; }
}

/* ==========================================================================
   Mobile Responsiveness Overhaul (TON/Nexus Testnet Style)
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
  .quest-promo-banner {
    width: 100%;
  }
  .dashboard-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 300;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-s);
    transform: translateX(-100%);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.7);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .explorer-container {
    margin-left: 0;
  }
  .topbar {
    padding: 0 16px;
  }
  .hamburger {
    display: flex;
  }
  /* hamburger cross animation when sidebar is open */
  .hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  .dev-hub-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .marketplace-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .market-hero-right {
    margin-top: 12px;
  }
}

@media (max-width: 580px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .topbar-left .gas-tracker {
    display: none; /* Hide gas tracker on very small screens to fit wallet */
  }
}

/* ==========================================================================
   Governance & Vote Portal Styles (Obsidian-Neon Glassmorphism Theme)
   ========================================================================== */

.gov-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 1200px) {
  .gov-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gov-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.gov-panel-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.gov-filters {
  display: flex;
  gap: 8px;
}

.gov-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--t3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gov-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--t1);
  border-color: rgba(255, 255, 255, 0.15);
}

.gov-filter-btn.active {
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.2), rgba(0, 240, 255, 0.1));
  border-color: var(--accent);
  color: var(--t1);
  box-shadow: 0 0 12px rgba(123, 97, 255, 0.2);
}

.gov-proposal-card {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gov-proposal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123, 97, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.gov-proposal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 97, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(123, 97, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}

.gov-proposal-card:hover::before {
  opacity: 1;
}

.gov-prop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.gov-prop-title-area {
  flex: 1;
}

.gov-prop-id {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.gov-prop-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--t1);
  margin: 0;
  line-height: 1.4;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge.voting {
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}
.status-badge.voting::before {
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
}

.status-badge.passed {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-badge.passed::before {
  background: #10b981;
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-badge.rejected::before {
  background: #ef4444;
}

.status-badge.deposit {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-badge.deposit::before {
  background: #f59e0b;
}

.gov-prop-summary {
  font-size: 14px;
  color: var(--t3);
  line-height: 1.6;
  margin-bottom: 20px;
}

.gov-tally-container {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  margin-bottom: 20px;
}

.gov-progress-bar-wrap {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

.gov-progress-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.gov-progress-segment.yes {
  background: linear-gradient(90deg, #6366f1, #00f0ff);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.gov-progress-segment.no {
  background: #f59e0b;
}

.gov-progress-segment.abstain {
  background: rgba(255, 255, 255, 0.2);
}

.gov-progress-segment.veto {
  background: #ef4444;
}

.gov-tally-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .gov-tally-legend {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.legend-item {
  display: flex;
  flex-direction: column;
}

.legend-header {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--t4);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.legend-dot.yes { background: #00f0ff; }
.legend-dot.no { background: #f59e0b; }
.legend-dot.abstain { background: rgba(255, 255, 255, 0.4); }
.legend-dot.veto { background: #ef4444; }

.legend-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
}

.gov-prop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 16px;
}

.gov-prop-dates {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--t4);
}

.date-block b {
  color: var(--t3);
}

.gov-vote-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gov-vote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #7173f4, #5a52e6);
}

.gov-vote-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--t4);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: none;
  cursor: not-allowed;
}

.gov-vote-btn.gov-vote-btn--voted {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: none;
}

.gov-create-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--t2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
}

.gov-create-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.25);
}

.gov-vote-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.gov-vote-opt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.gov-vote-opt-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.gov-vote-opt-btn.selected {
  background: rgba(123, 97, 255, 0.06);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.gov-vote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.gov-vote-dot.yes { background: #00f0ff; box-shadow: 0 0 6px #00f0ff; }
.gov-vote-dot.no { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.gov-vote-dot.abstain { background: rgba(255, 255, 255, 0.5); }
.gov-vote-dot.veto { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.gov-vote-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
}