/* ========================================
   CICALA — Jeton Design System
   Inspired by jeton.com visual language
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette — jeton.com derived */
  --brand:           #f73b20;
  --brand-deep:      #d42f16;
  --brand-surface:   rgba(247, 59, 32, 0.04);
  --brand-surface-h: rgba(247, 59, 32, 0.08);
  --brand-border:    rgba(247, 59, 32, 0.12);
  --brand-light:     #fee9e6;

  /* Text hierarchy — warm deep brown, NOT pure black */
  --text-primary:    #360802;
  --text-secondary:  #6b5e5b;
  --text-muted:      #9a8f8c;

  /* Backgrounds */
  --bg:              #ffffff;
  --bg-warm:         #faf9f7;

  /* Accents */
  --border-light:    #f0edeb;
  --border-soft:     #e8e3e0;

  /* Radii — jeton style: ultra-pill buttons, clean cards */
  --radius-pill:     84px;
  --radius-lg:       24px;
  --radius-md:       16px;
  --radius-sm:       10px;

  /* Spacing */
  --section-gap:     clamp(80px, 10vw, 140px);
  --content-max:     1120px;

  /* Typography */
  --font:            'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:            cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-smooth:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  font-size: 16px; font-weight: 400;
  line-height: 1.6; color: var(--text-primary);
  background: var(--bg);
  letter-spacing: 0.01em;
}
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

a { color: var(--brand); text-decoration: none; }
.brand-text { color: var(--brand); font-weight: 600; }
img { max-width: 100%; display: block; }

/* ---------- Navbar — fixed, transparent over hero ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: clamp(20px, 3vw, 32px) 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 12px 0;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--brand); font-weight: 500; font-size: 15px; }
.logo-icon { width: 32px; height: 32px; color: var(--brand); }

.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 450; color: var(--text-secondary);
  padding: 8px 10px; border-radius: var(--radius-pill);
  transition: color var(--ease), background var(--ease);
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.3; white-space: nowrap;
}
.nav-zh { font-weight: 500; font-size: 13px; }
.nav-es { font-size: 9px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--text-primary); background: var(--brand-surface); }
.nav-links .btn-nav {
  background: var(--brand); color: #fff; padding: 10px 20px;
  border-radius: var(--radius-pill); font-weight: 500;
  margin-left: 8px;
  display: inline-flex; flex-direction: column; align-items: center;
  line-height: 1.25;
  transition: opacity var(--ease), transform var(--ease);
}
.nav-links .btn-nav .nav-es { color: rgba(255,255,255,0.65); }
.nav-links .btn-nav:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; background: var(--brand); }

/* Mobile toggle */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px 4px; z-index: 101;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding-top: 80px;
}
.hero-bg-lines, .ambient-blobs { display: none; }

.hero-content { text-align: center; position: relative; z-index: 2; max-width: 800px; }

.hero-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.15em;
  color: var(--brand); text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tagline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.06; color: var(--text-primary);
  margin-bottom: 10px;
}
.hero-tagline-dot { color: var(--brand); }
.hero-tagline-accent { color: var(--brand); }

.hero-tagline-es {
  font-size: 1.05rem; color: var(--text-secondary);
  font-style: italic; margin-bottom: 32px;
}

.hero-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 36px;
}
.hero-divider span {
  display: block; width: 50px; height: 1px; background: var(--border-soft);
}
.hero-c-badge { width: 36px; height: 36px; }

.hero-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.hero-title em { font-style: normal; color: var(--brand); }

.subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 4px; }
.subtitle-es { font-size: 0.95rem; color: var(--text-muted); font-style: italic; margin-bottom: 0; }

.hero-cta { margin-top: 48px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons — jeton pill style ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  background: var(--brand); color: #fff;
  transition: opacity var(--ease), transform var(--ease);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-zh { font-weight: 500; font-size: 15px; }
.btn-es { font-size: 10px; font-weight: 400; opacity: 0.7; letter-spacing: 0.02em; }
.btn-arrow { font-size: 1.1em; transition: transform var(--ease); flex-shrink: 0; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 13px 34px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-primary);
  border: 1.5px solid var(--border-soft);
  background: transparent;
  transition: border-color var(--ease), background var(--ease);
  line-height: 1.25;
}
.btn-outline:hover { border-color: var(--text-primary); background: var(--brand-surface); }
.btn-outline .btn-es { color: var(--text-muted); opacity: 1; }

