/* ==========================================================================
   Aura Currents Design System & Core Stylesheet
   ========================================================================== */

/* 1. CSS Custom Properties & Design Tokens */
:root {
  /* Colors */
  --bg-dark: #07070a;
  --text-primary: #f0f0f5;
  --text-secondary: #a1a1b5;
  --accent-glow: rgba(124, 58, 237, 0.5); /* Default Violet */
  --card-bg: rgba(10, 10, 15, 0.45);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-active: rgba(255, 255, 255, 0.15);
  --glass-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  
  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout & Spacing */
  --card-max-width: 720px;
  --border-radius-lg: 24px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Aura Palette Transitions */
  --aura-color-1: #6d28d9; /* Violet */
  --aura-color-2: #0d9488; /* Teal */
  --aura-color-3: #db2777; /* Pink */
  --aura-color-4: #2563eb; /* Blue */
}

/* 2. Global Resets & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Text Selection Highlight */
::selection {
  background: var(--accent-glow);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Base Headings & Hierarchy */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* 3. Preloader Animation Overlay */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050508;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.preloader-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-aura {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, rgba(13, 148, 136, 0.2) 50%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: auraPulse 6s infinite alternate ease-in-out;
  transform: translate(-50%, -50%);
  top: 30%;
  left: 50%;
}

.preloader-text-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 120px;
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 24px;
}

.preloader-progress-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.preloader-progress-line {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--aura-color-1) 0%, var(--aura-color-2) 100%);
  transition: width 0.1s ease;
}

.preloader-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes auraPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

/* 4. Canvas Background System (Aura Engine) */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

#auraCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Film Grain Overlay */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* 5. Main Wrapper */
.portal-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
}

/* Header Branding */
.main-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--text-primary);
  display: inline-block;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.25em;
  font-weight: 800;
}

.header-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* 6. Quote Card UI (Glassmorphic Masterpiece) */
.card-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px; /* Enable 3D tilt effects */
  margin: 2vh 0 2vh;
}

.card-perspective {
  width: 100%;
  max-width: var(--card-max-width);
  transform-style: preserve-3d;
}

.quote-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 80px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: border-color var(--transition-smooth);
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-lg);
  background: var(--glass-highlight);
  pointer-events: none;
  opacity: 0.5;
}

.quote-card:hover {
  border-color: var(--card-border-active);
}

/* Dynamic Reflection highlight layer */
.card-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Card Header: Tabs Navigation */
.card-header {
  transform: translateZ(20px);
  margin-bottom: 40px;
}

.category-nav {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.cat-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.cat-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Card Body: Typography Layering */
.card-body {
  transform: translateZ(40px);
  margin-bottom: 48px;
  position: relative;
}

.quote-symbol {
  position: absolute;
  top: -24px;
  left: -20px;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quote-author {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* Card Footer: Toolbars */
.card-footer {
  transform: translateZ(25px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
}

.tool-group, .action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.tool-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-bounce);
}

.tool-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.tool-btn:hover svg {
  transform: scale(1.15);
}

/* Specific button toggled states */
.tool-btn.active-btn {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Refresh Vibe Trigger button */
.primary-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.primary-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.primary-action-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-primary);
}

.primary-action-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.primary-action-btn:hover::before {
  opacity: 1;
}

.primary-action-btn:active {
  transform: scale(0.97);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 3vh;
  cursor: pointer;
}

.scroll-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-secondary);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollScroll 1.8s infinite ease-in-out;
}

@keyframes scrollScroll {
  0% { top: 6px; opacity: 1; }
  50% { top: 14px; opacity: 0.3; }
  100% { top: 6px; opacity: 1; }
}


/* ==========================================================================
   Google AdSense Container slots
   ========================================================================== */
.ad-container {
  width: 100%;
  max-width: var(--card-max-width);
  margin: 16px auto;
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ad-container::before {
  content: "Advertisement Vibe Slot (" attr(data-ad-location) ")";
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}


/* ==========================================================================
   Common Content Sections
   ========================================================================== */
.content-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 5vh;
  padding: 0 16px;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}


/* 7. Section 1: The Quote Library Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.library-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.library-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.lib-quote-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;
}

.lib-quote-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.lib-quote-author {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}


/* 8. Section 2: Deep Dives Grid Layout */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 28px;
}

