body.help-open {
  overflow: hidden;
}

/* Help trigger button */

.help-trigger {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 10050;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.help-trigger:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(0,0,0,0.7);
}

@media (max-width: 680px) {
  .help-trigger {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* Help overlay */

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(14px);
}

.help-overlay.hidden {
  display: none;
}

.help-overlay-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 36px;
  box-sizing: border-box;
  pointer-events: none;
}

/* Title */

.help-badge {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Syncopate', sans-serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  pointer-events: auto;
}

/* Common card */

.help-tag {
  position: absolute;
  width: 360px;
  min-height: 230px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(10,10,15,0.8);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 14px 45px rgba(0,0,0,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 15.4px;
  line-height: 1.55;
  color: rgba(255,255,255,0.94);
  pointer-events: auto;
}

.help-tag-title {
  font-size: 15.4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #ffffff;
}

.help-tag p {
  margin: 0;
  opacity: 0.9;
}

.help-tag ul {
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
  opacity: 0.9;
}

.help-tag li {
  margin-bottom: 5px;
}

/* === Desktop layout: 2–1–2 === */

/* Left column (top / bottom) */

.help-tag-bg {         /* Background & media */
  top: 12%;
  left: 9%;
}

.help-tag-time {       /* Clock, date & fonts */
  top: 58%;
  left: 9%;
}

/* Center card */

.help-tag-tasks {      /* Main goal & tasks */
  top: 12%;
  right: 9%;
}

/* Right column (top / bottom) */

.help-tag-pages {      /* Pages & columns */
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
}

.help-tag-links {      /* Buttons & music */
  top: 58%;
  right: 9%;
}

/* Footer with CTA button centered */

.help-footer {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  font-family: 'Inter', sans-serif;
  font-size: 13.2px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.help-close-btn {
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0A84FF, #00f2fe);
  color: #0b0b10;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.help-footer span {
  opacity: 0.7;
  max-width: 260px;
}

/* Responsive tweaks */

@media (max-width: 1100px) {
  .help-tag {
    width: 300px;
    min-height: 200px;
    font-size: 13px;
  }

  .help-tag-bg {
    top: 19%;
    left: 8%;
  }

  .help-tag-time {
    top: 63%;
    left: 8%;
  }

  .help-tag-tasks {
    top: 19%;
    right: 8%;
  }

  .help-tag-pages {
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
  }

  .help-tag-links {
    top: 63%;
    right: 8%;
  }

  .help-footer {
    bottom: 24px;
  }

  .help-badge {
    top: 18px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .help-overlay-inner {
    padding: 16px;
  }

  .help-tag {
    position: static;
    width: auto;
    max-width: 360px;
    min-height: auto;
    margin: 10px auto;
  }

  .help-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .help-badge {
    position: static;
    margin: 16px 0 8px;
    transform: none;
    text-align: center;
  }

  .help-footer {
    position: static;
    transform: none;
    margin: 12px 0 20px;
  }
}

/* Language overlay */

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(14px);
}

.lang-overlay.hidden {
  display: none;
}

.lang-panel {
  background: rgba(10,10,15,0.96);
  border-radius: 24px;
  padding: 26px 26px 20px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 60px rgba(0,0,0,0.85);
  max-width: 430px;
  width: 90%;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  text-align: left;
}

.lang-panel-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lang-panel-subtitle {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.lang-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.lang-choice-btn {
  flex: 1 1 calc(50% - 10px);
  min-width: 130px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(20,20,30,0.9);
  color: #ffffff;
  padding: 9px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s;
}

.lang-choice-btn span {
  opacity: 0.9;
}

.lang-choice-btn small {
  opacity: 0.7;
  font-size: 11px;
}

.lang-choice-btn:hover {
  background: rgba(35,35,50,0.95);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.lang-panel-footer {
  font-size: 12px;
  opacity: 0.7;
  text-align: left;
}

@media (max-width: 480px) {
  .lang-panel {
    padding: 20px 16px 16px;
    max-width: 360px;
  }

  .lang-choice-btn {
    flex: 1 1 100%;
  }
}