.hero-scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); border-radius: 50%;
  color: var(--text-muted); animation: bounce 2s infinite; z-index: 2;
}
.hero-scroll-indicator svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections — alternating clean backgrounds ---------- */
.section { padding: var(--section-gap) 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-warm); }

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

.section-tag {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--brand);
  padding: 6px 16px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-primary); margin-bottom: 10px;
}
.section-desc {
  font-size: 1.1rem; color: var(--text-secondary);
}

/* ---------- Content blocks (成立背景) ---------- */
.content-block { max-width: 880px; margin: 0 auto; }
.content-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.content-item:last-child { border-bottom: none; }
.content-item p {
  margin-bottom: 10px;
  color: var(--text-primary);
}
.content-item .es {
  font-size: 0.92rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 0;
}

/* ---------- Mission cards ---------- */
.mission-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px); max-width: 960px; margin: 0 auto;
}
.mission-card {
  background: var(--brand-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: border-color var(--ease), background var(--ease);
  text-align: center;
}
.mission-card:hover { border-color: var(--brand-border); background: var(--brand-surface-h); }
.mission-card-icon-wrap {
  width: 56px; height: 56px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.card-icon { width: 48px; height: 48px; color: var(--brand); }
.mission-card h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
}
.mission-card .cn-text { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 6px; }
.mission-card .cn-text.brand-text { color: var(--brand); font-weight: 600; }
.mission-card .es-text { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* ---------- Values cards ---------- */
.values-grid {
  display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 0 auto;
}
.value-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--brand-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 28px 32px;
  transition: border-color var(--ease), background var(--ease);
}
.value-card:hover { border-color: var(--brand-border); background: var(--brand-surface-h); }
.v-num {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--brand);
  background: var(--brand-light);
  border-radius: 12px;
}
.v-content p { color: var(--text-primary); margin-bottom: 6px; font-size: 0.95rem; }
.v-content .es { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 0; }

/* ---------- Timeline (发展规划) ---------- */
.timeline {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
}
.timeline-item {
  display: flex; gap: 32px; align-items: flex-start;
  background: var(--brand-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--ease), background var(--ease);
}
.timeline-item:hover { border-color: var(--brand-border); background: var(--brand-surface-h); }
.timeline-phase {
  flex-shrink: 0; min-width: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--brand); text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-pill);
  text-align: center;
}
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.timeline-item p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 6px; }
.timeline-item .es { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 0; }

/* ---------- Membership lists ---------- */
.membership-section {
  max-width: 880px; margin: 0 auto 48px;
}
.membership-section:last-child { margin-bottom: 0; }
.membership-section h4 {
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--brand-border);
}
.sub-label {
  font-size: 0.95rem; font-weight: 600; color: var(--brand);
  margin: 24px 0 14px 4px;
}
.sub-label-es { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); font-style: italic; margin-left: 6px; }
.membership-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.membership-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  background: var(--brand-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-primary);
  transition: border-color var(--ease);
}
.membership-list li:hover { border-color: var(--brand-border); background: var(--brand-surface-h); }
.membership-list .idx {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-light);
  border-radius: 8px;
  margin-top: 1px;
}
.membership-list .es-text {
  font-size: 0.85rem; color: var(--text-muted); font-style: italic;
}
.content-item-nb { padding: 0; }
.content-item-nb p { margin-bottom: 8px; color: var(--text-primary); }
.content-item-nb .es { font-size: 0.92rem; color: var(--text-muted); font-style: italic; }

