/* ==========================================================================
   Workshopr - Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   MODULAR CSS ARCHITECTURE
   Import order: tokens → base → components → existing styles
   ========================================================================== */

/* Design Tokens - Single source of truth for all CSS variables */
@import url('tokens/_variables.css');

/* Base Styles - Animations, backgrounds, and utility classes */
@import url('base/_backgrounds.css');
@import url('base/_animations.css');

/* Components - Reusable UI components */
@import url('components/_buttons.css');
@import url('components/_cards.css');
@import url('components/_modals.css');

/* Additional Stylesheets */
@import url('agenda-styles.css');
@import url('articles.css');

/* ==========================================================================
   SVG Icon Base Styles
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   CSS Variables
   All design tokens flow from platform-tokens.css → _variables.css (bridge).
   Do NOT add hardcoded values here — update the bridge file instead.
   ========================================================================== */

/* ==========================================================================
   Unified Card System
   ========================================================================== */

/* Base Card - Foundation for all card variants */
.ucard {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ucard:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-medium);
}

/* Card Body - Consistent padding */
.ucard-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Card Header - For cards with colored header sections */
.ucard-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Header color variants */
.ucard-header--red { background: linear-gradient(135deg, var(--mainsite-light) 0%, var(--color-error-light) 100%); }
.ucard-header--green { background: linear-gradient(135deg, var(--color-success-very-light) 0%, var(--color-success-light) 100%); }
.ucard-header--blue { background: linear-gradient(135deg, var(--color-info-very-light) 0%, var(--color-info-light) 100%); }
.ucard-header--purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }
.ucard-header--orange { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.ucard-header--gray { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); }

/* Card Icon - Centered icon in header */
.ucard-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--bg-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.ucard:hover .ucard-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Icon colors to match header */
.ucard-header--red .ucard-icon .icon { color: var(--color-error-dark); }
.ucard-header--green .ucard-icon .icon { color: var(--color-success-dark); }
.ucard-header--blue .ucard-icon .icon { color: var(--color-info-dark); }
.ucard-header--purple .ucard-icon .icon { color: var(--coach-dark); }
.ucard-header--orange .ucard-icon .icon { color: #ea580c; }
.ucard-header--gray .ucard-icon .icon { color: var(--gray-500); }

.ucard-icon .icon {
  width: 1.5rem; height: 1.5rem;
}

/* Card Title */
.ucard-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

/* Card Text */
.ucard-text {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Card Tag/Badge */
.ucard-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.75rem;
  align-self: flex-start;
}

.ucard-tag--success {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.ucard-tag--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

/* ==========================================================================
   Card Variant: Content Card (for listings like workshops)
   ========================================================================== */
.ucard--content {
  min-height: 280px;
}

.ucard--content .ucard-header {
  height: 140px;
}

/* ==========================================================================
   Card Variant: Feature Card (horizontal layout with icon)
   ========================================================================== */
.ucard--feature {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  height: auto;
}

.ucard--feature .ucard-body {
  padding: var(--space-5);
}

.ucard--feature .ucard-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(229, 77, 77, 0.08);
  flex-shrink: 0;
  margin-left: var(--space-5);
}

.ucard--feature .ucard-icon .icon {
  width: 1.25rem; height: 1.25rem;
  color: var(--primary-red);
}

.ucard--feature:hover {
  transform: translateY(-2px);
  border-color: var(--primary-red);
}

.ucard--feature .ucard-title {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   Card Variant: Pricing/Benefit Card (with large header)
   ========================================================================== */
.ucard--benefit .ucard-header {
  height: 120px;
}

.ucard--benefit .ucard-icon {
  width: 48px;
  height: 48px;
}

/* ==========================================================================
   Card Variant: Pro Feature Card (taller header with large icon)
   ========================================================================== */
.ucard--pro {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ucard--pro .ucard-header {
  height: 140px;
  background: rgba(229, 77, 77, 0.12);
}

.ucard--pro .ucard-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  box-shadow: none;
}

.ucard--pro .ucard-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.ucard--pro:hover .ucard-icon {
  transform: scale(1.1) translateY(-4px);
}

.ucard--pro:hover .ucard-icon::before {
  opacity: 1;
  transform: scale(1);
}

.ucard--pro .ucard-icon .icon {
  width: 52px; height: 52px;
  color: var(--primary-red);
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
  transition: var(--transition);
}

.ucard--pro:hover .ucard-icon .icon {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

/* ==========================================================================
   Card Grid Layout
   ========================================================================== */
.ucard-grid {
  display: grid;
  gap: 1.75rem;
}

.ucard-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ucard-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ucard-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .ucard-grid--3,
  .ucard-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ucard-grid--2,
  .ucard-grid--3,
  .ucard-grid--4 { grid-template-columns: 1fr; }
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17.6px; /* 10% increase from 16px */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 14.3px; /* 10% increase from 13px */
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-warm);
  background-image:
    linear-gradient(rgba(44, 36, 22, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 36, 22, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  font-weight: 400;
  overflow-x: hidden;
}

/* Preserve planner page font sizes (no 10% increase) */
body.planner-page {
  font-size: 13px;
  /* Grid inherited from body */
}

html:has(body.planner-page) {
  font-size: 16px; /* Original size for planner */
}

/* ==========================================================================
   Typography System
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
}

h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

h5 {
  font-size: 0.8125rem;
  font-weight: 600;
}

h6 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  color: var(--text-body);
  line-height: 1.7;
}

.text-muted {
  color: var(--text-muted);
}

.text-small {
  font-size: 0.75rem;
}

strong, b {
  font-weight: 600;
  color: var(--text-dark);
}

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

/* Links within content areas - red and bold */
.content a,
.overview a,
.description a,
.markdown-content a,
.collection-description a,
.content-section a:not(.btn):not(.card):not(.listing-card) {
  color: var(--primary-red);
  font-weight: 600;
  text-decoration: none;
}

.content a:hover,
.overview a:hover,
.description a:hover,
.markdown-content a:hover,
.collection-description a:hover,
.content-section a:not(.btn):not(.card):not(.listing-card):hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Accessibility & Focus States
   ========================================================================== */

/* Keyboard focus visible for all interactive elements */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Button focus states */
button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Link focus states */
a:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  background: rgba(74, 144, 217, 0.05);
}

/* Input focus states */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 0;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

/* Card focus states */
.card:focus-visible,
.workshop-card:focus-visible,
.exercise-card:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 4px;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Micro-interactions & Smooth Transitions
   ========================================================================== */

/* Enhanced smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Smooth property transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove transitions for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Enhanced button hover with scale */
.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Card hover effect with shadow bloom */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card:active {
  transform: translateY(-2px) scale(1.005);
}

/* Badge pulse on hover */
.badge:hover,
.card-category:hover {
  animation: subtle-pulse 0.6s ease-in-out;
}

@keyframes subtle-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Icon rotation on hover */
.icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover .icon,
button:hover .icon {
  transform: rotate(5deg) scale(1.1);
}

/* Link underline animation */
.nav-link {
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--header-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 100%;
}

/* Smooth modal entrance */
.modal {
  animation: modalFadeIn 0.3s ease-out;
}

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

/* Input focus glow */
input:focus,
textarea:focus,
select:focus {
  transition: all 0.3s ease;
}

/* Tooltip smooth appearance */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 0.75rem;
  background: var(--text-dark);
  color: white;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Staggered list animation */
.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 100ms; }
.card:nth-child(3) { animation-delay: 200ms; }
.card:nth-child(4) { animation-delay: 300ms; }
.card:nth-child(5) { animation-delay: 400ms; }
.card:nth-child(6) { animation-delay: 500ms; }

/* Smooth color transitions for category badges */
.badge,
.card-category {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Loading States & Skeleton Screens
   ========================================================================== */

/* Skeleton animation */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Skeleton base */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-light) 0%,
    #e0e0e0 50%,
    var(--bg-light) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

/* Skeleton card */
.skeleton-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: 1rem;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 0.75rem;
}

.skeleton-text:last-child {
  width: 85%;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1rem;
}

.skeleton-badge {
  height: 28px;
  width: 80px;
  display: inline-block;
  margin-right: 0.5rem;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-overlay .loading-spinner {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

/* Fade in animation for loaded content */
.fade-in {
  animation: fadeIn 0.4s ease-in;
}

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

/* Skeleton Grid - for card listing pages */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skeleton-grid .skeleton-card {
  margin-bottom: 0;
  overflow: hidden;
}

/* Enhanced skeleton card with image header */
.skeleton-card-enhanced {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-card-enhanced .skeleton-header {
  height: 140px;
  background: linear-gradient(
    90deg,
    var(--bg-light) 0%,
    #e8e8e8 50%,
    var(--bg-light) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-card-enhanced .skeleton-body {
  padding: 1.25rem;
}

/* Button loading states - enhanced */
.btn.is-loading,
.btn[disabled].loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: wait;
}

.btn.is-loading *,
.btn[disabled].loading * {
  visibility: hidden;
}

.btn.is-loading::after,
.btn[disabled].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-outline.is-loading::after,
.btn-secondary.is-loading::after {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: var(--primary-red);
}

/* Inline loading spinner */
.inline-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.inline-spinner::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Search loading indicator */
.search-loading {
  position: relative;
}

.search-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.search-loading input {
  padding-right: 40px;
}

/* Results loading overlay */
.results-loading {
  position: relative;
  min-height: 200px;
}

.results-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  border-radius: var(--radius);
}

.results-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 11;
}

/* Page transition animations */
.page-enter {
  animation: pageEnter 0.3s ease-out;
}

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

.page-exit {
  animation: pageExit 0.2s ease-in forwards;
}

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

/* Staggered card animations */
.cards-grid.animate-in .card-wrapper {
  opacity: 0;
  animation: cardSlideIn 0.4s ease-out forwards;
}

.cards-grid.animate-in .card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.cards-grid.animate-in .card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.cards-grid.animate-in .card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.cards-grid.animate-in .card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.cards-grid.animate-in .card-wrapper:nth-child(5) { animation-delay: 0.25s; }
.cards-grid.animate-in .card-wrapper:nth-child(6) { animation-delay: 0.3s; }
.cards-grid.animate-in .card-wrapper:nth-child(7) { animation-delay: 0.35s; }
.cards-grid.animate-in .card-wrapper:nth-child(8) { animation-delay: 0.4s; }
.cards-grid.animate-in .card-wrapper:nth-child(9) { animation-delay: 0.45s; }

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Content fade transition */
.content-transition {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.content-transition.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Loading dots animation */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: loadingDots 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Shimmer effect for text loading */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .loading-spinner,
  .btn.loading::after,
  .btn.is-loading::after,
  .inline-spinner::before,
  .search-loading::after,
  .results-loading::after,
  .loading-dots span,
  .shimmer {
    animation: none;
  }

  .fade-in,
  .page-enter,
  .page-exit,
  .cards-grid.animate-in .card-wrapper {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

/* Header color theming - each app can override --header-accent */
.header {
  --header-accent: var(--primary-red);
  --header-accent-light: rgba(229, 77, 77, 0.15);
  --header-accent-bg: rgba(229, 77, 77, 0.2);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(232, 236, 241, 0.8);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 24px;
  color: var(--header-accent);
  background: var(--header-accent-bg);
  padding: 6px;
  border-radius: 8px;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  cursor: pointer;
}

.logo-dot {
  color: var(--header-accent);
}

.logo-dropdown-arrow {
  font-size: 18px;
  color: var(--text-gray);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.logo-dropdown:hover .logo-dropdown-arrow {
  transform: rotate(180deg);
}

.logo-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.logo-dropdown-menu::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: -1;
}

.logo-dropdown:hover .logo-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logo-dropdown-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-navy);
  transition: background 0.15s ease;
  z-index: 1;
}

.logo-dropdown-menu a:first-child {
  border-radius: 12px 12px 0 0;
}

.logo-dropdown-menu a:last-child {
  border-radius: 0 0 12px 12px;
}

.logo-dropdown-menu a:hover {
  background: var(--bg-muted);
}

.logo-dropdown-menu a.active {
  background: var(--header-accent-light);
  color: var(--header-accent);
}

.logo-dropdown-menu .icon {
  width: 20px; height: 20px;
  color: var(--header-accent);
}

.logo-dropdown-menu .nav-icon-bg {
  background: var(--header-accent-light);
  padding: 4px;
  border-radius: 6px;
}

.logo-dropdown-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
}

@keyframes logoDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.header-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-red);
  background: transparent;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links > li {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--header-accent);
}

