:root {
  --bg: #080810;
  --bg2: #0e0e18;
  --bg3: #131320;
  --surface: #1a1a26;
  --surface2: #20202e;
  --surface3: #262636;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --border3: rgba(255,255,255,0.18);
  --text: #eeeef5;
  --text2: #9090a8;
  --text3: #50506a;
  --accent: #6c63ff;
  --accent2: #8b84ff;
  --accent3: #3d37cc;
  --accentRgb: 108,99,255;
  --green: #22c55e;
  --green2: #16a34a;
  --greenRgb: 34,197,94;
  --amber: #f59e0b;
  --amberRgb: 245,158,11;
  --red: #ef4444;
  --teal: #14b8a6;
  --tealRgb: 20,184,166;
  --pink: #ec4899;
  --chain: #f59e0b;
  --ipfs: #65a30d;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-sm: 0 2px 16px rgba(0,0,0,0.4);
  --glow: 0 0 60px rgba(108,99,255,0.18);
  --glow-green: 0 0 40px rgba(34,197,94,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* Animated mesh gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 5% 10%, rgba(108,99,255,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 85%, rgba(20,184,166,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(108,99,255,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,16,0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(108,99,255,0.4);
}

.logo span { color: var(--accent2); }

.nav-pills {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid var(--border);
}

.nav-pill {
  padding: 6px 14px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-pill.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 20px rgba(108,99,255,0.4);
}

.nav-pill:hover:not(.active) {
  background: var(--surface2);
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text3);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
  50% { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 4px rgba(34,197,94,0.3); }
}

.wallet-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text3);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-connect {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 20px rgba(108,99,255,0.3);
  white-space: nowrap;
}

.btn-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(108,99,255,0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 8px;
  flex-direction: column;
  z-index: 99;
}

.mobile-drawer.open { display: flex; }

.nav-pill-mobile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.nav-pill-mobile:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

/* ===== SECTIONS ===== */
section { display: none; position: relative; z-index: 1; }
section.active { display: block; }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
  top: 50%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.78rem;
  color: var(--accent2);
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 950px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent2), var(--teal), var(--accent2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 30px rgba(108,99,255,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(108,99,255,0.6);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  width: 100%;
  margin-bottom: 2rem;
}

.stat-item {
  flex: 1;
  padding: 1.2rem 1.2rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--surface2); }

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}

/* Tech flow */
.tech-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tech-chip:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.tech-chip .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-purple { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot-teal { background: var(--teal); box-shadow: 0 0 6px var(--teal); }

.arrow-chip { color: var(--text3); font-size: 1rem; }

/* Feature strip */
.feature-strip {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px;
  width: 100%;
}

.feature-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.2rem 1rem;
  transition: background 0.2s;
}

.feature-item:hover { background: var(--surface2); }

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 0.72rem;
  color: var(--text3);
}

.feature-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ===== CONTENT WRAPPER ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-header p { color: var(--text2); font-size: 0.95rem; line-height: 1.6; }

/* ===== SEARCH BAR ===== */
.search-area {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-inp {
  position: absolute;
  left: 14px;
  color: var(--text3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 40px 12px 40px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--surface2);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.08);
}

.search-input::placeholder { color: var(--text3); }

.search-clear {
  position: absolute;
  right: 12px;
  background: var(--surface2);
  border: none;
  color: var(--text3);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.search-clear:hover { background: var(--red); color: white; }

.search-sort {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  min-width: 180px;
  height: 44px;
}

.search-sort:focus { border-color: var(--accent); }

/* ===== FILTER PILLS ===== */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-pill:hover, .filter-pill.active {
  background: rgba(108,99,255,0.12);
  border-color: var(--accent);
  color: var(--accent2);
}

.results-info {
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== BUSINESS GRID ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.business-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.4s ease forwards;
}

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

.business-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.business-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
}

.business-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--shadow-sm);
}

.business-card:hover::before { opacity: 1; }
.business-card:hover::after { opacity: 1; }

.biz-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.biz-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.business-card:hover .biz-avatar { transform: scale(1.1) rotate(3deg); }

.biz-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}

