/* ═══════════════════════════════════════════════════════════════
   Mycelium Index — 2030 Design System
   Glassmorphism, mesh gradients, fluid type, micro-interactions
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Surfaces */
  --bg:          #07070d;
  --bg-elevated: rgba(255,255,255,0.03);
  --glass:       rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.07);
  --glass-border:rgba(255,255,255,0.08);

  /* Text */
  --text:        #f0f0f5;
  --text-2:      #a0a0b8;
  --text-3:      #5c5c72;

  /* Accents */
  --accent:      #7c5cfc;
  --accent-2:    #c084fc;
  --cyan:        #22d3ee;
  --emerald:     #34d399;
  --rose:        #fb7185;
  --amber:       #fbbf24;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, #7c5cfc 0%, #c084fc 50%, #22d3ee 100%);
  --grad-card:   linear-gradient(160deg, rgba(124,92,252,0.08) 0%, rgba(34,211,238,0.04) 100%);
  --grad-glow:   linear-gradient(135deg, #7c5cfc, #c084fc, #22d3ee);

  /* Layout */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(124,92,252,0.2), 0 0 80px rgba(124,92,252,0.1);

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Animated Background Mesh ──────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.mesh-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  opacity: 0.35; will-change: transform;
}
.mesh-orb--1 {
  width: 600px; height: 600px; top: -10%; left: -10%;
  background: radial-gradient(circle, #7c5cfc 0%, transparent 70%);
  animation: float1 25s ease-in-out infinite;
}
.mesh-orb--2 {
  width: 500px; height: 500px; top: 40%; right: -15%;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  animation: float2 30s ease-in-out infinite;
}
.mesh-orb--3 {
  width: 400px; height: 400px; bottom: -10%; left: 30%;
  background: radial-gradient(circle, #c084fc 0%, transparent 70%);
  animation: float3 20s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{ transform: translate(0,0) scale(1); } 33%{ transform: translate(100px,80px) scale(1.1); } 66%{ transform: translate(-60px,120px) scale(0.9); } }
@keyframes float2 { 0%,100%{ transform: translate(0,0) scale(1); } 33%{ transform: translate(-120px,-60px) scale(1.15); } 66%{ transform: translate(80px,-100px) scale(0.85); } }
@keyframes float3 { 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(100px,-80px) scale(1.1); } }

/* Grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; 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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,13,0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 17px;
}
.nav__icon { font-size: 22px; }
.nav__wordmark { letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__link {
  color: var(--text-2); text-decoration: none; font-size: 14px;
  font-weight: 500; padding: 6px 14px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text); background: var(--glass-hover); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md); font-size: 14px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--glass-border); color: var(--text);
  background: var(--glass); backdrop-filter: blur(10px);
  transition: all 0.25s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn:hover {
  background: var(--glass-hover); border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn--sm { padding: 7px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn--lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn--glow {
  background: var(--grad-brand); border: none; color: #fff;
  box-shadow: 0 0 20px rgba(124,92,252,0.3);
}
.btn--glow:hover {
  box-shadow: 0 0 30px rgba(124,92,252,0.5), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 2;
  padding: 80px 0 48px; text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: 12px; font-weight: 500; color: var(--text-2);
  letter-spacing: 0.03em; margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 20px;
}
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2); max-width: 600px; margin: 0 auto 40px;
  line-height: 1.7; font-weight: 400;
}

/* ── Search ────────────────────────────────────────────────── */
.search-container { max-width: 640px; margin: 0 auto 32px; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 52px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-bar:focus-within {
  border-color: rgba(124,92,252,0.5);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.1), var(--shadow-md);
}
.search-bar__icon { color: var(--text-3); flex-shrink: 0; }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: inherit;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar__kbd {
  padding: 2px 8px; border-radius: 6px; font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-3);
}

.filter-row {
  display: flex; gap: 10px; margin-top: 12px; justify-content: center;
}
.filter-select {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-2); font-size: 13px; font-family: inherit;
  cursor: pointer; outline: none; backdrop-filter: blur(10px);
  transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235c5c72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.filter-select:focus { border-color: rgba(124,92,252,0.5); }

