/*═══════════════════════════════════════════════════════════════
  WaqFi — UI Components
═══════════════════════════════════════════════════════════════*/

/* ══════════ TOPBAR ══════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav); padding: 14px 36px;
  background: rgba(6,10,16,0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.topbar.scrolled {
  background: rgba(6,10,16,0.95);
  box-shadow: var(--shadow-md);
}

.logo-g { display: flex; align-items: center; gap: var(--sp-3); cursor: pointer; }

.logo-icon {
  width: 40px; height: 40px; border-radius: var(--r-m);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald), var(--sapphire));
  position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-spring);
}
.logo-g:hover .logo-icon { transform: scale(1.05) rotate(-3deg); }
.logo-icon::after {
  content: '\0648\0642\0641'; /* وقف */
  font-family: var(--font-arabic); font-size: 14px;
  color: white; font-weight: 700;
}

.logo-txt {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800; letter-spacing: 1.5px;
}
.logo-txt em { font-style: normal; color: var(--emerald); }
.logo-sub {
  font-size: 10px; color: var(--tx-muted);
  letter-spacing: 3px; text-transform: uppercase; margin-top: -2px;
}

/* Nav */
nav { display: flex; gap: var(--sp-1); align-items: center; }

nav a {
  color: var(--tx-muted); font-size: 12.5px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  transition: all var(--dur-base) ease;
  letter-spacing: .3px; text-transform: uppercase;
  position: relative;
}

nav a::after {
  content: ''; position: absolute; bottom: 2px;
  left: 50%; width: 0; height: 2px;
  background: var(--emerald); border-radius: 1px;
  transition: all var(--dur-base) var(--ease-out);
  transform: translateX(-50%);
}

nav a:hover, nav a.active { color: var(--emerald); background: rgba(16,185,129,0.08); }
nav a.active::after { width: 60%; }

/* Connect Wallet Button */
.btn-connect {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-d));
  color: white; padding: 9px 22px; border-radius: 8px; border: none;
  font-weight: 700; font-size: 12px; letter-spacing: .5px;
  text-transform: uppercase; transition: all var(--dur-base) ease;
  position: relative; overflow: hidden;
}

.btn-connect::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}

.btn-connect:hover { transform: translateY(-1px); box-shadow: var(--glow-e); }
.btn-connect:hover::before { transform: translateX(100%); }
.btn-connect:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-connect.connected {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
}

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; position: relative; overflow: hidden;
}

.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.08); border: 1px solid var(--border-a);
  padding: 6px 16px; border-radius: 20px; font-size: 11px;
  font-weight: 600; color: var(--emerald-l);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.6rem; font-weight: 900;
  line-height: 1.1; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--emerald); }
.hero h1 .gold   { color: var(--gold); }

.hero-desc {
  font-size: 1.05rem; color: var(--tx-light);
  line-height: 1.75; margin-bottom: 36px; max-width: 520px;
}

.hero-cta {
  display: flex; gap: var(--sp-3); margin-bottom: var(--sp-10);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-d));
  color: white; padding: 14px 32px; border-radius: var(--r-m); border: none;
  font-weight: 700; font-size: 14px; letter-spacing: .5px;
  transition: all var(--dur-base) ease; position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-e); }

.btn-outline {
  background: transparent; color: var(--tx-light);
  padding: 14px 32px; border-radius: var(--r-m);
  border: 1px solid var(--border);
  font-weight: 600; font-size: 14px;
  transition: all var(--dur-base) ease;
}
.btn-outline:hover {
  border-color: var(--emerald); color: var(--emerald);
  background: rgba(16,185,129,0.05);
}

