.modalOverlay {
  position: fixed;
  inset: 0;
  background-color: rgb(0 0 0 / 80%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: auto;
}

.modal {
  background: var(--spice-card);
  border-radius: 12px;
  width: 95%;
  max-width: 1000px;
  height: 85vh;
  max-height: 85vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--spice-button-disabled);
  flex-shrink: 0;
}

.modalTitle {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--spice-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.titleIcon {
  font-size: 28px;
}

.closeButton {
  background: 0 0;
  border: 1px solid transparent;
  color: var(--spice-text);
  font-size: 28px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.closeButton:hover {
  background: var(--spice-button-disabled);
  color: var(--spice-text);
  border-color: var(--spice-button-disabled);
}

.modalContent {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  width: 220px;
  background: rgb(0 0 0 / 20%);
  border-right: 1px solid var(--spice-button-disabled);
  padding: 16px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.navButton {
  background: 0 0;
  border: none;
  color: var(--spice-subtext);
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.navButton:hover {
  background: rgb(255 255 255 / 8%);
  color: var(--spice-text);
}

.navButtonActive {
  background: rgb(30 144 255 / 20%);
  color: var(--spice-text);
  font-weight: 600;
  border: 1px solid rgb(30 144 255 / 30%);
}

.navIcon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.navText {
  flex: 1;
}

.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: var(--spice-main);
  min-height: 0;
}

.section {
  max-width: 700px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.sectionTitle {
  font-size: 28px;
  font-weight: 700;
  color: var(--spice-text);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 70%);
}

.text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--spice-text);
  margin: 0 0 8px;
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.featureCard {
  background: rgb(0 0 0 / 20%);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgb(255 255 255 / 10%);
  transition: all 0.2s ease;
}

.featureCard:hover {
  background: rgb(0 0 0 / 30%);
  border-color: rgb(30 144 255 / 30%);
  transform: translateY(-2px);
}

.featureCard h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--spice-text);
  margin: 8px 0;
}

.featureCard p {
  font-size: 14px;
  color: var(--spice-subtext);
  margin: 0;
  line-height: 1.4;
}

.stepsList {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stepNumber {
  background: linear-gradient(135deg, #656565, #302f2c);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

.stepContent h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--spice-text);
  margin: 0 0 8px;
}

.stepContent p {
  font-size: 15px;
  color: var(--spice-subtext);
  margin: 0;
  line-height: 1.5;
}

.tip {
  background: rgb(255 193 7 / 10%);
  border: 1px solid rgb(255 193 7 / 30%);
  border-radius: 8px;
  padding: 14px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--spice-text);
}

.subsection {
  margin: 8px 0;
}

.subsection h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--spice-text);
  margin: 0 0 12px;
}

.hierarchy {
  background: rgb(0 0 0 / 20%);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.hierarchyLevel {
  font-size: 15px;
  color: var(--spice-text);
  margin: 8px 0;
  padding-left: 16px;
}

.example {
  color: var(--spice-subtext);
  font-style: italic;
}

.categoryList {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.categoryItem {
  background: rgb(0 0 0 / 20%);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 10%);
}

.categoryItem h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--spice-text);
  margin: 0 0 8px;
}

.categoryItem p {
  font-size: 14px;
  color: var(--spice-subtext);
  margin: 0;
  line-height: 1.4;
}

.modalFooter {
  border-top: 1px solid var(--spice-button-disabled);
  padding: 16px 24px;
  background: rgb(0 0 0 / 10%);
  flex-shrink: 0;
}

.footerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footerInfo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--spice-subtext);
}

.version {
  font-weight: 600;
}

.divider {
  opacity: 0.5;
}

.primaryButton {
  background: rgb(0 0 0 / 20%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primaryButton:hover {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 10%);
}

.githubLink {
  color: var(--spice-subtext);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
}

@media (width <= 768px) {
  .modal {
    width: 98%;
    height: 95vh;
    max-height: 95vh;
    min-height: 500px;
  }

  .modalContent {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--spice-button-disabled);
  }

  .navigation {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 8px;
  }

  .navButton {
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
  }

  .content {
    padding: 16px;
  }

  .featureGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footerContent {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .sectionTitle {
    font-size: 24px;
  }

  .modalTitle {
    font-size: 20px;
  }

  .titleIcon {
    font-size: 24px;
  }
}

.filterMode {
  background: rgb(0 0 0 / 30%);
  color: var(--spice-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgb(255 255 255 / 20%);
}

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

.featureItem {
  background: rgb(0 0 0 / 20%);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 10%);
  transition: all 0.2s ease;
}

.featureItem:hover {
  background: rgb(0 0 0 / 25%);
  border-color: rgb(30 144 255 / 20%);
}

.featureHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.featureHeader h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--spice-text);
  margin: 0;
}

.featureItem p {
  font-size: 14px;
  color: var(--spice-subtext);
  margin: 0;
  line-height: 1.5;
}

.includeTag {
  background: #1e90ff;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.excludeTag {
  background: #ff4c4c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.indicatorDemo {
  margin-top: 8px;
}

.indicatorExamples {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  background: rgb(0 0 0 / 30%);
  border-radius: 6px;
}

.indicatorExample {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--spice-text);
}

.orangeBullet {
  color: orange;
  font-size: 14px;
  font-weight: 700;
}

.greenBullet {
  color: #28a745;
  font-size: 14px;
  font-weight: 700;
}