.nav-link.active {
  color: var(--header-accent);
  font-weight: 600;
  background: var(--header-accent-light);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-icon {
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 1000;
  pointer-events: none;
}

/* Invisible bridge - extends hover area to prevent gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-gray);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-dropdown-menu li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--header-accent);
  border-radius: 0 2px 2px 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-menu li a:hover {
  color: var(--header-accent);
  background: var(--header-accent-light);
  padding-left: 1.5rem;
}

.nav-dropdown-menu li a:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-dropdown-menu li a.active {
  color: var(--header-accent);
  font-weight: 600;
  background: var(--header-accent-light);
}

.nav-dropdown-menu li a.active::before {
  transform: translateY(-50%) scaleY(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  transition: var(--transition);
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn:hover span {
  background: var(--header-accent);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--header-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Nav Auth Button - Uses header accent color */
.nav-auth-btn {
  background: var(--header-accent) !important;
  color: var(--text-light) !important;
  border-color: var(--header-accent) !important;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-auth-btn:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  min-width: 220px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 8px;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-white);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-navy);
}

.nav-dropdown-item.active {
  background: rgba(220, 53, 69, 0.08);
  color: var(--primary-red);
}

.nav-dropdown-item.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.nav-dropdown-item .icon {
  width: 18px; height: 18px;
  color: var(--text-gray);
}

.nav-dropdown-item:hover .icon,
.nav-dropdown-item.active .icon {
  color: inherit;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.coming-soon-badge {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-gray);
  background: var(--bg-light);
  padding: 2px 8px;
  border-radius: 10px;
}

.external-icon {
  margin-left: auto;
  font-size: 14px !important;
  color: var(--text-gray);
}

/* ==========================================================================
   Unified Button System
   4 Primary Variants: primary, secondary, tertiary, dark
   ========================================================================== */

/* Base Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn .icon {
  width: 1.125rem; height: 1.125rem;
}

/* Size Variants */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  gap: 0.375rem;
}

.btn-sm .icon {
  width: 1rem; height: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-lg .icon {
  width: 1.25rem; height: 1.25rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Button Variant 1: Primary
   Red background (--primary-red), white text - Main CTAs
   ========================================================================== */
.btn-primary {
  background: var(--primary-red);
  color: var(--text-light);
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(229, 77, 77, 0.25);
}

.btn-primary .icon {
  filter: brightness(0) invert(1);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(229, 77, 77, 0.35);
}

.btn-primary:active {
  background: var(--primary-red-dark);
  border-color: var(--primary-red-dark);
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(229, 77, 77, 0.2);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* ==========================================================================
   Button Variant 2: Secondary
   White background, red border, red text - Secondary actions
   ========================================================================== */
.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-secondary:hover {
  background: var(--mainsite-very-light);
  color: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  background: var(--mainsite-light);
  transform: translateY(0);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

/* ==========================================================================
   Button Variant 3: Tertiary
   Transparent, gray text - Low emphasis actions
   ========================================================================== */
.btn-tertiary {
  background: transparent;
  color: var(--text-gray);
  border-color: transparent;
}

.btn-tertiary:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.btn-tertiary:active {
  background: var(--border-light);
}

.btn-tertiary:focus-visible {
  outline: 2px solid var(--border-medium);
  outline-offset: 2px;
}

/* ==========================================================================
   Button Variant 4: Dark
   Dark background - For footer/dark sections
   ========================================================================== */
.btn-dark {
  background: var(--bg-dark, #1a1a2e);
  color: var(--text-light);
  border-color: var(--bg-dark, #1a1a2e);
}

.btn-dark:hover {
  background: #252542;
  border-color: #252542;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-dark:active {
  background: var(--bg-dark);
  transform: translateY(0);
}

.btn-dark:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ==========================================================================
   Additional Utility Variants (backwards compatibility)
   ========================================================================== */

/* Outline variant - alias for secondary */
.btn-outline {
  background: transparent;
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 77, 77, 0.3);
}

/* White variant - for dark backgrounds */
.btn-white {
  background: var(--bg-white);
  color: var(--primary-red);
  border-color: var(--text-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Ghost variant - subtle, for inline actions */
.btn-ghost {
  background: transparent;
  color: var(--text-gray);
  border-color: var(--border-light);
  padding: 0.625rem 1.25rem;
}

.btn-ghost:hover {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-medium);
}

/* Icon-only button */
.btn-icon {
  padding: 0.625rem;
  min-width: 40px;
  min-height: 40px;
}

.btn-icon.btn-sm {
  padding: 0.5rem;
  min-width: 32px;
  min-height: 32px;
}

.btn-icon.btn-lg {
  padding: 0.75rem;
  min-width: 48px;
  min-height: 48px;
}

/* Danger variant - for destructive actions */
.btn-danger {
  background: var(--color-error-dark);
  color: var(--text-light);
  border-color: var(--color-error-dark);
}

.btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
  background: #991B1B;
  border-color: #991B1B;
  transform: translateY(0);
}

.btn-danger:focus-visible {
  outline: 2px solid var(--color-error-dark);
  outline-offset: 2px;
}

/* Outline Red variant - secondary danger style */
.btn-outline-red {
  background: transparent;
  color: var(--color-error-dark);
  border-color: var(--color-error-dark);
}

.btn-outline-red:hover {
  background: var(--mainsite-light);
  color: #B91C1C;
  border-color: #B91C1C;
}

/* Full width utility */
.btn-full {
  width: 100%;
}

/* ==========================================================================
   Hero Section - Matching Tips Design
   ========================================================================== */

/* Hero entrance animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  padding: 20px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-warm);
}

/* Graph paper background pattern - Matches Tips design */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(44, 36, 22, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 36, 22, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(229, 77, 77, 0.15);
  color: var(--primary-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 16px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge .icon {
  width: 16px; height: 16px;
}

.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title-accent {
  color: var(--primary-red);
  font-style: italic;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary-red-light);
  text-decoration-thickness: 8px;
  text-underline-offset: 4px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .btn .icon {
  width: 18px; height: 18px;
}

.hero-actions .btn-primary {
  background: var(--primary-red);
  color: white;
  box-shadow: 0 4px 14px rgba(229, 77, 77, 0.3);
}

.hero-actions .btn-primary:hover {
  background: var(--primary-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 77, 77, 0.4);
}

.hero-actions .btn-secondary {
  background: transparent;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  box-shadow: none;
}

.hero-actions .btn-secondary:hover {
  background: rgba(229, 77, 77, 0.1);
  border-color: var(--primary-red-hover);
  color: var(--primary-red-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--mainsite-primary);
}

.hero-stat .stat-label {
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(44, 36, 22, 0.2);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(44, 36, 22, 0.15), 0 16px 48px rgba(44, 36, 22, 0.1);
}

/* Hero Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 100px 0 50px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image {
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 90px 0 40px;
  }

  .hero-container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat .stat-number {
    font-size: 24px;
  }
}

/* Category Tabs (kept for backwards compatibility) */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: heroFadeUp 0.6s ease-out 0.3s backwards;
}

.tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-gray);
  border: 2px solid var(--border-light);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Tab shine effect on hover */
.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.tab:hover::before {
  left: 100%;
}

.tab:hover {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(229, 77, 77, 0.3);
}

.tab.active {
  background: var(--primary-navy);
  color: white;
  border-color: var(--primary-navy);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    0 30px 60px -15px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: heroFadeUp 0.8s ease-out 0.4s backwards;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    var(--shadow-lg),
    0 40px 80px -20px rgba(0, 0, 0, 0.25);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Decorative border accent */
.hero-image::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image:hover::after {
  opacity: 0.5;
}

.hero-image img {
  width: 100%;
  display: block;
  height: 500px;
  object-fit: cover;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
  padding: 0.5rem 2rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.3;
}

.section-header h2 .headline-secondary {
  color: var(--primary-red);
  font-style: italic;
}

.section-header p {
  font-family: var(--font-body);
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ==========================================================================
   Feature Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  background: var(--primary-red);
}

.feature-card:hover .feature-icon svg {
  color: white;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-red);
  transition: var(--transition-smooth);
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-dark);
}

.feature-content p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-gray);
  line-height: 1.55;
}

/* ==========================================================================
   Structured Section
   ========================================================================== */

.structured-section {
  padding: 2.5rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.structured-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.3;
}

.structured-section h2 .headline-secondary {
  color: var(--primary-red);
  font-style: italic;
}

.structured-section > p {
  font-family: var(--font-body);
  color: var(--text-gray);
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.check-list {
  list-style: none;
  margin-bottom: 2.5rem;
  display: inline-block;
  text-align: left;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.8125rem;
}

.check-list li::before {
  content: "✓";
  color: var(--primary-red);
  font-weight: 600;
}

/* Eyebrow Tag */
.eyebrow-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-red);
  background: var(--card-red);
  padding: 0.3rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Card Grid
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

/* Staggered card entrance animation */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ensure consistent card heights across all contexts */
.cards-grid .card-wrapper {
  display: flex;
  animation: cardSlideIn 0.5s ease-out backwards;
}

.cards-grid .card-wrapper .card {
  min-height: 280px;
  width: 100%;
}

.cards-grid .card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.cards-grid .card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.cards-grid .card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.cards-grid .card-wrapper:nth-child(5) { animation-delay: 0.25s; }
.cards-grid .card-wrapper:nth-child(6) { animation-delay: 0.3s; }
.cards-grid .card-wrapper:nth-child(7) { animation-delay: 0.35s; }
.cards-grid .card-wrapper:nth-child(8) { animation-delay: 0.4s; }
.cards-grid .card-wrapper:nth-child(9) { animation-delay: 0.45s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .cards-grid .card-wrapper {
    animation: none;
  }
}

.card-wrapper {
  position: relative;
  perspective: 1000px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-medium);
}

.card:active {
  transform: translateY(-4px) scale(1.01);
  transition-duration: 0.1s;
}

.card-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-header.red { background: var(--card-red); --card-accent-color: var(--badge-red); }
.card-header.green { background: var(--card-green); --card-accent-color: var(--badge-green); }
.card-header.blue { background: var(--card-blue); --card-accent-color: var(--badge-blue); }
.card-header.purple { background: var(--card-purple); --card-accent-color: var(--badge-purple); }
.card-header.orange { background: var(--card-orange); --card-accent-color: var(--badge-orange); }
.card-header.gray { background: var(--card-gray); --card-accent-color: var(--text-gray); }

/* Pass accent color to parent card */
.card:has(.card-header.red) { --card-accent-color: var(--badge-red); }
.card:has(.card-header.green) { --card-accent-color: var(--badge-green); }
.card:has(.card-header.blue) { --card-accent-color: var(--badge-blue); }
.card:has(.card-header.purple) { --card-accent-color: var(--badge-purple); }
.card:has(.card-header.orange) { --card-accent-color: var(--badge-orange); }

.card-type-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-type-badge .icon {
  width: 0.875rem; height: 0.875rem;
}

.card-type-badge.workshop { background: rgba(255, 255, 255, 0.85); color: var(--text-dark); }
.card-type-badge.exercise { background: rgba(255, 255, 255, 0.85); color: var(--text-dark); }
.card-type-badge.icebreaker { background: rgba(255, 255, 255, 0.85); color: var(--text-dark); }

.card-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* Icon glow ring on hover */
.card-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) translateY(-4px);
}