/* Hero Stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px;
}

.hero-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 20px; text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}
.hero-stat:hover {
  border-color: var(--border-a); transform: translateY(-3px);
  box-shadow: var(--glow-e);
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800; color: var(--emerald-l);
}
.hero-stat .lbl {
  font-size: 11px; color: var(--tx-muted);
  text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 32px;
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--sapphire), var(--amethyst));
}

.chain-viz { display: flex; flex-direction: column; gap: 14px; }

.block-row {
  display: flex; align-items: center; gap: 10px;
  animation: slideRight .6s var(--ease-out) both;
}

.block-item {
  flex: 1; background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
  font-family: var(--font-mono); font-size: 10.5px;
  position: relative; overflow: hidden;
  transition: all var(--dur-base) ease;
}
.block-item.active { border-color: var(--emerald); box-shadow: 0 0 20px rgba(16,185,129,0.1); }
.block-item:hover { border-color: var(--border-a); }
.block-item .bh { color: var(--emerald); font-weight: 600; margin-bottom: 6px; font-size: 11px; }
.block-item .bd { color: var(--tx-muted); font-size: 9.5px; word-break: break-all; }
.chain-arrow { color: var(--emerald); font-size: 16px; text-align: center; opacity: 0.5; }

/* ══════════ PILLAR CARDS ══════════ */
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: var(--sp-12);
}

.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 32px 24px;
  transition: all var(--dur-slow) var(--ease-out);
  position: relative; overflow: hidden; cursor: pointer;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; transition: height var(--dur-base) ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-a);
  background: var(--bg-card-h);
}
.pillar-card:hover::before { height: 4px; }

.pillar-card:nth-child(1)::before { background: var(--emerald); }
.pillar-card:nth-child(2)::before { background: var(--sapphire); }
.pillar-card:nth-child(3)::before { background: var(--gold); }
.pillar-card:nth-child(4)::before { background: var(--amethyst); }

.pillar-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 900; opacity: 0.06;
  position: absolute; top: 10px; right: 16px;
  transition: opacity var(--dur-base) ease;
}
.pillar-card:hover .pillar-num { opacity: 0.12; }

.pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  transition: transform var(--dur-base) var(--ease-spring);
}
.pillar-card:hover .pillar-icon { transform: scale(1.1); }

.pillar-card:nth-child(1) .pillar-icon { background: rgba(16,185,129,0.1); color: var(--emerald); }
.pillar-card:nth-child(2) .pillar-icon { background: rgba(59,130,246,0.1); color: var(--sapphire); }
.pillar-card:nth-child(3) .pillar-icon { background: rgba(245,158,11,0.1); color: var(--gold); }
.pillar-card:nth-child(4) .pillar-icon { background: rgba(139,92,246,0.1); color: var(--amethyst); }

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}
.pillar-card p { font-size: 13px; color: var(--tx-muted); line-height: 1.7; }

.pillar-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-xs); margin-top: 14px;
}
.pillar-card:nth-child(1) .pillar-tag { background: rgba(16,185,129,0.1); color: var(--emerald); }
.pillar-card:nth-child(2) .pillar-tag { background: rgba(59,130,246,0.1); color: var(--sapphire); }
.pillar-card:nth-child(3) .pillar-tag { background: rgba(245,158,11,0.1); color: var(--gold); }
.pillar-card:nth-child(4) .pillar-tag { background: rgba(139,92,246,0.1); color: var(--amethyst); }

/* ══════════ SMART CONTRACT DEMO ══════════ */
.sc-demo-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 40px;
}

.sc-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); overflow: hidden;
}

.sc-panel-hdr {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sc-panel-hdr h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.sc-panel-hdr .status {
  font-size: 10px; padding: 3px 10px;
  border-radius: 10px; font-weight: 600;
}
.status-live    { background: rgba(16,185,129,0.12); color: var(--emerald); }
.status-pending { background: rgba(245,158,11,0.12); color: var(--gold); }

.sc-code {
  padding: 20px 24px; font-family: var(--font-mono);
  font-size: 11.5px; line-height: 1.8; color: var(--tx-light);
  max-height: 360px; overflow-y: auto; background: var(--bg-deep);
}
.sc-code .kw  { color: var(--sapphire); }
.sc-code .fn  { color: var(--gold); }
.sc-code .str { color: var(--emerald-l); }
.sc-code .cm  { color: var(--tx-dim); font-style: italic; }
.sc-code .num { color: var(--amethyst); }

.sc-interact { padding: 24px; }
.sc-form-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: end; }
.sc-field { flex: 1; }

.sc-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--tx-muted); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}

.sc-field input, .sc-field select {
  width: 100%; background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--r-s); padding: 11px 14px;
  color: var(--tx-white); font-size: 13px;
  transition: border-color var(--dur-base) ease,
              box-shadow var(--dur-base) ease;
  outline: none;
}
.sc-field input:focus, .sc-field select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.sc-field select option { background: var(--bg-deep); }

