/* ==========================================================================
   ListFocus - Dedicated Portal Pages & Modals Suite
   (Giới thiệu, Thông số của bạn, Chính sách bảo mật)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Shared Theme Variables */
:root {
  --portal-bg: #0b1120;
  --portal-card-bg: rgba(30, 41, 59, 0.7);
  --portal-card-border: rgba(255, 255, 255, 0.1);
  --portal-text-main: #f8fafc;
  --portal-text-muted: #94a3b8;
  --portal-text-dim: #64748b;
  --portal-indigo: #6366f1;
  --portal-violet: #8b5cf6;
  --portal-emerald: #10b981;
  --portal-amber: #f59e0b;
  --portal-rose: #f43f5e;
  --portal-sky: #0ea5e9;
  --portal-glow: 0 0 30px rgba(99, 102, 241, 0.25);
}

/* Standalone Page Body */
body.portal-standalone-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--portal-bg);
  color: var(--portal-text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Standalone Header */
.portal-standalone-header {
  height: 64px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--portal-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.portal-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--portal-indigo), var(--portal-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.portal-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.portal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.portal-btn.primary {
  background: linear-gradient(135deg, var(--portal-indigo), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.portal-btn.primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
}

/* Standalone Container */
.portal-main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* --------------------------------------------------------------------------
   MODAL CONTAINER FOR SPA IN-APP VIEW
   -------------------------------------------------------------------------- */
.portal-modal-container {
  width: 900px;
  max-width: 95vw;
  max-height: 88vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), var(--portal-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: portalModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes portalModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.portal-modal-header {
  padding: 18px 26px;
  border-bottom: 1px solid var(--portal-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
}

.portal-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff;
}

.portal-modal-title-group h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.2px;
}

.portal-modal-title-group p {
  font-size: 12px;
  color: var(--portal-text-muted);
  margin: 0;
}

.portal-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --------------------------------------------------------------------------
   PAGE 1: GIỚI THIỆU (ABOUT LISTFOCUS)
   -------------------------------------------------------------------------- */
.about-hero {
  text-align: center;
  padding: 20px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
}

.about-hero h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.about-hero h1 span {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero p {
  font-size: 14.5px;
  color: var(--portal-text-muted);
  max-width: 680px;
  margin: 0;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.about-feature-card {
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.about-feature-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.about-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.about-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: auto;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   PAGE 2: THÔNG SỐ CỦA BẠN (PRODUCTIVITY REPORT)
   -------------------------------------------------------------------------- */
.stats-overview-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .stats-overview-row {
    grid-template-columns: 1fr;
  }
}

.stats-score-card {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--portal-glow);
}

.score-circle-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.score-circle-progress {
  fill: none;
  stroke: var(--portal-indigo);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.score-number-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-value {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-label-sub {
  font-size: 11px;
  color: var(--portal-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-eval-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 4px;
}

.score-eval-badge.status-excellent {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.score-eval-badge.status-good {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.score-eval-badge.status-average {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.score-eval-badge.status-poor {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.score-advice-text {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 10px;
  line-height: 1.5;
}

/* Mini KPI Grid inside Stats */
.stats-kpi-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stats-kpi-box {
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-card-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.stats-kpi-box-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--portal-text-muted);
}

.stats-kpi-box-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

/* Category Progress Bars */
.stats-category-panel {
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-card-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.category-bar-name {
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-bar-count {
  color: var(--portal-text-muted);
  font-size: 12px;
}

.category-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.category-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* --------------------------------------------------------------------------
   PAGE 3: CHÍNH SÁCH BẢO MẬT & QUYỀN RIÊNG TƯ
   -------------------------------------------------------------------------- */
.policy-hero-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.policy-shield-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.policy-hero-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.policy-hero-text p {
  font-size: 13px;
  color: #a7f3d0;
  margin: 0;
}

.policy-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.policy-article-card {
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-card-border);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-article-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-article-title span.number {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

.policy-article-content {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.65;
}

.policy-highlight-callout {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--portal-indigo);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #e0e7ff;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   ABOUT PAGE: FEATURE SHOWCASE CAROUSEL & LIGHTBOX
   -------------------------------------------------------------------------- */
.features-carousel-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.carousel-header {
  text-align: center;
  margin-bottom: 26px;
}

.carousel-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 10px 0 8px;
}

.carousel-header p {
  font-size: 14px;
  color: var(--portal-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  box-sizing: border-box;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.slide-image-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #090d16;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .slide-image-container {
    height: 260px;
  }
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease, filter 0.35s ease;
  display: block;
}

.carousel-slide:hover .slide-image {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.slide-overlay-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  pointer-events: none;
}

.carousel-slide:hover .slide-overlay-hint {
  background: rgba(99, 102, 241, 0.9);
  border-color: #818cf8;
  transform: translateY(-2px);
}

.slide-badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.slide-caption-bar {
  padding: 16px 8px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.slide-caption-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.slide-caption-text p {
  font-size: 13px;
  color: var(--portal-text-muted);
  margin: 0;
  line-height: 1.5;
}

.slide-zoom-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.carousel-slide:hover .slide-zoom-action-btn {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
}

/* Nav arrows */
.carousel-nav-btn {
  position: absolute;
  top: calc(50% - 24px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
}

.carousel-nav-btn:hover {
  background: rgba(99, 102, 241, 0.9);
  border-color: #818cf8;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.carousel-nav-btn.prev {
  left: 28px;
}

.carousel-nav-btn.next {
  right: 28px;
}

/* Dots indicators */
.carousel-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.carousel-dot.active {
  width: 28px;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

/* Lightbox Modal */
.feature-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 15, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.feature-lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-box {
  max-width: 1100px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-header {
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-title-group h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.lightbox-counter-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.lightbox-media-wrapper {
  position: relative;
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: calc(94vh - 130px);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: calc(94vh - 130px);
  object-fit: contain;
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.lightbox-nav-btn:hover {
  background: rgba(99, 102, 241, 0.9);
  border-color: #818cf8;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev {
  left: 18px;
}

.lightbox-nav-btn.next {
  right: 18px;
}

.lightbox-footer-desc {
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

/* ==========================================================================
   PAGE 4: SO SÁNH GÓI FREE & PREMIUM (PREMIUM COMPARISON SUITE)
   ========================================================================== */

/* Header Premium Button */
.portal-btn-premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15)) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  font-weight: 700 !important;
}

.portal-btn-premium:hover,
.portal-btn-premium.active {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}

/* Premium Hero */
.premium-hero {
  padding: 40px 0 20px;
}

.premium-sparkle-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.premium-hero-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin: 14px 0 10px;
  line-height: 1.2;
}

.premium-hero-title span:first-of-type {
  color: #94a3b8;
}

.premium-hero-title span:last-of-type {
  background: linear-gradient(135deg, #fbbf24 10%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.3));
}

.premium-hero-desc {
  font-size: 15.5px;
  color: var(--portal-text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.premium-hero-desc strong {
  color: #fbbf24;
}

.premium-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.premium-cta-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4) !important;
  border: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-cta-btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.55) !important;
}

.scroll-link {
  font-size: 14px !important;
  padding: 12px 20px !important;
}

/* Pricing Cards Section */
.pricing-cards-section {
  margin: 36px 0 54px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(30, 41, 59, 0.65);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Free Card */
.pricing-card.card-free {
  border-color: rgba(148, 163, 184, 0.2);
}

.pricing-tier-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Premium Card Featured */
.pricing-card.card-premium.featured {
  background: linear-gradient(170deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 36px rgba(245, 158, 11, 0.2);
}

.pricing-card.card-premium.featured:hover {
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 12px 48px rgba(245, 158, 11, 0.35);
}

.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.pricing-tier-tag-premium {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.pricing-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.pricing-card-title.text-gold {
  color: #fbbf24;
}

.pricing-card-summary {
  font-size: 13px;
  color: var(--portal-text-muted);
  margin: 0 0 18px;
  line-height: 1.5;
  min-height: 40px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pricing-price {
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.pricing-price.text-gold {
  color: #fbbf24;
}

.pricing-original-price {
  font-size: 16px;
  color: #64748b;
  text-decoration: line-through;
  font-weight: 500;
}

.pricing-cycle {
  font-size: 13px;
  color: #94a3b8;
}

.pricing-cycle.text-gold-light {
  color: #fde68a;
  font-weight: 600;
}

.pricing-guarantee-note {
  font-size: 11.5px;
  color: #34d399;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: -10px;
  margin-bottom: 18px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing-features-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.pricing-features-title.text-gold {
  color: #fde68a;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.feature-item.highlight strong {
  color: #fbbf24;
}

.feature-item.limited {
  color: #64748b;
}

.feature-icon {
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-icon.check {
  color: #34d399;
}

.feature-icon.cross {
  color: #f43f5e;
}

.feature-icon.gold-crown {
  font-size: 14px;
}

.pricing-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pricing-action-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.pricing-action-btn.free-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: default;
}

.pricing-action-btn.premium-btn {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.pricing-action-btn.premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.pricing-card-note {
  font-size: 11px;
  color: #94a3b8;
}

/* Comparison Matrix Section */
.comparison-matrix-section {
  margin: 60px 0;
}

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

.section-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.section-title span:first-of-type {
  color: #94a3b8;
}

.section-title span:last-of-type {
  color: #fbbf24;
}

.section-subtitle {
  font-size: 14px;
  color: var(--portal-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.comparison-table th {
  padding: 18px 22px;
  background: rgba(30, 41, 59, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th.col-feature {
  width: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
}

.comparison-table th.col-free {
  width: 25%;
  text-align: center;
}

.comparison-table th.col-premium {
  width: 25%;
  text-align: center;
  background: rgba(245, 158, 11, 0.08);
  border-left: 1px solid rgba(245, 158, 11, 0.2);
  border-right: 1px solid rgba(245, 158, 11, 0.2);
}

.th-plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-free-th {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.badge-premium-th {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.th-plan-price {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.table-group-header td {
  padding: 14px 22px;
  background: rgba(30, 41, 59, 0.6);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #818cf8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-group-header .group-icon {
  margin-right: 6px;
}

.comparison-table td {
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.feature-cell {
  color: #f1f5f9;
}

.feature-name {
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 2px;
}

.feature-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.status-cell {
  text-align: center;
  color: #cbd5e1;
}

.status-cell.highlight {
  background: rgba(245, 158, 11, 0.04);
  border-left: 1px solid rgba(245, 158, 11, 0.15);
  border-right: 1px solid rgba(245, 158, 11, 0.15);
  font-weight: 600;
}

.status-check {
  color: #34d399;
  font-weight: 700;
}

.status-check.gold {
  color: #fbbf24;
}

.status-cross {
  color: #94a3b8;
  font-size: 12.5px;
}

.badge-status-gold {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 12px;
  font-weight: 700;
}

.badge-status-neutral {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 12px;
}

.pricing-badge-big {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Why Lifetime Perks Grid */
.why-lifetime-section {
  margin: 60px 0;
}

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

.perk-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.perk-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.perk-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.perk-desc {
  font-size: 13.5px;
  color: var(--portal-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  margin: 60px 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(30, 41, 59, 0.8);
}

.faq-question {
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

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

.faq-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: #fbbf24;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: #fbbf24;
}

/* Bottom CTA Banner */
.premium-bottom-banner {
  margin: 60px 0 20px;
  padding: 44px 32px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.25) 0%, rgba(30, 41, 59, 0.85) 70%), #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
  text-align: center;
}

.bottom-banner-icon {
  font-size: 36px;
  display: inline-block;
  margin-bottom: 10px;
}

.bottom-banner-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

.bottom-banner-content p {
  font-size: 15px;
  color: #cbd5e1;
  margin: 0 auto 22px;
  max-width: 580px;
}

.bottom-banner-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.premium-cta-btn.big {
  padding: 14px 32px !important;
  font-size: 16px !important;
  border-radius: 14px !important;
}

.bottom-banner-sub {
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .premium-hero-title {
    font-size: 28px;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table th, 
  .comparison-table td {
    padding: 10px 12px;
  }
  .comparison-table th.col-feature {
    width: 40%;
  }
}

/* ==========================================================================
   Portal Standalone Footer
   ========================================================================== */
.portal-brand-logo.small {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.portal-brand-logo.small svg {
  width: 13px;
  height: 13px;
}

.portal-standalone-footer {
  width: 100%;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
  padding: 30px 24px;
  box-sizing: border-box;
}

.portal-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.portal-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.portal-footer-copy {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.portal-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-footer-links a {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.portal-footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.portal-footer-links a.footer-link-active {
  color: #fbbf24;
  font-weight: 600;
}

@media (max-width: 768px) {
  .portal-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    align-items: center;
    justify-content: center;
  }

  .portal-footer-brand {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }

  .portal-footer-links {
    justify-content: center;
    gap: 14px;
  }
}


