* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #2d2420 0%, #120f0d 45%, #0b0a08 100%);
  background-attachment: fixed;
  color: #f4efe9;
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  --loyal-sticky-top: calc(env(safe-area-inset-top, 0px) + 8px);
  --loyal-header-offset: 86px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { display: none; }

button,
a {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.is-tg-miniapp .loyal-auth-captcha {
  display: none;
}

.loyal-panel,
.loyal-card,
.loyal-tabs,
.loyal-section,
.loyal-history-item,
.loyal-card-item {
  transform: translateZ(0);
}

.loyal-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 0px 20px 40px;
  animation: loyal-shell-in 420ms ease-out both;
}

body.is-standalone-app .loyal-shell {
  padding-top: 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
}

body.is-standalone-app .loyal-install-button {
  display: none !important;
}

body.is-standalone-app .loyal-header {
  margin-bottom: 12px;
}

.loyal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 12px;
  position: sticky;
  top: 0;
  z-index: 24;
}

.loyal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(18, 15, 13, 0.96) 0%, rgba(18, 15, 13, 0.88) 72%, rgba(18, 15, 13, 0) 100%);
  backdrop-filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

.loyal-logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 20px;
  align-items: center;
  text-align: center;
  padding-top: 20px;
}

.loyal-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 0;
}

.loyal-logo small {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loyal-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f4efe9;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 13px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.loyal-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.loyal-ghost:active {
  transform: scale(0.98);
}

.loyal-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.is-guest [data-view="app"],
.is-guest [data-status-card] {
  display: none !important;
}

.is-auth [data-view="login"] {
  display: none !important;
}

.loyal-card {
  position: relative;
  background: linear-gradient(135deg, rgba(181, 121, 73, 0.95), rgba(80, 46, 33, 0.95));
  border-radius: 22px;
  padding: 16px 18px 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  animation: loyal-card-float 520ms ease-out both;
}

.loyal-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loyal-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 245, 236, 0.72);
}

.loyal-card__top {
  margin-top: 10px;
}

.loyal-card__top h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.loyal-card__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.loyal-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 248, 241, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.loyal-card__pill--muted {
  background: rgba(19, 13, 11, 0.18);
}

.loyal-card__actions {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.loyal-card__actions .loyal-primary,
.loyal-card__actions .loyal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.loyal-secondary--cta {
  background: rgba(255, 255, 255, 0.14);
  color: #fff8f1;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.loyal-primary--cta {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.loyal-ghost--card {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.loyal-chip {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

@keyframes loyal-cta-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  }
}

.loyal-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  touch-action: pan-y;
}

.loyal-view--login {
  gap: 12px;
}

.loyal-panel {
  background: rgba(18, 15, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(8px);
  animation: loyal-fade-up 360ms ease-out both;
}

.loyal-panel--accent {
  background: rgba(35, 28, 24, 0.9);
}

.loyal-panel--login {
  padding: 16px;
}

.loyal-panel--login h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.loyal-panel h2,
.loyal-panel h3 {
  margin: 0 0 10px;
}

.loyal-panel__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.72);
}

.loyal-preferences {
  display: grid;
  gap: 12px;
}

.loyal-preferences__block {
  display: grid;
  gap: 8px;
}

.loyal-preferences__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.64);
}

.loyal-preference-chips,
.loyal-preference-tags {
  display: flex;
  gap: 8px;
}

.loyal-preference-chips {
  flex-wrap: wrap;
}

.loyal-preference-tags {
  flex-direction: column;
  align-items: stretch;
}

.loyal-preference-chip,
.loyal-preference-tag,
.loyal-preference-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.loyal-preference-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 239, 233, 0.86);
  cursor: pointer;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease;
}

.loyal-preference-chip.is-active {
  background: rgba(197, 132, 79, 0.22);
  border-color: rgba(228, 177, 136, 0.34);
  color: #fff4ea;
}

.loyal-preference-chip:active {
  transform: scale(0.98);
}

.loyal-preference-tag {
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff4ea;
}

.loyal-preference-tag__label {
  flex: 1 1 auto;
  min-width: 0;
}

.loyal-preference-tag__remove {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 244, 234, 0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 140ms ease;
}

.loyal-preference-tag__remove:hover {
  background: rgba(197, 132, 79, 0.24);
}

.loyal-preference-tag__remove:active {
  transform: scale(0.96);
}

.loyal-preference-empty {
  padding: 0;
  min-height: 0;
  color: rgba(244, 239, 233, 0.54);
}

.loyal-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #e4b188;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.loyal-link-button--inline {
  align-self: flex-start;
  margin-top: -4px;
}

.loyal-link-button:hover {
  color: #f0c8a5;
}

.loyal-auth-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loyal-auth-switch__thumb {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(197, 132, 79, 0.95), rgba(126, 82, 51, 0.98));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease;
}

.loyal-auth-switch[data-mode="password"] .loyal-auth-switch__thumb {
  transform: translateX(calc(100% + 4px));
}

.loyal-auth-switch button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 0 12px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(244, 239, 233, 0.72);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease;
}

.loyal-auth-switch button.is-active {
  color: #1b120c;
}

.loyal-auth-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.loyal-auth-pane.is-active {
  display: flex;
}

.loyal-auth-pane .loyal-field {
  margin-bottom: 0;
}