/* Action Buttons */
.btn-mint {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-d));
  color: white; border: none; padding: 12px 28px;
  border-radius: var(--r-s); font-weight: 700; font-size: 13px;
  transition: all var(--dur-base) ease; letter-spacing: .3px; min-width: 160px;
  position: relative; overflow: hidden;
}
.btn-mint:hover { transform: translateY(-2px); box-shadow: var(--glow-e); }
.btn-mint:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-mint.loading {
  pointer-events: none; color: transparent;
}
.btn-mint.loading::after {
  content: ''; position: absolute; inset: 0;
  margin: auto; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-dist {
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: white; border: none; padding: 12px 28px;
  border-radius: var(--r-s); font-weight: 700; font-size: 13px;
  transition: all var(--dur-base) ease; letter-spacing: .3px;
}
.btn-dist:hover { transform: translateY(-2px); box-shadow: var(--glow-g); }

/* ══════════ BLOCKCHAIN EXPLORER ══════════ */
.explorer-wrap { margin-top: 40px; }

.chain-display {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 20px 0; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.chain-block {
  min-width: 260px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-m);
  padding: 20px; scroll-snap-align: start;
  transition: all var(--dur-base) var(--ease-out);
  animation: blockMine .5s var(--ease-out) both; flex-shrink: 0;
}
.chain-block:hover { border-color: var(--emerald); transform: translateY(-4px); }
.chain-block.genesis {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--bg-card), rgba(245,158,11,0.05));
}

.cb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cb-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.cb-type {
  font-size: 9px; font-weight: 700; padding: 3px 8px;
  border-radius: var(--r-xs); text-transform: uppercase; letter-spacing: .5px;
}
.cb-type.mint { background: rgba(16,185,129,0.12); color: var(--emerald); }
.cb-type.dist { background: rgba(245,158,11,0.12); color: var(--gold); }
.cb-type.gen  { background: rgba(59,130,246,0.12); color: var(--sapphire); }

.cb-row {
  display: flex; justify-content: space-between;
  font-size: 11px; padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.cb-row:last-child { border: none; }
.cb-label { color: var(--tx-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.cb-val {
  color: var(--tx-light); font-family: var(--font-mono);
  font-size: 10px; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cb-connector {
  display: flex; align-items: center;
  color: var(--emerald); font-size: 20px; opacity: 0.3; flex-shrink: 0;
}

/* Hash Bar */
.hash-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-s); padding: 12px 20px;
  margin-top: 16px; overflow: hidden; position: relative;
}
.hash-scroll {
  display: flex; gap: 20px;
  font-family: var(--font-mono); font-size: 10px; color: var(--tx-dim);
  animation: hashScroll 30s linear infinite;
  white-space: nowrap; width: max-content;
}

/* ══════════ DASHBOARD ══════════ */
.dash-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}

.dash-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 22px;
  transition: all var(--dur-base) var(--ease-out);
}
.dash-card:hover { border-color: var(--border-a); transform: translateY(-2px); }

.dash-card .dc-top {
  display: flex; justify-content: space-between;
  align-items: start; margin-bottom: 14px;
}
.dash-card .dc-icon {
  width: 40px; height: 40px; border-radius: var(--r-m);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.dash-card .dc-delta {
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-xs);
}
.delta-up   { background: rgba(16,185,129,0.1); color: var(--emerald); }
.delta-down { background: rgba(239,68,68,0.1); color: var(--ruby); }

.dash-card .dc-val {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; margin-bottom: 4px;
}
.dash-card .dc-lbl { font-size: 11px; color: var(--tx-muted); letter-spacing: .5px; }

/* Charts */
.charts-row {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 20px; margin-top: 20px;
}
.chart-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 24px;
}
.chart-panel h4 {
  font-size: 14px; font-weight: 700;
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}