/* ---------- Org table ---------- */
.org-wrap { max-width: 880px; margin: 0 auto; }
.org-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.95rem;
}
.org-table thead th {
  text-align: left; padding: 16px 20px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--brand); text-transform: uppercase;
  border-bottom: 2px solid var(--brand-border);
  background: var(--brand-surface);
}
.org-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.org-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.org-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: top;
}
.org-table tbody tr { transition: background var(--ease); }
.org-table tbody tr:hover { background: var(--brand-surface); }
.role-name { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.role-es { display: block; font-size: 0.82rem; color: var(--text-muted); font-style: italic; font-weight: 400; margin-top: 2px; }
.th-es { display: block; font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.6); font-style: italic; letter-spacing: 0.02em; }
.td-es { display: block; font-size: 0.82rem; color: var(--text-muted); font-style: italic; font-weight: 400; margin-top: 2px; }

/* ---------- CTA section ---------- */
.cta-section {
  background: var(--brand);
  text-align: center; padding: 100px 0;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 12px;
}
.cta-section p { font-size: 1.05rem; color: rgba(255,255,255,0.75); font-style: italic; margin-bottom: 36px; }
.cta-section .btn-primary {
  background: #fff; color: var(--brand); font-weight: 600;
}
.cta-section .btn-primary:hover { opacity: 0.95; transform: translateY(-1px); }

