:root {
  color-scheme: light dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #ff5a5f;
  --primary: var(--accent);
  --text: #111;
  --text-strong: #0f172a;
  --text-medium: #475569;
  --muted: #6b7280;
  --bg: #f9fafb;
  --card: #fff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --surface: #f8fafc;
  --surface-muted: #f3f4f6;
  --surface-hover: #f1f5f9;
  --error-bg: #fee2e2;
  --error-text: #b91c1c;
  --warn-bg: #fff7ed;
  --warn-text: #c2410c;
  --warn-border: #fed7aa;
  --warn-hint: #b45309;
  --city-warning-bg: #fffbeb;
  --city-warning-text: #92400e;
  --city-warning-border: #fcd34d;
  --city-warning-critical-bg: #fff1eb;
  --city-warning-critical-text: #9a3412;
  --city-warning-critical-border: #fb923c;
  --danger-bg: #fff5f5;
  --danger-border: #fecaca;
  --danger-hover: #ef4444;
  --timer-bg: #fdecc8;
  --timer-text: #8a4b00;
  --promo-green: #1c7c4b;
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text: #f1f5f9;
    --text-strong: #f8fafc;
    --text-medium: #94a3b8;
    --muted: #64748b;
    --bg: #0f172a;
    --card: #1e293b;
    --border: #334155;
    --border-strong: #475569;
    --surface: #243044;
    --surface-muted: #293548;
    --surface-hover: #334155;
    --error-bg: #450a0a;
    --error-text: #fca5a5;
    --warn-bg: #431407;
    --warn-text: #fdba74;
    --warn-border: #9a3412;
    --warn-hint: #fbbf24;
    --city-warning-bg: #422006;
    --city-warning-text: #fcd34d;
    --city-warning-border: #a16207;
    --city-warning-critical-bg: #431407;
    --city-warning-critical-text: #fdba74;
    --city-warning-critical-border: #c2410c;
    --danger-bg: #3b0000;
    --danger-border: #7f1d1d;
    --danger-hover: #f87171;
    --timer-bg: #451a03;
    --timer-text: #fcd34d;
    --promo-green: #4ade80;
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --text: #f1f5f9;
  --text-strong: #f8fafc;
  --text-medium: #94a3b8;
  --muted: #64748b;
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --border-strong: #475569;
  --surface: #243044;
  --surface-muted: #293548;
  --surface-hover: #334155;
  --error-bg: #450a0a;
  --error-text: #fca5a5;
  --warn-bg: #431407;
  --warn-text: #fdba74;
  --warn-border: #9a3412;
  --warn-hint: #fbbf24;
  --city-warning-bg: #422006;
  --city-warning-text: #fcd34d;
  --city-warning-border: #a16207;
  --city-warning-critical-bg: #431407;
  --city-warning-critical-text: #fdba74;
  --city-warning-critical-border: #c2410c;
  --danger-bg: #3b0000;
  --danger-border: #7f1d1d;
  --danger-hover: #f87171;
  --timer-bg: #451a03;
  --timer-text: #fcd34d;
  --promo-green: #4ade80;
}

[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding-bottom: var(--tg-safe-bottom);
}

.top-bar {
  padding: calc(1rem + var(--tg-safe-top)) 1rem 1rem;
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 36px;
  max-width: 140px;
  object-fit: contain;
}

.brand-row h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.brand-club {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.brand-club::before {
  content: "— ";
  color: var(--muted);
  font-weight: 400;
}

.subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .brand-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .brand-club {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 600;
  }

  .brand-club::before {
    content: "";
  }
}

.date-controls {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.hall-segment {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
  padding: 0.2rem;
  gap: 0.2rem;
}

.hall-segment-btn {
  border: none;
  border-radius: 11px;
  padding: 0.6rem 0.7rem;
  background: transparent;
  color: var(--text-medium);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.hall-segment-btn.active {
  background: var(--primary);
  color: #fff;
}

.pill-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pill-btn:hover {
  border-color: var(--primary);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pill-btn.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--error-text);
}

.pill-btn.danger:hover {
  border-color: var(--danger-hover);
  color: var(--danger-hover);
}

.date-field {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

.date-field input {
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
  width: 100%;
  appearance: none;
  background: var(--card);
}

.field-label {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .date-controls {
    gap: 0.5rem;
  }

  .pill-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  .date-field {
    flex: 1 0 100%;
  }
}

main {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0 calc(0.5rem + var(--tg-safe-bottom));
}

.hall-picker {
  padding: 1rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.hall-picker h2 {
  margin: 0;
  font-size: 1.22rem;
  color: var(--text-strong);
}

.hall-picker-subtitle {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.hall-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 320px));
  justify-content: center;
  gap: 0.75rem;
}

.hall-choice-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  padding: 1.2rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.hall-choice-card:hover {
  border-color: var(--primary);
}

.hall-choice-card--vip {
  border-color: rgba(213, 161, 55, 0.42);
  background:
    radial-gradient(circle at top center, rgba(255, 214, 102, 0.16) 0%, rgba(255, 214, 102, 0) 34%),
    linear-gradient(180deg, rgba(255, 204, 102, 0.1) 0%, var(--card) 100%);
}

.hall-choice-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-right: 4.8rem;
}

