/* ============================================================
   XPROBOT – Official Statement Page Styles
   ============================================================ */

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

:root {
  --primary:       #1a56db;
  --primary-dark:  #1341b2;
  --primary-light: #e8f0fe;
  --accent:        #f59e0b;
  --danger:        #ef4444;
  --danger-light:  #fef2f2;
  --success:       #10b981;
  --success-light: #ecfdf5;
  --warning:       #f97316;
  --warning-light: #fff7ed;
  --info:          #3b82f6;
  --info-light:    #eff6ff;
  --neutral:       #6b7280;
  --neutral-light: #f9fafb;
  --dark:          #111827;
  --text:          #374151;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg:            #f3f4f6;
  --white:         #ffffff;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
  --transition:    all 0.25s ease;
  --font:          'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

/* XF logo icon */
.brand-icon-xf {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1a56db, #7c3aed);
  box-shadow: 0 2px 10px rgba(124,58,237,0.45);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(124,58,237,0.45); }
  50%       { box-shadow: 0 2px 22px rgba(124,58,237,0.8); }
}

/* Animated brand name letters */
.brand-name-animated {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.brand-letter {
  display: inline-block;
  animation: letterWave 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}

.brand-letter:nth-child(1) { animation-delay: 0s; }
.brand-letter:nth-child(2) { animation-delay: 0.08s; }
.brand-letter:nth-child(3) { animation-delay: 0.16s; }
.brand-letter:nth-child(4) { animation-delay: 0.24s; }
.brand-letter:nth-child(5) { animation-delay: 0.32s; }
.brand-letter:nth-child(6) { animation-delay: 0.40s; }

@keyframes letterWave {
  0%, 70%, 100% { transform: translateY(0);  color: #fff; }
  35%           { transform: translateY(-3px); color: #a5b4fc; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

.header-nav .admin-link {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  font-weight: 600;
}

.header-nav .admin-link:hover { opacity: 0.9; }

/* ============================================================
   HERO
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  padding: 72px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Grid pattern overlay */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Animated gradient sweep */
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(124,58,237,0.15) 50%, transparent 70%);
  animation: heroSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: floatUp linear infinite;
}

.particle:nth-child(1)  { left: 10%;  animation-duration: 8s;  animation-delay: 0s;    width: 3px; height: 3px; }
.particle:nth-child(2)  { left: 22%;  animation-duration: 11s; animation-delay: 1.5s;  width: 5px; height: 5px; background: rgba(165,180,252,0.4); }
.particle:nth-child(3)  { left: 38%;  animation-duration: 9s;  animation-delay: 3s; }
.particle:nth-child(4)  { left: 52%;  animation-duration: 13s; animation-delay: 0.8s;  width: 6px; height: 6px; background: rgba(196,181,253,0.3); }
.particle:nth-child(5)  { left: 65%;  animation-duration: 7s;  animation-delay: 2.2s; }
.particle:nth-child(6)  { left: 75%;  animation-duration: 10s; animation-delay: 4s;    width: 5px; height: 5px; }
.particle:nth-child(7)  { left: 83%;  animation-duration: 12s; animation-delay: 1s;    background: rgba(165,180,252,0.5); }
.particle:nth-child(8)  { left: 90%;  animation-duration: 8.5s;animation-delay: 3.5s; width: 3px; height: 3px; }
.particle:nth-child(9)  { left: 44%;  animation-duration: 14s; animation-delay: 5s;    width: 7px; height: 7px; background: rgba(124,58,237,0.3); }

@keyframes floatUp {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content { position: relative; z-index: 1; }

/* Badge animation */
.badge-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge-animated {
  animation: fadeSlideIn 0.7s ease both;
}

.hero-title-animated {
  animation: fadeSlideIn 0.85s ease 0.15s both;
}

.hero-sub-animated {
  animation: fadeSlideIn 0.85s ease 0.3s both;
}

/* 3-step process row */
.hero-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px auto 28px;
  max-width: 540px;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 7px 16px 7px 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.hero-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-step-divider {
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
}

/* CTA note below button */
.hero-cta-note {
  margin-top: 14px !important;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-cta-note i { color: #f59e0b; }

.hero-date-animated {
  animation: fadeSlideIn 0.85s ease 0.45s both;
}

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

.hero-banner h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 16px;
}

.hero-sub strong {
  color: #fff;
  font-weight: 700;
}

.hero-date {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

/* Recovery CTA Button */
.hero-cta-wrap {
  animation: fadeSlideIn 0.9s ease 0.6s both;
  margin-top: 8px;
}

.hero-recovery-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 100px;
  box-shadow: 0 6px 30px rgba(245,158,11,0.5), 0 0 0 0 rgba(245,158,11,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: btnPulseGlow 2.5s ease-in-out infinite;
}

.hero-recovery-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  border-radius: inherit;
  transition: opacity 0.3s;
}

.hero-recovery-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 40px rgba(245,158,11,0.65), 0 0 0 6px rgba(245,158,11,0.15);
  text-decoration: none;
  color: #fff;
}

.hero-recovery-btn:active {
  transform: translateY(-1px) scale(1.01);
}

.hero-btn-icon-ext {
  font-size: 0.78rem;
  opacity: 0.85;
}

@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 6px 30px rgba(245,158,11,0.5), 0 0 0 0   rgba(245,158,11,0.3); }
  50%       { box-shadow: 0 6px 30px rgba(245,158,11,0.5), 0 0 0 10px rgba(245,158,11,0); }
}

/* ============================================================
   FOOTER BRAND ANIMATION
   ============================================================ */
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  animation: logoPulse 3s ease-in-out infinite;
}