.loyal-auth-pane .loyal-field input,
.loyal-auth-pane .loyal-field select {
  height: 48px;
  box-sizing: border-box;
}

.loyal-login-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: rgba(244, 239, 233, 0.6);
  font-size: 12px;
  justify-content: center;
}

.loyal-login-separator::before,
.loyal-login-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.loyal-secondary--telegram {
  background: linear-gradient(135deg, rgba(37, 161, 244, 0.96), rgba(13, 114, 191, 0.96));
  color: #fff;
  box-shadow: 0 14px 28px rgba(10, 106, 178, 0.24);
}

.loyal-secondary--telegram:hover {
  box-shadow: 0 18px 34px rgba(10, 106, 178, 0.3);
}

.loyal-panel--login .loyal-secondary--telegram {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.loyal-panel--login .loyal-secondary--telegram:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.loyal-secondary--passkey {
  background: linear-gradient(135deg, rgba(197, 132, 79, 0.18), rgba(116, 73, 44, 0.24));
  border: 1px solid rgba(228, 177, 136, 0.2);
  color: #f7e7d9;
  box-shadow: 0 14px 28px rgba(86, 53, 30, 0.18);
}

.loyal-secondary--passkey:hover {
  box-shadow: 0 18px 32px rgba(86, 53, 30, 0.28);
}

.loyal-panel--login .loyal-secondary--passkey {
  margin-bottom: 10px;
}

.loyal-login-policy {
  margin: 0;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.72);
}

.loyal-login-policy a {
  color: #e4b188;
  text-decoration-color: rgba(228, 177, 136, 0.45);
  text-underline-offset: 3px;
}

.loyal-login-policy a:hover {
  text-decoration-color: rgba(228, 177, 136, 0.9);
}

.loyal-install-button {
  width: 100%;
  border: 1px solid rgba(228, 177, 136, 0.2);
  border-radius: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3dfce;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 180ms ease, box-shadow 180ms ease;
}

.loyal-install-button:hover {
  background: rgba(197, 132, 79, 0.12);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.loyal-install-button:active {
  transform: scale(0.98);
}

.loyal-shell--setup {
  min-height: 100vh;
  justify-content: center;
  padding-bottom: 40px;
}

.loyal-main--setup {
  gap: 14px;
}

.loyal-panel--setup {
  padding: 20px 18px;
}

.loyal-setup__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.58);
}

.loyal-setup__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
}

.loyal-setup__lead {
  margin: 0 0 14px;
  color: rgba(244, 239, 233, 0.78);
  line-height: 1.6;
}

.loyal-setup__actions {
  display: grid;
  gap: 10px;
}

.loyal-hint--setup {
  min-height: 20px;
  margin-top: 8px;
}

.loyal-setup__steps {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.loyal-setup-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loyal-setup-step__index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(197, 132, 79, 0.18);
  border: 1px solid rgba(228, 177, 136, 0.24);
  color: #f3dfce;
  font-size: 13px;
  font-weight: 700;
}

.loyal-setup-step__text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 239, 233, 0.8);
}

.loyal-panel--setup-note p {
  margin: 0;
  line-height: 1.6;
  color: rgba(244, 239, 233, 0.74);
}

.loyal-install-button--back {
  margin-top: 2px;
}

.loyal-auth-captcha {
  margin: 0;
  user-select: none;
  touch-action: none;
}

.loyal-auth-captcha .sc-track {
  position: relative;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  touch-action: none;
}

.loyal-auth-captcha .sc-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(135deg, #c98a52, #8d5e39);
  transition: width 0.06s linear;
  z-index: 1;
}

.loyal-auth-captcha .sc-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: rgba(244, 239, 233, 0.68);
  pointer-events: none;
  z-index: 2;
}

.loyal-auth-captcha .sc-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: grab;
  transition: box-shadow 0.2s ease, left 0.06s linear;
  z-index: 3;
  touch-action: none;
  -webkit-user-drag: none;
}

.loyal-auth-captcha .sc-handle:active {
  cursor: grabbing;
}

.loyal-auth-captcha.solved .sc-text {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.loyal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  position: relative;
}