.card:hover .card-icon::before {
  opacity: 1;
  transform: scale(1);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.card:hover .card-icon svg {
  transform: rotate(-5deg);
}

.card-icon .icon {
  width: 60px; height: 60px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
  transition: all 0.4s ease;
}

.card:hover .card-icon .icon {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.card-body {
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  display: inline-flex;
  align-items: center;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  align-self: flex-start;
  transition: var(--transition-fast);
}

.card-category.research { background: var(--card-red); color: var(--badge-red); }
.card-category.strategy { background: var(--card-blue); color: var(--badge-blue); }
.card-category.innovation { background: var(--card-green); color: var(--badge-green); }
.card-category.design { background: var(--card-purple); color: var(--badge-purple); }
.card-category.team { background: var(--card-orange); color: var(--badge-orange); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: auto;
}

.card-meta svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.card-meta .icon {
  width: 14px; height: 14px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
  opacity: 0.7;
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: var(--bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn:active {
  transform: scale(0.95);
}

.favorite-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.favorite-btn .heart-outline {
  display: block;
  color: var(--category-color);
}

.favorite-btn .heart-filled {
  display: none;
  color: var(--category-color);
}

.favorite-btn:hover .heart-outline {
  display: none;
}

.favorite-btn:hover .heart-filled {
  display: block;
  color: var(--category-color);
}

.favorite-btn.active .heart-outline {
  display: none;
}

.favorite-btn.active .heart-filled {
  display: block;
  color: var(--category-color);
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.favorite-btn.active:hover .heart-filled {
  transform: scale(1.1);
}

/* Favorite button loading state */
.favorite-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.favorite-btn.loading svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Coming Soon Section
   ========================================================================== */

.coming-soon {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.coming-soon h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.coming-soon h2 .headline-secondary {
  color: var(--primary-red);
  font-style: italic;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.coming-soon-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.coming-soon-icon {
  width: 48px;
  height: 48px;
  background: var(--card-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coming-soon-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-red);
}

.coming-soon-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.coming-soon-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Animated illustration container */
.empty-state-illustration {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background circle with subtle animation */
.empty-state-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  border-radius: 50%;
  animation: emptyPulse 4s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* Icon container */
.empty-state-icon {
  position: relative;
  width: 100px;
  height: 100px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.empty-state-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.empty-state-icon .icon {
  width: 48px; height: 48px;
  color: var(--text-muted);
  font-variation-settings: 'FILL' 0, 'wght' 300;
}

/* Decorative floating elements */
.empty-state-decoration {
  position: absolute;
  border-radius: 50%;
  animation: emptyOrbit 8s linear infinite;
}

.empty-state-decoration--1 {
  width: 16px;
  height: 16px;
  background: var(--primary-red-light);
  top: 20%;
  right: 10%;
  animation-duration: 6s;
}

.empty-state-decoration--2 {
  width: 12px;
  height: 12px;
  background: var(--accent-yellow-light);
  bottom: 25%;
  left: 15%;
  animation-duration: 8s;
  animation-direction: reverse;
}

.empty-state-decoration--3 {
  width: 8px;
  height: 8px;
  background: var(--primary-blue-light);
  top: 40%;
  left: 5%;
  animation-duration: 10s;
}

@keyframes emptyOrbit {
  from { transform: rotate(0deg) translateX(10px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(10px) rotate(-360deg); }
}

/* Text content */
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.empty-state-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Action buttons */
.empty-state-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Variants for different contexts */

/* Search empty state */
.empty-state--search .empty-state-icon {
  background: var(--primary-blue-light);
}

.empty-state--search .empty-state-icon svg,
.empty-state--search .empty-state-icon .icon {
  color: var(--primary-blue);
}

/* No favorites empty state */
.empty-state--favorites .empty-state-icon {
  background: var(--primary-red-light);
}

.empty-state--favorites .empty-state-icon svg,
.empty-state--favorites .empty-state-icon .icon {
  color: var(--primary-red);
}

/* No content empty state */
.empty-state--content .empty-state-icon {
  background: var(--card-purple);
}

.empty-state--content .empty-state-icon svg,
.empty-state--content .empty-state-icon .icon {
  color: var(--badge-purple);
}

/* Error empty state */
.empty-state--error .empty-state-illustration::before {
  background: var(--card-red);
}

.empty-state--error .empty-state-icon {
  background: var(--primary-red-light);
}

.empty-state--error .empty-state-icon svg,
.empty-state--error .empty-state-icon .icon {
  color: var(--primary-red);
}

/* Compact variant for inline use */
.empty-state--compact {
  padding: 3rem 1.5rem;
}

.empty-state--compact .empty-state-illustration {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
}

.empty-state--compact .empty-state-icon {
  width: 70px;
  height: 70px;
}

.empty-state--compact .empty-state-icon svg,
.empty-state--compact .empty-state-icon .icon {
  width: 32px;
  height: 32px;
  width: 32px; height: 32px;
}

.empty-state--compact .empty-state-title {
  font-size: 1.25rem;
}

.empty-state--compact .empty-state-description {
  font-size: 0.9375rem;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .empty-state-illustration::before,
  .empty-state-icon,
  .empty-state-decoration {
    animation: none;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background: #2a2a2a;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--text-light);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #000000;
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
  border-top: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.footer-brand h3 .brand-dot {
  color: var(--primary-red);
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  background: rgba(255, 255, 255, 0.1);
}

.social-link.twitter { background: var(--primary-red-light); color: var(--primary-red); }
.social-link.linkedin { background: var(--primary-red-light); color: var(--primary-red); }
.social-link.bluesky { background: var(--primary-red-light); color: var(--primary-red); }

.social-link:hover {
  transform: translateY(-2px) scale(1.05);
}

.social-link.twitter:hover { background: var(--primary-red); color: white; }
.social-link.linkedin:hover { background: var(--primary-red); color: white; }
.social-link.bluesky:hover { background: var(--primary-red); color: white; }

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.625rem;
}

.footer-column a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-column a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-light);
}

.footer-column .coming-soon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

.footer-column .coming-soon em {
  font-style: normal;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* ==========================================================================
   Listing Page Styles
   ========================================================================== */

/* Page wrapper - transparent to show grid from body */
.page-wrapper {
  position: relative;
  overflow: visible;
  background: transparent;
}

.page-wrapper .page-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.page-wrapper .page-shape {
  position: absolute;
  opacity: 0.06;
}

.page-wrapper .page-shape--circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid var(--primary-red);
  right: -80px;
  top: -60px;
  animation: heroFloat 20s ease-in-out infinite;
}

.page-wrapper .page-shape--square {
  width: 120px;
  height: 120px;
  background: var(--accent-yellow);
  left: 3%;
  bottom: -20px;
  transform: rotate(15deg);
  animation: heroFloat 25s ease-in-out infinite reverse;
  border-radius: var(--radius-lg);
}

.page-wrapper .page-shape--dots {
  width: 100px;
  height: 100px;
  right: 15%;
  bottom: -10px;
  background-image: radial-gradient(var(--primary-blue) 2px, transparent 2px);
  background-size: 16px 16px;
  animation: heroFloat 18s ease-in-out infinite;
  animation-delay: -5s;
}

.page-wrapper .page-shape--ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 25px solid var(--primary-green);
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
  animation: heroFloat 22s ease-in-out infinite;
  animation-delay: -8s;
}

@media (prefers-reduced-motion: reduce) {
  .page-wrapper .page-shape {
    animation: none;
  }
}

/* Hide horizontal overflow on body when page-wrapper shapes extend beyond viewport */
body:has(.page-wrapper) {
  overflow-x: hidden;
}

.page-header {
  text-align: center;
  padding: 3.5rem 2rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.page-header p {
  font-family: var(--font-body);
  color: var(--text-gray);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Search & Filters */
.search-filters {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}


.search-box {
  flex: 0 1 300px;
  max-width: 300px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid #888;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-cool);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px var(--primary-red-light);
}

.search-box svg,
.search-box .icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  pointer-events: none;
}

.search-box input:focus ~ svg,
.search-box input:focus ~ .icon {
  color: var(--primary-red);
}

/* Filter divider */
.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  margin: 0 0.125rem;
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%236B7A94' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 0.625rem) center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 120px;
}

.filter-select:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-cool);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px var(--primary-red-light);
}

/* Filter with active selection */
.filter-select:not([value=""]):not(:placeholder-shown) {
  border-color: var(--primary-red);
  background-color: var(--primary-red-light);
  color: var(--primary-red);
}

/* Filter group label */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.filter-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-left: 0.25rem;
}

/* Clear filters button */
.clear-filters-btn {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.clear-filters-btn:hover {
  color: var(--primary-red);
  background: var(--primary-red-light);
}

.clear-filters-btn .icon {
  width: 16px; height: 16px;
}

.results-count {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-gray);
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto 1.25rem;
}

.results-count strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Listing Grid */
.listing-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-gray);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--bg-cool);
  color: var(--text-dark);
}

.pagination .current {
  background: var(--primary-red);
  color: white;
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination a:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.pagination .current {
  background: var(--bg-light);
  color: var(--text-dark);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop/Mobile visibility helpers */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none !important;
  }

  .header-inner {
    position: relative;
  }

  .mobile-menu-btn {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav {
    position: static;
  }

  /* Style auth button for mobile */
  .nav-auth-btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -2rem;
    right: -2rem;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }


  .nav-link {
    display: block;
    padding: 1rem;
    width: 100%;
  }

  /* Mobile dropdown */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  .nav-dropdown-menu li {
    border-bottom: 1px solid var(--border-light);
  }

  .nav-dropdown-menu li:last-child {
    border-bottom: none;
  }

  .nav-dropdown-menu li a {
    padding: 0.875rem 1rem 0.875rem 2rem;
  }

  .nav-dropdown-icon {
    display: none;
  }

  .nav-auth-btn {
    display: block;
    margin: 1rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .search-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    flex-wrap: wrap;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Features Page Styles
   ========================================================================== */

.features-hero {
  padding: 4rem 2rem 3rem;
}

.features-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.features-hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

.text-red {
  color: var(--primary-red);
  position: relative;
}

.text-red::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: var(--primary-red);
  opacity: 0.3;
  border-radius: 2px;
}

.features-section {
  padding: 2rem 2rem 4rem;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Feature Block - New stacked layout */
.feature-block {
  padding: 3rem 48px;
  border-bottom: 1px solid var(--border-light);
}

.feature-block-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.feature-block-header .feature-preview {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.feature-block-header .feature-preview .icon {
  width: 3.5rem; height: 3.5rem;
}

.feature-block-title {
  flex: 1;
}

.feature-block-title .feature-label {
  margin-bottom: 0.75rem;
}

.feature-block-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.feature-block-body {
  padding-left: calc(120px + 2rem);
  margin-bottom: 1.5rem;
}

.feature-block-body p {
  color: var(--text-gray);
  line-height: 1.7;
  margin: 0;
  max-width: 700px;
}

.feature-benefits.feature-benefits--full {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .feature-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .feature-block-header .feature-preview {
    width: 80px;
    height: 80px;
  }

  .feature-block-header .feature-preview .icon {
    width: 2.5rem; height: 2.5rem;
  }

  .feature-block-body {
    padding-left: 0;
  }

  .feature-benefits.feature-benefits--full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-benefits.feature-benefits--full {
    grid-template-columns: 1fr;
  }
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-preview {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-red);
}

.feature-preview .icon {
  width: 5rem; height: 5rem;
  color: var(--primary-red);
}

.feature-preview svg {
  width: 80px;
  height: 80px;
  color: var(--primary-red);
  opacity: 0.6;
}

.feature-label {
  display: inline-block;
  background: var(--card-red);
  color: var(--primary-red);
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.feature-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-info > p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Feature Benefits Cards */
.feature-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.benefit-card .icon {
  width: 1.25rem; height: 1.25rem;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-card span:last-child {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .feature-benefits {
    grid-template-columns: 1fr;
  }
}

/* Feature Cards Section */
.feature-cards-section {
  background: var(--bg-page);
  padding: 4rem 2rem;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card-item {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
}

.feature-card-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: var(--card-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-red);
}

.feature-card-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-header,
.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
}

.comparison-header {
  background: var(--primary-navy);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-header > div {
  padding: 1rem;
}

.comparison-row {
  border-bottom: 1px solid var(--border-light);
}

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

.comparison-row > div {
  padding: 1rem;
  font-size: 0.9rem;
}

.comparison-feature {
  font-weight: 500;
}

.comparison-workshopr {
  background: rgba(40, 167, 69, 0.05);
}

.check-yes {
  color: var(--primary-green);
  font-weight: 500;
}

.check-yes::before {
  content: "✓ ";
}

.check-no {
  color: var(--text-gray);
}

.check-no::before {
  content: "✗ ";
  color: var(--primary-red);
}

/* Features Page Responsive */
@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-preview {
    width: 100%;
    max-width: 280px;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-header > div,
  .comparison-row > div {
    padding: 0.75rem 1rem;
  }

  .comparison-header .comparison-feature {
    display: none;
  }

  .comparison-row .comparison-feature {
    background: var(--bg-light);
    font-weight: 600;
  }
}

/* ==========================================================================
   Detail Page Styles
   ========================================================================== */

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Breadcrumb */
.breadcrumb-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 0;
}

.breadcrumb a {
  color: var(--primary-red);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-navy);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-gray);
}

.breadcrumb span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

/* Detail Header */
.detail-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.detail-header-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.detail-icon svg {
  width: 100%;
  height: 100%;
}

.detail-header-text {
  flex: 1;
}

.detail-meta-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.detail-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-badge.research { background: var(--badge-red); color: white; }
.detail-badge.strategy { background: var(--badge-blue); color: white; }
.detail-badge.innovation { background: var(--badge-green); color: white; }
.detail-badge.design { background: var(--badge-purple); color: white; }
.detail-badge.team { background: var(--badge-orange); color: white; }
.detail-badge.recommended { background: #FFD700; color: var(--primary-navy); }

.detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--text-dark);
}

.detail-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.detail-actions {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
}

.detail-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail-actions-row .action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}

/* Icon inside action button */
.detail-actions-row .action-btn > .icon:first-child {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide non-icon children by default, position absolutely */
.detail-actions-row .action-btn .lock-icon,
.detail-actions-row .action-btn .notes-indicator,
.detail-actions-row .action-btn .action-tooltip {
  position: absolute;
}

/* Default hover state - red (for logged in users) */
.detail-actions-row .action-btn:hover {
  background: var(--bg-light);
  color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  transform: none !important;
}

/* Not logged in states - muted by default, gray on hover */
.detail-actions-row .action-btn.locked {
  color: var(--text-muted, #9ca3af);
}

.detail-actions-row .action-btn.locked:hover {
  color: var(--text-gray) !important;
  border-color: var(--text-gray) !important;
  background: var(--bg-light);
}

/* Hide lock icon by default */
.detail-actions-row .action-btn .lock-icon {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  background: var(--text-gray);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  z-index: 10;
}

.detail-actions-row .action-btn .lock-icon .icon {
  width: 9px; height: 9px;
  color: white;
}

.detail-actions-row .action-btn.locked:hover .lock-icon {
  display: flex;
}

/* Notes indicator */
.detail-actions-row .action-btn .notes-indicator {
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  border-radius: 50%;
  border: 2px solid white;
  z-index: 10;
}

/* Notes button with notification indicator (logged in with notes) */
.detail-actions-row .action-btn.notes-btn.has-notes {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.detail-actions-row .action-btn.notes-btn.has-notes:hover {
  background: rgba(229, 77, 77, 0.1);
}

/* Favorite button - reset card styles for detail actions */
.detail-actions-row .action-btn.favorite-btn {
  position: relative;
  top: auto;
  right: auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: none;
}

.detail-actions-row .action-btn.favorite-btn:hover {
  transform: none;
}

/* Favorite button active state */
.detail-actions-row .action-btn.favorite-btn.is-favorite {
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.detail-actions-row .action-btn.favorite-btn.is-favorite .icon {
  font-variation-settings: 'FILL' 1;
}

/* Generic action-btn styles (fallback) */
.action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--bg-light);
  color: var(--primary-red);
  border-color: var(--primary-red);
}

.action-btn .icon {
  width: 20px; height: 20px;
  line-height: 1;
}

/* Action button tooltips */
.action-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-navy);
  color: white !important;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.action-tooltip::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--primary-navy);
}

.action-btn:hover .action-tooltip {
  opacity: 1;
  visibility: visible;
}

.detail-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--bg-white);
  border: 1px solid var(--text-gray);
  color: var(--text-gray);
}