.footer-brand-name {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.footer-letter {
  display: inline-block;
  animation: footerLetterShine 4s ease-in-out infinite;
}

.footer-letter:nth-child(1) { animation-delay: 0s; }
.footer-letter:nth-child(2) { animation-delay: 0.1s; }
.footer-letter:nth-child(3) { animation-delay: 0.2s; }
.footer-letter:nth-child(4) { animation-delay: 0.3s; }
.footer-letter:nth-child(5) { animation-delay: 0.4s; }
.footer-letter:nth-child(6) { animation-delay: 0.5s; }

@keyframes footerLetterShine {
  0%, 60%, 100% { color: #fff;    text-shadow: none; }
  30%           { color: #a5b4fc; text-shadow: 0 0 12px rgba(165,180,252,0.7); }
}

.footer-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ============================================================
   REACTION BAR
   ============================================================ */
.reaction-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.reaction-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  flex: 1;
  min-width: 150px;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--neutral-light);
  color: var(--text);
}

.reaction-btn.like-btn:hover,
.reaction-btn.like-btn.active {
  background: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.reaction-btn.dislike-btn:hover,
.reaction-btn.dislike-btn.active {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

.reaction-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   STATEMENT ARTICLE & SECTIONS
   ============================================================ */
.statement-article {
  padding: 40px 0 10px;
}

.stmt-section {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 5px solid transparent;
  transition: var(--transition);
}

.stmt-section:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

.stmt-section.warning  { border-left-color: var(--warning); }
.stmt-section.info     { border-left-color: var(--info); }
.stmt-section.neutral  { border-left-color: var(--neutral); }
.stmt-section.success  { border-left-color: var(--success); }
.stmt-section.recovery { border-left-color: var(--primary); background: linear-gradient(135deg, #f0f4ff, #fff); }
.stmt-section.closing  { border-left-color: var(--accent); }

.stmt-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.stmt-section.warning  .stmt-icon { background: linear-gradient(135deg, var(--warning), #dc2626); }
.stmt-section.success  .stmt-icon { background: linear-gradient(135deg, var(--success), #0891b2); }
.stmt-section.closing  .stmt-icon { background: linear-gradient(135deg, var(--accent), var(--warning)); }

.stmt-body { flex: 1; }

.stmt-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.stmt-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin: 16px 0 8px;
}

.stmt-body p { margin-bottom: 10px; color: var(--text); }

.stmt-body ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.stmt-body ul li {
  margin-bottom: 6px;
  color: var(--text);
}

.stmt-note {
  background: var(--neutral-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 3px solid var(--border);
  margin-top: 10px !important;
}

.stmt-note.highlight {
  background: var(--primary-light);
  border-left-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 500;
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #856404;
}

.alert-box i { margin-top: 2px; color: #f59e0b; }

/* ============================================================
   COMMUNITY SECTIONS (Q&A + Comments)
   ============================================================ */
.community-section {
  padding: 48px 0;
}

.community-section.alt-bg {
  background: var(--white);
}

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

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-header h2 i { color: var(--primary); }

.section-header p { color: var(--text-muted); }

/* Forms */
/* Public badge & comment count */
.comments-count-bar {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--success-light);
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid #a7f3d0;
}

.qa-form-card, .comment-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.qa-form-card h3, .comment-form-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-form-card h3 i, .comment-form-card h3 i { color: var(--primary); }

.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.char-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

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

/* ============================================================
   Q&A CARDS
   ============================================================ */
.qa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.qa-card:hover { box-shadow: var(--shadow-lg); }

.qa-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.qa-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--info), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.qa-meta { flex: 1; }
.qa-meta strong { display: block; font-size: 0.9rem; color: var(--dark); }
.qa-meta time { font-size: 0.78rem; color: var(--text-muted); }

.qa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.qa-status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.qa-status-badge.answered {
  background: var(--success-light);
  color: #065f46;
}

.qa-question-text {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 14px;
  font-style: italic;
  padding-left: 12px;
  border-left: 3px solid var(--info);
}

.qa-answer {
  background: var(--success-light);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.qa-answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #065f46;
}

.qa-answer-header i { color: var(--success); }
.qa-answer-text { font-size: 0.9rem; color: var(--text); }

/* ============================================================
   COMMENT CARDS
   ============================================================ */
.comment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.comment-card:hover { box-shadow: var(--shadow-lg); }

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.comment-meta { flex: 1; }
.comment-meta strong { display: block; font-size: 0.88rem; color: var(--dark); }
.comment-meta time { font-size: 0.76rem; color: var(--text-muted); }

.comment-text {
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--neutral-light);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-family: var(--font);
}

.vote-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.vote-btn.voted-up { background: var(--success-light); border-color: var(--success); color: var(--success); }
.vote-btn.voted-down { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }

/* Smaller vote buttons for replies */
.vote-btn-sm { padding: 3px 10px; font-size: 0.76rem; }

/* Reply trigger & view-replies buttons */
.reply-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  transition: var(--transition);
}
.reply-trigger-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.view-replies-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  font-family: var(--font);
  transition: var(--transition);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.view-replies-btn:hover { color: var(--primary-dark); }

.no-replies-label { display: inline-block; }

/* ============================================================
   REPLY FORM (inline below comment actions)
   ============================================================ */
.reply-form-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.reply-form {
  background: var(--neutral-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-name-input,
.reply-text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.87rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  resize: vertical;
}
.reply-name-input:focus,
.reply-text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.reply-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.btn-cancel-reply {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.btn-cancel-reply:hover { border-color: var(--danger); color: var(--danger); }

.btn-post-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(26,86,219,0.25);
}
.btn-post-reply:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-post-reply:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   REPLIES THREAD
   ============================================================ */
.replies-thread {
  margin-top: 12px;
  padding-left: 20px;
  border-left: 3px solid var(--primary-light);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reply-card {
  display: flex;
  gap: 0;
  position: relative;
  padding: 10px 0 4px 16px;
}

.reply-connector {
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.reply-content {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.reply-content:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }

.reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reply-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
}

.reply-meta { flex: 1; }
.reply-meta strong { display: block; font-size: 0.82rem; color: var(--dark); }
.reply-meta time   { font-size: 0.72rem; color: var(--text-muted); }

.reply-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 10px;
}

.reply-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   EMOJI REACTIONS
   ============================================================ */

/* The whole emoji bar row */
.emoji-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
  position: relative;
}

/* "React" trigger button */
.emoji-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--neutral-light);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 3px 11px 3px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  transition: var(--transition);
  line-height: 1.6;
  white-space: nowrap;
}
.emoji-add-btn:hover {
  background: #fef9c3;
  border-color: #f59e0b;
  color: #92400e;
}
.emoji-add-btn span:first-child { font-size: 1rem; }
.emoji-add-label { font-size: 0.78rem; }

/* Summary pills — show which emojis have been reacted */
.emoji-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.emoji-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #78350f;
  cursor: default;
  transition: var(--transition);
  animation: popIn 0.2s ease;
}
.emoji-summary-pill:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: scale(1.08);
}
.emoji-pill-count {
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Floating emoji picker panel */
.emoji-picker-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  gap: 4px;
  flex-wrap: wrap;
  max-width: 260px;
  animation: fadeSlideDown 0.18s ease;
}

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

/* Individual emoji buttons inside picker */
.emoji-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--neutral-light);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px 8px;
  min-width: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  position: relative;
}
.emoji-pick-btn:hover {
  background: #fef9c3;
  border-color: #f59e0b;
  transform: scale(1.15);
}
.emoji-pick-btn.active {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
}
.emoji-pick-btn.active::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 0.55rem;
  color: #d97706;
  font-weight: 900;
}
.emoji-pick-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