.loyal-field input {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.loyal-field select {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.loyal-field select option {
  color: #1b120c;
}

.loyal-field input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

.loyal-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 12;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(27, 18, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  max-height: 220px;
  overflow-y: auto;
}

.loyal-suggest__item {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe9;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 3px;
}

.loyal-suggest__item strong {
  font-size: 14px;
  font-weight: 600;
}

.loyal-suggest__item span {
  font-size: 12px;
  opacity: 0.72;
}

.loyal-suggest__item:hover,
.loyal-suggest__item:focus-visible {
  background: rgba(197, 132, 79, 0.18);
  outline: none;
}

.loyal-field textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  min-height: 80px;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.loyal-primary,
.loyal-secondary,
.loyal-danger {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.loyal-primary {
  background: #c5844f !important;
  color: #1b120c;
}

.loyal-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.loyal-danger {
  background: rgba(255, 86, 86, 0.2);
  color: #ffb3b3;
  border: 1px solid rgba(255, 86, 86, 0.35);
}

.loyal-card-modal .loyal-danger {
  margin-top: 8px;
}

.loyal-primary:hover,
.loyal-secondary:hover,
.loyal-danger:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.loyal-primary:active,
.loyal-secondary:active,
.loyal-danger:active {
  transform: scale(0.98);
}

.loyal-primary:disabled,
.loyal-secondary:disabled,
.loyal-danger:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.loyal-primary:focus-visible,
.loyal-secondary:focus-visible,
.loyal-danger:focus-visible,
.loyal-ghost:focus-visible,
.loyal-tabs button:focus-visible,
.loyal-auth-switch button:focus-visible {
  outline: 2px solid rgba(197, 132, 79, 0.9);
  outline-offset: 2px;
}

.loyal-primary.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.loyal-primary.is-loading::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(27, 18, 12, 0.4);
  border-top-color: rgba(27, 18, 12, 0.9);
  animation: loyal-spin 0.8s linear infinite;
}

.loyal-hint {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.7;
}

.loyal-hint:empty {
  margin-bottom: 0;
}

.loyal-hint--warning {
  color: rgba(255, 196, 140, 0.95);
  opacity: 0.95;
}

.loyal-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(12, 10, 8, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  position: sticky;
  top: var(--loyal-header-offset);
  z-index: 18;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  animation: loyal-fade-up 320ms ease-out both;
}

.loyal-tabs::before {
  display: none;
}

.loyal-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.loyal-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: none;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: #f4efe9;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, transform 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.loyal-tabs button.is-active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.loyal-tabs button:active {
  transform: scale(0.98);
}

.loyal-section {
  display: none;
  flex-direction: column;
  gap: 14px;
  touch-action: pan-y;
}

.loyal-section.is-active {
  display: flex;
  animation: loyal-section-in 240ms ease-out both;
}


.loyal-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.loyal-section[data-section="cards"] > .loyal-section__head:first-child,
.loyal-section[data-section="cards"] > .loyal-cards,
.loyal-section[data-section="cards"] > .loyal-cards-status,
.loyal-section[data-section="cards"] > .loyal-empty[data-cards-empty] {
  display: none !important;
}

.loyal-section__head h2 {
  margin: 0;
  min-width: 0;
}

.loyal-section__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.loyal-section__actions > [data-create-card-panel] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loyal-section__actions > [data-create-card-panel][hidden] {
  display: none !important;
}

.loyal-filter {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
}

.loyal-secondary--compact {
  width: auto;
  padding: 8px 12px;
  font-size: 12px;
}

.loyal-secondary--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.loyal-subtabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.loyal-subtabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.loyal-subtabs button {
  flex: 1 0 auto;
  min-height: 42px;
  min-width: max-content;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(244, 239, 233, 0.72);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.loyal-subtabs button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.loyal-subsection {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.loyal-subsection.is-active {
  display: flex;
}

.loyal-panel--notifications {
  display: grid;
  gap: 14px;
}

.loyal-notification-settings {
  display: grid;
  gap: 12px;
}

.loyal-notification-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loyal-notification-setting__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.loyal-notification-setting__copy strong {
  font-size: 13px;
  line-height: 1.2;
  color: #fff4ea;
}

.loyal-notification-setting__copy span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.72);
}

.loyal-notification-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

.loyal-notification-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.loyal-notification-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 180ms ease;
}

.loyal-notification-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4efe9;
  transition: transform 180ms ease, background 180ms ease;
}

.loyal-notification-switch input:checked + .loyal-notification-switch__track {
  background: rgba(197, 132, 79, 0.8);
}

.loyal-notification-switch input:checked + .loyal-notification-switch__track::after {
  transform: translateX(20px);
  background: #1b120c;
}

.loyal-history__notifications-button {
  position: relative;
  font-size: 16px;
}

.loyal-notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 2px rgba(27, 18, 12, 0.92);
  pointer-events: none;
}

.loyal-notification-modal__lead {
  margin: 0 0 14px;
  line-height: 1.55;
  color: rgba(244, 239, 233, 0.78);
}

.loyal-notification-history {
  display: grid;
  gap: 10px;
}

.loyal-notification-history__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loyal-notification-history__item.is-unread {
  border-color: rgba(229, 57, 53, 0.45);
  background: rgba(229, 57, 53, 0.08);
}

.loyal-notification-history__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.loyal-notification-history__top strong {
  font-size: 14px;
  line-height: 1.35;
  color: #fff4ea;
}

.loyal-notification-history__top span {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(244, 239, 233, 0.56);
}

.loyal-notification-history__channel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(228, 177, 136, 0.88);
}

.loyal-notification-history__message {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 239, 233, 0.82);
}

.loyal-section--menu {
  min-height: 70vh;
}

.loyal-menu {
  display: grid;
  gap: 12px;
}

.loyal-menu__toolbar {
  display: grid;
  gap: 8px;
}

.loyal-menu__toolbar-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.loyal-menu__search {
  margin: 0;
}

.loyal-menu__search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.loyal-menu__count {
  font-size: 12px;
  color: rgba(244, 239, 233, 0.62);
  padding: 0 4px;
}

.loyal-menu__filters {
  position: relative;
  margin-left: auto;
}

.loyal-menu__filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 239, 233, 0.82);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.loyal-menu__filter-toggle.is-active,
.loyal-menu__filters.is-open .loyal-menu__filter-toggle {
  background: rgba(197, 132, 79, 0.22);
  border-color: rgba(228, 177, 136, 0.34);
  color: #fff4ea;
}