.article-card {
  position: relative;
  background: rgba(10, 10, 15, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-aura-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.08;
  top: -50px;
  right: -50px;
  pointer-events: none;
}

.rust-glow { background-color: #c2410c; }
.cyan-glow { background-color: #06b6d4; }
.mint-glow { background-color: #a7f3d0; }
.purple-glow { background-color: #882887; }

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.article-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
}


/* 9. Section 3: FAQ Accordions */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.faq-icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
  padding: 0 24px 24px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* ==========================================================================
   V2 UPGRADE: 10. Aspect Ratio Dropdown Menu styles
   ========================================================================== */
.download-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.download-dropdown-wrapper .tool-btn {
  width: auto;
  padding: 0 18px;
  display: inline-flex;
  gap: 8px;
}

.download-dropdown {
  position: absolute;
  bottom: 50px;
  right: 0;
  z-index: 1100;
  width: 210px;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: var(--transition-smooth);
}

.download-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ratio-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-align: left;
}

.ratio-option svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.ratio-option:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.ratio-option:hover svg {
  color: var(--text-primary);
}


/* ==========================================================================
   V2 UPGRADE: 11. Customizer Slide-out Drawer styles
   ========================================================================== */
.customizer-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  z-index: 2100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  border-left: 1px solid var(--card-border);
  padding: 40px 30px;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
  
  /* Hide drawer by default offscreen */
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

.customizer-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 20px;
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
}

.close-drawer-btn {
  font-size: 2rem;
  color: var(--text-secondary);
  line-height: 1;
}

.close-drawer-btn:hover {
  color: var(--text-primary);
}

.customizer-section {
  margin-bottom: 36px;
}

.customizer-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.preset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preset-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--border-radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-align: left;
}

.preset-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.preset-btn.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
}

