/* ================================================================
   COMMUNITED — Design System
   Dark Web3 aesthetic · Mint/Teal accent · Sora typography
   ================================================================ */

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

:root {
  --bg-primary:    #050507;
  --bg-secondary:  #0a0a0f;
  --bg-card:       rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-input:      rgba(255, 255, 255, 0.04);
  --bg-input-focus:rgba(255, 255, 255, 0.07);

  --mint:          #43e97b;
  --teal:          #38f9d7;
  --mint-dim:      rgba(67, 233, 123, 0.15);
  --teal-dim:      rgba(56, 249, 215, 0.1);
  --error:         #ff4d6a;
  --error-dim:     rgba(255, 77, 106, 0.12);
  --warning:       #ffb347;

  --text-primary:  #f0f0f5;
  --text-secondary:#9090a8;
  --text-dim:      #5a5a72;
  --text-accent:   var(--mint);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(67, 233, 123, 0.25);

  --gradient-main: linear-gradient(135deg, var(--mint) 0%, var(--teal) 100%);
  --gradient-text: linear-gradient(135deg, #43e97b 0%, #38f9d7 50%, #43e97b 100%);
  --gradient-glow: radial-gradient(circle, rgba(56, 249, 215, 0.06) 0%, transparent 70%);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-glow: 0 0 60px rgba(56, 249, 215, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  --font-sans:  'Sora', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input { font-family: inherit; }

/* ─── Noise Overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ─── Canvas Background ─────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Ambient Glow Blobs ────────────────────────────── */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.ambient-glow.glow-1 {
  width: 600px; height: 600px;
  top: -10%; right: -5%;
  background: rgba(56, 249, 215, 0.035);
  animation: floatGlow 20s ease-in-out infinite;
}
.ambient-glow.glow-2 {
  width: 500px; height: 500px;
  bottom: -10%; left: -5%;
  background: rgba(67, 233, 123, 0.025);
  animation: floatGlow 25s ease-in-out infinite reverse;
}

/* ─── Typography ────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); }

/* ─── Navigation ────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(67, 233, 123, 0.2));
  transition: filter 0.3s ease;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 20px rgba(67, 233, 123, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-main);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-main);
  color: #000;
  box-shadow: 0 4px 20px rgba(56, 249, 215, 0.2);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: translateX(-100%);
}
.btn-primary:hover::before {
  transform: translateX(100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 249, 215, 0.35);
}
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--border-accent);
  background: rgba(67, 233, 123, 0.04);
  color: var(--mint);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}
.btn-ghost:hover { color: var(--mint); }

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }
.btn-lg { padding: 18px 42px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled, .btn.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Form Elements ─────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

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

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.08);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-dim);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
}
.form-error.show { display: block; }

/* ─── Alert / Message Boxes ─────────────────────────── */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert.show { display: flex; }

.alert-error {
  background: var(--error-dim);
  border: 1px solid rgba(255, 77, 106, 0.25);
  color: #ff8fa3;
}

.alert-success {
  background: var(--mint-dim);
  border: 1px solid rgba(67, 233, 123, 0.25);
  color: var(--mint);
}

.alert-warning {
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.2);
  color: var(--warning);
}

/* ─── Card ──────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02), rgba(56,249,215,0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── Divider ───────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* ─── Auth Page Layout ──────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
}

.auth-card {
  padding: clamp(28px, 5vw, 44px);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo-link img {
  height: 40px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 16px rgba(67, 233, 123, 0.2));
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--mint);
  font-weight: 600;
  transition: opacity 0.2s;
}
.auth-footer a:hover { opacity: 0.8; }

/* ─── Section Layout ────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 10vw, 120px) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.container-sm { max-width: 800px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Footer ────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--mint); }

/* ─── Spinner ───────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.spinner-light {
  border-color: rgba(255,255,255,0.2);
  border-top-color: #fff;
}

/* ─── Password Strength ─────────────────────────────── */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.password-strength .bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}
.password-strength .bar.weak   { background: var(--error); }
.password-strength .bar.medium { background: var(--warning); }
.password-strength .bar.strong { background: var(--mint); }

/* ─── Step Indicator ────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.3s;
}

.step.active { color: var(--mint); }
.step.done { color: var(--text-secondary); }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.step.active .step-num {
  background: var(--mint-dim);
  border-color: var(--border-accent);
  color: var(--mint);
}

.step.done .step-num {
  background: var(--mint);
  border-color: var(--mint);
  color: #000;
}

.step-line {
  width: 40px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 8px;
}

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

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

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

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

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

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

.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links .nav-link-text { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .btn-lg { padding: 14px 28px; font-size: 0.9rem; }
  .step span:not(.step-num) { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   TOOLS SECTION — Premium Bento Grid
   Communited Dashboard · Web3 Aesthetic
══════════════════════════════════════════════════════════════ */

/* ─── Section Wrapper ───────────────────────────────────── */
.tools-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ─── Section Header ────────────────────────────────────── */
.tools-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tools-header-left { flex: 1; min-width: 0; }

.tools-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 10px;
  font-family: var(--font-mono);
  opacity: 0.85;
}

