/* ==========================================================================
   CỘNG ĐỒNG SỐNG VUI KHỎE & BẾP ẤM - QUẢN TRỊ VIÊN: CÔ VÂN NGUYỄN
   Modern Interactive Community Web Application Stylesheet
   ========================================================================== */

:root {
  --primary: #15803d;
  --primary-dark: #14532d;
  --primary-deeper: #064e3b;
  --primary-light: #dcfce7;
  --primary-soft: #f0fdf4;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-gold-border: #fde68a;
  --rose-main: #e11d48;
  --rose-light: #fff1f2;
  --rose-border: #fecdd3;
  --sky-main: #0284c7;
  --sky-light: #e0f2fe;
  --purple-main: #7c3aed;
  --bg-body: #f6faf6;
  --bg-surface: #ffffff;
  --bg-muted: #f8fafc;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-emerald: #bbf7d0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 83, 45, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 83, 45, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  --base-font-size: 17px;
}

[data-theme="dark"] {
  --bg-body: #0b1711;
  --bg-surface: #13241b;
  --bg-muted: #1a3024;
  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #264233;
  --border-emerald: #1e4631;
  --primary-light: #1a3a29;
  --primary-soft: #11291d;
  --accent-gold-light: #3b2a10;
  --rose-light: #35131e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
}

html[data-fontsize="normal"] {
  font-size: 17px;
}

html[data-fontsize="large"] {
  font-size: 19px;
}

html[data-fontsize="xlarge"] {
  font-size: 21px;
}

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

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container-wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   1. CELEBRATION BANNER & QUICK SHARE BAR
   ========================================================================== */

.banner-celebration {
  background: linear-gradient(90deg, #fff1f2 0%, #ffe4e6 50%, #fef3c7 100%);
  border-bottom: 2px solid var(--rose-border);
  color: #be123c;
  padding: 10px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

[data-theme="dark"] .banner-celebration {
  background: linear-gradient(90deg, #3b121f 0%, #4c1d2e 50%, #3b2a10 100%);
  color: #fda4af;
  border-bottom-color: #881337;
}

.banner-wish-trigger {
  background: #e11d48;
  color: #ffffff;
  border: none;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
  transition: var(--transition);
}

.banner-wish-trigger:hover {
  background: #be123c;
  transform: translateY(-1px);
}

.share-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.share-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-link-box {
  background: var(--primary-soft);
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  word-break: break-all;
}

[data-theme="dark"] .share-link-box {
  color: #86efac;
}

.btn-action {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-action:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-qr {
  background: #0d9488;
}

.btn-qr:hover {
  background: #0f766e;
}

.btn-cloud {
  background: #7c3aed;
}

.btn-cloud:hover {
  background: #6d28d9;
}

/* ==========================================================================
   2. STICKY NAVIGATION HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-emerald);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .site-header {
  background: rgba(19, 36, 27, 0.92);
}

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

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-avatar-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--primary);
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.25);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-main-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

[data-theme="dark"] .brand-main-name {
  color: #4ade80;
}

.brand-sub-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #86efac;
}

.nav-utilities {
  display: flex;
  align-items: center;
  gap: 8px;
}

.font-Controls {
  display: inline-flex;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.font-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.font-btn.active,
.font-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.theme-toggle-btn {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  transform: scale(1.06);
}

/* ==========================================================================
   3. HERO SECTION & CÔ VÂN NGUYỄN PROFILE SHOWCASE
   ========================================================================== */

.hero-section {
  background: radial-gradient(circle at 15% 20%, rgba(220, 252, 231, 0.7) 0%, transparent 50%),
              radial-gradient(circle at 85% 80%, rgba(254, 243, 199, 0.65) 0%, transparent 50%),
              linear-gradient(135deg, #064e3b 0%, #166534 55%, #15803d 100%);
  color: #ffffff;
  padding: 44px 0 52px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(254, 243, 199, 0.5);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-title span {
  color: #fde047;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #dcfce7;
  margin-bottom: 24px;
  max-width: 640px;
}

.hero-quote-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-left: 4px solid #fde047;
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 26px;
  font-style: italic;
  color: #f8fafc;
}

.hero-quote-author {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  color: #fde047;
  font-size: 0.92rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 2px solid #fef08a;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fde047;
}

.hero-stat-label {
  font-size: 0.84rem;
  color: #dcfce7;
}

/* Cô Vân Nguyễn Portrait Card */
.admin-showcase-card {
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 3px solid #fde047;
  text-align: center;
  position: relative;
}

.admin-photo-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid #15803d;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.2);
  cursor: zoom-in;
  margin-bottom: 16px;
  background: #fef3c7;
}

.admin-photo-frame img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

.admin-photo-frame:hover img {
  transform: scale(1.04);
}

.admin-photo-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  pointer-events: none;
}

.admin-badge-crown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.admin-name-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 4px;
}

.admin-role-desc {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 14px;
}

.admin-tags-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-tag {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   4. MODAL BOXES (QR CODE & CLOUD 24/24 GUIDE)
   ========================================================================== */

.info-modal-drawer {
  display: none;
  max-width: 820px;
  margin: 20px auto;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: fadeSlideDown 0.3s ease;
}

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

.qr-img {
  width: 220px;
  height: 220px;
  border: 4px solid var(--primary-light);
  border-radius: 14px;
  margin: 12px auto;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
}

/* ==========================================================================
   5. MAIN COMMUNITY Q&A FORUM LAYOUT
   ========================================================================== */

.forum-section {
  padding: 36px 0 48px;
}

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

.section-kicker {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

[data-theme="dark"] .section-kicker {
  color: #86efac;
}

.section-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.forum-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 26px;
  align-items: start;
}

.panel-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.sticky-sidebar {
  position: sticky;
  top: 86px;
}

.panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .panel-title {
  color: #4ade80;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.quick-author-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.author-chip {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.author-chip:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

textarea.form-control {
  min-height: 105px;
  resize: vertical;
}

.upload-preview-box {
  display: none;
  margin-top: 10px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--primary);
  background: #0f172a;
  max-height: 200px;
}

.upload-preview-box img,
.upload-preview-box video {
  max-height: 196px;
  margin: 0 auto;
  object-fit: contain;
}

.btn-remove-media {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(225, 29, 72, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-weight: bold;
}

.auto-reply-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--border-emerald);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
}

[data-theme="dark"] .auto-reply-option {
  color: #86efac;
}

.auto-reply-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.btn-submit-post {
  width: 100%;
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  color: #ffffff;
  border: none;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.28);
  transition: var(--transition);
}

.btn-submit-post:hover {
  background: linear-gradient(135deg, #166534 0%, #14532d 100%);
  transform: translateY(-2px);
}

/* Forum Toolbar & Filters */
.forum-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.cat-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cat-btn {
  background: var(--bg-muted);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 15px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.cat-btn.active,
.cat-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.cat-count {
  background: rgba(0, 0, 0, 0.12);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
}

.cat-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.search-sort-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-main);
}

.sort-select {
  width: auto;
  min-width: 185px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-main);
  font-weight: 600;
}