.preset-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Dots gradients */
.default-colors { background: linear-gradient(135deg, var(--aura-color-1) 0%, var(--aura-color-2) 100%); }
.gold-colors { background: linear-gradient(135deg, #d97706 0%, #fef08a 100%); }
.oasis-colors { background: linear-gradient(135deg, #1e1b4b 0%, #818cf8 100%); }
.fog-colors { background: linear-gradient(135deg, #ec4899 0%, #06b6d4 100%); }
.flare-colors { background: linear-gradient(135deg, #dc2626 0%, #f97316 100%); }

.slider-group {
  margin-bottom: 24px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  height: 3px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}


/* ==========================================================================
   V2 UPGRADE: 12. Synchronized Breathing Guide styles
   ========================================================================== */
.breath-widget {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 2000;
  width: 320px;
  background: rgba(10,10,15,0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  
  /* Initial hidden states */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition-smooth);
}

.breath-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.close-breath-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1;
}

.close-breath-btn:hover {
  color: var(--text-primary);
}

.breath-circle-outer {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.breath-circle-inner {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.4;
  transform: scale(0.8);
}

.breath-instruction {
  position: relative;
  z-index: 5;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.breath-hint {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   V2 UPGRADE: 13. AI-Citable GEO block styles
   ========================================================================== */
.citable-box {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(10, 10, 15, 0.45);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.citable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 14px 24px;
}

.citable-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.citable-status-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.citable-body {
  padding: 28px;
  font-family: var(--font-sans);
}

.citable-row {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
  padding-bottom: 8px;
}

.citable-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.citable-key {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.citable-val {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
}


/* 14. Focus Soundscape panel */
.audio-panel {
  position: fixed;
  bottom: 100px;
  left: 40px;
  z-index: 1000;
  width: 280px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.audio-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.audio-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.audio-panel-header h3 {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.close-panel-btn {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1;
}

.close-panel-btn:hover {
  color: var(--text-primary);
}

.sound-tracks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.track-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: var(--transition-fast);
}

.track-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.track-option.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.track-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: var(--transition-smooth);
}

.track-option.active .track-indicator {
  background: #10b981; /* Green glow for active track */
  box-shadow: 0 0 10px #10b981;
}

.track-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.track-option.active .track-name {
  color: var(--text-primary);
}

.volume-control-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.volume-control-wrapper label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#volumeSlider {
  width: 100%;
  accent-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  height: 3px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}


/* 15. Main Footer Details */
.main-footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px 16px 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.footer-link svg {
  width: 14px;
  height: 14px;
}

.footer-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
}

/* 16. Newsletter Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.modal-box {
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: var(--transition-smooth);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--text-secondary);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

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

.modal-icon-aura {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.3) 0%, rgba(0,0,0,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-icon-aura svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.modal-header p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.modal-form input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.modal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--border-radius-md);
  background: var(--text-primary);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.modal-submit-btn:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}

.modal-submit-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-bounce);
}

.modal-submit-btn:hover svg {
  transform: translateX(4px);
}

/* 17. Mouse Glowing Follower */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1; /* Place below active content card but above main aura engine */
  transform: translate(-50%, -50%);
  opacity: 0.15;
  transition: opacity 1s ease;
}

/* 18. Media Queries & Desktop Responsive Adaptations */
@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portal-wrapper {
    padding: 24px 16px;
  }
  
  .main-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .quote-card {
    padding: 32px 24px;
    border-radius: var(--border-radius-md);
  }
  
  .quote-text {
    font-size: 1.6rem;
  }
  
  .quote-symbol {
    font-size: 5rem;
    top: -12px;
    left: -10px;
  }
  
  .card-footer {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .tool-group, .action-group {
    justify-content: space-between;
  }
  
  .tool-btn, .primary-action-btn {
    flex-grow: 1;
    text-align: center;
  }
  
  .main-footer {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  
  .audio-panel {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 80px;
  }
  
  .customizer-drawer {
    width: 100%;
  }
  
  .breath-widget {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 20px;
  }
}

/* Reduced Motion Mode Fallback */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .preloader-aura {
    animation: none;
  }
  .cursor-glow {
    display: none;
  }
  #auraCanvas {
    opacity: 0.7;
  }
}

/* 19. AdBlocker Whitelist Prompt banner styles */
.adblock-banner {
  position: fixed;
  bottom: -100px; /* Hidden offscreen by default */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2200;
  width: 90%;
  max-width: 650px;
  background: rgba(15, 10, 10, 0.85);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.adblock-banner.active {
  bottom: 24px;
}

.adblock-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.adblock-content svg {
  width: 24px;
  height: 24px;
  color: #ef4444; /* Alert red */
  flex-shrink: 0;
}

.adblock-content p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-right: 20px;
}

.adblock-dismiss-btn {
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1;
}

.adblock-dismiss-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   V3 UPGRADE: 20. Aura Writer Contenteditable focus styles
   ========================================================================== */
[contenteditable="true"] {
  outline: none;
  caret-color: var(--text-primary);
  border-radius: 4px;
  transition: text-shadow 0.3s ease, background 0.3s ease;
  cursor: text;
}

[contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.02);
}

[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.04);
  text-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   V3 UPGRADE: 21. Daily Alignment Oracle (3D Tarot)
   ========================================================================== */
.oracle-box {
  max-width: 480px;
  text-align: center;
}

.oracle-container {
  width: 100%;
  height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px; /* Crucial for 3D card depth */
  margin: 20px 0;
}

.deck-wrapper {
  width: 220px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
}

.tarot-card {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  cursor: pointer;
}

.tarot-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Toggle flip trigger */
.tarot-card.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-back, .tarot-card-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hides reverse side when flipped */
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(255,255,255,0.08);
  padding: 30px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Tarot Back Styling */
.tarot-card-back {
  background: linear-gradient(135deg, #0e0d16 0%, #161525 100%);
  z-index: 2;
  transform: rotateY(0deg);
}

.tarot-cosmic-grid {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: calc(var(--border-radius-lg) - 8px);
  pointer-events: none;
}

.tarot-eye-holder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0,0,0,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
}

.tarot-eye-holder svg {
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
}

.tarot-deck-brand {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Tarot Front (Quote Face) Styling */
.tarot-card-front {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  transform: rotateY(180deg); /* Facing backward initially */
  justify-content: space-between;
}

.tarot-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 12px;
  border-radius: 20px;
}

.tarot-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text-primary);
  font-style: italic;
  margin: auto 0;
}

.tarot-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Countdown Lock screen */
.oracle-countdown-wrapper {
  margin: 40px 0;
  text-align: center;
}

.countdown-timer {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.countdown-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.4;
}

.oracle-action-row {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.draw-btn {
  width: 100%;
  padding: 16px;
}

/* ==========================================================================
   V4 UPGRADE: 22. Intention Journal Drawer & Timeline
   ========================================================================== */
.journal-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100vh;
  z-index: 2100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  border-right: 1px solid var(--card-border);
  padding: 40px 30px;
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.6);
  
  /* Hide drawer by default offscreen left */
  transform: translateX(-100%);
  transition: var(--transition-smooth);
}

.journal-drawer.active {
  transform: translateX(0);
}

.journal-hint {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.journal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.journal-form textarea {
  width: 100%;
  height: 100px;
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  outline: none;
  resize: none;
  transition: var(--transition-fast);
}

.journal-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.journal-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--text-primary);
  color: var(--bg-dark);
}

.journal-timeline-section {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 360px);
}

.journal-timeline-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.journal-timeline {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.timeline-empty {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin: auto 0;
  padding: 0 10px;
}

/* Glassmorphic timeline entries */
.timeline-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-fast);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

.delete-entry-btn {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  transition: var(--transition-fast);
}

.delete-entry-btn:hover {
  color: #ef4444;
}

.timeline-quote-context {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 2px solid rgba(255,255,255,0.06);
  padding-left: 10px;
  line-height: 1.35;
}

.timeline-reflection {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-primary);
}


/* ==========================================================================
   V4 UPGRADE: 23. Guided Breathing rhythm options select panel
   ========================================================================== */
.breath-mode-selector-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.breath-mode-selector-wrapper label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breath-mode-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.breath-mode-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.breath-mode-select option {
  background: #0f0f15;
  color: var(--text-primary);
  padding: 10px;
}

/* ==========================================================================
   V4.5 UPGRADE: Willpower, SOS Panic, Excuse Antidote, & Wallpaper Studio
   ========================================================================== */