/* Replies get slightly smaller emoji bars */
.reply-content .emoji-bar { margin: 6px 0 4px; }
.reply-content .emoji-add-btn { padding: 2px 9px 2px 6px; font-size: 0.76rem; }
.reply-content .emoji-add-btn span:first-child { font-size: 0.9rem; }
.reply-content .emoji-add-label { font-size: 0.72rem; }
.reply-content .emoji-summary-pill { font-size: 0.76rem; padding: 2px 7px; }
.reply-content .emoji-pick-btn { min-width: 42px; font-size: 1.2rem; padding: 5px 6px; }

/* ============================================================
   EMPTY / LOADING STATES
   ============================================================ */
.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--border);
  display: block;
}

/* ============================================================
   LIVE CHAT WIDGET
   ============================================================ */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(26,86,219,0.45);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chat-toggle:hover { transform: scale(1.06); }

.chat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.chat-panel {
  width: 340px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 1px solid var(--border);
  max-height: 520px;
}

.chat-panel.open { display: flex; }

.chat-header {
  background: linear-gradient(135deg, var(--dark), #1e3a5f);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

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

.chat-status-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  animation: pulse 2s infinite;
}

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

.chat-header-info strong { font-size: 0.92rem; display: block; }
.chat-header-info small { font-size: 0.72rem; color: rgba(255,255,255,0.6); }

.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  transition: var(--transition);
}