.tools-section-title {
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tools-section-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tools-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-top: 4px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.tools-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

.tools-status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.5);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(67, 233, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 233, 123, 0); }
}

/* ─── Bento Grid ─────────────────────────────────────────── */
.tools-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .tools-bento {
    grid-template-columns: 1fr 1fr;
  }
  /* Featured card spans 2 cols on 2-col grid */
  .tool-card--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .tools-bento {
    grid-template-columns: 1fr 1fr 1fr;
  }
  /* Featured stays at 2/3 width */
  .tool-card--featured {
    grid-column: span 2;
  }
}

/* ─── Base Tool Card ─────────────────────────────────────── */
.tool-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 22px 22px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
  cursor: default;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gradient border mask — premium glass rim */
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(56, 249, 215, 0.07) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.35s ease;
}

/* Glow blob per card */
.tool-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 80% 20%, var(--glow-color, rgba(67,233,123,0.06)), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.tool-card:hover .tool-card__glow { opacity: 1; }

/* Coming soon lock overlay */
.tool-card--coming-soon .tool-card__lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(5, 5, 7, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  cursor: pointer;
}

.tool-card--coming-soon:hover .tool-card__lock-overlay { opacity: 1; }

.tool-card__lock-overlay .lock-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  margin-bottom: 2px;
}

.tool-card__lock-overlay span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.3px;
}

.tool-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 249, 215, 0.04);
}

/* Featured card extra depth */
.tool-card--featured {
  background: rgba(255, 255, 255, 0.03);
  padding: 26px 26px 22px;
}

/* Badge */
.tool-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 5;
  font-family: var(--font-mono);
}

.tool-card__badge--soon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.tool-card__badge--beta {
  background: rgba(67, 233, 123, 0.1);
  border: 1px solid rgba(67, 233, 123, 0.25);
  color: var(--mint);
}