/* Drawer Tab Navigation */
.drawer-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  overflow-x: auto;
}

.drawer-tab-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  flex-grow: 1;
  text-align: center;
  white-space: nowrap;
}

.drawer-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.drawer-tab-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Tab Panels showing/hiding */
.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
}

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

/* SOS Panic Procrastination Button */
.sos-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.05);
}

.sos-action-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.sos-action-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  transform: scale(1.02);
}

.sos-action-btn:active {
  transform: scale(0.97);
}

/* SOS Active mode visuals on card */
body.sos-active .quote-card {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.3) !important;
}

body.sos-active .sos-action-btn {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 25px #ef4444 !important;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(239, 68, 68, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); }
}

/* Drive & Streak Sections */
.drive-section {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.drive-section h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-sub-hint {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Commitment inputs */
.goal-form, .affirmation-form {
  display: flex;
  gap: 10px;
}

.goal-form input, .affirmation-form input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.goal-form input:focus, .affirmation-form input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.goal-form button, .affirmation-form button {
  padding: 10px 18px;
  font-size: 0.8rem;
}

/* Active Goal box */
.active-goal-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  margin-top: 10px;
  animation: fadeIn 0.4s ease;
}

.active-goal-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: #a7f3d0;
  line-height: 1.4;
  margin-right: 12px;
}

.goal-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: #07070a;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.goal-complete-btn:hover {
  background: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Affirmation Form stacked inputs */
.affirmation-form {
  flex-direction: column;
  gap: 10px;
}

/* Willpower Streak Grid Heatmap */
.streak-grid-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
}

.streak-grid {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  grid-auto-flow: column;
  grid-auto-columns: 10px;
  gap: 3px;
  padding: 10px;
  width: max-content;
}

.grid-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease;
}