.biz-info .biz-cat {
  font-size: 0.73rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars { color: var(--amber); font-size: 0.88rem; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: 0.95rem; font-family: 'JetBrains Mono', monospace; }
.review-count { color: var(--text3); font-size: 0.78rem; }

.blockchain-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.7rem;
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.sentiment-bar {
  display: flex;
  height: 5px;
  border-radius: 50px;
  overflow: hidden;
  gap: 2px;
}

.bar-fill { height: 100%; border-radius: 50px; }
.sent-pos { background: var(--green); }
.sent-neu { background: var(--amber); }
.sent-neg { background: var(--red); }

.sent-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text3);
  margin-top: 5px;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text3);
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; }

/* ===== WRITE REVIEW LAYOUT ===== */
.write-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.write-main { min-width: 0; }

.write-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.tip-card-chain {
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(108,99,255,0.06));
  border-color: rgba(245,158,11,0.15);
}

.tip-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-list li {
  font-size: 0.82rem;
  color: var(--text2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.tip-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent2);
}

.tip-text {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
}

.recent-sidebar { flex: 1; }

/* ===== PROGRESS STEPS ===== */
.progress-steps {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: all 0.3s;
}

.step-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
  z-index: 1;
}

.step-txt {
  font-size: 0.68rem;
  color: var(--text3);
  white-space: nowrap;
  transition: all 0.3s;
  font-family: 'JetBrains Mono', monospace;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.3s;
  margin-bottom: 20px;
}

.step.active .step-icon {
  background: rgba(108,99,255,0.15);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(108,99,255,0.4);
}

.step.active .step-txt { color: var(--accent2); }

.step.done .step-icon {
  background: rgba(34,197,94,0.1);
  border-color: var(--green);
}

.step.done .step-txt { color: var(--green); }

.progress-steps .step.done + .step-line { background: var(--green); }
.progress-steps .step.active + .step-line { background: linear-gradient(90deg, var(--accent), var(--border)); }

/* ===== REVIEW FORM ===== */
.review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-section { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  background: var(--bg2);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.08);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239090a8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 14px) center; padding-right: 36px; }

.char-count {
  font-size: 0.72rem;
  color: var(--text3);
  text-align: right;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.2s;
}

.char-count.near-limit { color: var(--amber); }
.char-count.at-limit { color: var(--red); }

/* Star rating */
.star-rating-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.star-rating-input {
  display: flex;
  gap: 6px;
}

.star-btn {
  font-size: 2rem;
  cursor: pointer;
  color: var(--surface3);
  transition: all 0.15s;
  background: none;
  border: none;
  line-height: 1;
  padding: 2px;
  filter: drop-shadow(0 0 0px transparent);
}

.star-btn.active {
  color: var(--amber);
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.6));
}

.star-btn:hover { transform: scale(1.2); }

.rating-label-text {
  font-size: 0.85rem;
  color: var(--text3);
  font-style: italic;
  transition: all 0.2s;
}

/* Business preview card */
.biz-preview-card {
  background: linear-gradient(135deg, rgba(108,99,255,0.06), rgba(20,184,166,0.06));
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

/* Upload zone */
.upload-zone {
  background: var(--bg3);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-height: 100px;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(108,99,255,0.04);
}

.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-text { font-size: 0.85rem; color: var(--text2); margin-bottom: 4px; }
.upload-hint { font-size: 0.73rem; color: var(--text3); }

.upload-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border2);
  position: relative;
}

/* Live sentiment */
.live-sentiment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.sentiment-icon { font-size: 1.1rem; }

.sentiment-txt {
  font-size: 0.8rem;
  color: var(--text2);
  min-width: 130px;
}

.sentiment-meter {
  flex: 1;
  height: 4px;
  background: var(--surface3);
  border-radius: 50px;
  overflow: hidden;
}

.sentiment-fill {
  height: 100%;
  border-radius: 50px;
  transition: all 0.5s ease;
}

/* TX Preview */
.tx-preview {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 1rem;
  display: none;
}

.tx-preview.visible { display: block; animation: fadeIn 0.3s ease; }

.tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tx-title { color: var(--accent2); font-weight: 500; }
.tx-network { background: rgba(20,184,166,0.1); color: var(--teal); border: 1px solid rgba(20,184,166,0.2); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; }

.tx-line {
  display: flex;
  gap: 12px;
  padding: 3px 0;
  color: var(--text2);
}

.tx-key { color: var(--accent2); min-width: 120px; flex-shrink: 0; }
.tx-val-green { color: var(--green); }
.tx-val-amber { color: var(--amber); }
.tx-val-teal { color: var(--teal); }

/* Submit */
.submit-area {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 30px rgba(108,99,255,0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(108,99,255,0.5);
}

.btn-submit:hover::before { opacity: 1; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.submit-note {
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.5;
}

/* ===== REVIEW LIST ===== */
.review-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 12px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.review-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  transition: all 0.2s;
}

.review-item.is-positive::before { background: var(--green); }
.review-item.is-neutral::before { background: var(--amber); }
.review-item.is-negative::before { background: var(--red); }

.review-item:hover {
  border-color: var(--border2);
  transform: translateX(2px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.reviewer-meta h4 { font-size: 0.9rem; font-weight: 600; }
.reviewer-meta span { font-size: 0.73rem; color: var(--text3); }

.review-stars { color: var(--amber); font-size: 0.9rem; letter-spacing: 1px; }

.review-title-text {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.review-body {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 12px;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chain-hash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.chain-hash:hover { border-color: var(--accent); color: var(--accent2); }

.ipfs-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ipfs);
  background: rgba(101,163,13,0.08);
  border: 1px solid rgba(101,163,13,0.2);
  border-radius: 6px;
  padding: 3px 8px;
}

.sentiment-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 500;
}

.sent-positive { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.sent-neutral { background: rgba(245,158,11,0.1); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.sent-negative { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

.immutable-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* Helpful votes */
.helpful-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.helpful-label { font-size: 0.75rem; color: var(--text3); }
.helpful-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--text3);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.helpful-btn:hover { border-color: var(--green); color: var(--green); }
.helpful-btn.voted { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.06); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  position: sticky;
  top: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-biz-info { display: flex; align-items: center; gap: 12px; }

.modal-biz-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover { background: var(--red); color: white; border-color: var(--red); }

.modal-rating-summary {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}

.modal-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.modal-filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.modal-filter-btn.active, .modal-filter-btn:hover {
  background: rgba(108,99,255,0.1);
  border-color: var(--accent);
  color: var(--accent2);
}

.modal-body { padding: 1.5rem; }

/* ===== EXPLORER ===== */
.explorer-header {
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(108,99,255,0.06));
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.explorer-icon { font-size: 2.5rem; flex-shrink: 0; }

.explorer-info h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }

.contract-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text3);
  margin-bottom: 2px;
  cursor: pointer;
}

.contract-addr:hover { color: var(--accent2); }

.live-badge {
  font-size: 0.75rem;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Network stats */
.network-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.net-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  flex: 1;
  min-width: 120px;
}

.net-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.net-stat-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* TX Search */
.tx-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 1rem;
}

.tx-search-bar svg { color: var(--text3); flex-shrink: 0; }

.tx-search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  flex: 1;
}

.tx-search-bar input::placeholder { color: var(--text3); }

/* Chain visual */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chain-visual {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0.75rem 0 1rem;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--surface3) transparent;
}

.chain-visual::-webkit-scrollbar { height: 4px; }
.chain-visual::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }

.chain-block {
  background: var(--surface2);
  border: 1.5px solid var(--amber);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  cursor: pointer;
}

.chain-block:hover {
  background: rgba(245,158,11,0.08);
  box-shadow: 0 0 16px rgba(245,158,11,0.2);
  transform: translateY(-2px);
}

.chain-block.new {
  border-color: var(--green);
  color: var(--green);
  animation: chainPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(34,197,94,0.3);
}