/* Question Cards */
.q-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--primary);
  transition: var(--transition);
}

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

.q-card.admin-post {
  border-left-color: var(--accent-gold);
}

.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  gap: 8px;
}

.badge-cat {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
}

[data-theme="dark"] .badge-cat {
  color: #86efac;
}

.author-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-secondary);
}

.author-tag-pill.is-admin {
  background: var(--accent-gold-light);
  color: #92400e;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-gold-border);
}

[data-theme="dark"] .author-tag-pill.is-admin {
  color: #fde68a;
}

.q-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 10px;
  line-height: 1.35;
}

.q-content {
  margin-bottom: 16px;
  white-space: pre-line;
  color: var(--text-secondary);
}

.media-preview {
  margin: 14px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-height: 400px;
  background: #0f172a;
  text-align: center;
  cursor: zoom-in;
}

.media-preview img,
.media-preview video {
  max-width: 100%;
  max-height: 400px;
  margin: 0 auto;
  object-fit: contain;
}

.q-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}

.btn-like {
  background: var(--rose-light);
  color: var(--rose-main);
  border: 1px solid var(--rose-border);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-like:hover,
.btn-like.liked {
  background: var(--rose-main);
  color: #ffffff;
  transform: scale(1.03);
}

.btn-auto-consult {
  background: var(--accent-gold-light);
  color: #92400e;
  border: 1px solid var(--accent-gold-border);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

[data-theme="dark"] .btn-auto-consult {
  color: #fde68a;
}

.btn-auto-consult:hover {
  background: var(--accent-gold);
  color: #ffffff;
}

.ans-count-label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  margin-left: auto;
}

.answers-box {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 14px;
  border: 1px solid var(--border-color);
}

.answer-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.answer-item.auto-helper-reply {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
}

.answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.answer-author {
  font-weight: 700;
  color: var(--sky-main);
  font-size: 0.92rem;
}

.answer-item.auto-helper-reply .answer-author {
  color: var(--primary-dark);
}

[data-theme="dark"] .answer-item.auto-helper-reply .answer-author {
  color: #4ade80;
}

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

.answer-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.reply-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.reply-form input[name="author"] {
  width: 185px;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
}

.reply-form input[name="content"] {
  flex: 1;
  min-width: 210px;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-reply {
  background: var(--sky-main);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reply:hover {
  background: #0369a1;
}

/* ==========================================================================
   6. CẨM NANG DƯỠNG SINH & BẾP ẤM SECTION
   ========================================================================== */

.handbook-section {
  padding: 52px 0;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-body) 100%);
  border-top: 1px solid var(--border-emerald);
}

.handbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hb-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.hb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.hb-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.hb-cat-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hb-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hb-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hb-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-muted);
  padding: 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin-top: auto;
  margin-bottom: 14px;
}