/* Heatmap levels */
.grid-cell[data-level="0"] { background: rgba(255, 255, 255, 0.04); }
.grid-cell[data-level="1"] { background: #064e3b; } /* Deep teal-green */
.grid-cell[data-level="2"] { background: #047857; }
.grid-cell[data-level="3"] { background: #10b981; }
.grid-cell[data-level="4"] { background: #34d399; } /* Bright glow */

.streak-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Excuse Antidote elements */
.antidote-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.antidote-section label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.excuse-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.excuse-select:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.excuse-select option {
  background: #0f0f15;
  color: var(--text-primary);
}

/* Antidote Card */
.antidote-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.5s ease;
}

.struggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.struggle-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f59e0b; /* Amber warning */
  letter-spacing: 0.05em;
}

.struggle-author {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.struggle-context {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.struggle-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
  border-left: 2px solid var(--text-secondary);
  padding-left: 14px;
  margin: 4px 0;
}

.struggle-meaning {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.antidote-adopt-btn {
  width: 100%;
  padding: 10px;
}

/* Wallpaper Studio exports */
.export-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.studio-export-btn {
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-align: center;
}

.studio-export-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.studio-export-btn:active {
  transform: scale(0.97);
}

.studio-section textarea {
  width: 100%;
  height: 80px;
  padding: 12px 14px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  outline: none;
  resize: none;
  transition: var(--transition-fast);
  margin-bottom: 10px;
}

.studio-section textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.studio-section input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}

/* ==========================================================================
   MAIN HEADER NAVIGATION
   ========================================================================== */
.brand-link {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.brand-link:hover {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--border-radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.01);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   LIBRARY SEARCH BAR
   ========================================================================== */
.library-search-wrapper {
  position: relative;
  max-width: 450px;
  margin: 20px auto 0;
  width: 100%;
}

.library-search-wrapper input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: var(--border-radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.library-search-wrapper input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

.library-search-wrapper .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.library-search-wrapper input:focus + .search-icon {
  color: var(--text-primary);
}

.library-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--border-radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   FLOATING WIDGETS: POMODORO & MORNING CHECKLIST
   ========================================================================== */
.pomodoro-widget, .morning-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 320px;
  background: rgba(13, 13, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 20px;
  backdrop-filter: blur(25px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.pomodoro-widget.active, .morning-widget.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.widget-header h3 {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.widget-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.widget-close-btn:hover {
  color: var(--text-primary);
}

/* Pomodoro Specifics */
.pomo-timer-display {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 10px 0;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.pomo-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.pomo-btn {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.pomo-btn-primary {
  background: var(--text-primary);
  color: #000;
}

.pomo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.pomo-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pomo-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pomo-mode-indicator {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Morning Checklist Specifics */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  accent-color: #000;
  cursor: pointer;
}

.checklist-item label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.checklist-item input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.3);
}

.morning-score-btn {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.morning-score-btn:hover:not(:disabled) {
  background: var(--text-primary);
  color: #000;
  border-color: var(--text-primary);
}

.morning-score-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Bilingual Specifics */
.bilingual-sub-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-style: normal;
}

/* ==========================================================================
   Aura Currents V5.0 Styles Additions
   ========================================================================== */

/* 1. Custom Font family wrappers */
.font-serif { font-family: var(--font-serif) !important; }
.font-sans { font-family: var(--font-sans) !important; }
.font-display { font-family: var(--font-display) !important; }
.font-bilingual { font-family: 'Noto Sans', sans-serif !important; }

/* 2. Wallpaper Studio select & toggles */
.studio-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  margin-top: 8px;
  font-family: var(--font-sans);
  outline: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.studio-select:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}
.studio-select option {
  background: #0f0f15;
  color: var(--text-primary);
}
.studio-toggles-row {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}
.studio-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.studio-toggle-label input[type="checkbox"] {
  accent-color: var(--aura-color-1);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* 3. Custom Breath Sliders */
.custom-breath-sliders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.slider-group-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slider-label-mini {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}
.mini-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  accent-color: var(--aura-color-2);
  cursor: pointer;
}

/* 4. YouTube Panel Inputs */
.youtube-input-wrapper {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.youtube-input-wrapper label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.yt-input-row {
  display: flex;
  gap: 8px;
}
.yt-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  outline: none;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}
.yt-input-row input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}
.yt-load-btn {
  padding: 8px 12px;
  height: auto;
  border-radius: var(--border-radius-sm);
}
.yt-status-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-style: italic;
}
.lock-icon-inline {
  width: 11px !important;
  height: 11px !important;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.7;
}

/* 5. Achievements Badge Gallery */
.achievements-badges-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}
.badge-item.active {
  background: rgba(109, 40, 217, 0.15);
  border-color: rgba(109, 40, 217, 0.35);
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.05);
}
.badge-item.locked {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.2);
}
.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.badge-item.active .badge-icon {
  background: rgba(109, 40, 217, 0.25);
  color: #fff;
  animation: floatBadge 3s infinite ease-in-out;
}
.badge-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.badge-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.badge-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
@keyframes floatBadge {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* 6. Multi-Card Oracle Deck */
.oracle-mode-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px;
  margin: 12px auto 6px;
  max-width: 280px;
}
.oracle-mode-btn {
  flex: 1;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 17px;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  text-align: center;
}
.oracle-mode-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.oracle-three-container {
  width: 100%;
  margin: 25px 0 10px;
  perspective: 1000px;
}
.three-cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.tarot-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 180px;
}
.card-position-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}
.tarot-card.mini {
  width: 180px;
  height: 280px;
  margin: 0;
  cursor: pointer;
}
.tarot-card.mini .tarot-card-back,
.tarot-card.mini .tarot-card-front {
  border-radius: 12px;
  padding: 15px;
}
.tarot-card.mini .tarot-eye-holder {
  width: 50px;
  height: 50px;
}
.tarot-card.mini .tarot-eye-holder i {
  width: 22px;
  height: 22px;
}
.tarot-text-mini {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin-top: 15px;
  font-style: italic;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: none;
}
.tarot-text-mini::-webkit-scrollbar { display: none; }
.tarot-author-mini {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
}
.tarot-meaning-mini {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  margin-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.06);
  padding-top: 6px;
  display: block;
  line-height: 1.3;
}
.visualizer-toggle-wrapper {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.slider-round:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.switch input:checked + .slider-round {
  background-color: var(--aura-color-1);
}
.switch input:checked + .slider-round:before {
  transform: translateX(18px);
}




/* ==========================================================================
   Tier 1 — Save / Share / Collection (added)
   ========================================================================== */
.quote-card { position: relative; }

.card-quick-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 6;
  transform: translateZ(50px);
}
.cqa-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 15, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border-active);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}
.cqa-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.35); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.cqa-btn i { width: 18px; height: 18px; }
.cqa-btn.saved { color: #ff5d8f; border-color: rgba(255,93,143,0.6); background: rgba(255,93,143,0.12); }
.cqa-btn.saved i { fill: #ff5d8f; }

/* Toast */
.aura-toast-wrap {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 10001; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.aura-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 14px;
  background: rgba(18,18,26,0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--card-border-active);
  color: var(--text-primary);
  padding: 12px 18px; border-radius: var(--border-radius-md);
  font-family: var(--font-sans); font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  opacity: 0; transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  max-width: 90vw;
}
.aura-toast.show { opacity: 1; transform: translateY(0); }
.aura-toast-action { background: none; border: none; color: #c4b5fd; font-weight: 600; cursor: pointer; font-family: var(--font-sans); font-size: 0.9rem; white-space: nowrap; }

/* Sheet overlay (Share + Collection) */
.aura-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(5,5,8,0.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  padding: 20px;
}
.aura-sheet-overlay.open { opacity: 1; pointer-events: auto; }
.aura-sheet {
  width: 100%; max-width: 460px; max-height: 82vh; overflow-y: auto;
  background: linear-gradient(160deg, rgba(22,22,32,0.96), rgba(12,12,18,0.96));
  border: 1px solid var(--card-border-active);
  border-radius: var(--border-radius-lg);
  padding: 22px;
  transform: translateY(16px) scale(0.98);
  transition: var(--transition-smooth);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.aura-sheet-overlay.open .aura-sheet { transform: translateY(0) scale(1); }
.aura-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.aura-sheet-head h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); margin: 0; }
.aura-sheet-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.aura-sheet-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.aura-sheet-quote { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text-primary); line-height: 1.5; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--card-border); }
.aura-sheet-quote span { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--text-secondary); opacity: 0.75; font-style: normal; font-family: var(--font-sans); }