.loyal-menu__filter-toggle:active {
  transform: scale(0.98);
}

.loyal-menu__filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(320px, calc(100vw - 56px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 15, 13, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loyal-menu__filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loyal-menu__filter-head strong {
  font-size: 13px;
  font-weight: 800;
  color: #fff4ea;
}

.loyal-menu__filter-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.loyal-menu__filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 239, 233, 0.88);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.loyal-menu__filter-option input {
  width: 16px;
  height: 16px;
  accent-color: #c5844f;
}

.loyal-menu__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loyal-menu-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(18, 15, 13, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.loyal-menu-section__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.loyal-menu-grid {
  display: grid;
  gap: 10px;
}

.loyal-menu-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 138px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.loyal-menu-card.is-stopped {
  opacity: 0.78;
}

.loyal-menu-card__media {
  position: relative;
  min-height: 138px;
  background: rgba(255, 255, 255, 0.04);
}

.loyal-menu-card__image,
.loyal-menu-card__placeholder {
  width: 100%;
  height: 100%;
}

.loyal-menu-card__image {
  display: block;
  object-fit: cover;
}

.loyal-menu-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.loyal-menu-card__placeholder img {
  width: 72%;
  height: auto;
  object-fit: contain;
  opacity: 0.24;
}

.loyal-menu-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  height: 100%;
}

.loyal-menu-card__heading {
  display: grid;
  gap: 4px;
  min-height: 40px;
}

.loyal-menu-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loyal-menu-card__stop {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 86, 86, 0.16);
  border: 1px solid rgba(255, 86, 86, 0.24);
  color: #ffcbc6;
  font-size: 11px;
  font-weight: 700;
}

.loyal-menu-card__desc {
  margin: 0;
  min-height: 34px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(244, 239, 233, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loyal-menu-card__desc.is-empty {
  opacity: 0;
}

.loyal-menu-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: rgba(244, 239, 233, 0.7);
  font-size: 12px;
}

.loyal-menu-card__meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loyal-menu-card__price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff4ea;
  white-space: nowrap;
}

.loyal-menu-card__info {
  display: grid;
  gap: 6px;
  min-height: 14px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(244, 239, 233, 0.56);
}

.loyal-menu-card__info div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loyal-menu-card__allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.loyal-menu-card__allergen {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 239, 233, 0.72);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.loyal-menu-card__allergen.is-match {
  background: rgba(207, 84, 84, 0.18);
  border-color: rgba(255, 146, 146, 0.28);
  color: #ffd4d4;
}

.loyal-menu-card__feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loyal-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 239, 233, 0.74);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.loyal-feedback-btn__icon {
  font-size: 13px;
  line-height: 1;
}

.loyal-feedback-btn.is-active {
  background: rgba(197, 132, 79, 0.22);
  border-color: rgba(228, 177, 136, 0.34);
  color: #fff4ea;
}

.loyal-feedback-btn:active {
  transform: scale(0.98);
}

.loyal-menu-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: auto;
}

.loyal-menu-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.loyal-menu-qty.is-disabled {
  opacity: 0.5;
}

.loyal-menu-qty button {
  border: 0;
  background: transparent;
  color: #e4b188;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.loyal-menu-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.loyal-menu-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  color: #fff4ea;
}

.loyal-menu-card__add {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  margin-left: auto;
  background: #c5844f;
  color: #1b120c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.loyal-menu-card__add:active {
  transform: scale(0.98);
}

.loyal-menu-card__add.is-disabled,
.loyal-menu-card__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loyal-empty--menu {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 18px;
}

.loyal-menu-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1150;
}

.loyal-menu-cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.loyal-menu-cart {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: rgba(18, 15, 13, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -20px 0 44px rgba(0, 0, 0, 0.32);
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 1160;
}

.loyal-menu-cart.is-open {
  transform: translateX(0);
}

.loyal-menu-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.loyal-menu-cart__header h3 {
  margin: 0;
  font-size: 20px;
}

.loyal-menu-cart__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.loyal-menu-cart__login {
  display: grid;
  gap: 10px;
  padding: 0 18px 12px;
}

.loyal-menu-session {
  font-size: 13px;
  color: rgba(244, 239, 233, 0.78);
}

.loyal-menu-session__hint {
  font-size: 13px;
  color: rgba(244, 239, 233, 0.66);
  line-height: 1.5;
}

.loyal-menu-cart__body {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 0 18px 14px;
  overflow-y: auto;
}

.loyal-menu-cart__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.loyal-menu-cart__item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.loyal-menu-cart__item p {
  margin: 0;
  font-size: 12px;
  color: rgba(244, 239, 233, 0.62);
}

.loyal-menu-cart__empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(244, 239, 233, 0.66);
}

.loyal-menu-cart__footer {
  display: grid;
  gap: 12px;
  padding: 16px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 15, 13, 0.98);
}

.loyal-menu-cart__total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.loyal-menu-cart__actions {
  display: grid;
  gap: 10px;
}

.loyal-menu-cart__status {
  min-height: 18px;
  margin: 0;
}

.loyal-menu-fab {
  position: fixed;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #c5844f;
  color: #1b120c;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(197, 132, 79, 0.28);
  cursor: pointer;
  z-index: 1140;
}

.loyal-menu-fab__count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #7f542e;
  font-size: 12px;
  text-align: center;
}