/* ---------- Footer ---------- */
.footer {
  background: #1a1311; padding: 64px 0 40px; text-align: center;
}
.footer-links {
  display: flex; justify-content: center; gap: 32px; margin-bottom: 28px; flex-wrap: wrap;
}
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 450; transition: color var(--ease); }
.footer-links a:hover { color: #fff; }
.footer p { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-company { font-size: 12px; }
.footer-icp { font-size: 11px; margin-top: 4px; }
.footer-icp a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-icp a:hover { color: rgba(255,255,255,0.6); text-decoration: underline; }
.footer-es { display: block; font-size: 0.75rem; opacity: 0.5; font-style: italic; }

/* ---------- Page header (sub-page hero) ---------- */
.page-header {
  padding: clamp(120px, 16vh, 180px) 0 clamp(48px, 6vh, 72px);
  text-align: center;
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--brand-surface) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-header .section-tag { margin-bottom: 24px; }
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.025em;
  color: var(--text-primary); margin-bottom: 8px;
}
.page-header .page-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  font-style: italic; margin-bottom: 0;
}
.page-header .page-subtitle-es {
  font-size: 0.95rem; color: var(--text-secondary);
  font-weight: 500; margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.page-header .brand-text { color: var(--brand); }

/* ---------- Form card ---------- */
.form-card {
  max-width: 680px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.form-card-header {
  text-align: center; margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.form-card-header h3 {
  font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.form-card-header .form-subtitle {
  font-size: 0.9rem; color: var(--text-muted); font-style: italic;
}

/* Form group */
.form-group { margin-bottom: 24px; }
.form-group:last-of-type { margin-bottom: 32px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-group label .label-es {
  font-size: 0.78rem; font-weight: 400; color: var(--text-muted);
  font-style: italic; margin-left: 4px;
}
.form-group .required {
  color: var(--brand); margin-left: 2px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  font-size: 15px; font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted); opacity: 0.6;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-surface);
}

/* Form section divider */
.form-section-title {
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em; color: var(--brand);
  text-transform: uppercase;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-border);
}

/* Submit button */
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 32px;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-submit:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(247,59,32,0.25); }
.btn-submit:active { transform: translateY(0); }
.btn-submit .btn-es { font-size: 12px; font-weight: 400; opacity: 0.8; }
.form-feedback {
  margin-top: 16px; text-align: center;
  font-size: 0.9rem; padding: 10px;
  border-radius: var(--radius-sm);
}
.form-feedback.success { background: #ecfdf3; color: #067647; }
.form-feedback.error { background: var(--brand-light); color: var(--brand); }

/* ---------- Messages page ---------- */
.messages-page { padding: 0 0 var(--section-gap); }
.message-card {
  max-width: 680px; margin: 0 auto 16px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: border-color 0.2s ease;
}
.message-card:hover { border-color: var(--brand-border); }
.message-card .msg-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.message-card .msg-author {
  font-weight: 600; font-size: 0.95rem;
  color: var(--text-primary);
}
.message-card .msg-time {
  font-size: 0.78rem; color: var(--text-muted);
}
.message-card .msg-body {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.7;
}
.no-messages {
  text-align: center; padding: 48px;
  color: var(--text-muted); font-size: 0.95rem;
}

/* ---------- Admin page tweaks ---------- */
.admin-page { padding: 140px 0 var(--section-gap); }
.admin-container {
  max-width: 880px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.admin-container .login-panel {
  max-width: 380px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
}
.admin-container .login-panel h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 28px;
}
.admin-container .login-panel .form-group { text-align: left; margin-bottom: 20px; }
.admin-container .login-panel .btn-submit { width: 100%; }

.admin-header { margin-bottom: 32px; }
.admin-header h2 {
  font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
}

.admin-tabs {
  display: flex; gap: 4px; margin-bottom: 28px;
  background: var(--bg-warm); border-radius: var(--radius-pill);
  padding: 4px;
}
.admin-tab {
  flex: 1; padding: 10px 20px; font-size: 14px; font-weight: 500;
  font-family: var(--font);
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.3;
  background: transparent; border: none; border-radius: var(--radius-pill);
  color: var(--text-secondary); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-tab.active { background: #fff; color: var(--text-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.admin-tab:hover:not(.active) { color: var(--text-primary); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.9rem;
}
.admin-table thead th {
  text-align: left; padding: 12px 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.admin-table tbody tr:hover { background: var(--brand-surface); }

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 36px;
}
.stat-card {
  text-align: center;
  background: var(--brand-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 28px 16px;
  transition: border-color 0.2s ease;
}
.stat-card:hover { border-color: var(--brand-border); }
.stat-value {
  font-size: 2rem; font-weight: 800; color: var(--brand);
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Forum Styles ─── */
.forum-categories { padding: 32px 0 0; }
.cat-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cat-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 8px 22px;
  font-size: 0.95rem; font-family: var(--font);
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.cat-pill:hover {
  background: var(--brand-surface-h);
  border-color: var(--brand-border);
  color: var(--brand);
}
.cat-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.forum-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.forum-toolbar h2 {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}

/* Topic Card */
.topic-list { display: flex; flex-direction: column; gap: 12px; }
.topic-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.topic-card:hover {
  border-color: var(--brand-border);
  box-shadow: 0 4px 20px rgba(247,59,32,0.06);
  transform: translateY(-1px);
}
.topic-cat-tag {
  display: inline-block;
  background: var(--brand-surface);
  color: var(--brand);
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.topic-title {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px; line-height: 1.4;
}
.topic-info {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem; color: var(--text-muted);
}

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg);
  font-family: var(--font); font-size: 0.9rem;
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s var(--ease);
}
.page-btn:hover { border-color: var(--brand-border); color: var(--brand); }
.page-btn.active {
  background: var(--brand); border-color: var(--brand);
  color: #fff; font-weight: 600;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 640px;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.15);
  animation: modalIn 0.25s var(--ease);
}
.modal-card-wide { max-width: 800px; }
.modal-card-sm { max-width: 420px; }

/* Login / Register modal extras */
.modal-switch { text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; }
.modal-switch a { color: var(--brand); text-decoration: none; cursor: pointer; }
.modal-switch a:hover { text-decoration: underline; }

/* User nav dropdown */
.user-nav-dropdown { position: relative; display: inline-block; }
.user-nav-btn { cursor: pointer; }
.user-dropdown-menu {
  position: absolute; right: 0; top: 100%; margin-top: 4px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; min-width: 160px; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1000; padding: 4px 0;
}
.user-dropdown-menu a {
  display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 13px;
  text-decoration: none; white-space: nowrap;
}
.user-dropdown-menu a:hover { background: var(--brand-surface); color: var(--brand); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.modal-close {
  background: none; border: none;
  font-size: 1.6rem; color: var(--text-muted); cursor: pointer;
  line-height: 1; padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--brand); }

/* Modal form labels */
.modal-card label {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 16px;
}
.modal-card label span {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary);
}
.modal-card input, .modal-card textarea, .modal-card select {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--text-primary);
}
.modal-card input:focus, .modal-card textarea:focus, .modal-card select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247,59,32,0.08);
}
.modal-card textarea { resize: vertical; min-height: 100px; }