.detail-pill .icon {
  width: 14px; height: 14px;
  color: var(--text-gray);
}

/* Category pill with dynamic colors */
.detail-pill.category-pill {
  border-width: 1px;
  border-style: solid;
}

.detail-pill.category-pill .icon {
  color: inherit;
}

/* Detail Content Layout - Full Width (no sidebar) */
.detail-content-full {
  margin-bottom: 3rem;
}

/* Legacy Detail Content Layout with sidebar */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.detail-main {
  min-width: 0;
  max-width: 100%;
}

.detail-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.detail-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-dark);
}

.detail-section-content {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Overview section - 75% width */
.overview-content {
  max-width: 75%;
}

@media (max-width: 768px) {
  .overview-content {
    max-width: 100%;
  }
}

.objectives-list {
  white-space: pre-line;
}

.instructions-content {
  white-space: pre-line;
}

.instructions-content strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.instructions-content strong:first-child {
  margin-top: 0;
}

.agenda-content {
  white-space: pre-line;
  background: transparent;
  padding: 0;
  margin-top: 0.5rem;
}

/* Agenda Timeline */
.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 32px 1fr;
  gap: 0;
  min-height: 80px;
}

.timeline-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 0.75rem;
  padding-top: 0.15rem;
}

.time-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  white-space: nowrap;
}

.time-duration {
  font-size: 0.7rem;
  color: var(--text-gray);
  margin-top: 0.1rem;
}

.timeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary-red);
  z-index: 1;
  flex-shrink: 0;
}

.timeline-dot-start {
  background: var(--primary-green);
  box-shadow: 0 0 0 2px var(--primary-green);
}

.timeline-dot-end {
  background: var(--primary-navy);
  box-shadow: 0 0 0 2px var(--primary-navy);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border-light), var(--border-light));
  margin-top: 3px;
}

.timeline-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-left: 0.75rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-card-category {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.timeline-card-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: var(--text-gray);
  font-weight: 500;
}

.timeline-card-duration .icon {
  width: 14px; height: 14px;
}

.timeline-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.timeline-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.timeline-card-title a:hover {
  color: var(--primary-red);
}