.loyal-menu-login-modal__hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.68);
}

.loyal-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loyal-cards-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.loyal-cards-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(197, 132, 79, 0.9);
  box-shadow: 0 0 8px rgba(197, 132, 79, 0.8);
  animation: loyal-pulse 1.4s ease-in-out infinite;
}

.loyal-create-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.loyal-create-card__button {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4efe9;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease;
}

.loyal-create-card__button:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.loyal-create-card__button:active {
  transform: scale(0.98);
}

.loyal-create-card__button.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.loyal-create-card__plus {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.loyal-create-card__note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.7;
}

.loyal-card-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(207, 147, 96, 0.25), rgba(26, 18, 14, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 160ms ease, border-color 200ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.loyal-card-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.loyal-card-item:active {
  transform: scale(0.985);
}

.loyal-card-item.is-priority {
  border-color: rgba(197, 132, 79, 0.7);
  background: linear-gradient(140deg, rgba(207, 147, 96, 0.35), rgba(26, 18, 14, 0.96));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.loyal-card-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.loyal-card-item__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.loyal-card-item__preview {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loyal-card-item__preview img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.loyal-card-item__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.loyal-card-item__stripe {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #090705, #1f1610);
  opacity: 0.85;
}

.loyal-card-item__bottom {
  display: flex;
  justify-content: flex-end;
}

.loyal-card-item__number {
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
}

.loyal-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loyal-gifts-panel {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.loyal-payments-panel {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.loyal-section__head--payments {
  align-items: center;
}

.loyal-payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.loyal-payment-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  width: 100%;
  padding: 14px 18px;
  text-decoration: none;
}

.loyal-payment-button--image {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.loyal-payment-button__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loyal-payment-button__image {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 40px;
  object-fit: contain;
}

.loyal-section__head--gifts {
  align-items: center;
  flex-wrap: nowrap;
}

.loyal-section__actions--gifts {
  gap: 8px;
}

.loyal-gifts-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.loyal-gifts-summary {
  display: grid;
  gap: 8px;
}

.loyal-gifts-summary__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.loyal-gifts-summary__top strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.loyal-gifts-summary__top span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(228, 177, 136, 0.1);
  border: 1px solid rgba(228, 177, 136, 0.18);
  font-size: 12px;
  color: rgba(255, 241, 229, 0.84);
}

.loyal-gifts-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.loyal-gifts-timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(228, 177, 136, 0.86) 0%, rgba(92, 61, 39, 0.2) 100%);
}

.loyal-gift-entry {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.loyal-gift-entry__marker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.loyal-gift-entry--visit .loyal-gift-entry__marker-wrap {
  min-height: 24px;
  padding-top: 6px;
}

.loyal-gift-entry__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 8px rgba(23, 17, 14, 0.96);
}

.loyal-gift-entry__dot.is-active {
  background: #d79b69;
  border-color: rgba(255, 244, 233, 0.54);
}

.loyal-gift-entry__date {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding-top: 1px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(244, 239, 233, 0.78);
}

.loyal-gift-item__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 8px rgba(23, 17, 14, 0.96);
  color: rgba(244, 239, 233, 0.9);
  font-size: 22px;
  line-height: 1;
}

.loyal-gift-entry--pending .loyal-gift-item__marker {
  background: rgba(197, 132, 79, 0.22);
  border-color: rgba(228, 177, 136, 0.38);
  color: #fff4ea;
}

.loyal-gift-entry--issued .loyal-gift-item__marker {
  background: rgba(109, 171, 118, 0.22);
  border-color: rgba(140, 209, 150, 0.34);
  color: #eaf9ed;
}

.loyal-gift-entry--locked .loyal-gift-item__marker {
  opacity: 0.58;
}

.loyal-gift-item__body {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(207, 147, 96, 0.25), rgba(26, 18, 14, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.loyal-gift-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.loyal-gift-item__top strong {
  font-size: 14px;
  line-height: 1.35;
}

.loyal-gift-item__status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.loyal-gift-item__status--locked {
  color: rgba(244, 239, 233, 0.56);
}

.loyal-gift-item__status--pending {
  color: #f2d08f;
}

.loyal-gift-item__status--issued {
  color: #9fdb94;
}

.loyal-gift-item__desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(244, 239, 233, 0.74);
}

.loyal-gift-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(244, 239, 233, 0.58);
}

.loyal-gifts-help-modal__text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 239, 233, 0.82);
}

.loyal-gifts-help-modal__link {
  margin-top: 6px;
}

.loyal-history-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  transition: border-color 200ms ease, background 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.loyal-history-item__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.loyal-history-item__row span {
  opacity: 0.7;
}


.loyal-history-item__meta {
  font-size: 12px;
  opacity: 0.7;
}

.loyal-history-item__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 233, 0.58);
}

.loyal-history-item__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.loyal-history-item__status--confirmed {
  color: #9fdb94;
}

.loyal-history-item__status--declined {
  color: #f3a6a6;
}

.loyal-history-item__status--pending {
  color: #f2d08f;
}

.loyal-empty {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.loyal-empty a {
  color: #e4b188;
}

.loyal-phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loyal-phone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 14px;
}

.loyal-phone button {
  border: none;
  background: transparent;
  color: #e4b188;
  font-size: 12px;
  cursor: pointer;
}

