/* Mood quest cards — mission tickets (not bonus-card / passport) */

.mq-zones {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mq-zone {
  position: relative;
}

.mq-zone__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.mq-zone__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted, #8b95a8);
  margin: 0 0 0.35rem;
}

.mq-zone__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #f4f6fb);
}

.mq-zone__desc {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted, #8b95a8);
  max-width: 36rem;
  line-height: 1.45;
}

.mq-zone--vip .mq-zone__kicker {
  color: #c4a8ff;
}

.mq-zone--general .mq-zone__kicker {
  color: #5ecfb8;
}

/* VIP ladder */
.mq-vip-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mq-vip-ladder::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 4.5rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(196, 168, 255, 0.35), rgba(94, 207, 184, 0.15));
  pointer-events: none;
  z-index: 0;
}

.mq-zone--vip {
  padding-left: 0;
}

/* General grid */
.mq-general-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

/* Ticket card */
.mq-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1rem 1rem 1rem 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 55%),
    rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 12px 12px 4px;
  box-shadow: inset 3px 0 0 rgba(94, 207, 184, 0.45);
  transition: border-color 0.2s, transform 0.2s;
}

.mq-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 16px;
  transform: translate(50%, -50%);
  background: radial-gradient(circle at 0 50%, transparent 6px, rgba(18, 22, 32, 0.92) 6px);
  pointer-events: none;
}

.mq-card--vip {
  box-shadow: inset 3px 0 0 rgba(196, 168, 255, 0.55);
}

.mq-card--vip.mq-card--ready {
  box-shadow: inset 3px 0 0 #c4a8ff, 0 0 24px rgba(196, 168, 255, 0.12);
}

.mq-card--general.mq-card--ready {
  box-shadow: inset 3px 0 0 #5ecfb8, 0 0 24px rgba(94, 207, 184, 0.1);
}

.mq-card--locked {
  opacity: 0.52;
  filter: grayscale(0.25);
}

.mq-card--claimed {
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.05);
}

.mq-card__badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.5rem;
}

.mq-card__level {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(196, 168, 255, 0.15);
  color: #ddd0ff;
  border: 1px solid rgba(196, 168, 255, 0.25);
}

.mq-card--general .mq-card__level {
  background: rgba(94, 207, 184, 0.12);
  color: #8de8d4;
  border-color: rgba(94, 207, 184, 0.28);
}

.mq-card__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.mq-card__body {
  min-width: 0;
}

.mq-card__title {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
  color: var(--text-primary, #f4f6fb);
  line-height: 1.3;
}

.mq-card__condition {
  font-size: 0.78rem;
  color: var(--text-muted, #8b95a8);
  margin: 0 0 0.55rem;
  line-height: 1.4;
}

.mq-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.mq-pill {
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted, #9aa3b5);
  background: rgba(255, 255, 255, 0.04);
}

.mq-pill--timer {
  border-color: rgba(94, 207, 184, 0.35);
  color: #8de8d4;
}

.mq-pill--slots {
  border-color: rgba(255, 180, 100, 0.35);
  color: #ffc98a;
}

.mq-progress {
  margin-top: 0.55rem;
}

.mq-progress__track {
  display: flex;
  gap: 3px;
  height: 6px;
}

.mq-progress__seg {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s;
}

.mq-progress__seg.is-fill {
  background: linear-gradient(90deg, rgba(94, 207, 184, 0.5), rgba(94, 207, 184, 0.85));
}

.mq-card--vip .mq-progress__seg.is-fill {
  background: linear-gradient(90deg, rgba(196, 168, 255, 0.45), rgba(196, 168, 255, 0.9));
}

.mq-progress__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted, #8b95a8);
  font-variant-numeric: tabular-nums;
}

.mq-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 5.5rem;
}

.mq-reward {
  font-size: 0.78rem;
  font-weight: 650;
  text-align: right;
  color: #f0d878;
  line-height: 1.35;
}

.mq-card__claim {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #5ecfb8, #3aa893);
  color: #0a1210;
  transition: opacity 0.2s, transform 0.15s;
}

.mq-card--vip .mq-card__claim {
  background: linear-gradient(135deg, #c4a8ff, #9b7fd4);
  color: #1a1028;
}

.mq-card__claim:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mq-card__claim:not(:disabled):hover {
  transform: translateY(-1px);
}

.mq-empty {
  padding: 1.25rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-align: center;
  color: var(--text-muted, #8b95a8);
  font-size: 0.85rem;
}

.mq-empty__title {
  font-weight: 600;
  color: var(--text-primary, #e8ecf4);
  margin: 0 0 0.35rem;
}

/* Empty state: general quests + Telegram CTA */
.mq-empty-teaser {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(94, 207, 184, 0.22);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(41, 171, 226, 0.14) 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(94, 207, 184, 0.1) 0%, transparent 60%),
    rgba(14, 18, 28, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.mq-empty-teaser__glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.mq-empty-teaser__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem;
  flex-wrap: wrap;
}

.mq-empty-teaser__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(41, 171, 226, 0.25), rgba(41, 171, 226, 0.08));
  border: 1px solid rgba(41, 171, 226, 0.35);
  color: #6ec8f0;
}

.mq-empty-teaser__icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.mq-empty-teaser__body {
  flex: 1 1 200px;
  min-width: 0;
}

.mq-empty-teaser__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-primary, #f4f6fb);
  line-height: 1.35;
}

.mq-empty-teaser__desc {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted, #9aa3b5);
}

.mq-empty-teaser__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mq-empty-teaser__badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 207, 184, 0.3);
  color: #8de8d4;
  background: rgba(94, 207, 184, 0.08);
}

.mq-empty-teaser__action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 10rem;
}

.mq-empty-teaser__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  color: #0a1210;
  background: linear-gradient(135deg, #5ecfb8, #3aa893);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.mq-empty-teaser__cta:hover {
  transform: translateY(-1px);
}

.mq-empty-teaser__cta--disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #8b95a8);
}

.mq-empty-teaser__hint {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted, #7d8796);
  text-align: right;
  max-width: 14rem;
  line-height: 1.35;
}

html[data-theme="light"] .mq-empty-teaser {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(41, 171, 226, 0.1) 0%, transparent 55%),
    linear-gradient(135deg, #f8fafc, #eef2f8);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mq-empty-teaser__title {
  color: #1a2233;
}

@media (max-width: 640px) {
  .mq-empty-teaser__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .mq-empty-teaser__action {
    align-items: stretch;
    width: 100%;
  }

  .mq-empty-teaser__cta {
    width: 100%;
  }

  .mq-empty-teaser__hint {
    text-align: center;
    max-width: none;
  }
}

html[data-theme="light"] .mq-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), #f4f6fa);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .mq-card__title {
  color: #1a2233;
}

html[data-theme="light"] .mq-zone__title {
  color: #1a2233;
}

@media (max-width: 640px) {
  .mq-card {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .mq-card__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mq-vip-ladder::before {
    display: none;
  }
}

.mq-tg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mq-tg-actions__subscribe,
.mq-tg-actions__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f2f0ec);
  cursor: pointer;
}

.mq-tg-actions__subscribe:hover,
.mq-tg-actions__check:hover:not(:disabled) {
  background: rgba(254, 215, 165, 0.14);
  border-color: rgba(254, 215, 165, 0.35);
}

.mq-tg-actions__subscribe--disabled {
  opacity: 0.55;
  cursor: default;
}

.mq-tg-actions__check:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mq-tg-actions__hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #9a9ca8);
}
