/* ==========================================================================
   Zen Mind - News & Articles Enhanced Design System
   Tailored for Cognitive Wellness, Clarity, and Adults 50+
   Synchronized with Zen Mind Ocean Blue Brand & Theme Tokens
   ========================================================================== */

/* Reading Progress Bar */
#zen-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(210 100% 45%), hsl(220 100% 55%), hsl(200 95% 50%));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(1, 108, 222, 0.5);
}

/* Senior Accessibility & Reading Toolbar */
.zen-reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: hsl(210 40% 98%);
  border: 1px solid hsl(210 20% 90%);
  border-radius: 12px;
  margin: 20px 0 28px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.zen-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zen-toolbar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(215 15% 45%);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.zen-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(215 25% 25%);
  background: #ffffff;
  border: 1px solid hsl(210 20% 88%);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.zen-toolbar-btn:hover {
  background: hsl(210 100% 96%);
  border-color: hsl(210 100% 70%);
  color: hsl(210 100% 40%);
  transform: translateY(-1px);
}

.zen-toolbar-btn.active {
  background: hsl(210 100% 92%);
  border-color: hsl(210 100% 45%);
  color: hsl(210 100% 35%);
  font-weight: 700;
}

.zen-toolbar-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Audio Player Pulse Animation */
@keyframes audio-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.zen-audio-active {
  animation: audio-pulse 1.5s infinite ease-in-out;
  background: hsl(210 100% 92%) !important;
  border-color: hsl(210 100% 45%) !important;
  color: hsl(210 100% 35%) !important;
}

/* Font Size Scaling Classes for Senior Readability */
.font-size-standard .prose {
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.85 !important;
}
.font-size-large .prose {
  font-size: 1.25rem !important; /* 20px */
  line-height: 1.9 !important;
}
.font-size-xlarge .prose {
  font-size: 1.375rem !important; /* 22px */
  line-height: 1.95 !important;
}

/* ==========================================================================
   Article Prose & Typography Styling (.prose)
   ========================================================================== */
.prose {
  color: hsl(215 25% 25%);
  max-width: 100%;
  font-size: 1.125rem;
  line-height: 1.85;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  letter-spacing: -0.01em;
}

.prose h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: hsl(215 30% 18%);
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  padding-left: 14px;
  border-left: 4px solid hsl(210 100% 45%);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: hsl(215 25% 22%);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