.timeline-card-description {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.45;
  margin: 0;
}

/* Start card */
.timeline-card-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-green);
  border-color: var(--primary-green);
  padding: 0.75rem 1rem;
}

.timeline-card-start .icon {
  width: 24px; height: 24px;
  color: var(--primary-green);
}

.timeline-card-start strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.timeline-total-time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 0.1rem;
}

.timeline-start .timeline-time .time-duration {
  color: var(--primary-green);
  font-weight: 600;
}

/* End card */
.timeline-card-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-navy);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
}

.timeline-card-end .icon {
  width: 18px; height: 18px;
}

.timeline-card-end:hover {
  border-color: var(--primary-navy);
  box-shadow: none;
}

.timeline-end .timeline-time .time-duration {
  color: var(--primary-navy);
  font-weight: 600;
}

.timeline-end .timeline-card {
  margin-bottom: 0;
}

/* Timeline responsive */
@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 75px 22px 1fr;
  }

  .timeline-time {
    padding-right: 0.4rem;
  }

  .time-label {
    font-size: 0.65rem;
  }

  .time-duration {
    font-size: 0.55rem;
  }

  .timeline-dot {
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    margin-left: 0.4rem;
    padding: 0.6rem 0.7rem;
  }

  .timeline-card-title {
    font-size: 0.85rem;
  }

  .timeline-card-description {
    font-size: 0.75rem;
  }

  .timeline-card-header {
    flex-wrap: wrap;
  }

  .timeline-card-start {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .timeline-card-start .icon {
    width: 20px; height: 20px;
  }
}

/* Facilitator Section */
.facilitator-section {
  background: #FFF9E6;
  border: 1px solid #FFE082;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--badge-orange);
}

.facilitator-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.facilitator-header svg {
  width: 24px;
  height: 24px;
  color: var(--badge-orange);
}

.facilitator-header .detail-section-title {
  margin-bottom: 0;
  color: var(--badge-orange);
}

/* Sidebar */
.detail-sidebar {
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.sidebar-info-list {
  display: grid;
  gap: 0.25rem;
}

.sidebar-info-list dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-gray);
  text-transform: uppercase;
  margin-bottom: 0;
}

.sidebar-info-list dd {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-info-list dd:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-gray);
  transition: var(--transition);
}

.tag:hover {
  background: var(--card-blue);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* Tags Section */
.tags-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

/* Comments Section */
.comments-section {
  margin-top: 4rem;
  background: var(--bg-gray, #f5f5f5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.comments-section .detail-section-title {
  margin-bottom: 1.5rem;
}

.comments-container {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.comment-form {
  margin-bottom: 1.5rem;
}

.comment-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition);
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(30, 42, 74, 0.1);
}

.comment-submit {
  margin-top: 0.75rem;
}

.comments-list {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.comment-author {
  font-weight: 600;
  color: var(--text-dark);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.comment-body {
  color: var(--text-dark);
  line-height: 1.6;
  padding-left: 2.75rem;
}

.text-muted {
  color: var(--text-gray);
  font-style: italic;
}

/* Sidebar Actions */
.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Related Section */
.related-section {
  padding: 3rem 0;
  border-top: 2px solid var(--border-light);
}

.related-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Detail Page Responsive */
@media (max-width: 992px) {
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .detail-container {
    padding: 1rem;
  }

  .detail-header {
    padding: 1rem 0;
  }

  .detail-header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .detail-actions {
    align-self: flex-end;
    width: 100%;
    justify-content: flex-end;
  }

  .detail-actions .notes-btn {
    border-radius: 50%;
  }

  .detail-header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .detail-icon {
    width: 60px;
    height: 60px;
  }

  .detail-title {
    font-size: 1.35rem;
  }

  .detail-meta {
    flex-direction: row;
    gap: 0.5rem;
  }

  .detail-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Resources Section
   ========================================================================== */

.resources-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 75%;
}

@media (max-width: 768px) {
  .resources-grid {
    width: 100%;
  }
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
}

.resource-card:hover {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.resource-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.resource-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-red);
}

.resource-content {
  flex: 1;
  min-width: 0;
}

.resource-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.resource-description {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: var(--transition);
}

.resource-arrow svg {
  width: 18px;
  height: 18px;
}

.resource-card:hover .resource-arrow {
  color: var(--primary-red);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .resource-card {
    padding: 1rem;
  }

  .resource-icon {
    width: 40px;
    height: 40px;
  }

  .resource-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================

/* ==========================================================================
   Tab Navigation Styles
   ========================================================================== */

.detail-tabs {
  margin-top: 0;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 1rem 1.75rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: -2px;
  position: relative;
}

.tab-button:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.02);
}

.tab-button.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
  background: transparent;
}

.tabs-content {
  padding: 2rem 0;
  background: transparent;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.2s ease-in;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.tab-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.text-muted {
  color: var(--text-gray);
  font-style: italic;
  font-size: 0.95rem;
}

/* Materials & Preparation Tab */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.materials-grid.single-column {
  grid-template-columns: 1fr;
}

.materials-card.full-width {
  grid-column: 1 / -1;
}

.materials-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  height: fit-content;
}

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

.materials-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.materials-card-header .icon {
  width: 22px; height: 22px;
  color: var(--primary-red);
  background: var(--card-red);
  padding: 0.5rem;
  border-radius: var(--radius);
}

.materials-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.materials-card-content {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
}

/* Formatted content (markdown) */
.materials-card-content .formatted-list,
.detail-section-content .formatted-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style-position: outside;
}

.materials-card-content .formatted-list li,
.detail-section-content .formatted-list li {
  margin-bottom: 0.05rem;
  padding-left: 0.15rem;
  line-height: 1.35;
}

.materials-card-content .formatted-list li:last-child,
.detail-section-content .formatted-list li:last-child {
  margin-bottom: 0;
}

.materials-card-content ul.formatted-list {
  list-style-type: disc;
}

.materials-card-content ol.formatted-list {
  list-style-type: decimal;
}

.materials-card-content .content-heading,
.detail-section-content .content-heading {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0.5rem 0 0.25rem 0;
}

.materials-card-content h2.content-heading {
  font-size: 1.1rem;
}

.materials-card-content h3.content-heading {
  font-size: 1rem;
}

.materials-card-content h4.content-heading {
  font-size: 0.95rem;
}

.materials-card-content p {
  margin-bottom: 0.25rem;
}

.materials-card-content p:last-child {
  margin-bottom: 0;
}

/* Outcomes list styling */
.outcomes-list {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.outcomes-list li {
  margin-bottom: 0.15rem;
  padding-left: 0.25rem;
  line-height: 1.35;
}

.outcomes-list li:last-child {
  margin-bottom: 0;
}

/* Tab-specific facilitator section styling */
.tab-pane .facilitator-section {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Mobile Tab Dropdown */
.tabs-dropdown {
  display: none;
  position: relative;
  margin-bottom: 1rem;
  z-index: 9999;
}

.tabs-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tabs-dropdown-toggle:hover {
  border-color: var(--primary-red);
}

.tabs-dropdown-toggle:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 77, 77, 0.1);
}

.tabs-dropdown-toggle .icon {
  width: 1.25rem; height: 1.25rem;
  color: var(--text-gray);
  transition: transform 0.2s ease;
}

.tabs-dropdown.open .tabs-dropdown-toggle .icon {
  transform: rotate(180deg);
}

.tabs-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.tabs-dropdown.open .tabs-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tabs-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tabs-dropdown-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tabs-dropdown-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tabs-dropdown-item:hover {
  background: var(--surface-light);
  color: var(--text-dark);
}

.tabs-dropdown-item.active {
  color: var(--primary-red);
  background: rgba(229, 77, 77, 0.05);
}

/* Responsive Tab Navigation */
@media (max-width: 768px) {
  .tabs-nav {
    display: none;
  }

  .tabs-dropdown {
    display: block;
  }

  .tabs-content {
    padding: 1.5rem 0;
  }
}

/* ============================================
   AI Assistant Modal & Floating Button
   ============================================ */
/* Floating Button */
.ai-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(229, 77, 77, 0.4),
        0 0 0 0 rgba(229, 77, 77, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.ai-float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 30px rgba(229, 77, 77, 0.5),
        0 0 0 4px rgba(229, 77, 77, 0.15);
}

.ai-float-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Sparkle icon animation */
.ai-float-btn svg {
    transition: transform 0.3s ease;
}

.ai-float-btn:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--primary-red);
    opacity: 0;
    animation: aiPulse 2.5s ease-out infinite;
}

@keyframes aiPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ==========================================================================
   AI Workshop Builder Floating Button
   ========================================================================== */
.ai-builder-float-btn {
    position: fixed;
    bottom: 24px;
    right: 100px; /* Position to the left of existing chat button */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 0 rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 998;
    text-decoration: none;
}

.ai-builder-float-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
}

.ai-builder-float-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.ai-builder-float-btn svg {
    transition: transform 0.3s ease;
}

.ai-builder-float-btn:hover svg {
    transform: rotate(90deg) scale(1.1);
}

.ai-builder-tooltip {
    position: absolute;
    right: 68px;
    background: var(--primary-navy);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.ai-builder-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--primary-navy);
}

.ai-builder-float-btn:hover .ai-builder-tooltip {
    opacity: 1;
    visibility: visible;
}

.ai-builder-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-navy);
    opacity: 0;
    animation: aiBuilderPulse 2.5s ease-out infinite;
}

@keyframes aiBuilderPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Mobile responsive for AI Builder button */
@media (max-width: 768px) {
    .ai-builder-float-btn {
        bottom: 16px;
        right: 80px;
        width: 48px;
        height: 48px;
    }

    .ai-builder-tooltip {
        display: none;
    }
}

/* AI Assistant Sliding Panel */
.ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
}

.ai-modal.active {
    visibility: visible;
    pointer-events: auto;
}

.ai-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.ai-modal.active .ai-modal-overlay {
    opacity: 1;
}

.ai-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-white) 100%);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ai-modal.active .ai-modal-content {
    transform: translateX(0);
}

/* Modal Header - Branded */
.ai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

/* Decorative pattern in header */
.ai-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.ai-modal-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.ai-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: aiAvatarPulse 3s ease-in-out infinite;
}

@keyframes aiAvatarPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3); }
}

.ai-avatar svg {
    width: 24px;
    height: 24px;
}

.ai-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
}

.ai-status {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: aiStatusPulse 2s ease-in-out infinite;
}

@keyframes aiStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ai-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.ai-close-btn,
.ai-clear-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: rotate(90deg);
}

.ai-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

.ai-clear-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.1);
}

.ai-clear-btn:active {
    transform: scale(0.95);
}