/* Bar Chart */
.bar-group {
  display: flex; align-items: flex-end;
  justify-content: space-around; height: 180px; padding: 0 10px;
}
.bar-col {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; flex: 1;
}
.bar-fill {
  width: 32px; border-radius: 4px 4px 0 0;
  transition: height .8s var(--ease-bounce);
  position: relative; cursor: pointer;
}
.bar-fill:hover { filter: brightness(1.15); transform: scaleX(1.1); }
.bar-fill .tooltip {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  background: var(--bg-deep); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: var(--r-xs);
  font-size: 9px; white-space: nowrap;
  opacity: 0; transition: opacity var(--dur-base); pointer-events: none;
  color: var(--tx-light);
}
.bar-fill:hover .tooltip { opacity: 1; }
.bar-label { font-size: 10px; color: var(--tx-dim); font-weight: 600; }

/* Donut Chart */
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; }
.donut-svg  { width: 160px; height: 160px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx-light); }
.legend-dot  { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* Impact Meters */
.impact-meters {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 24px;
}
.meter-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 20px;
}
.meter-card h5 {
  font-size: 12px; font-weight: 600; color: var(--tx-muted);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.meter-bar-bg {
  width: 100%; height: 8px; background: var(--bg-deep);
  border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.meter-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 1.5s var(--ease-bounce);
}
.meter-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }

/* ══════════ COMPLIANCE ══════════ */
.compliance-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px;
}
.comp-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 28px;
  transition: all var(--dur-base) var(--ease-out);
  position: relative; overflow: hidden;
}
.comp-card:hover { border-color: var(--border-a); transform: translateY(-4px); }

.comp-card::after {
  content: '\2713'; position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(16,185,129,0.1); color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

.comp-card h4 {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.comp-card p { font-size: 12.5px; color: var(--tx-muted); line-height: 1.7; }
.comp-badge {
  display: inline-block; font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 3px;
  background: rgba(16,185,129,0.08); color: var(--emerald);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 12px;
}

/* ══════════ ARCHITECTURE ══════════ */
.arch-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 40px; margin-top: 40px; overflow: hidden;
}
.arch-layers { display: flex; flex-direction: column; gap: 16px; }

.arch-layer {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-radius: var(--r-m);
  border: 1px solid var(--border);
  transition: all var(--dur-base) ease;
}
.arch-layer:hover { border-color: var(--border-a); background: var(--bg-card-h); }

.arch-layer-badge {
  min-width: 120px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 6px; text-align: center;
}

.arch-layer-content { flex: 1; display: flex; gap: 12px; flex-wrap: wrap; }

.arch-chip {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 14px;
  font-size: 11px; font-weight: 600; color: var(--tx-light);
  transition: all var(--dur-base) ease;
}
.arch-chip:hover { border-color: var(--emerald); color: var(--emerald); }
.arch-arrow { text-align: center; color: var(--tx-dim); font-size: 20px; padding: 4px 0; }

/* ══════════ TOKENOMICS ══════════ */
.token-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 40px;
}
.token-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 28px;
}
.token-card h4 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.token-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.token-row:last-child { border: none; }
.token-row .tk-l { color: var(--tx-muted); font-weight: 500; }
.token-row .tk-v { font-weight: 700; font-family: var(--font-mono); font-size: 12px; }
.token-row .tk-v.emerald { color: var(--emerald); }
.token-row .tk-v.gold    { color: var(--gold); }

/* ══════════ TX LOG ══════════ */
.tx-log {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-l); overflow: hidden; margin-top: 20px;
}
.tx-log-hdr {
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.tx-log-hdr h4 { font-size: 14px; font-weight: 700; }

.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th {
  padding: 12px 20px; text-align: left; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--tx-dim);
  border-bottom: 1px solid var(--border);
}
.tx-table td {
  padding: 12px 20px; font-size: 12px;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast) ease;
}
.tx-table tr:hover td { background: rgba(16,185,129,0.02); }
.tx-hash { font-family: var(--font-mono); font-size: 10.5px; color: var(--sapphire); }
.tx-status {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-xs);
}
.tx-status.confirmed { background: rgba(16,185,129,0.1); color: var(--emerald); }
.tx-status.pending   { background: rgba(245,158,11,0.1); color: var(--gold); }

/* ══════════ ROADMAP ══════════ */
.roadmap-track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 40px; position: relative;
}
.roadmap-track::before {
  content: ''; position: absolute; top: 30px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--sapphire), var(--gold), var(--amethyst));
}