.prose ul, .prose ol {
  margin-top: 1em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose ul > li {
  list-style-type: disc;
}

.prose ol > li {
  list-style-type: decimal;
}

.prose strong {
  font-weight: 700;
  color: hsl(215 35% 15%);
}

.prose a {
  color: hsl(210 100% 45%);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: hsl(210 100% 35%);
}

.prose blockquote {
  font-style: italic;
  font-size: 1.15rem;
  padding: 1.2rem 1.6rem;
  margin: 1.8em 0;
  background: hsl(210 100% 97%);
  border-left: 4px solid hsl(210 100% 45%);
  border-radius: 0 12px 12px 0;
  color: hsl(215 25% 20%);
}

/* ==========================================================================
   Rich Interactive Callout Boxes
   ========================================================================== */

/* Key Takeaways Box */
.callout-takeaway {
  background: linear-gradient(135deg, hsl(210 60% 97%), hsl(200 60% 97%));
  border: 1px solid hsl(210 60% 84%);
  border-left: 5px solid hsl(210 100% 45%);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 32px 0;
  box-shadow: 0 4px 16px rgba(1, 108, 222, 0.08);
}

.callout-takeaway h3 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  color: hsl(210 100% 35%) !important;
  font-size: 1.25rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-takeaway h3::before {
  content: "✨";
  font-size: 1.2rem;
}

.callout-takeaway ul {
  margin: 0 !important;
  padding-left: 1.2em !important;
}

.callout-takeaway li {
  margin-bottom: 8px !important;
  color: hsl(215 30% 20%);
}

/* Science Spotlight Box */
.callout-science {
  background: linear-gradient(135deg, hsl(215 60% 97%), hsl(225 60% 97%));
  border: 1px solid hsl(215 60% 86%);
  border-left: 5px solid hsl(210 100% 45%);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(1, 108, 222, 0.06);
}

.callout-science h3 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  color: hsl(210 100% 35%) !important;
  font-size: 1.2rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-science h3::before {
  content: "🔬";
  font-size: 1.2rem;
}

.callout-science p {
  margin: 0 !important;
  font-size: 1.05rem;
  color: hsl(215 30% 25%);
}

/* Practical Exercise Drill Box */
.callout-exercise {
  background: linear-gradient(135deg, hsl(210 50% 98%), hsl(200 50% 97%));
  border: 1px solid hsl(210 50% 84%);
  border-left: 5px solid hsl(210 100% 45%);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(1, 108, 222, 0.08);
}

.callout-exercise h3 {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  color: hsl(210 100% 35%) !important;
  font-size: 1.25rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-exercise h3::before {
  content: "🧠";
  font-size: 1.2rem;
}

.callout-exercise ol, .callout-exercise ul {
  margin: 8px 0 0 0 !important;
  padding-left: 1.3em !important;
}

.callout-exercise li {
  margin-bottom: 10px !important;
}

/* Practical Tip Box */
.callout-tip {
  background: linear-gradient(135deg, hsl(45 80% 97%), hsl(35 80% 97%));
  border: 1px solid hsl(45 70% 80%);
  border-left: 5px solid hsl(40 90% 45%);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.06);
}

.callout-tip h3 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  color: hsl(35 90% 30%) !important;
  font-size: 1.2rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-tip h3::before {
  content: "💡";
  font-size: 1.2rem;
}

.callout-tip p, .callout-tip ul {
  margin: 0 !important;
}

/* ==========================================================================
   News Overview Page Enhancements (.zen-news-page)
   ========================================================================== */

/* Hero Banner on News Page */
.zen-news-hero {
  background: linear-gradient(135deg, hsl(210 30% 97%), hsl(200 40% 96%));
  border: 1px solid hsl(210 20% 90%);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.zen-news-hero::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, hsl(210 100% 85% / 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.zen-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid hsl(210 60% 80%);
  color: hsl(210 100% 40%);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zen-news-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: hsl(215 35% 18%);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.zen-news-subtitle {
  font-size: 1.15rem;
  color: hsl(215 15% 45%);
  max-width: 700px;
  line-height: 1.6;
}

/* Category Quick-Filter Bar */
.zen-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.zen-cat-pill {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: hsl(210 25% 96%);
  color: hsl(215 20% 35%);
  border: 1px solid hsl(210 20% 88%);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.zen-cat-pill:hover {
  background: hsl(210 60% 94%);
  color: hsl(210 100% 40%);
  border-color: hsl(210 60% 70%);
}

.zen-cat-pill.active {
  background: hsl(210 100% 45%);
  color: #ffffff;
  border-color: hsl(210 100% 40%);
  box-shadow: 0 2px 10px rgba(1, 108, 222, 0.25);
}

/* Enhanced News Card Styling */
.news-card-enhanced {
  background: #ffffff;
  border: 1px solid hsl(210 20% 90%);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.news-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
  border-color: hsl(210 60% 75%);
}

.news-card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: hsl(210 20% 95%);
}

.news-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-enhanced:hover .news-card-image-wrap img {
  transform: scale(1.05);
}

/* Category Badge on Card */
.news-card-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: hsl(210 100% 40%);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Featured Badge */
.news-card-feat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* Card Content Area */
.news-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta {
  font-size: 0.825rem;
  color: hsl(215 15% 55%);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(215 30% 18%);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.news-card-enhanced:hover .news-card-title {
  color: hsl(210 100% 45%);
}

.news-card-excerpt {
  font-size: 0.925rem;
  color: hsl(215 15% 40%);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid hsl(210 20% 92%);
  margin-top: auto;
}

.news-read-more {
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(210 100% 45%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.news-card-enhanced:hover .news-read-more {
  color: hsl(210 100% 40%);
  gap: 8px;
}

/* ==========================================================================
   Table of Contents & Sidebar Enhancement
   ========================================================================== */
.zen-toc-widget {
  background: hsl(210 40% 98%);
  border: 1px solid hsl(210 20% 88%);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.zen-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(215 25% 30%);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zen-toc-link {
  display: block;
  font-size: 0.875rem;
  color: hsl(215 15% 45%);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.zen-toc-link:hover, .zen-toc-link.active {
  color: hsl(210 100% 40%);
  background: hsl(210 60% 94%);
  font-weight: 600;
  padding-left: 12px;
}

/* Cognitive Workout CTA in Sidebar */
.zen-sidebar-cta {
  background: linear-gradient(135deg, hsl(210 60% 94%), hsl(220 80% 96%));
  border: 1px solid hsl(210 60% 80%);
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.zen-sidebar-cta h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(215 35% 20%);
  margin-bottom: 6px;
}

.zen-sidebar-cta p {
  font-size: 0.85rem;
  color: hsl(215 20% 35%);
  margin-bottom: 14px;
}

.zen-sidebar-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, hsl(210 100% 45%), hsl(220 100% 55%));
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(1, 108, 222, 0.3);
  transition: all 0.2s ease;
}

.zen-sidebar-cta-btn:hover {
  background: linear-gradient(135deg, hsl(210 100% 40%), hsl(220 100% 50%));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 108, 222, 0.4);
}

/* Author Box Enhancement */
.zen-author-card {
  background: hsl(210 30% 98%);
  border: 1px solid hsl(210 20% 88%);
  border-radius: 16px;
  padding: 24px;
  margin-top: 36px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.zen-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Print Optimization */
@media print {
  #zen-reading-progress,
  .zen-reader-toolbar,
  .zen-sidebar-cta,
  nav,
  footer,
  aside {
    display: none !important;
  }
  .prose {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   Interactive Infographics & Visual Guides Inside Articles
   ========================================================================== */
.infographic-box {
  background: linear-gradient(135deg, hsl(210 40% 98%), hsl(200 40% 96%));
  border: 2px solid hsl(210 60% 82%);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: 0 8px 24px -4px rgba(1, 108, 222, 0.1);
  position: relative;
  overflow: hidden;
}

.infographic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed hsl(210 50% 80%);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.infographic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, hsl(210 100% 45%), hsl(220 100% 55%));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.infographic-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(215 35% 18%);
  margin: 0;
}

.infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.infographic-card {
  background: #ffffff;
  border: 1px solid hsl(210 20% 88%);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.infographic-card-num {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: hsl(210 100% 92%);
  color: hsl(210 100% 35%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.infographic-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(215 30% 20%);
}

.infographic-card-desc {
  font-size: 0.875rem;
  color: hsl(215 15% 45%);
  line-height: 1.45;
}

/* In-Article Embedded Images */
.zen-body-image {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid hsl(210 20% 90%);
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.08);
}

.zen-body-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.zen-body-image-caption {
  font-size: 0.85rem;
  color: hsl(215 15% 50%);
  padding: 10px 16px;
  background: hsl(210 30% 98%);
  border-top: 1px solid hsl(210 20% 92%);
  text-align: center;
  font-style: italic;
}

/* ==========================================================================
   Call to Action (CTA) Box for Free Trial & App Benefits
   ========================================================================== */
.zen-article-cta {
  background: linear-gradient(135deg, hsl(215 45% 15%), hsl(210 50% 22%));
  color: #ffffff;
  border-radius: 20px;
  padding: 36px 32px;
  margin: 48px 0 24px 0;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.zen-article-cta::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, hsl(210 100% 60% / 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.zen-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, hsl(210 100% 45%), hsl(220 100% 55%));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zen-article-cta h3 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 10px 0 !important;
  border: none !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.zen-cta-desc {
  font-size: 1.05rem;
  color: hsl(210 20% 85%);
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 24px;
}

.zen-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.zen-cta-benefit {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.zen-cta-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.zen-cta-benefit strong {
  color: #ffffff !important;
  font-size: 0.95rem;
  display: block;
}

.zen-cta-benefit small {
  color: hsl(210 20% 80%);
  font-size: 0.8rem;
  line-height: 1.35;
  display: block;
  margin-top: 2px;
}

.zen-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.zen-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(210 100% 45%), hsl(220 100% 55%));
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(1, 108, 222, 0.4);
  transition: all 0.25s ease;
}

.zen-cta-btn-primary:hover {
  background: linear-gradient(135deg, hsl(210 100% 38%), hsl(220 100% 48%));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 108, 222, 0.5);
}

.zen-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.zen-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Zen Mind - Professional Admin Dashboard System
   Matches Zen Mind Ocean Blue Brand & Executive Standards
   ========================================================================== */

.zen-admin-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.zen-admin-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(1, 108, 222, 0.06);
}

@media (min-width: 768px) {
  .zen-admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.zen-admin-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zen-admin-icon-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(1, 108, 222, 0.1);
  color: #016CDE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zen-admin-icon-badge svg {
  width: 1.75rem;
  height: 1.75rem;
}

.zen-admin-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.2;
}

.zen-admin-subtitle {
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.zen-admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.zen-admin-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* Executive Stats Grid */
.zen-admin-stats {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .zen-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .zen-admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.zen-stat-card {
  padding: 1.25rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zen-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 108, 222, 0.08);
}

.zen-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zen-stat-icon.blue {
  background: rgba(1, 108, 222, 0.1);
  color: #016CDE;
}

.zen-stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
}

.zen-stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.zen-stat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.zen-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zen-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

/* Tab List Modernization */
.zen-admin-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: hsl(var(--muted) / 0.6);
  padding: 0.375rem;
  border-radius: 0.875rem;
  margin-bottom: 1.75rem;
  border: 1px solid hsl(var(--border));
}

.zen-admin-tab-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.625rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.zen-admin-tab-trigger:hover {
  color: hsl(var(--foreground));
  background: rgba(255, 255, 255, 0.5);
}

.zen-admin-tab-trigger[data-state="active"] {
  background: hsl(var(--card));
  color: #016CDE;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* User Table Design */
.zen-admin-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.zen-admin-card-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(var(--card));
}

.zen-admin-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.zen-admin-card-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.zen-admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.zen-admin-table th {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.4);
  border-bottom: 1px solid hsl(var(--border));
}

.zen-admin-table td {
  padding: 1.125rem 1.5rem;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.zen-admin-table tbody tr {
  transition: background-color 0.15s ease;
}

.zen-admin-table tbody tr:hover {
  background-color: rgba(1, 108, 222, 0.02);
}

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

.zen-user-avatar-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(1, 108, 222, 0.1);
  color: #016CDE;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zen-user-cell {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Badges */
.zen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.zen-badge-active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.zen-badge-trial {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.zen-badge-expired {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

/* Settings Form Modernization */
.zen-setting-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid hsl(var(--border));
  align-items: center;
}

@media (min-width: 768px) {
  .zen-setting-row {
    grid-template-columns: 280px 1fr;
    gap: 2rem;
  }
}

.zen-setting-row:last-child {
  border-bottom: none;
}

.zen-setting-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
}

.zen-setting-hint {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.zen-setting-input {
  max-width: 480px;
}

/* ==========================================================================
   Zen Mind - PayPal Payment Gateway Integration
   ========================================================================== */

.zen-paypal-btn {
  background-color: #FFC439 !important;
  color: #003087 !important;
  border: 1px solid #E5AC26 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.9375rem !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.zen-paypal-btn:hover {
  background-color: #F4BB30 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(244, 187, 48, 0.4) !important;
}

.zen-paypal-btn:active {
  transform: translateY(0) !important;
}

.zen-paypal-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.zen-payment-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}