/* ─── Card Header ────────────────────────────────────────── */
.tool-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.tool-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--icon-bg, rgba(67,233,123,0.1));
  border: 1px solid var(--icon-border, rgba(67,233,123,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.tool-card:hover .tool-card__icon-wrap { transform: scale(1.08) rotate(-4deg); }

.tool-card__title-group { flex: 1; min-width: 0; }

.tool-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.tool-card__desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Preview area ───────────────────────────────────────── */
.tool-card__preview {
  position: relative;
  z-index: 2;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 16px;
  overflow: hidden;
}

/* ─── Skeleton shimmer ───────────────────────────────────── */
.skeleton-line {
  display: inline-block;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.1) 40%,
    rgba(255,255,255,0.05) 80%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
}

/* ══════════════════════════════════════════════
   CARD 1: SENTIMENT SCREENER
══════════════════════════════════════════════ */
.sentiment-preview {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.sentiment-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sentiment-gauge { width: 100px; }

.gauge-fill {
  transition: stroke-dashoffset 1.2s var(--ease-out-expo);
}

.sentiment-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff6450;
  text-align: center;
  margin-top: -6px;
  font-family: var(--font-mono);
}

.sentiment-metrics {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.s-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.s-metric__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.s-metric .skeleton-line { height: 9px; border-radius: 4px; }

.mini-chart-skeleton {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.mini-sparkline { width: 100%; height: 40px; }

.mini-chart-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════
   CARD 2: NARRATIVE HEATMAP
══════════════════════════════════════════════ */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hmap-cell {
  border-radius: 8px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.hmap-cell:hover { transform: scale(1.04); }

.hmap-cell span {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
}

.hmap-hot {
  background: rgba(255, 100, 80, calc(var(--intensity) * 0.22));
  border: 1px solid rgba(255, 100, 80, calc(var(--intensity) * 0.35));
  color: #ff9080;
}
.hmap-hot span { color: rgba(255, 150, 130, 0.85); }

.hmap-warm {
  background: rgba(255, 179, 71, calc(var(--intensity) * 0.2));
  border: 1px solid rgba(255, 179, 71, calc(var(--intensity) * 0.3));
  color: #ffcf80;
}
.hmap-warm span { color: rgba(255, 210, 130, 0.8); }

.hmap-cool {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
}
.hmap-cool span { color: #e05252; }

/* ══════════════════════════════════════════════
   CARD 3: AIRDROP CHECKLIST
══════════════════════════════════════════════ */
.checklist-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.check-item:last-child { border-bottom: none; }

.check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-box--done {
  background: rgba(67, 233, 123, 0.12);
  border: 1.5px solid rgba(67, 233, 123, 0.4);
}

.check-box--pending {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
}

.check-label {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.check-done .check-label {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.15);
}

.check-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.check-tag--done {
  background: rgba(67, 233, 123, 0.1);
  color: rgba(67, 233, 123, 0.7);
}

.check-tag--hot {
  background: rgba(255, 100, 80, 0.15);
  color: #ff8060;
}

.check-tag--new {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.cp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.cp-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  border-radius: 2px;
  transition: width 1s var(--ease-out-expo);
}

/* ══════════════════════════════════════════════
   CARD 4: DEX SNIFFER
══════════════════════════════════════════════ */
.dex-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dex-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 0.9fr;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.73rem;
}

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

.dex-row--header {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dex-row--skeleton { padding: 9px 0; }

.dex-token {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.dex-price {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.dex-vol {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.dex-change {
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: right;
}

.dex-up   { color: var(--mint); }
.dex-down { color: var(--error); }

/* ══════════════════════════════════════════════
   CARD 5: TRADE JOURNAL
══════════════════════════════════════════════ */
.journal-preview { display: flex; flex-direction: column; gap: 12px; }

.journal-stats {
  display: flex;
  justify-content: space-around;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.j-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.j-stat__num {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.j-stat__label {
  font-size: 0.64rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.journal-entries { display: flex; flex-direction: column; gap: 5px; }

.j-entry {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.j-entry:last-child { border-bottom: none; }

.j-entry__side {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.j-long  { background: rgba(67,233,123,0.12); color: var(--mint); }
.j-short { background: rgba(255,77,106,0.12);  color: var(--error); }

.j-entry__pair {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.j-entry__pnl {
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.j-win  { color: var(--mint); }
.j-loss { color: var(--error); }

/* ─── Responsive Adjustments ─────────────────────────────── */
@media (max-width: 599px) {
  .tool-card {
    padding: 18px 18px 16px;
    border-radius: 16px;
  }
  .tool-card--featured { padding: 20px 18px 16px; }
  .tools-header { gap: 12px; }
  .tools-status-pill { display: none; }
  .heatmap-grid { grid-template-columns: repeat(2, 1fr); }
  .sentiment-preview { flex-direction: column; }
  .sentiment-gauge-wrap { flex-direction: row; align-items: center; }
  .sentiment-gauge { width: 80px; }
  .sentiment-label { margin-top: 0; }
  .dex-row { grid-template-columns: 1fr 1.2fr 0.8fr 0.8fr; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .heatmap-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Subtle noise grain on cards */
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.015;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  z-index: 0;
}