.form-feedback { min-height: 20px; font-size: 0.85rem; margin-bottom: 8px; }
.form-feedback.error { color: var(--brand); }

/* Topic Detail */
.topic-meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 20px; font-size: 0.85rem; color: var(--text-muted);
}
.topic-body {
  font-size: 1rem; line-height: 1.8; color: var(--text-primary);
  white-space: pre-wrap; word-break: break-word;
  margin-bottom: 8px;
}
.divider {
  border: none; border-top: 1px solid var(--border-soft);
  margin: 24px 0;
}

/* Post / Reply items */
.post-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.post-item {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.post-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px; font-size: 0.85rem;
}
.post-header strong { color: var(--brand); font-size: 0.9rem; }
.post-floor { color: var(--text-secondary); font-weight: 600; }
.post-time { color: var(--text-muted); margin-left: auto; }
.post-content {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-primary);
  white-space: pre-wrap; word-break: break-word;
}

.reply-form { margin-top: 8px; }
.reply-form label { margin-bottom: 12px; }
.reply-form input, .reply-form textarea {
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  outline: none; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--text-primary);
}
.reply-form input:focus, .reply-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247,59,32,0.08);
}
.reply-form textarea { resize: vertical; min-height: 60px; }

.empty-state {
  text-align: center; padding: 48px 16px;
  color: var(--text-muted); font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; }
  .timeline-item { flex-direction: column; gap: 16px; }
  .timeline-phase { min-width: auto; display: inline-block; }
  .value-card { flex-direction: column; gap: 16px; }
  .nav-links { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-light);
  }
}

@media (max-width: 640px) {
  .hero-tagline { font-size: 2.4rem; }
  .section { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .org-table, .org-table thead, .org-table tbody, .org-table th, .org-table td, .org-table tr { display: block; }
  .org-table thead { display: none; }
  .org-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
  .org-table td:before { content: attr(data-label); font-weight: 600; display: block; color: var(--brand); margin-bottom: 4px; font-size: 0.8rem; }
}

/* ========== Event Cards ========== */
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 32px;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  border-color: var(--brand-border);
  background: var(--brand-surface-h);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.event-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.event-tag {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--brand);
  background: var(--brand-light); padding: 4px 14px; border-radius: 20px;
}
.event-date { font-size: 0.85rem; color: var(--text-muted); }
.event-title {
  font-size: 1.35rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 6px; line-height: 1.5;
}
.event-title-es {
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  font-style: italic; margin-bottom: 20px; line-height: 1.5;
}
.event-body { }
.event-summary p {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 12px;
}
.event-summary .es-text {
  font-size: 0.88rem; color: var(--text-muted); font-style: italic;
}
.event-highlights {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0;
}
.highlight-tag {
  font-size: 0.8rem; color: var(--text-secondary);
  background: var(--bg); border: 1px solid var(--border-light);
  padding: 4px 12px; border-radius: 6px;
}
.event-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; color: var(--brand);
  text-decoration: none; margin-top: 8px;
  transition: opacity 0.2s;
}
.event-link:hover { opacity: 0.8; }
.event-link .nav-zh { font-size: 0.9rem; }
.event-link .nav-es { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* ─── Bilingual toggle ─── */
.bilingual-toggle {
  display: flex !important;
  align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
  font-size: 0.9rem; color: var(--text-muted);
  padding: 8px 0;
}
.bilingual-toggle input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand);
}
.bilingual-toggle:hover { color: var(--text); }

/* ─── Translated content block ─── */
.translated-block {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(0,0,0,0.02); border-radius: 8px;
  border-left: 3px solid var(--brand);
}
.translated-label {
  display: block; font-size: 0.75rem;
  font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.translated-block p {
  margin: 0; font-size: 0.95rem;
  line-height: 1.7; color: var(--text-muted);
  white-space: pre-wrap;
}

/* ─── Forum settings card ─── */
.forum-settings-card {
  margin-bottom: 24px; padding: 18px 20px;
  background: var(--bg-warm); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.forum-settings-header h4 {
  margin: 0 0 12px 0; font-size: 1rem;
}
.settings-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  font-size: 0.9rem; color: var(--text);
}
.settings-toggle input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--brand);
}