/* Share grid */
.aura-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aura-share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--border-radius-md); color: var(--text-primary); cursor: pointer; transition: var(--transition-fast); font-family: var(--font-sans); font-size: 0.78rem; text-align: center; }
.aura-share-item:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); border-color: var(--card-border-active); }
.asi-ico { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(124,58,237,0.18); }
.asi-ico i { width: 20px; height: 20px; }

/* Collection */
.aura-collection-empty { text-align: center; color: var(--text-secondary); font-family: var(--font-sans); padding: 30px 10px; line-height: 1.6; }
.aura-collection-list { display: flex; flex-direction: column; gap: 12px; }
.aura-collection-card { position: relative; padding: 16px 42px 16px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--border-radius-md); cursor: pointer; transition: var(--transition-fast); }
.aura-collection-card:hover { background: rgba(255,255,255,0.08); border-color: var(--card-border-active); }
.acc-remove { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.06); border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.acc-remove:hover { background: rgba(239,68,68,0.25); color: #fff; }
.acc-remove i { width: 14px; height: 14px; }
.acc-cat { display: inline-block; font-family: var(--font-sans); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #c4b5fd; margin-bottom: 6px; }
.acc-text { font-family: var(--font-serif); font-size: 1.02rem; color: var(--text-primary); line-height: 1.45; margin: 0 0 6px; }
.acc-sec { display: block; font-family: var(--font-sans); font-size: 0.82rem; color: var(--text-secondary); opacity: 0.75; margin-top: 4px; }
.acc-author { font-family: var(--font-sans); font-size: 0.82rem; color: var(--text-secondary); font-style: normal; }

@media (max-width: 520px) {
  .aura-sheet-overlay { align-items: flex-end; padding: 0; }
  .aura-sheet { max-width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aura-toast, .aura-sheet, .cqa-btn, .aura-share-item { transition: none; }
}

/* ==========================================================================
   Quote of the Day + Streak status row (added)
   ========================================================================== */
.card-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  transform: translateZ(20px);
}
.qotd-badge, .streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--card-border-active);
  line-height: 1;
}
.qotd-badge {
  cursor: pointer;
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(124,58,237,0.30), rgba(219,39,119,0.22));
  transition: var(--transition-fast);
}
.qotd-badge:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.4); }
.qotd-badge i { width: 14px; height: 14px; color: #c4b5fd; }
.streak-pill {
  color: #fed7aa;
  background: rgba(234,88,12,0.16);
  border-color: rgba(234,88,12,0.42);
  cursor: default;
}
.streak-pill i { width: 14px; height: 14px; color: #fb923c; }

/* Explore / internal-linking section (added) */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.explore-link { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--border-radius-md); color: var(--text-primary); text-decoration: none; font-family: var(--font-sans); font-size: 0.92rem; transition: var(--transition-fast); }
.explore-link:hover { background: rgba(255,255,255,0.09); border-color: var(--card-border-active); transform: translateY(-2px); }
.explore-link i { width: 16px; height: 16px; color: #c4b5fd; flex-shrink: 0; }

/* ==========================================================================
   Inspire Me — mood matcher + composer (added)
   ========================================================================== */
.inspire-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--card-border); }
.inspire-tab { flex: 1; background: none; border: none; padding: 10px 8px; color: var(--text-secondary); font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition-fast); }
.inspire-tab:hover { color: var(--text-primary); }
.inspire-tab.active { color: var(--text-primary); border-bottom-color: #c4b5fd; }
.inspire-hint { font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 14px; line-height: 1.5; }
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mood-chip { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--border-radius-md); color: var(--text-primary); cursor: pointer; font-family: var(--font-sans); font-size: 0.74rem; transition: var(--transition-fast); }
.mood-chip:hover { background: rgba(124,58,237,0.18); border-color: var(--card-border-active); transform: translateY(-2px); }
.mood-chip i { width: 20px; height: 20px; color: #c4b5fd; }
.inspire-surprise { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: rgba(255,255,255,0.05); border: 1px dashed var(--card-border-active); border-radius: var(--border-radius-md); color: var(--text-primary); font-family: var(--font-sans); font-size: 0.9rem; cursor: pointer; transition: var(--transition-fast); }
.inspire-surprise:hover { background: rgba(255,255,255,0.1); }
.inspire-surprise i { width: 16px; height: 16px; }
.create-input { width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 12px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); border-radius: var(--border-radius-md); color: var(--text-primary); font-family: var(--font-serif); font-size: 1rem; resize: vertical; }
.create-input::placeholder { color: var(--text-secondary); opacity: 0.7; font-family: var(--font-sans); font-size: 0.9rem; }
.create-input:focus { outline: none; border-color: var(--card-border-active); background: rgba(255,255,255,0.08); }
input.create-input { font-family: var(--font-sans); font-size: 0.92rem; }
.create-actions { display: flex; gap: 10px; }
.create-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--border-radius-md); border: 1px solid var(--card-border-active); background: rgba(255,255,255,0.05); color: var(--text-primary); font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition-fast); }
.create-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.create-btn.primary { background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(219,39,119,0.4)); border-color: transparent; }
.create-btn i { width: 16px; height: 16px; }
@media (max-width: 520px) { .mood-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Hover info-cards — authors & terms glossary (added)
   ========================================================================== */
.info-term { text-decoration: underline dotted rgba(196,181,253,0.6); text-underline-offset: 3px; cursor: help; transition: color var(--transition-fast); outline: none; }
.info-term:hover, .info-term:focus { color: #c4b5fd; text-decoration-color: #c4b5fd; }
#quoteAuthor.info-term, .quote-author.info-term { text-decoration: none; }
#quoteAuthor:hover { color: #c4b5fd; }
.aura-info-pop {
  position: absolute; z-index: 4000; max-width: min(300px, calc(100vw - 24px)); min-width: 180px;
  padding: 14px 16px; border-radius: var(--border-radius-md, 14px);
  background: rgba(17, 17, 28, 0.92); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--card-border-active, rgba(196,181,253,0.35));
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  color: var(--text-primary, #f8fafc); opacity: 0; transform: translateY(6px) scale(0.98);
  pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.aura-info-pop.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.aura-info-pop .aip-title { display: block; font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em; color: #c4b5fd; margin-bottom: 6px; }
.aura-info-pop .aip-body { display: block; font-family: var(--font-sans); font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary, #cbd5e1); }
.aura-info-pop::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: rgba(17,17,28,0.92);
  border-right: 1px solid var(--card-border-active, rgba(196,181,253,0.35)); border-bottom: 1px solid var(--card-border-active, rgba(196,181,253,0.35));
}
.aura-info-pop.below::after { bottom: auto; top: -7px; border-right: none; border-bottom: none; border-left: 1px solid var(--card-border-active, rgba(196,181,253,0.35)); border-top: 1px solid var(--card-border-active, rgba(196,181,253,0.35)); }
@media (hover: none) { .info-term { text-decoration-style: solid; text-decoration-color: rgba(196,181,253,0.45); } }

/* Personal dashboard stats (collection header) */
.dash-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.dash-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--border-radius-md); }
.dash-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #c4b5fd; line-height: 1; }
.dash-label { font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }

/* ==========================================================================
   Newsletter / Free English Resources CTA (added)
   ========================================================================== */
.cta-section { display: flex; justify-content: center; }
.cta-card {
  position: relative; overflow: hidden; width: 100%; max-width: 760px; text-align: center;
  padding: 40px 32px; border-radius: var(--border-radius-lg, 24px);
  background: linear-gradient(150deg, rgba(124,58,237,0.16), rgba(219,39,119,0.10) 60%, rgba(255,255,255,0.03));
  border: 1px solid var(--card-border-active, rgba(196,181,253,0.35));
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.cta-aura-glow { position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(196,181,253,0.45), transparent 70%); filter: blur(30px); pointer-events: none; }
.cta-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #c4b5fd; margin-bottom: 12px; }
.cta-eyebrow i { width: 15px; height: 15px; }
.cta-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--text-primary); margin: 0 0 12px; }
.cta-text { font-family: var(--font-sans); font-size: 0.98rem; line-height: 1.6; color: var(--text-secondary); max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: var(--transition-fast); border: 1px solid var(--card-border-active, rgba(196,181,253,0.4)); color: var(--text-primary); background: rgba(255,255,255,0.05); }
.cta-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.cta-btn.primary { background: linear-gradient(135deg, #7c3aed, #db2777); border-color: transparent; box-shadow: 0 10px 26px rgba(124,58,237,0.4); }
.cta-btn.primary:hover { box-shadow: 0 14px 34px rgba(124,58,237,0.55); }
.cta-btn i { width: 17px; height: 17px; }
.cta-contact { font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.cta-contact a { color: #c4b5fd; text-decoration: none; }
.cta-contact a:hover { text-decoration: underline; }
@media (max-width: 520px) { .cta-card { padding: 32px 20px; } .cta-btn { width: 100%; justify-content: center; } }

/* ==========================================================================
   Static utility pages (About / Contact / Privacy / Widget embed)
   ========================================================================== */
.static-page { max-width: 820px; margin: 40px auto; padding: 44px 38px; background: rgba(17,17,28,0.55); border: 1px solid var(--card-border, rgba(255,255,255,0.1)); border-radius: var(--border-radius-lg, 24px); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.static-page h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--text-primary); margin: 0 0 8px; }
.static-page .lede { font-family: var(--font-sans); color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; margin-bottom: 26px; }
.static-page h2 { font-family: var(--font-serif); font-size: 1.32rem; color: var(--text-primary); margin: 28px 0 10px; }
.static-page p, .static-page li { font-family: var(--font-sans); color: var(--text-secondary); line-height: 1.7; font-size: 0.97rem; }
.static-page ul { padding-left: 20px; margin: 8px 0 16px; }
.static-page li { margin-bottom: 8px; }
.static-page a { color: #c4b5fd; text-decoration: none; }
.static-page a:hover { text-decoration: underline; }
.static-page .muted { font-size: 0.85rem; opacity: 0.8; margin-top: 28px; }
.static-page .embed-box { background: rgba(0,0,0,0.35); border: 1px solid var(--card-border, rgba(255,255,255,0.1)); border-radius: 12px; padding: 16px; overflow: auto; margin: 8px 0 16px; }
.static-page pre { margin: 0; }
.static-page code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; color: #e2e8f0; white-space: pre-wrap; word-break: break-word; }
.static-page .embed-preview { display: flex; justify-content: center; margin: 22px 0; }
@media (max-width: 600px) { .static-page { padding: 30px 20px; margin: 20px auto; } }

/* ==========================================================================
   REDESIGN: darker theme · full-width · bento features · bento archive
   ========================================================================== */
/* 1. Darker theme — override base tokens + dim the liquid canvas */
:root {
  --bg-dark: #050507;
  --card-bg: rgba(8, 8, 12, 0.66);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-active: rgba(196, 181, 253, 0.24);
}
body { background-color: #050507; }
#auraCanvas { filter: brightness(0.58) saturate(1.06) contrast(1.05); }
/* darkening vignette above the canvas, below the content (z-index:10) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 0%, rgba(5,5,7,0.10), rgba(5,5,7,0.55) 60%, rgba(5,5,7,0.82) 100%);
}

/* 2. Full-width layout */
.portal-wrapper { padding-left: 30px; padding-right: 30px; }
.main-header { max-width: 1480px; }
.portal-wrapper .content-section { max-width: 1480px; }
@media (max-width: 768px) { .portal-wrapper { padding-left: 16px; padding-right: 16px; } }

/* 3. Bento "Tools & Rituals" features section */
.feat-bento {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px; grid-auto-flow: dense; width: 100%;
}
.feat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  padding: 22px; min-height: 132px; border-radius: var(--border-radius-md); cursor: pointer;
  border: 1px solid var(--card-border);
  background: linear-gradient(155deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  color: var(--text-primary); transition: var(--transition-smooth, all .25s ease);
}
.feat-card:hover {
  border-color: var(--card-border-active); transform: translateY(-4px);
  background: linear-gradient(155deg, rgba(124,58,237,0.20), rgba(219,39,119,0.07));
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
.feat-card.feat-big { grid-column: span 2; }
.feat-ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(196,181,253,0.14); }
.feat-ic i { width: 22px; height: 22px; color: #c4b5fd; }
.feat-label { font-family: var(--font-sans); font-weight: 700; font-size: 1.02rem; }
.feat-desc { font-family: var(--font-sans); font-size: 0.83rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 560px) {
  .feat-bento { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .feat-card.feat-big { grid-column: span 2; }
  .feat-card { padding: 16px; min-height: 110px; }
}

/* 4. Bento archive — varied sizes + category accents */
.library-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; gap: 18px; }
.library-card { border-left: 3px solid rgba(196,181,253,0.3); }
.library-card.lib-resilience { border-left-color: #fb7185; }
.library-card.lib-ambition  { border-left-color: #f59e0b; }
.library-card.lib-serenity  { border-left-color: #34d399; }
.library-card.lib-wisdom    { border-left-color: #a78bfa; }
.library-card:nth-child(9n+1) { grid-column: span 2; background: linear-gradient(155deg, rgba(124,58,237,0.10), rgba(255,255,255,0.02)); }
.library-card:nth-child(9n+1) .lib-quote-text { font-size: 1.28rem; }
@media (max-width: 620px) { .library-card:nth-child(9n+1) { grid-column: span 1; } .library-card:nth-child(9n+1) .lib-quote-text { font-size: 1.05rem; } }
/* readability cap for long-form text inside now-wider sections */
.faq-section .faq-content p { max-width: 80ch; }
.citable-section .citable-val { max-width: 90ch; }