.chat-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.chat-name-setup {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-name-setup p { font-size: 0.9rem; color: var(--text-muted); }
.chat-name-setup input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
}
.chat-name-setup input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-messages-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  min-height: 200px;
}

.chat-msg {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg.user-msg {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.admin-msg {
  background: var(--neutral-light);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-msg-meta {
  font-size: 0.7rem;
  margin-top: 3px;
  opacity: 0.7;
  text-align: right;
}

.admin-msg .chat-msg-meta { text-align: left; }

.chat-msg-sender {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--primary);
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.chat-input-bar input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.85rem;
  transition: var(--transition);
}

.chat-input-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-send-btn:hover { transform: scale(1.08); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85rem;
  margin-top: 10px;
}

.site-footer strong { color: #fff; }
.site-footer .footer-note { margin-top: 6px; font-size: 0.78rem; opacity: 0.5; }

.footer-admin-link {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-admin-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.2);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.25s ease;
  padding: 4px 10px;
  border-radius: 6px;
}

.footer-admin-link a:hover {
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .header-nav a { padding: 5px 8px; font-size: 0.78rem; }
  .stmt-section { flex-direction: column; gap: 14px; }
  .stmt-icon { width: 40px; height: 40px; min-width: 40px; }
  .chat-panel { width: 300px; }
  .chat-widget { bottom: 16px; right: 16px; }
  .reaction-bar { flex-direction: column; align-items: flex-start; }
}