.loyal-passkeys {
  display: grid;
  gap: 10px;
}

@media (max-width: 680px) {
  .loyal-menu__toolbar-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .loyal-menu__filters {
    width: 100%;
    margin-left: 0;
  }

  .loyal-menu__filter-toggle {
    width: 100%;
  }

  .loyal-menu__filter-panel {
    left: 0;
    right: 0;
    width: auto;
  }
}

@media (max-width: 420px) {
  .loyal-gift-entry {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .loyal-gifts-timeline::before {
    left: 19px;
  }

  .loyal-gift-item__body {
    min-height: 88px;
    padding: 12px 14px;
  }
}

.loyal-empty--passkeys {
  margin: 0;
}

.loyal-passkey {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loyal-passkey__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.loyal-passkey__title {
  font-size: 15px;
  font-weight: 700;
}

.loyal-passkey__meta {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.68);
}

.loyal-passkey__remove {
  width: auto;
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 86, 86, 0.28);
  background: rgba(255, 86, 86, 0.12);
  color: #ffbfbf;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.loyal-passkey__remove:hover {
  background: rgba(255, 86, 86, 0.18);
  border-color: rgba(255, 86, 86, 0.4);
}

.loyal-passkey__remove:active {
  transform: scale(0.98);
}

.loyal-panel__actions--passkeys {
  margin-top: 12px;
}

.loyal-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loyal-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.loyal-profile div span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.loyal-profile div strong {
  font-size: 15px;
}

.loyal-panel--actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loyal-panel--actions .loyal-secondary,
.loyal-panel--actions .loyal-ghost {
  width: 100%;
}

.loyal-modal__actions--stack {
  grid-template-columns: 1fr;
}

@media (max-width: 560px) {
  .loyal-notification-setting {
    align-items: flex-start;
  }

  .loyal-notification-history__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.loyal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  animation: loyal-fade-in 220ms ease-out both;
}

.loyal-modal[hidden] {
  display: none;
}

.loyal-modal__inner {
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: rgba(18, 15, 13, 0.96);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  text-align: center;
  animation: loyal-pop 240ms ease-out both;
}

.loyal-modal__inner--form {
  max-width: 420px;
  text-align: left;
}

.loyal-modal__inner--form .loyal-modal__title,
.loyal-modal__inner--form > p {
  text-align: center;
}

.loyal-onboarding-modal {
  max-width: 420px;
}

.loyal-consent {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loyal-consent__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.loyal-consent__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #c5844f;
}

.loyal-consent__copy {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 239, 233, 0.86);
}

.loyal-consent__copy a {
  color: #e4b188;
  text-decoration-color: rgba(228, 177, 136, 0.45);
  text-underline-offset: 3px;
}

.loyal-consent__copy a:hover {
  text-decoration-color: rgba(228, 177, 136, 0.9);
}

.loyal-sms-modal {
  max-width: 420px;
}

.loyal-sms-modal__lead {
  margin: 0 0 16px;
  line-height: 1.5;
  opacity: 0.8;
}

.loyal-sms-modal__lead strong {
  color: #fff;
}

.loyal-sms-modal__note {
  margin: -6px 0 10px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.62);
}

.loyal-sms-modal__note a {
  color: #cfab87;
  text-decoration-color: rgba(207, 171, 135, 0.45);
  text-underline-offset: 3px;
}

.loyal-sms-modal form {
  display: grid;
  gap: 12px;
}

.loyal-sms-modal__send {
  display: grid;
  gap: 8px;
}

.loyal-sms-modal__timer {
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(244, 239, 233, 0.72);
}

.loyal-code-input {
  position: relative;
}

.loyal-code-input__control {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  color: transparent;
  caret-color: transparent;
  z-index: 2;
}

.loyal-code-input__control:focus {
  outline: none;
}