/* Chat Container */
.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-cool);
    scroll-behavior: smooth;
}

/* Custom scrollbar for chat */
.ai-chat-container::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.ai-chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.ai-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: messageSlide 0.3s ease;
}

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

.ai-message-assistant {
    align-items: flex-start;
}

.ai-message-user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mainsite-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-message-user .ai-message-avatar {
    background: var(--text-dark);
    color: var(--text-light);
}

.ai-message-content {
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ai-message-user .ai-message-content {
    background: var(--primary-red);
    color: var(--text-light);
}

.ai-message-content p {
    margin: 0 0 12px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.ai-message-user .ai-message-content p {
    color: var(--text-light);
}

.ai-message-content p:last-child {
    margin-bottom: 0;
}

.ai-message-content ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style: disc;
}

.ai-message-content li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ai-message-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.ai-message-user .ai-message-content strong {
    color: var(--text-light);
}

.ai-typing {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-gray);
    animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Container */
.ai-input-container {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.ai-suggestions {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ai-suggestion-chip {
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-body);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.ai-suggestion-chip:hover {
    background: var(--primary-red-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 77, 77, 0.15);
}

.ai-suggestion-chip:active {
    transform: translateY(0);
}

.ai-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-cool);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-input::placeholder {
    color: var(--text-muted);
}

.ai-input:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px var(--primary-red-light);
}

.ai-send-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(229, 77, 77, 0.3);
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 77, 77, 0.4);
}

.ai-send-btn:active {
    transform: scale(0.95);
}

.ai-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ai-send-btn svg {
    transition: transform 0.2s ease;
}

.ai-send-btn:hover:not(:disabled) svg {
    transform: translateX(2px);
}

/* ==========================================================================
   AI Chat Content Cards
   ========================================================================== */

.ai-content-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    max-width: 100%;
}

.ai-chat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.ai-chat-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ai-chat-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.ai-chat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-chat-card-icon .icon {
    width: 18px; height: 18px;
}

.ai-chat-card-icon.workshop {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.ai-chat-card-icon.exercise {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.ai-chat-card-icon.icebreaker {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.ai-chat-card-info {
    flex: 1;
    min-width: 0;
}

.ai-chat-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ai-chat-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-chat-card-meta .icon {
    width: 14px; height: 14px;
}

.ai-chat-card-description {
    font-size: 0.8125rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-chat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-card-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 500;
    background: color-mix(in srgb, var(--badge-color, var(--primary-red)) 10%, transparent);
    color: var(--badge-color, var(--primary-red));
}

.ai-chat-card-category .icon {
    width: 12px; height: 12px;
}

.ai-chat-card-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-red);
    transition: gap 0.2s ease;
}

.ai-chat-card:hover .ai-chat-card-link {
    gap: 8px;
}

.ai-chat-card-link .icon {
    width: 16px; height: 16px;
}

/* ==========================================================================
   AI Chat Interactive Buttons
   ========================================================================== */

.ai-chat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ai-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-chat-btn:hover {
    border-color: var(--primary-red);
    background: var(--primary-red-light);
    color: var(--primary-red);
}

.ai-chat-btn:active,
.ai-chat-btn.selected {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.ai-chat-btn .icon {
    width: 18px; height: 18px;
}

/* Multi-select variation */
.ai-chat-buttons[data-type="multi"] .ai-chat-btn.selected {
    background: var(--primary-red-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Confirm buttons */
.ai-chat-buttons[data-type="confirm"] {
    gap: 12px;
}

.ai-chat-btn.confirm-yes {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.ai-chat-btn.confirm-yes:hover {
    background: #d13d3d;
}

.ai-chat-btn.confirm-no {
    background: var(--bg-cool);
    border-color: var(--border-light);
    color: var(--text-muted);
}

.ai-chat-btn.confirm-no:hover {
    background: var(--bg-white);
    border-color: var(--text-muted);
    color: var(--text-body);
}

/* Responsive AI Modal */
@media (max-width: 480px) {
    .ai-modal-content {
        width: 100%;
    }

    .ai-float-btn {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }

    .ai-suggestions {
        gap: 6px;
    }

    .ai-suggestion-chip {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .ai-input-container {
        border-radius: 0;
    }
}

/* ==========================================================================
   Auth Modal (Login/Register)
   ========================================================================== */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.auth-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.auth-modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

/* Auth Modal Header */
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b02a37 100%);
}

.auth-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.auth-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.auth-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.auth-tab:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.02);
}

.auth-tab.active {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
}

/* Auth Body */
.auth-body {
    padding: 14px 24px 16px;
}

/* Auth Form */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Form Row for two-column layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row .form-group {
    margin-bottom: 4px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.form-group input {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-family: inherit;
    transition: all 0.15s;
    background: var(--bg-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.error {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-error {
    display: none;
    font-size: 0.8rem;
    color: var(--primary-red);
    margin-top: 6px;
}

.form-error.visible {
    display: block;
}

/* Password Field with Toggle */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.password-toggle:hover {
    color: var(--text-dark);
}

/* Form Options Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-red);
    cursor: pointer;
}

/* Checkbox group for registration form */
.checkbox-group {
    margin-top: 8px;
    margin-bottom: 8px;
}

.checkbox-group .checkbox-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.checkbox-group .checkbox-text {
    color: var(--text-gray);
}

.forgot-password {
    color: var(--primary-red);
    font-weight: 500;
    transition: color 0.15s;
}

.forgot-password:hover {
    color: #b02a37;
    text-decoration: underline;
}

/* Auth Submit Button - Red Theme */
.auth-submit-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b02a37 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #9a1f2b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-submit-btn .btn-text {
    color: white;
}

.auth-submit-btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Social Login Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: var(--text-gray);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Social Login Buttons */
.social-login-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Auth Message (Success/Error) */
.auth-message {
    display: none;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 14px;
    align-items: center;
    gap: 10px;
}

.auth-message.visible {
    display: flex;
}

.auth-message.success {
    background: var(--color-success-very-light);
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.auth-message.error {
    background: var(--mainsite-light);
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.auth-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Terms Text */
.terms-text {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-red);
    font-weight: 500;
}

.terms-text a:hover {
    color: #b02a37;
    text-decoration: underline;
}

/* Auth Switch Text */
.auth-switch-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
}

.auth-switch-text a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-text a:hover {
    color: #b02a37;
    text-decoration: underline;
}

/* Forgot Password Modal Styles */
.forgot-form-state .form-group {
    margin-bottom: 16px;
}

.forgot-instructions {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.forgot-form-state .auth-submit-btn {
    margin-top: 16px;
}

.forgot-form-state .auth-switch-text {
    margin-top: 20px;
}

.forgot-success-state {
    text-align: center;
    padding: 20px 0;
}

.forgot-success-state .success-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--color-success-very-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-success-state .success-icon-large svg {
    width: 32px;
    height: 32px;
    color: #065F46;
}

.forgot-success-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.forgot-success-state p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0 0 12px;
    line-height: 1.5;
}

.forgot-success-state p strong {
    color: var(--text-dark);
}

.forgot-note {
    font-size: 0.8rem !important;
    margin-bottom: 24px !important;
}

.forgot-note a {
    color: var(--primary-red);
    font-weight: 500;
}

.forgot-note a:hover {
    text-decoration: underline;
}

/* User Menu (Authenticated State) */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.user-menu-btn:hover {
    background: var(--bg-white);
    border-color: var(--text-gray);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-gray);
    transition: transform 0.15s;
}

.user-menu-btn.active svg {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    animation: dropdownSlide 0.15s ease;
}

.user-dropdown.active {
    display: block;
}

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

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-header .user-email {
    font-size: 0.85rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    list-style: none;
    padding: 8px 0;
}

.dropdown-menu li a,
.dropdown-menu li button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.dropdown-menu li a:hover,
.dropdown-menu li button:hover {
    background: var(--bg-light);
}

.dropdown-menu li a svg,
.dropdown-menu li button svg {
    width: 18px;
    height: 18px;
    color: var(--text-gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.dropdown-menu li button.logout-btn {
    color: var(--primary-red);
}

.dropdown-menu li button.logout-btn svg {
    color: var(--primary-red);
}

/* ==========================================================================
   Share Modal
   ========================================================================== */

.share-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.share-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: shareModalIn 0.2s ease-out;
    overflow: hidden;
}

@keyframes shareModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b02a37 100%);
}

.share-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.share-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg);
}

.share-close-btn:active {
    transform: rotate(90deg) scale(0.9);
}

.share-modal-body {
    padding: 28px 32px 32px;
}

.share-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0 0 24px 0;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-gray);
    transform: translateY(-2px);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.share-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-gray);
}

/* Platform-specific colors on hover */
.share-btn:nth-child(1):hover svg { color: #000; }
.share-btn:nth-child(2):hover svg { color: #0077B5; }
.share-btn:nth-child(3):hover svg { color: #1877F2; }
.share-btn:nth-child(4):hover svg { color: var(--primary-red); }

.share-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.share-divider::before,
.share-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.share-divider span {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-link-container {
    display: flex;
    gap: 8px;
}

.share-url-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-url-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.share-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b02a37 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #9a1f2b 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.share-copy-btn svg {
    width: 18px;
    height: 18px;
}

.share-copy-btn.copied {
    background: var(--primary-green);
}

/* ==========================================================================
   Comments Section & Modal
   ========================================================================== */

.comments-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Comments Modal */
.comments-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.comments-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.comments-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

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

.comments-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: none;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b02a37 100%);
    position: relative;
    overflow: hidden;
}

.comments-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.comments-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    z-index: 1;
}