/* ── Stats Chips ───────────────────────────────────────────── */
.hero__stats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.stat-chip {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 24px; border-radius: var(--radius-md);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); min-width: 100px;
}
.stat-chip__value {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-chip__label { font-size: 11px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ── Project Grid ──────────────────────────────────────────── */
.main { position: relative; z-index: 2; padding-bottom: 64px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ── Glass Card ────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.project-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  backdrop-filter: blur(16px);
  transition: all 0.35s var(--ease-out);
  overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-card); opacity: 0; border-radius: inherit;
  transition: opacity 0.35s;
}
.project-card:hover {
  border-color: rgba(124,92,252,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,92,252,0.12), 0 0 0 1px rgba(124,92,252,0.1);
}
.project-card:hover::before { opacity: 1; }
.project-card > * { position: relative; z-index: 1; }

/* Card interior */
.card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card-avatar {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,92,252,0.25);
}
.card-name {
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.card-name:hover { color: var(--accent-2); }
.card-owner {
  font-size: 12px; color: var(--text-3); font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

.card-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card-stats {
  display: flex; gap: 16px; margin-bottom: 14px;
  font-size: 13px; color: var(--text-3);
}
.card-stats span { display: flex; align-items: center; gap: 5px; }
.card-stats .val { color: var(--text); font-weight: 600; }

.card-topics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.card-topic {
  font-size: 11px; padding: 3px 10px; border-radius: 100px;
  background: rgba(124,92,252,0.1); color: var(--accent-2);
  border: 1px solid rgba(124,92,252,0.15);
  font-weight: 500; letter-spacing: 0.01em;
}

.card-actions { display: flex; gap: 8px; }
.card-btn {
  flex: 1; text-align: center; padding: 9px 16px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.25s var(--ease-out);
  border: 1px solid var(--glass-border); color: var(--text-2);
  background: var(--glass);
}
.card-btn:hover { background: var(--glass-hover); color: var(--text); border-color: rgba(255,255,255,0.15); }
.card-btn-primary {
  background: var(--grad-brand); border: none; color: #fff;
  box-shadow: 0 2px 10px rgba(124,92,252,0.2);
}
.card-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(124,92,252,0.35);
  transform: translateY(-1px);
}

/* ── Loading State ─────────────────────────────────────────── */
.loading-state {
  grid-column: 1 / -1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 20px; color: var(--text-3);
}
.loading-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty / Zero States ───────────────────────────────────── */
.empty-state, .zero-state {
  text-align: center; padding: 60px 20px;
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-3); }

.zero-card {
  max-width: 480px; margin: 0 auto; padding: 48px 40px;
  border-radius: var(--radius-xl); text-align: center;
}
.zero-card__icon { font-size: 56px; margin-bottom: 20px; }
.zero-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.zero-card p { color: var(--text-2); margin-bottom: 28px; font-size: 14px; line-height: 1.7; }