.hall-choice-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0;
}

.hall-choice-subtitle {
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--muted);
}

.hall-choice-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 12;
  object-fit: contain;
  margin: -0.32rem 0 0.38rem;
  transform: scale(1.52);
  transform-origin: center;
}

.hall-choice-features {
  display: grid;
  gap: 0.5rem;
  min-height: 7.5rem;
  margin-top: 0.35rem;
}

.hall-choice-feature {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text-strong);
}

.hall-choice-feature-icon {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.7rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
}

.hall-choice-feature-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hall-choice-action {
  margin-top: 0.7rem;
  min-height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #43b4ff 0%, #2ea6ff 22%, #1b78d6 100%);
  box-shadow:
    0 8px 18px rgba(27, 120, 214, 0.24),
    0 0 18px rgba(46, 166, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hall-choice-card--vip .hall-choice-subtitle {
  color: #f2d18b;
}

.hall-choice-card--vip .hall-choice-feature {
  color: #f6e2b2;
}

.hall-choice-card--vip .hall-choice-feature-icon {
  border-color: rgba(246, 196, 83, 0.3);
  color: #f6d37d;
  background: rgba(246, 196, 83, 0.08);
}

.hall-choice-card--vip .hall-choice-action {
  background: linear-gradient(180deg, #ffd977 0%, #f6c453 22%, #d89b1e 100%);
  color: #fff7e8;
  box-shadow:
    0 8px 18px rgba(216, 155, 30, 0.22),
    0 0 16px rgba(246, 196, 83, 0.1),
    inset 0 1px 0 rgba(255, 250, 231, 0.28);
}

.hall-choice-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: linear-gradient(180deg, rgba(108, 66, 10, 0.92) 0%, rgba(80, 46, 6, 0.96) 100%);
  color: #fff;
  border: 1px solid rgba(242, 193, 88, 0.32);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.33rem 0.58rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

@media (max-width: 680px) {
  .hall-picker {
    padding: 1rem 0.9rem 1.2rem;
  }

  .hall-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0.7rem;
  }

  .hall-choice-card {
    min-height: 0;
    padding: 1.2rem 0.7rem 0.95rem;
    gap: 0.42rem;
  }

  .hall-choice-head {
    padding-right: 0;
    gap: 0.12rem;
  }

  .hall-choice-title {
    font-size: 0.92rem;
  }

  .hall-choice-subtitle {
    font-size: 0.74rem;
  }

  .hall-choice-image {
    width: calc(100% + 1.2rem);
    max-width: none;
    margin: -0.02rem -0.6rem 0.35rem;
    transform: scale(1.72);
  }

  .hall-choice-features {
    min-height: 6.7rem;
    gap: 0.38rem;
    margin-top: 0.35rem;
  }

  .hall-choice-feature {
    font-size: 0.71rem;
    min-height: 1.2rem;
    gap: 0.35rem;
  }

  .hall-choice-feature-icon {
    flex-basis: 1rem;
    width: 1rem;
    height: 1rem;
    font-size: 0.58rem;
  }

  .hall-choice-action {
    min-height: 42px;
    font-size: 0.9rem;
    padding: 0.72rem 0.75rem;
    margin-top: 0.65rem;
  }

  .hall-choice-badge {
    top: 0.7rem;
    right: 0.7rem;
    font-size: 0.54rem;
    padding: 0.28rem 0.45rem;
  }
}

.gift-banner-host {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 760px);
  bottom: calc(0.7rem + var(--tg-safe-bottom));
  z-index: 30;
  margin: 0;
}

.with-gift-banner .support-footer {
  margin-bottom: calc(84px + var(--tg-safe-bottom));
}

.gift-card-banner {
  width: 100%;
  --gift-image-space: 144px;
  --gift-cta-right: 75px;
  min-height: 70px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7e7c3 0%, #f3dfb0 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 0.5rem calc(1rem + var(--gift-image-space)) 0.5rem 1rem;
  display: block;
  text-decoration: none;
  color: #111827;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.gift-card-banner::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 248, 232, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.gift-card-banner__content {
  max-width: clamp(180px, 56%, 320px);
  z-index: 2;
  position: relative;
}

.gift-card-banner__title {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.08;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.gift-card-banner__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  line-height: 1.2;
  font-weight: 600;
  color: #3f4b5d;
  white-space: nowrap;
}

.gift-card-banner__cta {
  position: absolute;
  right: var(--gift-cta-right);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: #1496e8;
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(20, 150, 232, 0.28);
  z-index: 2;
}

.gift-card-banner__cta svg {
  flex-shrink: 0;
}

.gift-card-banner__image {
  position: absolute;
  right: -6px;
  bottom: -15px;
  width: 154px;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  z-index: 1;
}

.gift-card-banner:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.gift-card-banner:focus-visible {
  outline: 2px solid #1496e8;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .gift-card-banner {
    --gift-cta-right: 75px;
  }

  .gift-card-banner__image {
    right: -14px;
    bottom: -17px;
    width: 146px;
  }
}