.comments-close-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.comments-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.comments-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Comment Form */
.comment-form-container {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.comment-form-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.comment-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.comment-char-count {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Comments List */
.comments-list h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.comment {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.comment-body {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-body p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.comment-footer {
    display: flex;
    gap: 1rem;
}

.comment-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.comment-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.comment-action svg {
    width: 16px;
    height: 16px;
}

/* Responsive Share Modal */
@media (max-width: 480px) {
    .share-modal-content {
        width: 100%;
        max-width: 100%;
        margin: 16px;
        border-radius: 12px;
    }

    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-link-container {
        flex-direction: column;
    }

    .share-copy-btn {
        justify-content: center;
    }
}

/* Responsive Auth Modal */
@media (max-width: 768px) {
    .auth-modal-content {
        max-width: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .auth-modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px;
        overflow-y: auto;
    }

    .auth-body {
        padding: 20px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .user-name {
        display: none;
    }
}

/* ==========================================================================
   MyWorkshops Page Styles
   ========================================================================== */

.myworkshops-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--card-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.empty-state h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Workshop Stats Bar */
.workshops-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    min-width: 160px;
    flex: 1;
}

.stat-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-card .stat-value.active {
    color: var(--primary-green);
}

/* Workshop List Header */
.workshops-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.workshops-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.workshops-actions {
    display: flex;
    gap: 0.75rem;
}

/* Workshop List */
.workshops-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Workshop Item Card */
.workshop-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.workshop-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.workshop-item-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workshop-item-icon.red { background: var(--card-red); color: var(--badge-red); }
.workshop-item-icon.green { background: var(--card-green); color: var(--badge-green); }
.workshop-item-icon.blue { background: var(--card-blue); color: var(--badge-blue); }
.workshop-item-icon.purple { background: #f3e5f5; color: var(--badge-purple); }
.workshop-item-icon.orange { background: #fff3e0; color: var(--badge-orange); }

.workshop-item-icon svg {
    width: 28px;
    height: 28px;
}

.workshop-item-content {
    flex: 1;
    min-width: 0;
}

.workshop-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.workshop-item-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.workshop-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.workshop-status.active {
    background: var(--color-success-very-light);
    color: #065F46;
}

.workshop-status.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--phase-reflect);
}

.workshop-status.completed {
    background: var(--bg-light);
    color: var(--text-gray);
}

.workshop-status.scheduled {
    background: var(--color-info-very-light);
    color: #1E40AF;
}

.workshop-item-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-gray);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.workshop-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.workshop-item-meta svg {
    width: 16px;
    height: 16px;
}

.workshop-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-icon:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--text-gray);
}

.btn-icon.danger:hover {
    background: var(--color-error-light);
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon .icon {
    width: 18px; height: 18px;
}

/* QR Code Display */
.workshop-qr {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.workshop-qr img {
    width: 40px;
    height: 40px;
}

/* Create Workshop Button (FAB style alternative) */
.create-workshop-fab {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30, 42, 74, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 998;
}

.create-workshop-fab:hover {
    background: var(--primary-red);
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.4);
}

.create-workshop-fab svg {
    width: 24px;
    height: 24px;
}

/* Responsive MyWorkshops */
@media (max-width: 768px) {
    .myworkshops-container {
        padding: 1rem;
    }

    .workshops-stats {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
    }

    .workshops-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workshop-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .workshop-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .create-workshop-fab {
        bottom: 80px;
        right: 16px;
    }
}

/* ==========================================================================
   ONBOARDING SYSTEM - Professional Design
   ========================================================================== */

/* Onboarding Modal Base */
.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* Refined Backdrop */
.onboarding-backdrop {
    display: none;
}

/* Professional Modal Content */
.onboarding-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 36px 40px;
    max-width: 440px;
    width: 92%;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 0 120px rgba(220, 53, 69, 0.08);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.onboarding-modal.active .onboarding-content {
    transform: translateY(0);
    opacity: 1;
}

.onboarding-content.transitioning {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

/* Clean Close Button */
.onboarding-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-close svg {
    width: 20px;
    height: 20px;
}

.onboarding-close:hover {
    background: #e0e0e0;
    color: var(--text-dark);
    transform: rotate(90deg);
}

.onboarding-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Header */
.onboarding-header {
    text-align: center;
    margin-bottom: 24px;
}

.onboarding-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--mainsite-very-light);
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
    overflow: hidden;
}

.onboarding-logo img {
    width: 36px;
    height: 36px;
    filter: invert(27%) sepia(91%) saturate(2074%) hue-rotate(337deg) brightness(87%) contrast(94%);
}

.onboarding-logo svg {
    width: 28px;
    height: 28px;
    color: white;
}

.onboarding-logo .icon {
    width: 36px; height: 36px;
    color: var(--color-error);
}

.onboarding-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.onboarding-subtitle {
    font-size: 0.9375rem;
    color: var(--text-gray);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* Value Props */
.onboarding-value-props {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.value-prop {
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp 0.4s ease forwards;
}

.value-prop:nth-child(1) { animation-delay: 0.1s; }
.value-prop:nth-child(2) { animation-delay: 0.15s; }
.value-prop:nth-child(3) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.value-prop-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-error);
    line-height: 1;
}

.value-prop-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Legacy animation container - hidden but kept for compatibility */
.onboarding-animation-container {
    display: none;
}

.onboarding-people,
.person,
.onboarding-table {
    display: none;
}

@keyframes tableSlide {
    to { opacity: 1; transform: scaleX(1); }
}

/* CTA Section */
.onboarding-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.onboarding-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    background: var(--color-error);
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.25);
}

.onboarding-btn-primary:hover {
    background: var(--color-error-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
}

.onboarding-btn-primary:active {
    transform: translateY(0);
}

.onboarding-btn-primary .icon {
    width: 20px; height: 20px;
    transition: transform 0.25s ease;
    filter: brightness(0) invert(1);
}

.onboarding-btn-primary:hover .icon {
    transform: translateX(3px);
}

.onboarding-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: white;
    color: var(--text-gray);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-btn-secondary:hover {
    background: var(--mainsite-very-light);
    border-color: var(--color-error);
    color: var(--color-error);
}

.onboarding-btn-secondary .icon {
    width: 16px; height: 16px;
}

.onboarding-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: white;
    color: var(--text-gray);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-skip .icon {
    width: 16px; height: 16px;
}

.onboarding-skip:hover {
    background: var(--mainsite-very-light);
    border-color: var(--color-error);
    color: var(--color-error);
}

/* Progress Indicator */
.onboarding-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bg-muted);
    transition: all 0.3s ease;
}

.progress-dot.active {
    width: 24px;
    border-radius: 3px;
    background: var(--color-error);
}

.progress-dot.completed {
    background: var(--border-default, #D1D5DB);
}

/* Back Button */
.onboarding-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    margin-top: 4px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.onboarding-back .icon {
    width: 18px; height: 18px;
}

.onboarding-back:hover {
    color: var(--text-body);
    background: var(--bg-muted);
}

/* Choice Cards (Step 2) */
.onboarding-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-subtle);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
    animation: cardFadeIn 0.35s ease forwards;
}

.choice-card:nth-child(1) { animation-delay: 0.1s; }
.choice-card:nth-child(2) { animation-delay: 0.2s; }
.choice-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.choice-card:hover {
    background: var(--bg-white);
    border-color: var(--color-error);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.choice-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mainsite-very-light);
    border-radius: 10px;
    flex-shrink: 0;
}

.choice-icon .icon {
    width: 22px; height: 22px;
    color: var(--color-error);
}

.choice-content {
    flex: 1;
}

.choice-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.choice-content p {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.choice-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.choice-arrow .icon {
    width: 20px; height: 20px;
}

.choice-card:hover .choice-arrow {
    background: rgba(229, 77, 77, 0.1);
}

.choice-card:hover .choice-arrow .icon {
    filter: brightness(0) saturate(100%) invert(38%) sepia(82%) saturate(1352%) hue-rotate(331deg) brightness(91%) contrast(87%);
}

/* Feature Items (Expert Path) */
.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-subtle);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(6px);
    animation: featureSlide 0.35s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.15s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes featureSlide {
    to { opacity: 1; transform: translateY(0); }
}

.feature-item .feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mainsite-very-light);
    border-radius: 8px;
}

.feature-item .feature-icon .icon {
    width: 20px; height: 20px;
    color: var(--color-error);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.feature-text strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-text span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.onboarding-prompt {
    font-size: 0.8125rem;
    color: var(--text-gray);
    text-align: center;
    margin: 12px 0 10px;
}

.onboarding-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 9px 18px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: var(--mainsite-very-light);
}

.onboarding-actions-split {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

/* AI Introduction (Learner Path) */
.onboarding-ai-intro {
    text-align: center;
    padding: 18px 20px;
    background: var(--bg-muted);
    border-radius: 12px;
    margin: 16px 0;
}

.ai-robot {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.ai-robot-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mainsite-very-light);
    border-radius: 12px;
    animation: robotFloat 3s ease-in-out infinite;
}

.ai-robot-icon .icon {
    width: 28px; height: 28px;
    color: var(--color-error);
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.ai-robot-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.15);
    animation: robotPulse 2s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.onboarding-ai-intro h3 {
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.onboarding-ai-intro > p {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.ai-capabilities {
    list-style: none;
    text-align: left;
    max-width: 260px;
    margin: 0 auto;
}

.ai-capabilities li {
    position: relative;
    padding-left: 20px;
    font-size: 0.8125rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.ai-capabilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-error);
    font-weight: 600;
}

/* Type Cards (Specific Path) */
.onboarding-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.type-card:hover {
    border-color: var(--primary-red);
    background: var(--mainsite-very-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(220, 53, 69, 0.12);
}

.type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mainsite-very-light);
    border-radius: 10px;
}

.type-icon .icon {
    width: 24px; height: 24px;
    color: var(--color-error);
}

.type-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.type-duration {
    font-size: 0.6875rem;
    color: var(--text-gray);
}

/* Divider */
.onboarding-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0;
}

.onboarding-divider::before,
.onboarding-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.onboarding-divider span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* AI Option Card */
.onboarding-ai-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-muted);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
}

.onboarding-ai-option:hover {
    border-color: var(--color-error);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.ai-option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mainsite-very-light);
    border-radius: 10px;
}

.ai-option-icon .icon {
    width: 22px; height: 22px;
    color: var(--color-error);
}