/* ── CTA Section ───────────────────────────────────────────── */
.cta {
  position: relative; z-index: 2;
  padding: 40px 0 80px;
}
.cta__card {
  border-radius: var(--radius-xl); padding: 56px 48px;
  text-align: center;
  background: linear-gradient(160deg, rgba(124,92,252,0.06) 0%, rgba(34,211,238,0.03) 100%);
  border: 1px solid var(--glass-border);
}
.cta__card h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.cta__card p { color: var(--text-2); max-width: 500px; margin: 0 auto 28px; font-size: 15px; line-height: 1.7; }
.cta__code {
  display: flex; flex-direction: column; gap: 4px;
  max-width: 460px; margin: 0 auto 28px;
  padding: 16px 20px; border-radius: var(--radius-md);
  background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
  text-align: left;
}
.cta__code code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--accent-2); line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  padding: 32px 0; border-top: 1px solid var(--glass-border);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__brand { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.footer__meta { font-size: 12px; color: var(--text-3); }
.footer__links { display: flex; gap: 16px; }
.footer__links a {
  font-size: 13px; color: var(--text-3); text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ── Card entrance animation ───────────────────────────────── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.project-card,
.project-grid > mycelium-passport {
  animation: card-in 0.5s var(--ease-out) both;
}
.project-card:nth-child(1) { animation-delay: 0.02s; }
.project-card:nth-child(2) { animation-delay: 0.06s; }
.project-card:nth-child(3) { animation-delay: 0.10s; }
.project-card:nth-child(4) { animation-delay: 0.14s; }
.project-card:nth-child(5) { animation-delay: 0.18s; }
.project-card:nth-child(6) { animation-delay: 0.22s; }
.project-card:nth-child(7) { animation-delay: 0.26s; }
.project-card:nth-child(8) { animation-delay: 0.30s; }
.project-card:nth-child(9) { animation-delay: 0.34s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 56px 0 32px; }
  .hero__title { font-size: 36px; }
  .nav__links .nav__link { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .hero__stats { gap: 8px; }
  .stat-chip { padding: 10px 16px; min-width: 70px; }
  .stat-chip__value { font-size: 18px; }
  .cta__card { padding: 36px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .search-bar { height: 48px; padding: 0 16px; }
  .search-bar__kbd { display: none; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; }
  .card-actions { flex-direction: column; }
  .modal__dialog { padding: 28px 20px; }
  .onboard-step { flex-direction: column; gap: 10px; }
  .onboard-step__num { width: 28px; height: 28px; font-size: 12px; }
}

/* ── Modal ────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(18,18,28,0.98) 0%, rgba(10,10,18,0.98) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: modal-in 0.3s var(--ease-out);
}
.modal__dialog::-webkit-scrollbar { width: 6px; }
.modal__dialog::-webkit-scrollbar-track { background: transparent; }
.modal__dialog::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer;
  transition: all 0.2s;
}
.modal__close:hover { color: var(--text); background: var(--glass-hover); }

.modal__title {
  font-size: 24px; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.modal__desc {
  font-size: 14px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 28px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 8px;
}
.form-req { color: var(--rose); }
.form-opt { color: var(--text-3); font-weight: 400; }

.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
  border-color: rgba(124,92,252,0.5);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.1);
}
.form-input--error {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(251,113,133,0.1);
}
.form-hint {
  font-size: 12px; margin-top: 6px; min-height: 0;
  color: var(--rose); display: none;
}
.form-hint--visible { display: block; }

.modal__submit-btn,
.modal__done-btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Onboarding Steps ─────────────────────────────────────── */
.onboard-steps {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.onboard-step { display: flex; gap: 16px; align-items: flex-start; }

.onboard-step__num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  box-shadow: 0 2px 10px rgba(124,92,252,0.25);
  margin-top: 2px;
}
.onboard-step__body { flex: 1; min-width: 0; }
.onboard-step__body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.onboard-step__body > p { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }

/* ── Code Blocks ──────────────────────────────────────────── */
.code-block {
  position: relative;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px; padding-right: 48px;
  overflow-x: auto;
}
.code-block pre {
  margin: 0; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; line-height: 1.7;
  color: var(--accent-2); white-space: pre-wrap; word-break: break-all;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 6px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); background: var(--glass-hover); }
.copy-btn--done { color: var(--emerald) !important; border-color: var(--emerald); }

/* ── Share Row ────────────────────────────────────────────── */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.share-row .btn { font-size: 12px; }

/* ── Modal Note ───────────────────────────────────────────── */
.modal__note {
  font-size: 13px; color: var(--text-3); line-height: 1.6;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(124,92,252,0.06); border: 1px solid rgba(124,92,252,0.1);
  margin-bottom: 20px;
}
.modal__note code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--accent-2);
  background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px;
}

@media (max-width: 768px) {
  .modal { padding: 16px; }
  .modal__dialog { padding: 32px 24px; }
}