@media (max-width: 480px) {
  .gift-card-banner {
    --gift-image-space: 116px;
    --gift-cta-right: 65px;
    min-height: 70px;
    padding: 0.46rem calc(0.88rem + var(--gift-image-space)) 0.46rem 0.88rem;
    border-radius: 20px;
  }

  .gift-card-banner__title {
    font-size: 1.02rem;
  }

  .gift-card-banner__subtitle {
    font-size: 0.74rem;
  }

  .gift-card-banner__cta {
    padding: 0.46rem 0.74rem;
    font-size: 0.64rem;
  }

  .gift-card-banner__cta svg {
    width: 11px;
    height: 11px;
  }

  .gift-card-banner__image {
    right: -16px;
    bottom: -19px;
    width: 136px;
  }
}

@media (max-width: 390px) {
  .gift-card-banner {
    --gift-image-space: 98px;
    --gift-cta-right: 61px;
    min-height: 70px;
    padding: 0.42rem calc(0.76rem + var(--gift-image-space)) 0.42rem 0.76rem;
  }

  .gift-card-banner__title {
    font-size: 0.94rem;
  }

  .gift-card-banner__subtitle {
    font-size: 0.66rem;
  }

  .gift-card-banner__cta {
    padding: 0.42rem 0.68rem;
    font-size: 0.58rem;
  }

  .gift-card-banner__image {
    right: -14px;
    bottom: -19px;
    width: 124px;
  }
}

@media (min-width: 1024px) {
  .gift-banner-host {
    width: min(calc(100% - 2rem), 760px);
  }
}

.banner {
  width: min(calc(100% - 2rem), 960px);
  margin: 0.75rem auto;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--warn-bg);
  color: var(--warn-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--warn-border);
}

.banner .pill-btn {
  flex: 0 0 auto;
}

.city-warning {
  width: min(calc(100% - 2rem), 960px);
  margin: 0.75rem auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid;
}

.city-warning p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  white-space: pre-line;
}

.city-warning--normal {
  background: var(--city-warning-bg);
  color: var(--city-warning-text);
  border-color: var(--city-warning-border);
}

.city-warning--critical {
  background: var(--city-warning-critical-bg);
  color: var(--city-warning-critical-text);
  border-color: var(--city-warning-critical-border);
}