.onboarding-ai-option > .icon {
    width: 20px; height: 20px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.onboarding-ai-option:hover > .icon {
    color: var(--color-error);
}

.ai-option-text {
    flex: 1;
}

.ai-option-text strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.ai-option-text span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ==========================================================================
   AI SPOTLIGHT TOOLTIP
   ========================================================================== */

.ai-spotlight-tooltip {
    position: fixed;
    z-index: 10001;
    width: 280px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.ai-spotlight-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.spotlight-content {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.spotlight-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.spotlight-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 12px;
}

.spotlight-arrow {
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.spotlight-actions {
    display: flex;
    gap: 8px;
}

.spotlight-btn-primary {
    padding: 8px 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spotlight-btn-primary:hover {
    background: var(--color-error-dark);
}

.spotlight-btn-dismiss {
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    cursor: pointer;
}

.spotlight-btn-dismiss:hover {
    color: var(--text-dark);
}

/* ==========================================================================
   CONTEXTUAL TIPS
   ========================================================================== */

.contextual-tip {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-muted);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.contextual-tip.active {
    opacity: 1;
    transform: translateY(0);
}

.tip-icon {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.tip-icon .icon {
    width: 24px; height: 24px;
}

.tip-content {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.tip-close {
    flex-shrink: 0;
    padding: 4px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: 4px;
}

.tip-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Tip arrow positioning */
.contextual-tip.tip-bottom::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg-muted);
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.contextual-tip.tip-left::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    background: var(--bg-muted);
    transform: rotate(45deg);
    box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ONBOARDING TOAST
   ========================================================================== */

.onboarding-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--primary-navy);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: max-content;
    opacity: 0;
    transition: all 0.3s ease;
}

.onboarding-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 20px;
}

.toast-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-action {
    padding: 6px 14px;
    background: white;
    color: var(--primary-navy);
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.toast-action:hover {
    background: var(--bg-light);
}

.toast-close {
    padding: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.toast-close:hover {
    color: white;
}

/* ==========================================================================
   WELCOME BACK BANNER
   ========================================================================== */

.welcome-back-banner {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-bottom: 1px solid #a5d6a7;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s ease;
}

.welcome-back-banner.active {
    opacity: 1;
    transform: translateY(0);
}

.welcome-back-banner span {
    color: var(--text-dark);
}

.welcome-back-banner a {
    color: var(--primary-navy);
    font-weight: 500;
    text-decoration: underline;
}

.welcome-back-banner a:hover {
    color: var(--primary-red);
}

.banner-close {
    position: absolute;
    right: 16px;
    padding: 4px;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

.banner-close:hover {
    color: var(--text-dark);
}

/* ==========================================================================
   ONBOARDING RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
    .onboarding-content {
        padding: 28px 20px;
        margin: 12px;
        width: calc(100% - 24px);
    }

    .onboarding-header h2 {
        font-size: 1.25rem;
    }

    .onboarding-subtitle {
        font-size: 0.875rem;
    }

    .onboarding-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .onboarding-logo svg {
        width: 24px;
        height: 24px;
    }

    .onboarding-value-props {
        gap: 20px;
        padding: 14px 0;
    }

    .value-prop-number {
        font-size: 1.125rem;
    }

    .onboarding-wave {
        font-size: 40px;
    }

    .onboarding-type-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .type-card {
        flex-direction: row;
        text-align: left;
        padding: 12px 14px;
        gap: 12px;
    }

    .type-card .type-icon {
        font-size: 24px;
    }

    .choice-card {
        padding: 12px 14px;
    }

    .onboarding-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
    }

    .ai-spotlight-tooltip {
        width: calc(100% - 32px);
        right: 16px !important;
        bottom: 90px !important;
    }

    .spotlight-arrow {
        right: 45px;
    }

    .onboarding-toast {
        width: calc(100% - 32px);
        flex-wrap: wrap;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .onboarding-wave,
    .person,
    .ai-robot-icon,
    .ai-robot-pulse,
    .onboarding-table {
        animation: none !important;
    }

    .onboarding-content,
    .choice-card,
    .feature-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .onboarding-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ==========================================================================
   COLLECTIONS PAGE - Brands Section
   ========================================================================== */

.brands-section {
    background: var(--bg-page);
    padding: 2.5rem 2rem;
    text-align: center;
}

.brands-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.brands-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.brand-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.brand-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.brand-card-icon .icon {
    width: 20px; height: 20px;
    color: var(--primary-navy);
}

.brand-card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.brand-card-content p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .brands-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .brands-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Collections Container */
.collections-container {
    max-width: 1200px;
    margin: 0 auto;
}

.collection-featured {
    margin-bottom: 3rem;
}

.collection-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.collection-card-featured:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.collection-card-featured .collection-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.collection-card-featured .collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-badge-inline {
    display: inline-block;
    width: fit-content;
    background: var(--primary-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.collection-card-featured h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.collection-card-featured p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.collection-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.collection-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.collection-meta .icon {
    width: 16px; height: 16px;
}

.collection-category {
    margin-bottom: 2.5rem;
}

.collection-category h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1.25rem 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.collection-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.collection-card .collection-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.collection-card .collection-card-content {
    padding: 1.25rem;
}

.collection-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.collection-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

@media (max-width: 768px) {
    .collection-card-featured {
        grid-template-columns: 1fr;
    }

    .collection-card-featured .collection-card-image {
        order: -1;
    }

    .collection-card-featured .collection-card-image img {
        height: 200px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTENT PAGES (Changelog, Help Center, About, Legal, Contact)
   ========================================================================== */

.content-section {
    padding: 3rem 2rem 5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Changelog Styles */
.changelog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.changelog-entry {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.changelog-version {
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.changelog-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.changelog-content h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.changelog-content h3:first-child {
    margin-top: 0;
}

.changelog-content ul {
    list-style: none;
    padding: 0;
}

.changelog-content li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.changelog-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.changelog-tag.new {
    background: var(--color-success-very-light);
    color: var(--color-success-dark);
}

.changelog-tag.improved {
    background: var(--color-info-very-light);
    color: var(--color-info-dark);
}

.changelog-tag.fixed {
    background: var(--color-warning-very-light);
    color: var(--color-warning-dark);
}

/* Help Center Styles */
.help-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.help-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.help-search .icon {
    color: var(--text-gray);
}

.help-search input {
    flex: 1;
    border: none;
    font-size: 1rem;
    outline: none;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.help-category {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.help-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.help-category-icon .icon {
    width: 24px; height: 24px;
    color: var(--primary-red);
}

.help-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.help-links {
    list-style: none;
    padding: 0;
}

.help-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.help-links li:last-child {
    border-bottom: none;
}

.help-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.help-links a:hover {
    color: var(--primary-red);
}

.help-contact {
    background: var(--bg-warm);
    color: var(--text-dark);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--primary-red);
}

.help-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.help-contact p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Help Article Styles */
.help-article {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.help-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.help-article-category {
    display: inline-block;
    background: rgba(229, 77, 77, 0.1);
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.help-article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.help-article-meta {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.help-article-content {
    line-height: 1.8;
    color: var(--text-body);
}

.help-article-content h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.help-article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.help-article-content p {
    margin-bottom: 1rem;
}

.help-article-content ul,
.help-article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.help-article-content li {
    margin-bottom: 0.5rem;
}

.help-article-content strong {
    color: var(--text-dark);
}

.help-article-cta {
    background: var(--bg-warm);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.help-article-cta h3 {
    margin: 0 0 0.5rem !important;
    font-size: 1.25rem;
}

.help-article-cta p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.help-article-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.help-article-footer p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.help-feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.help-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.help-feedback-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.help-feedback-btn .icon {
    width: 1.125rem; height: 1.125rem;
}

.help-related {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.help-related h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.help-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.help-related li {
    margin-bottom: 0.5rem;
}

.help-related a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.9rem;
}

.help-related a:hover {
    text-decoration: underline;
}

/* About Styles */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-section p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

.value-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.value-card .icon {
    width: 32px; height: 32px;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* Legal Styles */
.legal-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
}

.legal-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-nav-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.legal-nav-item:hover,
.legal-nav-item.active {
    background: var(--bg-light);
    color: var(--text-dark);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Contact Styles */
.contact-container {
    max-width: 1000px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn-full {
    width: 100%;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.contact-info-card .icon {
    color: var(--primary-red);
    width: 24px; height: 24px;
}

.contact-info-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-info-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-red);
}

.contact-faq {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-faq h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-faq p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.contact-faq a {
    color: var(--primary-red);
}

/* Mobile Responsive for Content Pages */
@media (max-width: 768px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .legal-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

/* Toast Container - fixed position for stacking notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}

/* Individual Toast */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    max-width: 420px;
    pointer-events: auto;
    transform: translateX(calc(100% + 24px));
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-hiding {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

/* Toast Content */
.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    margin: -4px -6px -4px 0;
    transition: var(--transition);
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text-gray);
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transform-origin: left;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid var(--primary-green);
}

.toast-success .toast-icon {
    color: var(--primary-green);
}

.toast-success .toast-progress {
    background: var(--primary-green);
}

.toast-error {
    border-left: 4px solid var(--primary-red);
}

.toast-error .toast-icon {
    color: var(--primary-red);
}

.toast-error .toast-progress {
    background: var(--primary-red);
}

.toast-warning {
    border-left: 4px solid var(--accent-yellow);
}

.toast-warning .toast-icon {
    color: var(--accent-yellow);
}

.toast-warning .toast-progress {
    background: var(--accent-yellow);
}

.toast-info {
    border-left: 4px solid var(--primary-blue);
}

.toast-info .toast-icon {
    color: var(--primary-blue);
}

.toast-info .toast-progress {
    background: var(--primary-blue);
}

/* Toast with action button */
.toast-action {
    margin-top: 8px;
}

.toast-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-red);
    background: var(--card-red);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.toast-action-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }

    .toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: opacity 0.2s ease;
        transform: none;
    }

    .toast.toast-visible {
        transform: none;
    }

    .toast.toast-hiding {
        transform: none;
    }
}

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

/* Visually hidden but accessible to screen readers */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   DETAIL PAGE ACTION BUTTONS OVERRIDES
   These must come last to override share modal styles
   ========================================================================== */

.detail-actions-row .action-btn.share-btn {
    flex-direction: row;
    padding: 0;
    gap: 0;
}

.detail-actions-row .action-btn.share-btn:hover {
    color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    background: var(--bg-light) !important;
    transform: none !important;
}

.detail-actions-row .action-btn.share-btn:hover .icon {
    color: var(--primary-red) !important;
}

/* ==========================================================================
   NAV AUTH CONTAINER - Workspace Switcher + User Menu
   ========================================================================== */

.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Menu - Improved Dropdown */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.user-menu-btn:hover {
    background: var(--bg-white);
    border-color: var(--text-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-menu-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.user-menu-btn .user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-btn .user-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dark);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn .user-menu-arrow {
    font-size: 18px;
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

.user-menu-btn.active .user-menu-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: dropdownSlide 0.2s ease;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

/* User Info Header */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
}

.dropdown-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.dropdown-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.dropdown-user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Dropdown Menu List */
.dropdown-menu-list {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    font-family: inherit;
    text-decoration: none;
}

.dropdown-menu-item:hover {
    background: var(--bg-light);
}

.dropdown-menu-item .icon {
    width: 20px; height: 20px;
    color: var(--text-gray);
}

.dropdown-menu-item:hover .icon {
    color: var(--text-dark);
}

/* Logout Button */
.dropdown-menu-item--logout {
    color: var(--primary-red);
}

.dropdown-menu-item--logout .icon {
    color: var(--primary-red);
}

.dropdown-menu-item--logout:hover {
    background: rgba(229, 77, 77, 0.08);
}

.dropdown-menu-item--logout:hover .icon {
    color: var(--primary-red);
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-auth-container {
        gap: 8px;
    }

    .user-menu-btn .user-name {
        display: none;
    }

    .user-menu-btn {
        padding: 6px;
    }

    .user-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
    }
}