.loyal-code-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.loyal-code-display__slot {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: rgba(244, 239, 233, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.loyal-code-display__slot.is-filled {
  border-color: rgba(232, 181, 140, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.loyal-code-display__slot.is-active {
  border-color: rgba(232, 181, 140, 0.92);
  box-shadow: 0 0 0 4px rgba(223, 164, 110, 0.14);
  transform: translateY(-1px);
}

.loyal-success {
  text-align: center;
  max-width: 360px;
}

.loyal-success p {
  margin: 8px 0 0;
  opacity: 0.8;
  font-size: 14px;
}

.loyal-card-modal {
  max-width: 420px;
  text-align: center;
}

.loyal-card-modal__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.loyal-card-modal__label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.loyal-card-modal .loyal-modal__title {
  font-size: 20px;
  margin: 0;
}

.loyal-card-modal__number {
  font-size: 22px;
  letter-spacing: 0.18em;
  margin: 8px 0 10px;
  opacity: 0.85;
}

.loyal-card-modal__balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.loyal-card-modal__balance span {
  font-size: 22px;
  opacity: 0.9;
}

.loyal-card-modal__balance strong {
  font-size: 22px;
}

.loyal-card-modal__qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
}

.loyal-card-modal__refresh {
  margin-top: 6px;
}

.loyal-card-modal .loyal-toggle--switch,
.loyal-card-modal [data-card-modal-delete] {
  display: none !important;
}

.loyal-guide-modal {
  max-width: 520px;
  text-align: left;
}

.loyal-guide-progress {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.loyal-guide-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.loyal-guide-progress__top span {
  color: rgba(242, 208, 143, 0.96);
  font-weight: 700;
}

.loyal-guide-progress__track {
  position: relative;
  height: 68px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.loyal-guide-progress__track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 25px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loyal-guide-progress__track [data-guide-progress-bar] {
  position: absolute;
  left: 0;
  top: 25px;
  display: block;
  width: 0%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c5844f, #f2d08f);
  transition: width 280ms ease;
  z-index: 1;
}

.loyal-guide-progress__points {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.loyal-guide-reward-point {
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
  display: inline-grid;
  place-items: center;
  gap: 4px;
  min-width: 46px;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4efe9;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.loyal-guide-reward-point__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 6px rgba(23, 17, 14, 0.96);
  font-size: 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.loyal-guide-reward-point__count {
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(23, 17, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 239, 233, 0.88);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.loyal-guide-reward-point--pending .loyal-guide-reward-point__icon {
  background: rgba(197, 132, 79, 0.26);
  border-color: rgba(228, 177, 136, 0.44);
  color: #fff4ea;
}

.loyal-guide-reward-point--issued .loyal-guide-reward-point__icon {
  background: rgba(109, 171, 118, 0.24);
  border-color: rgba(140, 209, 150, 0.4);
  color: #eaf9ed;
}

.loyal-guide-reward-point--locked {
  opacity: 0.64;
}

.loyal-guide-reward-point:hover .loyal-guide-reward-point__icon,
.loyal-guide-reward-point:focus-visible .loyal-guide-reward-point__icon {
  transform: translateY(-1px);
  border-color: rgba(242, 208, 143, 0.46);
}

.loyal-guide-reward-popover {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: grid;
  place-items: center;
  padding: 22px;
}

.loyal-guide-reward-popover[hidden] {
  display: none;
}

.loyal-guide-reward-popover__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
  cursor: pointer;
}

.loyal-guide-reward-popover__dialog {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  padding: 16px 42px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(242, 208, 143, 0.26);
  background: rgba(31, 21, 15, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  color: #f4efe9;
  animation: loyal-pop 180ms ease-out both;
}

.loyal-guide-reward-popover__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f4efe9;
  cursor: pointer;
}

.loyal-guide-reward-popover__eyebrow,
.loyal-guide-reward-popover span {
  color: rgba(242, 208, 143, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.loyal-guide-reward-popover strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.loyal-guide-reward-popover p {
  margin: 6px 0;
  color: rgba(244, 239, 233, 0.76);
  font-size: 13px;
  line-height: 1.4;
}

.loyal-guide-place-popover {
  position: fixed;
  inset: 0;
  z-index: 1003;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 28px 22px;
}

.loyal-guide-place-popover[hidden] {
  display: none;
}

.loyal-guide-place-popover__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

.loyal-guide-place-popover__dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 16px 42px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(242, 208, 143, 0.26);
  background: rgba(31, 21, 15, 0.98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  color: #f4efe9;
  animation: loyal-pop 180ms ease-out both;
}

.loyal-guide-place-popover__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #f4efe9;
  cursor: pointer;
}

.loyal-guide-place-popover__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.loyal-guide-place-popover__eyebrow {
  color: rgba(242, 208, 143, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.loyal-guide-place-popover strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.loyal-guide-place-popover p {
  margin: 8px 0 14px;
  color: rgba(244, 239, 233, 0.82);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.loyal-guide-place-popover__routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.loyal-booking-unavailable p {
  margin: 0;
  color: rgba(244, 239, 233, 0.82);
  line-height: 1.5;
}

.loyal-guide-list {
  display: grid;
  gap: 12px;
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding-right: 2px;
}

.loyal-guide-place {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 156px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.loyal-guide-place.is-completed {
  border-color: rgba(140, 209, 150, 0.34);
  background: rgba(109, 171, 118, 0.12);
}

.loyal-guide-place__media {
  width: 100%;
  min-height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(197, 132, 79, 0.24), rgba(255, 255, 255, 0.08));
  display: grid;
  place-items: center;
  color: rgba(244, 239, 233, 0.9);
  font-size: 30px;
  font-weight: 800;
}

.loyal-guide-place__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loyal-guide-place__content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.loyal-guide-place__body {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.loyal-guide-place__body:focus-visible {
  outline: 2px solid rgba(242, 208, 143, 0.65);
  outline-offset: 3px;
}

.loyal-guide-place__body strong {
  font-size: 15px;
}

.loyal-guide-place__body span {
  margin: 0;
  color: rgba(244, 239, 233, 0.76);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loyal-guide-place__routes,
.loyal-guide-place__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.loyal-guide-place__actions {
  grid-template-columns: 1fr;
}

.loyal-guide-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.loyal-guide-place .loyal-primary {
  min-height: 38px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 430px) {
  .loyal-guide-place {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
    min-height: 142px;
    padding: 12px;
  }

  .loyal-guide-place__media {
    min-height: 118px;
  }

  .loyal-guide-route {
    min-height: 32px;
    padding: 0 8px;
  }
}

.loyal-card-modal .loyal-modal__meta {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 12px;
}

.loyal-card-modal__meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.loyal-toggle--switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.loyal-toggle--switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.loyal-toggle__label {
  font-size: 13px;
  opacity: 0.85;
}

.loyal-toggle__track {
  width: 46px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  position: relative;
  transition: background 200ms ease;
}

.loyal-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4efe9;
  transition: transform 200ms ease, background 200ms ease;
}

.loyal-toggle--switch input:checked + .loyal-toggle__label + .loyal-toggle__track {
  background: rgba(197, 132, 79, 0.8);
}

.loyal-toggle--switch input:checked + .loyal-toggle__label + .loyal-toggle__track::after {
  transform: translateX(22px);
  background: #1b120c;
}

.loyal-modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: none;
  background: transparent;
  color: #f4efe9;
  font-size: 22px;
  cursor: pointer;
}

.loyal-modal__title {
  margin: 0 0 6px;
  font-size: 18px;
}

.loyal-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.loyal-modal__actions .loyal-primary,
.loyal-modal__actions .loyal-secondary {
  width: 100%;
}

.loyal-modal__number {
  margin: 0 0 14px;
  font-size: 14px;
  opacity: 0.7;
}

.loyal-modal__qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: default;
  --qr-dark: #2a1c14;
  --qr-light: #fff7ed;
  --qr-radius: 0.28;
}

.loyal-modal__qr svg,
.loyal-modal__qr canvas {
  width: 100%;
  height: 100%;
}

.loyal-modal__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-size: 12px;
  margin-bottom: 14px;
}

.loyal-modal__meta span {
  display: block;
  opacity: 0.85;
  margin-bottom: 4px;
  font-size: 16px;
}

.loyal-modal__meta strong {
  font-size: 16px;
}

.loyal-booking {
  text-align: left;
}


.loyal-booking .loyal-modal {
  z-index: 1001;
}

.loyal-booking {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
}

.loyal-booking .loyal-modal__title {
  margin-bottom: 0;
}

.loyal-booking form {
  display: grid;
  gap: 12px;
}

.loyal-booking .loyal-field {
  display: grid;
  gap: 8px;
}

.loyal-booking .loyal-field input,
.loyal-booking .loyal-field select,
.loyal-booking .loyal-field textarea,
.loyal-booking .loyal-primary,
.loyal-booking .loyal-secondary {
  width: 100%;
}

.loyal-booking .loyal-field input,
.loyal-booking .loyal-field select,
.loyal-booking .loyal-field textarea,
.loyal-booking .loyal-primary,
.loyal-booking .loyal-secondary,
.loyal-booking-date__display {
  min-height: 48px;
}

.loyal-booking .loyal-field textarea {
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 96px;
  resize: vertical;
}

.loyal-booking-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.loyal-booking-toggle button {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #f4efe9;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 48px;
}

.loyal-booking-toggle button.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.loyal-booking-date {
  display: grid;
  grid-template-columns: minmax(132px, 148px) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.loyal-booking-date__display {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
}

.loyal-booking-picker {
  max-width: 320px;
}

.loyal-booking-picker .loyal-field {
  display: grid;
  gap: 8px;
}

.loyal-booking-picker .loyal-field input,
.loyal-booking-picker .loyal-field select {
  width: 100%;
  min-height: 48px;
}

.loyal-booking-picker__actions {
  display: flex;
  gap: 10px;
}

.loyal-booking-picker__actions .loyal-secondary,
.loyal-booking-picker__actions .loyal-primary {
  width: 100%;
  min-height: 48px;
}

.loyal-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 360px) {
  .loyal-booking-date {
    grid-template-columns: 1fr;
  }

  .loyal-modal__meta {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.loyal-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.loyal-qr-overlay[hidden] {
  display: none;
}

.loyal-qr-overlay__inner {
  width: 100%;
  max-width: 320px;
  background: rgba(18, 15, 13, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px 18px;
  text-align: center;
}

.loyal-qr-overlay__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.loyal-toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  transform: translate(-50%, 14px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(28, 21, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4efe9;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 1200;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.loyal-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.loyal-offline-popup {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 28px));
  z-index: 1300;
  animation: loyal-fade-up 220ms ease-out both;
}

.loyal-offline-popup__body {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 44px 14px 16px;
  border-radius: 18px;
  background: rgba(24, 20, 17, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.loyal-offline-popup__body strong {
  font-size: 14px;
}

.loyal-offline-popup__body span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 239, 233, 0.8);
}

.loyal-offline-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.loyal-splash {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(58, 42, 34, 0.94) 0%, rgba(18, 15, 13, 0.98) 52%, rgba(8, 8, 8, 0.99) 100%);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.loyal-splash[hidden] {
  display: none;
}

.loyal-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loyal-splash__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.loyal-splash__inner img {
  width: min(240px, 62vw);
  height: auto;
}

.loyal-splash__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(228, 177, 136, 0.92);
  animation: loyal-spin 0.8s linear infinite;
}

.loyal-qr-full {
  width: 240px;
  height: 240px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loyal-qr-full svg,
.loyal-qr-full canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 420px) {
  .loyal-passkey {
    flex-direction: column;
    align-items: stretch;
  }

  .loyal-passkey__remove {
    width: 100%;
  }
}

@media (min-width: 600px) {
  .loyal-shell {
    padding-bottom: 40px;
  }
}

@keyframes loyal-shell-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes loyal-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loyal-section-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loyal-card-float {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loyal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes loyal-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loyal-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loyal-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