.btn-ask-hb {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ask-hb:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   7. BỨC TƯỜNG LỜI CHÚC YÊU THƯƠNG (INTERACTIVE WISH WALL)
   ========================================================================== */

.wishes-section {
  padding: 48px 0 60px;
}

.wishes-banner-card {
  background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
  border: 2px solid var(--rose-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .wishes-banner-card {
  background: linear-gradient(135deg, #31101d 0%, #2d210d 100%);
  border-color: #881337;
}

.wish-form-row {
  display: grid;
  grid-template-columns: 200px 130px 1fr auto;
  gap: 10px;
  margin: 20px 0 24px;
}

.wishes-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wish-card-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--rose-border);
  box-shadow: var(--shadow-sm);
}

.wish-flower-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: inline-block;
}

.wish-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-style: italic;
}

.wish-sender {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--rose-main);
}

/* ==========================================================================
   8. FOOTER & SCROLL-TO-TOP & LIGHTBOX
   ========================================================================== */

.site-footer {
  background: #064e3b;
  color: #ecfdf5;
  padding: 40px 0 28px;
  border-top: 4px solid #f59e0b;
}

.footer-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 10px;
}

.footer-disclaimer {
  font-size: 0.88rem;
  color: #a7f3d0;
  font-style: italic;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: #6ee7b7;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.scroll-top-btn {
  position: fixed;
  bottom: 96px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-box {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  position: relative;
}

.lightbox-box img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  border: 3px solid #fde047;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   9. BRAND ASSISTANT INTEGRATOR CHAT WIDGET (PURE BRAND REPRESENTATION)
   ========================================================================== */

.brand-fab-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  background: linear-gradient(135deg, #15803d 0%, #065f46 100%);
  color: #ffffff;
  padding: 9px 18px 9px 11px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.45);
  border: 2px solid #fde047;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  user-select: none;
}

.brand-fab-launcher:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(21, 128, 61, 0.6);
}

.brand-fab-icon-box {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #fde047;
}

.brand-fab-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #fde047;
  animation: fabPulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
  pointer-events: none;
}

@keyframes fabPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.brand-fab-text {
  display: flex;
  flex-direction: column;
}

.brand-fab-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #fef08a;
}

.brand-fab-sub {
  font-size: 0.74rem;
  color: #dcfce7;
  font-weight: 500;
}

.brand-fab-badge {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.brand-chat-window {
  position: fixed;
  bottom: 92px;
  right: 22px;
  width: 390px;
  max-width: calc(100vw - 28px);
  height: 570px;
  max-height: calc(100vh - 115px);
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(6, 78, 59, 0.28);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.brand-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.brand-chat-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #064e3b 0%, #15803d 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #fde047;
}

.brand-chat-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  border: 2px solid #fde047;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.brand-profile-meta .brand-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fef08a;
  line-height: 1.2;
}

.brand-profile-meta .brand-status-text {
  font-size: 0.74rem;
  color: #dcfce7;
}

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

.brand-icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-icon-btn:hover {
  background: #f59e0b;
}

.brand-chat-chips {
  padding: 8px 12px;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border-emerald);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.brand-chat-chips::-webkit-scrollbar {
  display: none;
}

.brand-chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

[data-theme="dark"] .brand-chip-btn {
  color: #86efac;
}

.brand-chip-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.brand-chat-body {
  padding: 14px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-body);
}

.brand-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
}

.brand-msg.bot {
  align-self: flex-start;
}

.brand-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.brand-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary);
  flex-shrink: 0;
  background: #ffffff;
}

.brand-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.brand-msg.bot .brand-msg-bubble {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-emerald);
  border-top-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.brand-msg.user .brand-msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.brand-chat-footer {
  padding: 10px 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.brand-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-body);
  border: 1.5px solid var(--primary);
  border-radius: 22px;
  padding: 5px 10px 5px 14px;
}

.brand-input-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.88rem;
  color: var(--text-main);
  max-height: 80px;
}

.brand-send-btn {
  background: var(--primary);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.06);
}

.brand-footer-note {
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .admin-showcase-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .handbook-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wishes-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wish-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .forum-grid {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .handbook-grid,
  .wishes-wall-grid,
  .wish-form-row {
    grid-template-columns: 1fr;
  }
  .brand-fab-sub {
    display: none;
  }
  .brand-chat-window {
    right: 10px;
    bottom: 84px;
    width: calc(100vw - 20px);
    height: calc(100vh - 105px);
  }
}

