/* Participant cabinet — youth / energetic */
.cabinet-app {
  --cab-lime: #c8f542;
  --cab-sun: #ffb703;
  --cab-sky: #4cc9f0;
  --cab-berry: #7b2cbf;
  --cab-forest: #1b7a4e;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(200, 245, 66, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 0% 20%, rgba(76, 201, 240, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 183, 3, 0.15), transparent 45%),
    linear-gradient(165deg, #f0fff4 0%, #fffef5 45%, #f5fbff 100%);
  min-height: 100vh;
}

.cabinet-app .card {
  border: 1px solid rgba(27, 122, 78, 0.12);
  box-shadow: 0 10px 28px rgba(27, 122, 78, 0.1);
}

.cabinet-tag {
  display: inline-block;
  margin: 0 0 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d3d24;
  background: linear-gradient(90deg, var(--cab-lime), var(--cab-sun));
  border-radius: 999px;
}

.cabinet-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(120deg, #0d5c36, #1b7a4e 40%, #2d9b5f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-weight: 800;
  font-size: 1rem;
  color: #0d3d24;
}

#app-cabinet.hidden {
  display: none !important;
}

#boot-screen {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

#boot-screen.hidden {
  display: none;
}

#app-register.hidden {
  display: none !important;
}

.cabinet-header {
  text-align: center;
  padding: 8px 0 12px;
}

.cabinet-header .dates {
  font-size: 0.85rem;
  color: var(--muted);
}

.cabinet-panel {
  display: none;
  padding-bottom: 72px;
}

.cabinet-panel.active {
  display: block;
}

.hero-card {
  background: linear-gradient(125deg, #0d5c36 0%, #1b9e6a 35%, #4cc9f0 70%, #c8f542 100%);
  color: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 36px rgba(13, 92, 54, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(18deg);
  pointer-events: none;
}

.hero-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.hero-card .meta {
  opacity: 0.9;
  font-size: 0.9rem;
}

.hero-card .countdown {
  margin-top: 10px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.quick-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d3d24;
  box-shadow: 0 6px 18px rgba(27, 122, 78, 0.12);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.quick-card.qc-schedule { border-color: rgba(76, 201, 240, 0.5); }
.quick-card.qc-map { border-color: rgba(123, 44, 191, 0.35); }
.quick-card.qc-profile { border-color: rgba(27, 122, 78, 0.55); }
.quick-card.qc-food { border-color: rgba(255, 183, 3, 0.55); }
.quick-card.qc-transfer { border-color: rgba(200, 245, 66, 0.7); }
.quick-card.qc-hotel { border-color: rgba(76, 201, 240, 0.4); }
.quick-card.qc-help { border-color: rgba(123, 44, 191, 0.4); }
.quick-card.qc-news { border-color: rgba(255, 107, 53, 0.45); }

@media (hover: hover) {
  .quick-card:hover {
    background: rgba(45, 106, 79, 0.1);
    border-color: rgba(45, 106, 79, 0.45);
    box-shadow: 0 8px 20px rgba(31, 77, 50, 0.16);
    transform: translateY(-2px);
    color: #0d3d24;
  }

  .date-chip:hover {
    border-color: var(--green-dark);
    background: rgba(45, 106, 79, 0.08);
  }

  .cabinet-tabs button:hover {
    color: var(--green-dark);
    background: rgba(45, 106, 79, 0.06);
  }
}

.quick-card:focus-visible,
.date-chip:focus-visible,
.cabinet-tabs button:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.quick-card:active,
.date-chip:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(31, 77, 50, 0.12);
}

.quick-card .ico {
  font-size: 1.65rem;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.schedule-day-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.35;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--green-light);
  margin-left: 8px;
}

.timeline .time {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.9rem;
}

.timeline .loc {
  font-size: 0.82rem;
  color: var(--muted);
}

.date-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.date-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(45, 106, 79, 0.35);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.date-chip.active {
  background: linear-gradient(135deg, #1b7a4e, #4cc9f0);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.cabinet-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 8px 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(27, 122, 78, 0.1);
  box-shadow: 0 -8px 24px rgba(13, 61, 36, 0.1);
  z-index: 50;
}

.cabinet-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #5c6b63;
  border-radius: 12px;
}

.cabinet-tabs button.active {
  color: #0d3d24;
  background: linear-gradient(180deg, var(--cab-lime), #a8e063);
  box-shadow: 0 2px 8px rgba(200, 245, 66, 0.5);
}

.profile-section {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(0, 77, 46, 0.12);
}

.profile-section__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.profile-section p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-section a {
  color: var(--green-dark);
  font-weight: 600;
}

.notif-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
}

.notif-item time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.content-page h2 {
  margin-top: 0;
  color: var(--green-dark);
}

.content-page h3:first-of-type {
  margin-top: 0.5rem;
}

.content-page p strong {
  color: var(--green-dark);
}

.content-page .faq-q {
  font-weight: 600;
  margin: 12px 0 4px;
}

.map-hint {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.map-widget-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 106, 79, 0.25);
  margin-bottom: 10px;
  background: #e8efe9;
}

.map-yandex-root {
  display: block;
  width: 100%;
  height: 240px;
  min-height: 200px;
}

.map-yandex-root.map-yandex-root--error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 0.9rem;
  color: #4a5d52;
  text-align: center;
}

.map-actions {
  margin-bottom: 12px;
}

.map-actions .btn {
  width: 100%;
}

.map-zones {
  display: grid;
  gap: 8px;
}

.map-zone {
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(45, 106, 79, 0.2);
  background: var(--card);
  cursor: pointer;
}

.map-zone strong {
  color: var(--green-dark);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 0.88rem;
}

.messages-wrap {
  margin-bottom: 14px;
}

.messages-badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
  color: #fff;
  background: #c1121f;
  border-radius: 999px;
  vertical-align: middle;
}

.messages-badge.hidden {
  display: none;
}

.messages-card {
  padding: 12px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.msg-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.msg-bubble.msg-in {
  align-self: flex-start;
  background: rgba(45, 106, 79, 0.12);
  border: 1px solid rgba(45, 106, 79, 0.25);
}

.msg-bubble.msg-out {
  align-self: flex-end;
  margin-left: auto;
  background: rgba(31, 77, 50, 0.08);
  border: 1px solid rgba(31, 77, 50, 0.18);
}

.msg-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.msg-body .link {
  color: var(--green-dark);
}

.messages-reply {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messages-reply textarea {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 106, 79, 0.35);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.btn-send-reply {
  align-self: flex-end;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #1b7a4e, #4cc9f0);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 122, 78, 0.35);
}

.cabinet-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 72px;
  z-index: 200;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1b4332;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  animation: cabinet-toast-in 0.35s ease;
}

.cabinet-toast.hidden {
  display: none;
}

.cabinet-toast__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.cabinet-toast__body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.95;
}

@keyframes cabinet-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-send-reply:disabled {
  opacity: 0.6;
  cursor: wait;
}