.city-warning--sheet {
  margin: 0.15rem 0 0.3rem;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.card-time {
  font-size: 1.5rem;
  font-weight: 600;
}

.card-price {
  font-weight: 600;
  color: var(--primary);
}

.card-hall-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: linear-gradient(180deg, #d5a137 0%, #bb8623 100%);
  color: #fff;
  border: 1px solid rgba(128, 84, 12, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.62rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.card-free {
  font-size: 0.95rem;
  color: var(--muted);
}

.card-alt-hint {
  margin-top: 0.15rem;
  font-size: 0.83rem;
  color: var(--primary);
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.hidden {
  display: none !important;
}

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.sheet-content {
  background: var(--card);
  width: 100%;
  max-width: 480px;
  border-radius: 28px 28px 0 0;
  padding: 1.5rem;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.sheet-content .close-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--text-medium);
  font-size: 1.35rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.sheet-content .close-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.form-field input,
.form-field select {
  width: 100%;
}

.field-error {
  font-size: 0.8rem;
  color: var(--error-text);
  min-height: 1em;
}

.field-error.hint {
  color: var(--muted);
}

.error-box.hidden {
  display: none;
}

input,
select {
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.sheet-footer-bar {
  position: sticky;
  bottom: 0;
  margin-top: 0.5rem;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  flex-wrap: nowrap;
}

.sheet-total {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  min-width: 0;
}

.sheet-total-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sheet-total-prices {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sheet-total-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.sheet-total-base {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
}

.sheet-total-promo {
  font-size: 0.85rem;
  color: var(--promo-green);
  font-weight: 600;
}

.sheet-total-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.sheet-pay-btn {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.9rem 1.4rem;
  min-width: 140px;
  white-space: nowrap;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.error-box {
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 0.9rem;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.hint.warning {
  color: var(--warn-hint);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notice {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  padding: 1rem 1.2rem;
  width: min(90%, 420px);
  z-index: 40;
}

.notice button {
  margin-top: 0.75rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  padding: 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.notice button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.info-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.info-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 24px;
  width: min(360px, 95%);
  position: relative;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.2);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.info-item .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--primary);
}

.info-item a {
  color: var(--primary);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

.support-footer {
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-footer a {
  color: var(--primary);
  text-decoration: none;
  margin-left: 0.35rem;
}

.support-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .sheet {
    align-items: center;
  }

  .sheet-content {
    border-radius: 24px;
  }
}

.status-panel {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.status-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 28px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.22);
}

.status-label {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.status-card h2 {
  margin: 0.5rem 0;
}

.status-subtitle {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-message {
  margin: 0 auto 1rem;
  color: var(--muted);
  max-width: 320px;
}

.status-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.2rem 0 0.4rem;
}

.status-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0.2rem auto 1rem;
}

.timer-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--timer-bg);
  color: var(--timer-text);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timer-hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.status-details {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.status-details .detail-row {
  font-weight: 500;
}

.status-divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0 0.8rem;
}

.order-short {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface-muted);
  color: var(--text-medium);
  cursor: pointer;
}

.order-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.status-support {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
  margin: 0 auto 1.2rem;
  text-align: left;
}

.support-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--text-strong);
}

.support-text {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.support-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary);
}

.status-details {
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.status-details .detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.status-details .detail-row span {
  color: var(--muted);
}

.status-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status-actions .primary-btn,
.status-actions .pill-btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}

.status-actions .pill-btn {
  color: var(--text);
  background: var(--card);
  border-color: var(--border-strong);
}

#statusBackBtn,
#statusCloseBtn {
  color: var(--text) !important;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  -webkit-appearance: none;
  appearance: none;
}

#statusBackBtn:hover,
#statusCloseBtn:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.status-order-row {
  margin-top: 1rem;
  text-align: center;
}

.order-label {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.order-full {
  word-break: break-all;
  display: block;
  background: var(--surface-muted);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.75rem;
  color: var(--text-medium);
}

.order-link {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary);
}

.pill-btn.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 999px;
}

.secondary-btn,
.pill-btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.close-btn.secondary {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.05);
}

.status-bots {
  text-align: center;
  margin: 0.8rem 0;
}

.status-bots-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-strong);
  margin: 0.8rem 0 0.3rem;
}

.status-bots-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.status-bots-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
}

.bot-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.bot-link svg {
  flex-shrink: 0;
}

.bot-link--telegram {
  background: #2AABEE;
  border-color: #2AABEE;
  color: #fff;
}

.bot-link--telegram:hover {
  background: #1d9cd8;
  border-color: #1d9cd8;
}

.bot-link--max {
  background: linear-gradient(135deg, #161f8a 0%, #2d085f 100%);
  border-color: transparent;
  color: #fff;
}

.bot-link--max:hover {
  background: linear-gradient(135deg, #111670 0%, #22044a 100%);
  border-color: transparent;
}

.bot-link-separator {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.45rem 0;
  position: relative;
}

.bot-link-separator::before,
.bot-link-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}

.bot-link-separator::before { left: 0; }
.bot-link-separator::after  { right: 0; }

.bot-link-hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.dev-actions {
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Header actions group ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Theme toggle ── */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle svg {
  pointer-events: none;
}
