/* Экраны PWA — вёрстка под макет Figma (node 15-152) */

.hero-card__media > .hero-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shell {
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
}

.screen {
  display: none;
  min-height: calc(100dvh - 80px);
  animation: screenFade 0.2s ease;
}

.screen.is-active {
  display: block;
}

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

.bottom-nav.is-hidden {
  display: none;
}

/* —— Вход —— */
.login-wrap {
  min-height: calc(100dvh - 48px);
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand__logo {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.login-brand h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-panel {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
}

.login-error {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(220, 50, 50, 0.15);
  border: 1px solid rgba(220, 50, 50, 0.35);
  color: #ff9a9a;
  font-size: 13px;
  line-height: 1.4;
}

.login-error.is-visible {
  display: block;
}

.login-panel .form-field:last-of-type {
  margin-bottom: 8px;
}

.btn-login {
  width: 100%;
  margin-top: 8px;
}

.loading-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
}

/* —— Экран «Мои бронирования» (Figma node 15-380) —— */
.bookings-screen {
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 72px);
}

.bookings-screen__title {
  margin: 8px 0 16px;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: #fff;
}

.bookings-screen__active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.bookings-screen__subtitle {
  margin: 4px 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: #fff;
}

.bookings-screen__cta-wrap {
  margin-top: auto;
  padding-top: 16px;
}

.booking-active-card[hidden] {
  display: none !important;
}

.history-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--card-stroke);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.pay-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.menu-list__item--danger {
  color: #ff8a8a !important;
  margin-top: 16px;
  border-color: rgba(220, 80, 80, 0.35);
}

/* —— Кастомный пикер даты и времени —— */
.pcs-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.pcs-days::-webkit-scrollbar {
  display: none;
}

.pcs-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 72px;
  padding: 8px 6px;
  border-radius: 16px;
  border: 1px solid var(--card-stroke);
  background: var(--card);
  color: var(--text-white);
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pcs-day-btn:hover {
  background: #323232;
}

.pcs-day-btn.is-active {
  background: var(--yellow);
  border-color: #FFC53B;
  color: #1C1C1C;
}

.pcs-day-btn__weekday {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.6;
  text-transform: uppercase;
  line-height: 1;
}

.pcs-day-btn.is-active .pcs-day-btn__weekday {
  opacity: 0.7;
}

.pcs-day-btn__date {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.pcs-day-btn__month {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.5;
  line-height: 1;
}

.pcs-day-btn.is-active .pcs-day-btn__month {
  opacity: 0.6;
}

.pcs-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pcs-time-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-stroke);
  background: var(--card);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pcs-time-btn:hover {
  background: #323232;
}

.pcs-time-btn.is-active {
  background: var(--yellow);
  border-color: #FFC53B;
  color: #1C1C1C;
}

.pcs-time-btn.is-past {
  opacity: 0.3;
  pointer-events: none;
}

.pcs-hosts {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pc-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-stroke);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pc-card__meta {
  min-width: 0;
}

.pc-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.pc-card__sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.pc-card__book {
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text-on-yellow);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

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

/* —— Подшапка с «назад» —— */
.sub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.btn-back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--text-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-back:hover {
  background: #323232;
}

.sub-header__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-body {
  padding: 0 16px 24px;
}

/* —— Главная: колокол в шапке —— */
.top-actions--main .icon-circle {
  position: relative;
}

/* —— Карточка активной брони (жёлтая, по Figma) —— */
.booking-active-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  gap: 10px;
  background: radial-gradient(56.59% 100% at 50% 0%, #FFCC27 0%, #FDB813 100%);
  border: 1px solid #FFC53B;
  border-radius: 20px;
  color: #1C1C1C;
}

.booking-active-card--upcoming {
  background: radial-gradient(56.59% 100% at 50% 0%, #3a3a3a 0%, #282828 100%);
  border-color: var(--card-stroke);
  color: var(--text-white);
}

.booking-active-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.booking-active-card__label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
}

.booking-active-card__badge {
  padding: 1px 10px;
  background: #1C1C1C;
  border-radius: 47px;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
  color: #FDB813;
}

