:root {
  /* Base surfaces — deep plum / wine (distinct from navy-blue) */
  --bg: #140818;
  --bg-elevated: #22102a;
  --bg-card: #2e1638;
  --bg-card-hover: #3a1c48;
  --bg-deep: #0a040e;
  --border: rgba(255, 220, 240, 0.1);
  --text: #faf0f6;
  --text-muted: #b8a0c4;

  /* Ambient background glows */
  --bg-glow-1-rgb: 236, 72, 153;
  --bg-glow-2-rgb: 251, 146, 60;
  --bg-glow-3-rgb: 167, 139, 250;

  /* Accent palette — coral rose + lavender + gold */
  --accent-primary: #fb7185;
  --accent-secondary: #c4b5fd;
  --accent-cyan: var(--accent-primary);
  --accent-blue: #a78bfa;
  --accent-purple: #e879f9;
  --accent-yellow: #fcd34d;
  --accent-rgb: 251, 113, 133;
  --accent-secondary-rgb: 196, 181, 253;

  --gradient: linear-gradient(135deg, #fb7185 0%, #c084fc 50%, #fcd34d 100%);
  --gradient-btn: linear-gradient(135deg, #f472b6, #a855f7, #fbbf24);
  --glow: rgba(var(--bg-glow-1-rgb), 0.22);
  --grid-line: rgba(var(--bg-glow-3-rgb), 0.06);

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --header-h: 72px;
  --radius-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, #4a1942 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(var(--bg-glow-1-rgb), 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(var(--bg-glow-2-rgb), 0.12) 0%, transparent 45%),
    linear-gradient(165deg, #2a1230 0%, #140818 35%, #0a040e 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 15% 50%, rgba(var(--bg-glow-3-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 45% 30% at 85% 60%, rgba(var(--bg-glow-1-rgb), 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 8, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: var(--header-h);
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(480px, 48vw);
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
}

.brand-title {
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-sep {
  color: var(--text-muted);
  opacity: 0.65;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.brand-tagline {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.1rem;
  min-width: 0;
  margin: 0 0.25rem;
  padding-left: 0.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 0.5rem;
}

.nav-desktop::-webkit-scrollbar {
  display: none;
}

.nav-desktop a {
  font-size: clamp(0.7rem, 0.72vw + 0.55rem, 0.8rem);
  color: var(--text-muted);
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-desktop a.nav-cta {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  margin-left: 0.35rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  position: relative;
}

.nav-desktop a.nav-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.15em;
  background: var(--border);
}

.nav-desktop a.nav-cta:hover,
.nav-desktop a.nav-cta.active {
  background: rgba(var(--accent-rgb), 0.22);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-gradient {
  background: var(--gradient-btn);
  color: #1a0812;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.35);
}

.btn-gradient:hover {
  box-shadow: 0 0 36px rgba(var(--accent-rgb), 0.5);
}

.btn-yellow {
  background: var(--accent-yellow);
  color: #050a0f;
  border-color: var(--accent-yellow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  gap: 0.25rem;
}

.mobile-nav a {
  padding: 0.6rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mobile-nav a.nav-cta {
  color: var(--text);
  font-weight: 600;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

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

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 900px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 2rem;
}

/* Two column intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0 4rem;
}

.intro-copy {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.intro-copy p {
  margin: 0 0 1rem;
}

.intro-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.eth-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.14), transparent 70%);
  border: 1px solid var(--border);
}

.eth-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--glow), transparent 60%);
  pointer-events: none;
}

.eth-diamond {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 40px rgba(var(--accent-secondary-rgb), 0.45));
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.feature-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-box .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 800px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.highlight-box {
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 22, 56, 0.9), rgba(34, 16, 42, 0.95));
  border: 1px solid rgba(252, 211, 77, 0.4);
  color: var(--text-muted);
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

/* Process steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.audience-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.audience-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.audience-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Content card (long form) */
.content-card {
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.content-card::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(var(--bg-glow-1-rgb), 0.12), transparent 70%);
  pointer-events: none;
}

.content-card .prose {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-card .prose p {
  margin: 0 0 1rem;
}

/* Trust pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-card {
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Blog guides */
.guides-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.guide-card {
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.guide-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}

.guide-thumb {
  height: 140px;
  background: linear-gradient(135deg, #2e1638, #1a0a24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.guide-thumb .meta {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.guide-body {
  padding: 1.25rem;
}

.guide-body .cats {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.guide-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.35;
}

.guide-body p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.review-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.stars {
  color: var(--accent-yellow);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.review-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.55;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #050a0f;
  flex-shrink: 0;
}

.reviewer strong {
  display: block;
  font-size: 0.9rem;
}

.reviewer span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-note {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(10, 4, 14, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.footer-grid a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.footer-grid a:hover {
  color: var(--accent-cyan);
}

.safety-notice {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Header — compact desktop (keeps full nav on one row) */
@media (min-width: 1025px) and (max-width: 1360px) {
  .brand {
    max-width: min(380px, 40vw);
  }

  .brand-title {
    font-size: 0.76rem;
  }

  .brand-tagline {
    font-size: 0.52rem;
  }

  .brand-sep {
    display: none;
  }

  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .nav-desktop a {
    font-size: 0.68rem;
    padding: 0.35rem 0.42rem;
  }

  .header-actions .btn {
    padding: 0.48rem 0.7rem;
    font-size: 0.76rem;
  }

  .lang-select {
    max-width: 6.75rem;
    font-size: 0.72rem;
    padding-right: 1.4rem;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .brand {
    max-width: min(280px, 55vw);
    flex: 1 1 auto;
  }

  .brand-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
  }

  .brand-sep {
    display: none;
  }

  .brand-title {
    white-space: normal;
    font-size: 0.82rem;
  }

  .brand-tagline {
    white-space: normal;
    font-size: 0.58rem;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-ghost {
    display: none;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .cta-row .btn {
    width: 100%;
  }
}

/* Section banner images (decorative — text unchanged) */
.section-visual {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.section-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}

.section-visual--inline svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}

.eth-img-inline {
  display: contents;
}

.eth-gallery img,
.eth-float-row img {
  max-width: 100%;
  height: auto;
}

.hero .section-visual {
  margin-bottom: 1.5rem;
}

.hero .section-visual img {
  max-height: 200px;
}

.page-view .section-visual {
  margin-bottom: 1.5rem;
}

.longform-section > .section-visual img {
  max-height: 180px;
}

/* Additional sections (appended — existing styles unchanged above) */
.extra-section {
  border-top: 1px solid var(--border);
}

.checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-items: flex-start;
}

.checklist-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.85;
}

.checklist-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.checklist-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.scenario-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.scenario-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.scenario-meta {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.scenario-card > p:not(.scenario-meta) {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.scenario-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scenario-card li {
  margin-bottom: 0.25rem;
}

.outcomes-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.outcomes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-card);
}

.outcomes-table th,
.outcomes-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.outcomes-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

.outcomes-table td:first-child {
  font-weight: 500;
  color: var(--text);
  min-width: 180px;
}

.outcomes-table td:nth-child(2) {
  color: #86efac;
}

.outcomes-table td:nth-child(3) {
  color: var(--text-muted);
}

.redflag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.redflag-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.redflag-bad {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.redflag-good {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.25);
}

.redflag-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.redflag-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.redflag-card li {
  margin-bottom: 0.5rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.compare-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.compare-highlight {
  border-color: rgba(var(--accent-rgb), 0.38);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-secondary-rgb), 0.08));
}

.compare-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.compare-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.compare-muted {
  color: var(--text-muted);
}

.compare-list li {
  margin-bottom: 0.45rem;
}

.method-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.extra-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.extra-cta p {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.extra-cta .cta-row {
  justify-content: center;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .outcomes-table th,
  .outcomes-table td {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .checklist-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Long-form article sections (~10k words each) */
.longform-section {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.longform-meta {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin: -0.5rem 0 1.5rem;
  letter-spacing: 0.04em;
}

.longform-prose {
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  max-height: none;
}

.longform-prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.longform-prose h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.longform-prose p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: justify;
}

.longform-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.longform-toc a {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
}

.longform-toc a:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

/* Ethereum image gallery (local SVG, no external hosts) */
.eth-visuals-section {
  position: relative;
  overflow: hidden;
}

.eth-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.eth-gallery-item {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: border-color 0.2s, transform 0.2s;
}

.eth-gallery-item:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  transform: translateY(-2px);
}

.eth-gallery-item img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(var(--accent-secondary-rgb), 0.28));
}

.eth-gallery-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.eth-gallery-featured {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 280px;
}

.eth-gallery-featured img {
  max-height: 240px;
}

.eth-gallery-item:not(.eth-gallery-featured):not(.eth-gallery-small) {
  grid-column: span 3;
}

.eth-gallery-small {
  grid-column: span 3;
}

.eth-gallery-item:nth-child(5) {
  grid-column: span 6;
}

.eth-float-row {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.eth-float {
  position: absolute;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.eth-float-1 {
  top: 8%;
  right: 6%;
  animation: eth-drift 14s ease-in-out infinite;
}

.eth-float-2 {
  bottom: 12%;
  left: 4%;
  width: 100px;
  animation: eth-drift 18s ease-in-out infinite reverse;
}

.eth-float-3 {
  top: 45%;
  right: 12%;
  width: 70px;
  animation: eth-drift 12s ease-in-out infinite 2s;
}

@keyframes eth-drift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

.eth-visuals-section .section-label,
.eth-visuals-section h2,
.eth-visuals-section .section-lead,
.eth-visuals-section .eth-gallery {
  position: relative;
  z-index: 1;
}

/* ETH accent on long-form guides (decorative, no content change) */
.longform-section .longform-prose {
  position: relative;
}

.longform-section::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: url("../images/eth/eth-minimal.svg") center / contain no-repeat;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.45));
}

#longform-scam-guide::before {
  background-image: url("../images/eth/eth-classic.svg");
}

#longform-usdt-guide::before {
  background-image: url("../images/eth/eth-3d.svg");
}

#longform-legal-guide::before {
  background-image: url("../images/eth/eth-outline.svg");
}

#longform-security-guide::before {
  background-image: url("../images/eth/eth-bars-logo.svg");
}

@media (max-width: 900px) {
  .eth-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .eth-gallery-featured,
  .eth-gallery-item:not(.eth-gallery-featured):not(.eth-gallery-small),
  .eth-gallery-small,
  .eth-gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
  }

  .eth-float-row {
    display: none;
  }
}

/* Rank Math–style blog hub */
.muted {
  color: var(--text-muted);
}

.section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.blog-hub {
  border-top: 1px solid var(--border);
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.blog-toolbar .search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
  max-width: 480px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.blog-toolbar .search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.blog-toolbar .search input::placeholder {
  color: var(--text-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

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

.card.blog-card:hover,
.card.blog-card:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(80, 20, 60, 0.45);
  outline: none;
  background: var(--bg-card-hover);
}

.blog-img {
  position: relative;
  aspect-ratio: 680 / 360;
  overflow: hidden;
  background: var(--bg-deep);
}

.blog-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(5, 10, 15, 0.75);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: lowercase;
}

.blog-body {
  padding: 1.25rem;
}

.blog-body .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.blog-body .tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.blog-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.blog-body .muted {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.btn.ghost,
.blog-read-btn {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  pointer-events: none;
}

.reveal {
  animation: blog-fade 0.5s ease both;
}

@keyframes blog-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.blog-articles-wrap {
  border-top: 1px solid var(--border);
  padding: 2rem 0 4rem;
}

.blog-articles-wrap[hidden] {
  display: none !important;
}

.blog-article[hidden] {
  display: none !important;
}

.blog-article-inner {
  max-width: 800px;
}

.blog-breadcrumb {
  margin-bottom: 1rem;
}

.blog-breadcrumb a {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.blog-article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.blog-article-desc {
  margin-bottom: 1rem;
}

.blog-article-cover {
  margin: 1.5rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-article-cover svg {
  width: 100%;
  height: auto;
  display: block;
}

.blog-article-prose {
  margin: 2rem 0;
}

.blog-article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Extra pages (hash routing) */
#homeView[hidden],
.extra-pages[hidden],
.blog-view[hidden] {
  display: none !important;
}

.blog-view {
  min-height: 70vh;
  padding-top: 1rem;
}

.blog-view .blog-hub {
  border-top: none;
  padding-top: 2rem;
}

.home-blog-teaser {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.home-blog-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-view .blog-articles-wrap {
  border-top: 1px solid var(--border);
  padding: 2rem 0 4rem;
}

.blog-view .blog-articles-wrap[hidden] {
  display: none !important;
}

.page-view[hidden] {
  display: none !important;
}

.page-view {
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

.page-view h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.12;
}

.page-lead {
  max-width: 720px;
  margin-bottom: 2rem;
}

.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.prepare-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm, 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.prepare-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.prepare-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.prepare-box li {
  margin-bottom: 0.4rem;
}

.page-panel {
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(40, 10, 50, 0.5);
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intake-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.intake-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.5);
}

.btn-block {
  width: 100%;
  padding: 0.85rem 1.25rem;
  margin-top: 0.5rem;
}

.form-email {
  text-align: center;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.form-email a {
  color: var(--accent-cyan);
}

.about-mission {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.about-mission h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.eth-card-sm {
  max-width: 140px;
  aspect-ratio: 1;
}

.eth-card-sm .eth-diamond {
  width: 90px;
  height: auto;
}

.page-grid {
  display: grid;
  gap: 1rem;
}

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

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

.page-card {
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(46, 22, 56, 0.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.page-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.page-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.process-card {
  position: relative;
  padding-top: 2.5rem;
}

.process-num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-banner {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-secondary-rgb), 0.1));
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.warning-banner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .page-split,
  .about-mission {
    grid-template-columns: 1fr;
  }

  .page-grid-2,
  .page-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* —— Auto translator (Google Translate + custom select) —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.google-translate-host {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b8a0c4' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  color: var(--text);
  font-size: 0.8rem;
  font-family: var(--font);
  cursor: pointer;
  max-width: 9.5rem;
}

.lang-select:hover,
.lang-select:focus {
  border-color: rgba(var(--accent-rgb), 0.45);
  outline: none;
}

body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-gadget {
  display: none !important;
}

body > .skiptranslate {
  display: none !important;
}

iframe.goog-te-menu-frame {
  max-height: 400px !important;
}

/* —— AI assistant (RankyTools-style sidebar) —— */
.ai-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999990;
  width: 260px;
  height: 100vh;
  background: #171717;
  border-right: 1px solid #2e2e2e;
  display: flex;
  flex-direction: column;
  color: #ececec;
  font-family: system-ui, -apple-system, sans-serif;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-sidebar.collapsed {
  transform: translateX(-260px);
}

.ai-sb-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2e2e2e;
  flex-shrink: 0;
}

.ai-new-chat-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: #2e2e2e;
  color: #fff;
  border: 1px solid #3e3e3e;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.ai-new-chat-btn:hover {
  background: #3e3e3e;
}

.ai-new-chat-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ai-sb-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #aaa;
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ai-sb-close:hover {
  background: #2e2e2e;
  color: #fff;
}

.ai-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px;
  scrollbar-width: thin;
}

.ai-chat-list::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-list::-webkit-scrollbar-thumb {
  background: #3e3e3e;
  border-radius: 2px;
}

.ai-date-group {
  padding: 8px 8px 4px;
  font-size: 11px;
  color: #888;
  font-weight: 600;
}

.ai-chat-item {
  position: relative;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-chat-item:hover {
  background: #212121;
}

.ai-chat-item.active {
  background: #2e2e2e;
  color: #fff;
}

.ai-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10a37f;
  flex-shrink: 0;
}

.ai-del-btn {
  display: none;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.ai-chat-item:hover .ai-del-btn {
  display: flex;
}

.ai-del-btn:hover {
  background: #3e3e3e;
  color: #ff6b6b;
}

.ai-sb-empty {
  padding: 30px 20px;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.ai-sb-footer {
  padding: 10px 14px;
  border-top: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ai-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10a37f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ai-user-name {
  color: #d1d1d1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-user-sub {
  font-size: 11px;
  color: #666;
}

.ai-delete-all {
  margin: 0 10px 10px;
  padding: 8px;
  background: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.ai-delete-all:hover {
  background: rgba(220, 53, 69, 0.15);
}

.ai-sb-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999989;
  width: 36px;
  height: 36px;
  background: #171717;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #d1d1d1;
}

.ai-sb-toggle.visible {
  display: flex;
}

.ai-sb-toggle:hover {
  background: #2e2e2e;
}

body.ai-sidebar-open .site-header,
body.ai-sidebar-open main,
body.ai-sidebar-open .site-footer {
  margin-left: 260px;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.ai-sidebar-open .ai-sb-toggle {
  display: none !important;
}

.ai-chat-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 999988;
  width: min(420px, 100vw);
  height: min(560px, calc(100vh - var(--header-h) - 24px));
  margin: 12px;
  background: #212121;
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}

.ai-chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #2e2e2e;
  color: #ececec;
  font-size: 14px;
}

.ai-panel-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.ai-panel-close:hover {
  background: #2e2e2e;
  color: #fff;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-welcome h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #fff;
}

.ai-welcome p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
}

.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-quick-prompts button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #3e3e3e;
  background: #2e2e2e;
  color: #d1d1d1;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.ai-quick-prompts button:hover {
  border-color: #10a37f;
  color: #fff;
}

.ai-msg {
  display: flex;
}

.ai-msg-user {
  justify-content: flex-end;
}

.ai-msg-inner {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.ai-msg-user .ai-msg-inner {
  background: #10a37f;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-msg-assistant .ai-msg-inner {
  background: #2e2e2e;
  color: #ececec;
  border-bottom-left-radius: 4px;
}

.ai-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #3e3e3e;
  border-top-color: #10a37f;
  border-radius: 50%;
  animation: ai-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

.ai-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #2e2e2e;
  align-items: flex-end;
}

.ai-compose textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #3e3e3e;
  background: #171717;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.ai-compose textarea:focus {
  outline: none;
  border-color: #10a37f;
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #10a37f;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: #0d8c6d;
}

.ai-disclaimer {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 10px;
  color: #666;
  text-align: center;
}

.ai-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999987;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10a37f, #0d8c6d);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(16, 163, 127, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ai-fab:hover {
  transform: scale(1.06);
}

body.ai-panel-open .ai-fab {
  display: none;
}

.ai-brand {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 999986;
  font-size: 11px;
  color: #888;
  pointer-events: none;
}

body.ai-panel-open .ai-brand {
  display: none;
}

.ai-brand a {
  color: #10a37f;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}

@media (max-width: 900px) {
  body.ai-sidebar-open .site-header,
  body.ai-sidebar-open main,
  body.ai-sidebar-open .site-footer {
    margin-left: 0;
  }

  .ai-sidebar {
    width: min(280px, 88vw);
  }

  .ai-sidebar.collapsed {
    transform: translateX(-100%);
  }

  .lang-select {
    max-width: 7rem;
    font-size: 0.75rem;
    padding-right: 1.5rem;
  }

  .ai-chat-panel {
    width: calc(100vw - 16px);
    height: min(70vh, 520px);
    margin: 8px;
  }
}
