/* Shared admin UI bits for tiers / schedule / games / reviews (ported from the approved mocks). */
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Chip styles = service_tiers.chip_style; colours = Mini App frontend/src/lib/tiers.ts (Figma accents, 8% fill). */
.tier-chip.grey { background: #1d1d1d; border-color: #222; color: #e4f0e2; }
.tier-chip__icon { width: 14px; height: 14px; flex: none; }
.tier-chip.grey .tier-chip__icon { color: #484848; }
.tier-chip.lime { background: rgba(173, 253, 103, 0.08); color: #adfd67; }
.tier-chip.teal { background: radial-gradient(120% 120% at 0% 0%, rgba(173, 253, 103, 0.08), rgba(26, 168, 224, 0.08)); }
.tier-chip.teal .tier-chip__icon path { fill: url(#tier-chip-teal); }
.tier-chip.teal .tier-chip__label {
  background: radial-gradient(120% 120% at 0% 0%, #adfd67, #1aa8e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tier-chip.gold { background: rgba(253, 253, 103, 0.08); color: #fdfd67; }
.tier-chip.violet { background: rgba(184, 103, 253, 0.08); color: #b867fd; }
.tier-chip.orange { background: rgba(253, 178, 103, 0.08); color: #fdb267; }
.tier-chip.red { background: rgba(253, 103, 103, 0.08); color: #fd6767; }
.tier-chip.blue { background: rgba(103, 184, 253, 0.08); color: #67b8fd; }
.tier-chip.legacy { background: #1d1d1d; border-color: #222; color: #8b928a; text-transform: none; }
.chip-style-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-style-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid #262626; border-radius: 14px; cursor: pointer; min-width: 104px; }
.chip-style-option:hover { border-color: #3a4232; }
.chip-style-option small { color: #8c9687; font-size: 11px; }
.chip-style-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-style-option:has(input:checked) { border-color: #aafa64; background: rgba(170, 250, 100, 0.06); }
.chip-style-option:has(input:checked) small { color: #e7efe3; }
.chip-style-option:has(input:focus-visible) { outline: 2px solid #aafa64; outline-offset: 2px; }
.chip-style-picker.is-invalid .chip-style-option { border-color: #d63939; }

.stars { color: #fdfd67; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #3f3f3f; }

.game-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #e7efe3;
  background: #2a3a1d;
  flex-shrink: 0;
  object-fit: cover;
}

/* Tier preview (tier form) and slot preview: the Mini App look (frontend pages/services/*, TimeSlotsRadio.vue). */
.preview-phone { background: #121212; border: 2px solid #252525; border-radius: 28px; padding: 16px; color: #e4f0e2; }
.preview-toggle { cursor: pointer; }
.preview-toggle:focus-visible { outline: 2px solid #adfd67; outline-offset: 2px; }
.preview-card { background: #1a1a1a; border: 1px solid #212121; border-radius: 24px; padding: 16px; }
.preview-card + .preview-card { margin-top: 12px; }
.preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.preview-name { flex: 1; min-width: 0; font-size: 20px; line-height: 24px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-price { color: #adfd67; font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.preview-list { background: #1d1d1d; border: 1px solid #222; border-radius: 24px; padding: 16px; font-size: 14px; line-height: 18px; margin: 0; }
.preview-list li { list-style: none; position: relative; padding-left: 18px; margin-bottom: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-list li:last-child { margin-bottom: 0; }
.preview-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #595d58; }
.preview-list li.more { color: #8b928a; padding-left: 0; }
.preview-list li.more::before { display: none; }
.preview-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.preview-hero__name { font-size: 20px; line-height: 24px; font-weight: 600; text-transform: uppercase; text-align: center; }
.preview-desc { background: #1d1d1d; border-color: #222; padding: 24px; font-size: 14px; line-height: 18px; }
.preview-desc__title { color: #8b928a; margin: 0 0 16px; }
.preview-desc__support { color: #8b928a; margin: 16px 0 0; }
.preview-desc ul { margin: 0; padding: 0; }
.preview-desc li { list-style: none; position: relative; padding-left: 18px; margin-bottom: 8px; }
.preview-desc li:last-child { margin-bottom: 0; }
.preview-desc li::before { content: ''; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #adfd67; box-shadow: 0 0 8px rgba(173, 253, 103, 0.6); }
.preview-buy { background: #1d1d1d; border-color: #252525; }
.preview-buy__row { display: flex; justify-content: space-between; font-size: 16px; line-height: 20px; margin-bottom: 16px; }
.preview-buy__row span:first-child { color: #8b928a; }
.preview-buy__row span:last-child { font-weight: 500; }
.preview-buy__button { height: 68px; border-radius: 24px; background: #adfd67; color: #499506; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.preview-buy__button svg { width: 20px; height: 20px; }
.preview-hint { margin-top: 8px; font-size: 12px; color: #8b928a; }
/* Tier flash = Mini App TierIcon.vue (Figma 101:600): grey / glowing lime / gradient / accent colours. */
.tier-flash { width: 32px; height: 32px; flex-shrink: 0; }
.tier-flash--lg { width: 64px; height: 64px; }
.tier-flash.grey { color: #484848; }
.tier-flash.lime { color: #adfd67; filter: drop-shadow(0 0 8px rgba(173, 253, 103, 0.52)); }
.tier-flash.teal path { fill: url(#tier-flash-gradient); }
.tier-flash.gold { color: #fdfd67; }
.tier-flash.violet { color: #b867fd; }
.tier-flash.orange { color: #fdb267; }
.tier-flash.red { color: #fd6767; }
.tier-flash.blue { color: #67b8fd; }

.slot-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot-preview > div { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 6px; background: #262626; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 500; color: #838383; }
.slot-preview > div.is-extra { background: #242f1a; border-color: #2f3f20; color: #e4f0e2; }
.slot-preview__badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 8px; background: rgba(173, 253, 103, 0.18); color: #adfd67; font-size: 11px; line-height: 16px; }
.slot-preview__badge svg { width: 14px; height: 14px; }

.table .btn-icon { width: 2rem; height: 2rem; padding: 0; border-color: transparent !important; background: transparent !important; }
.table .btn-icon:hover { background: rgba(224, 49, 49, .12) !important; }

/* Tier features editor: draggable rows (tier edit page). */
.feature-row .handle { cursor: grab; color: var(--uc-text-muted); }
.feature-row.dragging { opacity: 0.5; }
.feature-row .btn-icon { border-color: var(--uc-border) !important; }
.feature-row .btn-icon:hover { background: rgba(224, 49, 49, .12) !important; }

/* Sidebar counter (pending reviews): static, right-aligned — Tabler positions .badge absolutely inside nav-link. */
.navbar-vertical .nav-link { display: flex; align-items: center; }
.nav-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f59f00;
  color: #1a1200;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* flatpickr dark theme */
body .flatpickr-calendar {
  background-color: #151815;
  border: 1px solid #262626;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  color: #e4f0e2;
}
body .flatpickr-calendar.arrowTop:before,
body .flatpickr-calendar.arrowTop:after { border-bottom-color: #151815; }
body .flatpickr-calendar.arrowBottom:before,
body .flatpickr-calendar.arrowBottom:after { border-top-color: #151815; }
body .flatpickr-months .flatpickr-month,
body .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-current-month input.cur-year,
body span.flatpickr-weekday,
body .flatpickr-day {
  color: #e4f0e2;
  fill: #e4f0e2;
  background-color: transparent;
}
body .flatpickr-current-month .flatpickr-monthDropdown-months { background-color: #151815; }
body .flatpickr-day.prevMonthDay,
body .flatpickr-day.nextMonthDay,
body .flatpickr-day.flatpickr-disabled { color: rgba(228, 240, 226, 0.3); }
body .flatpickr-day.today { border-color: #adfd67; }
body .flatpickr-day:hover,
body .flatpickr-day:focus,
body .flatpickr-day.prevMonthDay:hover,
body .flatpickr-day.nextMonthDay:hover {
  background-color: #1f261c;
  border-color: #1f261c;
  color: #e4f0e2;
}
body .flatpickr-day.selected,
body .flatpickr-day.selected:hover,
body .flatpickr-day.selected.prevMonthDay,
body .flatpickr-day.selected.nextMonthDay {
  background-color: #5c9a2b;
  border-color: #5c9a2b;
  color: #fff;
}
body .flatpickr-months .flatpickr-prev-month svg,
body .flatpickr-months .flatpickr-next-month svg { fill: #e4f0e2; }
body .flatpickr-months .flatpickr-prev-month:hover svg,
body .flatpickr-months .flatpickr-next-month:hover svg { fill: #adfd67; }
body .flatpickr-time { border-top-color: #262626; }
body .flatpickr-time input,
body .flatpickr-time .flatpickr-time-separator,
body .flatpickr-time .flatpickr-am-pm,
body .numInputWrapper {
  color: #e4f0e2;
  background-color: var(--uc-bg-1);
}
body .flatpickr-time input:hover,
body .flatpickr-time input:focus,
body .flatpickr-time .flatpickr-am-pm:hover,
body .numInputWrapper:hover { background-color: #1f261c; }
body .numInputWrapper span { border-color: #262626; }
body .numInputWrapper span.arrowUp:after { border-bottom-color: #e4f0e2; }
body .numInputWrapper span.arrowDown:after { border-top-color: #e4f0e2; }
body .flatpickr-day.today:hover,
body .flatpickr-day.today:focus {
  background-color: #1f261c;
  border-color: #adfd67;
  color: #e4f0e2;
}
body .flatpickr-day.selected.today:hover {
  background-color: #5c9a2b;
  color: #fff;
}