.booking-active-card--upcoming .booking-active-card__badge {
  background: var(--yellow);
  color: #1C1C1C;
}

.booking-active-card__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 140%;
}

.booking-active-card__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  border-radius: 65px;
  border: none;
  background: #1C1C1C;
  box-shadow: 0px 2px 15px rgba(253, 185, 24, 0.15);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.booking-active-card--upcoming .booking-active-card__btn {
  background: var(--yellow);
  color: #1C1C1C;
}

.booking-active-card__btn:hover {
  filter: brightness(1.1);
}

/* —— Заголовок истории (используется в нескольких местах) —— */
.history-title {
  margin: 16px 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
  color: #FFFFFF;
}

/* —— История броней —— */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #282828;
  border: 1px solid #353535;
  border-radius: 30px;
  color: inherit;
}

.history-item__icon {
  width: 39px;
  height: 39px;
  border-radius: 160px;
  background: #1C1C1C;
  border: 1px solid #272727;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.history-item__icon svg {
  width: 18px;
  height: 18px;
}

.history-item__icon::after {
  content: "";
  display: block;
  width: 17px;
  height: 13px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 50% 30%, 50% 100%, 100% 100%, 100% 30%, 0 30%);
}

.history-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.history-item__line {
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item__sub {
  font-size: 11px;
  font-weight: 500;
  line-height: 15px;
  color: rgba(255, 255, 255, 0.5);
}

/* —— Событие —— */
.event-hero {
  position: relative;
  margin: 0 -16px 20px;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%),
    #2a2418
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23fdb813' font-size='28' font-family='system-ui' font-weight='800'%3EPUBG%3C/text%3E%3C/svg%3E")
      center / cover no-repeat;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.event-hero .sub-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.event-hero .btn-back {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.event-content h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.event-content p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.9);
}

.event-list {
  margin: 16px 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.event-list li {
  margin-bottom: 8px;
}

.event-content .cta-main {
  margin-top: 24px;
}

/* —— Уведомления —— */
.notif-section__date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 20px 0 10px;
}

.notif-section__date:first-child {
  margin-top: 0;
}

.notif-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.notif-card__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.notif-card__ico--wallet {
  background: rgba(253, 184, 19, 0.2);
}

.notif-card__ico--event {
  background: rgba(255, 152, 0, 0.2);
}

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

.notif-card__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.notif-card__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.notif-card__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
}

.notif-card__link:hover {
  text-decoration: underline;
}

/* —— Оплата —— */
.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pcs-meta-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.input-dark {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-stroke);
  background: var(--card);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 15px;
}

.input-dark:focus {
  outline: none;
  border-color: var(--yellow-frame);
  box-shadow: 0 0 0 2px rgba(253, 184, 19, 0.2);
}

.input-dark::placeholder {
  color: #666;
}

.input-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* —— Пополнение баланса —— */
.pay-club-balance {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--yellow);
  font-weight: 600;
}

.pay-club-balance:empty {
  display: none;
}

.pay-amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.pay-preset {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-stroke);
  background: var(--card);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pay-preset:hover {
  background: #323232;
}

.pay-preset.is-active {
  background: var(--yellow);
  border-color: #FFC53B;
  color: #1C1C1C;
}

.pay-result {
  margin-top: 20px;
}

.pay-result__card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--card-stroke);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-result__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.pay-result__hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pay-result__link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-result__back {
  background: none;
  border: 1px solid var(--card-stroke);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
}

.pay-result__back:hover {
  background: #323232;
}

/* —— Меню-хаб —— */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.menu-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-md);
  color: var(--text-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.menu-list__item:hover {
  background: #323232;
}

.menu-list__item span:last-child {
  color: var(--text-muted);
  font-size: 18px;
}

/* —— Модалка успеха —— */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 320px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-xl);
  padding: 32px 24px 24px;
  text-align: center;
}

.modal-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--text-on-yellow);
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
}

.modal-card__sum {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.modal-card__msg {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-card .cta-main {
  margin-top: 0;
}

/* —— Ссылки в герое —— */
.hero-card__copy .link-more {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  padding: 0;
}