.rm-node { text-align: center; position: relative; padding-top: 50px; }
.rm-dot {
  width: 20px; height: 20px; border-radius: 50%;
  position: absolute; top: 21px; left: 50%;
  transform: translateX(-50%); border: 3px solid var(--bg-void); z-index: 2;
  transition: transform var(--dur-base) var(--ease-spring);
}
.rm-node:hover .rm-dot { transform: translateX(-50%) scale(1.3); }

.rm-node:nth-child(1) .rm-dot { background: var(--emerald); }
.rm-node:nth-child(2) .rm-dot { background: var(--sapphire); }
.rm-node:nth-child(3) .rm-dot { background: var(--gold); }
.rm-node:nth-child(4) .rm-dot { background: var(--amethyst); }

.rm-node h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.rm-node p  { font-size: 11.5px; color: var(--tx-muted); line-height: 1.6; }
.rm-phase {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--tx-dim); margin-bottom: 6px;
}

/* ══════════ REVENUE ══════════ */
.rev-cards {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-top: 40px;
}
.rev-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 22px; text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}
.rev-card:hover { border-color: var(--border-a); transform: translateY(-4px); }
.rev-card .rv-icon { font-size: 28px; margin-bottom: 12px; }
.rev-card h5 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.rev-card .rv-pct {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--emerald); margin: 8px 0;
}
.rev-card p { font-size: 11px; color: var(--tx-muted); line-height: 1.5; }

/* ══════════ TEAM ══════════ */
.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 24px; text-align: center;
  transition: all var(--dur-base) var(--ease-out);
}
.team-card:hover { border-color: var(--border-a); transform: translateY(-3px); }
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 20px;
}
.team-name { font-weight: 700; font-size: 13px; }
.team-role { font-size: 11px; font-weight: 600; margin-top: 4px; }
.team-affil { font-size: 10px; color: var(--tx-muted); margin-top: 6px; }

/* ══════════ TOAST NOTIFICATIONS ══════════ */
.toast-container {
  position: fixed; top: 80px; right: 24px;
  z-index: var(--z-toast); display: flex;
  flex-direction: column; gap: 8px; pointer-events: none;
}

.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-m); padding: 14px 20px;
  min-width: 320px; max-width: 420px;
  box-shadow: var(--shadow-xl); pointer-events: auto;
  animation: toastIn 0.4s var(--ease-out) both;
  display: flex; align-items: start; gap: 12px;
}

.toast.removing { animation: toastOut 0.3s ease both; }
.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.toast-msg { font-size: 11px; color: var(--tx-muted); line-height: 1.5; }
.toast-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; border-radius: 0 0 var(--r-m) var(--r-m); overflow: hidden;
}
.toast-progress-bar {
  height: 100%; background: var(--emerald);
  animation: progressBar 4s linear both;
}

.toast.success { border-left: 3px solid var(--emerald); }
.toast.warning { border-left: 3px solid var(--gold); }
.toast.error   { border-left: 3px solid var(--ruby); }
.toast.info    { border-left: 3px solid var(--sapphire); }

/* ══════════ FOOTER ══════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; text-align: center;
  position: relative; z-index: var(--z-base);
}
footer .f-logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; margin-bottom: 8px;
}
footer .f-logo em { font-style: normal; color: var(--emerald); }
footer .f-tag { font-size: 12px; color: var(--tx-muted); margin-bottom: 16px; }
footer .f-copy { font-size: 11px; color: var(--tx-dim); }
footer .f-badges {
  display: flex; justify-content: center; gap: 12px; margin: 16px 0;
}
footer .f-badge {
  font-size: 9px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--r-xs); background: rgba(16,185,129,0.06);
  color: var(--emerald); border: 1px solid var(--border-a);
  letter-spacing: 1px; text-transform: uppercase;
}

/* ══════════ TAB SYSTEM ══════════ */
.tab-bar {
  display: flex; gap: 4px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-m);
  padding: 4px; margin-bottom: 28px; overflow-x: auto;
}
.tab-btn {
  padding: 10px 20px; border: none; background: none;
  color: var(--tx-muted); font-size: 12px; font-weight: 600;
  border-radius: 8px; transition: all var(--dur-base) ease;
  white-space: nowrap; letter-spacing: .3px;
}
.tab-btn.active { background: var(--emerald); color: white; }
.tab-btn:hover:not(.active) { color: var(--tx-white); background: rgba(255,255,255,0.04); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp .5s ease; }