@keyframes chainPop {
  0% { transform: scale(0.7) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.chain-connector {
  height: 2px;
  width: 28px;
  background: linear-gradient(90deg, var(--amber), rgba(245,158,11,0.3));
  flex-shrink: 0;
  position: relative;
}

.chain-connector::after {
  content: '▶';
  position: absolute;
  right: 2px;
  top: -7px;
  font-size: 0.6rem;
  color: var(--amber);
  opacity: 0.5;
}

/* Block list */
.block-list { display: flex; flex-direction: column; gap: 8px; }

.block-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  cursor: pointer;
  flex-wrap: wrap;
}

.block-item:hover {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.03);
  transform: translateX(4px);
}

.block-item.new-block {
  animation: slideInBlock 0.4s ease;
}

@keyframes slideInBlock {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.block-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--amber);
  min-width: 90px;
  font-weight: 600;
}

.block-hash {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text3);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-time { font-size: 0.76rem; color: var(--text3); white-space: nowrap; }

.block-tx-count {
  background: rgba(108,99,255,0.1);
  color: var(--accent2);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== DASHBOARD ===== */
.dash-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-biz-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239090a8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  padding-right: 30px;
  transition: all 0.2s;
}

.dash-biz-filter:hover { border-color: var(--accent); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.metric-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity 0.3s;
}

.metric-card:hover::before { opacity: 1; }

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.metric-val {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 6px;
}

.metric-change { font-size: 0.75rem; margin-bottom: 8px; }
.metric-change.up { color: var(--green); }
.metric-change.down { color: var(--red); }

/* Sparklines */
.metric-sparkline {
  height: 30px;
  margin-top: 4px;
}

/* Trend chart tabs */
.chart-tab {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-tab.active {
  background: rgba(108,99,255,0.12);
  border-color: var(--accent);
  color: var(--accent2);
}

/* Donut */
.dash-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.donut-svg { flex-shrink: 0; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }

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

.bar-label { font-size: 0.82rem; color: var(--amber); min-width: 90px; letter-spacing: 2px; }

.bar-track {
  flex: 1;
  height: 9px;
  background: var(--bg3);
  border-radius: 50px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-val { font-size: 0.78rem; color: var(--text3); min-width: 28px; text-align: right; font-family: 'JetBrains Mono', monospace; }

/* NPS Score */
.nps-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nps-label { font-size: 0.78rem; color: var(--text2); font-weight: 600; }
.nps-val { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.nps-tag { font-size: 0.72rem; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.nps-tag.excellent { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }

/* AI Analysis */
.pro-badge {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.refresh-ai-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.refresh-ai-btn:hover { border-color: var(--accent); color: var(--accent2); }

.ai-analysis {
  background: linear-gradient(135deg, rgba(108,99,255,0.06), rgba(20,184,166,0.06));
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1rem;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-loading-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ai-loading-dots span {
  width: 5px;
  height: 5px;
  background: var(--accent2);
  border-radius: 50%;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.ai-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.ai-text {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

.typewriter::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--accent2);
  font-weight: 300;
}

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

/* Export */
.export-card { }

.export-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.export-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  color: var(--text2);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(108,99,255,0.08);
}

.export-btn-share {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(20,184,166,0.06);
}

.export-btn-share:hover {
  background: rgba(20,184,166,0.12);
  border-color: var(--teal);
  color: var(--teal);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 13px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--text2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: all 0.2s;
  backdrop-filter: blur(12px);
}

.scroll-top-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.scroll-top-btn.visible { display: flex; }

/* Spinner */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-d2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-d3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-d4 { animation-delay: 0.4s; opacity: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .write-layout { grid-template-columns: 1fr; }
  .write-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .recent-sidebar { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-pills { display: none; }
  .hamburger { display: flex; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }
  .feature-strip { display: none; }
  .network-stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  nav { padding: 0 1rem; }
  .live-indicator { display: none; }
  .wallet-addr { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .stats-bar { flex-wrap: wrap; border-radius: var(--radius); }
  .stat-item { min-width: 50%; }
  .business-grid { grid-template-columns: 1fr; }
  .container { padding: 2rem 1rem; }
  .write-sidebar { grid-template-columns: 1fr; }
  .network-stats-row { flex-direction: column; }
  .search-area { flex-direction: column; }
  .export-buttons { flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .modal-rating-summary { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .dashboard-grid { grid-template-columns: 1fr; }
}