.indicatorTip {
  font-size: 13px;
  color: var(--spice-subtext);
  font-style: italic;
  margin-top: 8px;
}

@media (width <= 768px) {
  .featuresCompact {
    gap: 12px;
  }

  .featureItem {
    padding: 12px;
  }

  .featureHeader h4 {
    font-size: 15px;
  }

  .featureItem p {
    font-size: 13px;
  }

  .indicatorExamples {
    padding: 8px;
  }
}

.whatsNewHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.featureGroup {
  margin-bottom: 32px;
  padding: 20px;
  background: rgb(255 255 255 / 2%);
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 5%);
}

.featureIcon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.featureTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--spice-text);
  flex: 1;
}

.newBadge {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featureDescription {
  color: var(--spice-subtext);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bugFixList,
.improvementList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bugFix,
.improvement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgb(255 255 255 / 2%);
  border-radius: 8px;
}

.bugFixIcon,
.improvementIcon {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.bugFixIcon {
  color: #fbbf24;
}

.improvementIcon {
  color: #10b981;
}

.roadmapList {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.roadmapItem {
  padding: 20px;
  background: rgb(255 255 255 / 2%);
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 5%);
}

.roadmapHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.roadmapIcon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.roadmapTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--spice-text);
  flex: 1;
}

.comingSoonBadge {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plannedBadge {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roadmapDescription {
  color: var(--spice-subtext);
  line-height: 1.6;
  margin: 0;
}

.communitySection {
  padding: 24px;
  background: linear-gradient(
    135deg,
    rgb(29 185 84 / 10%),
    rgb(30 215 96 / 5%)
  );
  border-radius: 16px;
  border: 1px solid rgb(29 185 84 / 20%);
}

.communityHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.communityIcon {
  font-size: 24px;
  color: var(--spice-accent);
}

.communityTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--spice-text);
}

.communityDescription {
  color: var(--spice-subtext);
  line-height: 1.6;
  margin-bottom: 16px;
}

.communityFeatures {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.communityFeature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--spice-subtext);
}

.featureCheckmark {
  color: var(--spice-accent);
  font-weight: 600;
}

.communityAction {
  display: flex;
  flex-direction: column;
}

.surveyLink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgb(255 165 0 / 10%);
  border: 1px solid rgb(255 165 0 / 30%);
  border-radius: 8px;
  color: orange;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.surveyLink:hover {
  background: rgb(255 165 0 / 15%);
  border-color: rgb(255 165 0 / 50%);
  color: #ffb84d;
  text-decoration: none;
}

.surveyIcon {
  font-size: 16px;
}

.discussionsLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--spice-accent), #1ed760);
  color: #fff;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.discussionsLink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgb(29 185 84 / 30%);
}

.discussionsIcon {
  font-size: 16px;
}

.externalLinkIcon {
  font-size: 14px;
  opacity: 0.8;
}

@media (width <= 768px) {
  .communitySection,
  .featureGroup,
  .roadmapItem {
    padding: 16px;
  }

  .featureHeader,
  .roadmapHeader {
    flex-wrap: wrap;
    gap: 8px;
  }

  .whatsNewHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.whatsNewButton {
  position: relative;
  background: linear-gradient(
    135deg,
    rgb(255 107 107 / 15%),
    rgb(255 142 83 / 15%)
  ) !important;
  border: 1px solid rgb(255 107 107 / 30%) !important;
  box-shadow: 0 0 20px rgb(255 107 107 / 15%);
  animation: whatsNewGlow 2s ease-in-out infinite alternate;
  overflow: visible !important;
}

.whatsNewButton:hover {
  background: linear-gradient(
    135deg,
    rgb(255 107 107 / 25%),
    rgb(255 142 83 / 25%)
  ) !important;
  border-color: rgb(255 107 107 / 50%) !important;
  box-shadow: 0 0 25px rgb(255 107 107 / 25%);
  transform: translateX(2px);
}

.whatsNewButton.navButtonActive {
  background: linear-gradient(
    135deg,
    rgb(255 107 107 / 30%),
    rgb(255 142 83 / 30%)
  ) !important;
  border-color: rgb(255 107 107 / 60%) !important;
  box-shadow: 0 0 30px rgb(255 107 107 / 30%);
}

.newIndicator {
  position: absolute;
  top: -6px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgb(255 107 107 / 40%);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes whatsNewGlow {
  0% {
    box-shadow: 0 0 20px rgb(255 107 107 / 15%);
  }

  100% {
    box-shadow: 0 0 25px rgb(255 107 107 / 25%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.visualTutorial {
  margin: 24px 0;
  padding: 24px;
  background: rgb(255 255 255 / 2%);
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 8%);
}

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

.stepInfo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stepBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 28px;
  background: linear-gradient(135deg, var(--spice-accent), #1ed760);
  color: #fff;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.stepDetails {
  flex: 1;
}

.stepTitle {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--spice-text);
}

.stepDesc {
  margin: 0;
  font-size: 14px;
  color: var(--spice-subtext);
  line-height: 1.5;
}

.gifContainer {
  position: relative;
  background: rgb(0 0 0 / 30%);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 10%);
  box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
}

.tutorialGif {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.gifCaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.usageInstructions {
  background: rgb(30 144 255 / 8%);
  border: 1px solid rgb(30 144 255 / 20%);
  border-radius: 6px;
  padding: 12px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--spice-text);
  line-height: 1.4;
}
