@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --ekho-bg: #f8fafc;
  --ekho-bg-page: #f1f5f9;
  --ekho-surface: #ffffff;
  --ekho-surface-soft: #f8fafc;
  --ekho-primary: #0f172a;
  --ekho-primary-soft: #1e293b;
  --ekho-accent: #0284c7;
  --ekho-accent-hover: #0369a1;
  --ekho-accent-soft: rgba(2, 132, 199, 0.12);
  --ekho-accent-soft-2: rgba(2, 132, 199, 0.06);
  --ekho-text: #0f172a;
  --ekho-muted: #334155;
  --ekho-muted-soft: #64748b;
  --ekho-error: #c62828;
  --ekho-error-ink: var(--ekho-error);
  --ekho-success: #2e7d32;
  --ekho-border: #e2e8f0;
  --ekho-border-soft: #f1f5f9;
  --ekho-focus: #0284c7;
  --ekho-accent: #0284c7;
  --ekho-accent-soft: #e0f2fe;
  --ekho-success-soft: #dcfce7;
  --ekho-success-ink: #14532d;
  --ekho-success-border-callout: #15803d;
  --ekho-accent-ink: #0a3d5c;
  --ekho-warning: #b45309;
  --ekho-warning-soft: #fef3c7;
  --ekho-outline-hover: #e5ecf4;
  --ekho-outline-border-hover: #b8c9dc;
  --ekho-clients-merchant-bg: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  --ekho-clients-stats-bg: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
  --ekho-clients-stats-border: rgba(2, 132, 199, 0.22);
  --ekho-clients-loyalty-bg: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  --ekho-clients-loyalty-border: rgba(22, 163, 74, 0.22);
  --ekho-clients-billit-bg: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  --ekho-clients-billit-border: rgba(180, 83, 9, 0.2);
  --ekho-clients-actions-bg: #f8fafc;
  --ekho-radius: 12px;
  --ekho-touch: 44px;
  --ekho-font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ekho-transition: 0.15s ease;
  --ekho-spin-plate-gift: #fff7ed;
  --ekho-spin-plate-lose: #f1f5f9;
  --ekho-spin-plate-wedge: rgba(255, 255, 255, 0.94);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ekho-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ekho-text);
  background: var(--ekho-bg-page);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ekho-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 4vw, 2rem);
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
  padding-bottom: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-bottom));
  max-width: 42rem;
  margin: 0 auto;
}

.ekho-admin-page {
  max-width: 64rem;
}

body:has(> .ekho-page.ekho-admin-page) {
  scroll-behavior: smooth;
}

.ekho-admin-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ekho-bg);
  padding-bottom: 0.5rem;
}

.ekho-admin-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ekho-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.ekho-admin-title {
  margin: 0;
  font-size: 1.35rem;
}

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

.ekho-admin-user {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ekho-muted);
}

.ekho-admin-brevo-strip {
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ekho-radius);
  background: var(--ekho-outline-hover);
  border: 1px solid var(--ekho-border);
}

.ekho-admin-brevo-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  color: var(--ekho-muted);
}

.ekho-admin-brevo-kicker {
  font-weight: 600;
  color: var(--ekho-fg);
}

.ekho-admin-brevo-detail {
  flex: 1 1 12rem;
  min-width: 0;
}

.ekho-admin-brevo-muted {
  color: var(--ekho-muted);
}

.ekho-admin-brevo-link {
  font-size: 0.8rem;
  white-space: nowrap;
}

.ekho-admin-nav {
  display: flex;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--ekho-border);
  gap: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.ekho-admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ekho-touch);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ekho-muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.ekho-admin-tab-active {
  color: var(--ekho-primary);
  background-color: var(--ekho-outline-hover);
  border-color: var(--ekho-outline-border-hover);
  font-weight: 600;
}

.ekho-admin-main {
  margin-top: 1.25rem;
}

.ekho-admin-card {
  margin-bottom: 2rem;
}

.ekho-modif-hero .ekho-modif-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.ekho-modif-hero .ekho-modif-title-row h2 {
  margin: 0;
}

.ekho-modif-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.ekho-modif-badges .ekho-badge {
  font-size: 0.75rem;
}

.ekho-modif-lead {
  font-size: 0.9rem;
  color: var(--ekho-muted);
  margin: 0 0 1rem;
  max-width: 44rem;
  line-height: 1.45;
}

.ekho-modif-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  margin: 0 0 1.25rem;
  padding: 0.6rem 0.75rem;
  background: var(--ekho-outline-hover);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
}

.ekho-modif-toc-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ekho-muted);
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.ekho-modif-toc a {
  font-size: 0.82rem;
  color: var(--ekho-primary);
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.ekho-modif-toc a:hover {
  background: var(--ekho-bg);
  border-color: var(--ekho-outline-border-hover);
}

.ekho-modif-toc a:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 2px;
}

.ekho-admin-coords-grid {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 36rem) {
  .ekho-admin-coords-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ekho-admin-coords-grid .ekho-coords-span-2 {
    grid-column: 1 / -1;
  }
}

.ekho-modif-save-card {
  background: linear-gradient(180deg, var(--ekho-outline-hover) 0%, var(--ekho-bg) 100%);
  border: 1px solid var(--ekho-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.ekho-modif-save-card .ekho-form-submit-wrap {
  margin: 0;
  padding: 0.25rem 0;
}

.ekho-modif-save-card .ekho-config-title {
  margin-bottom: 0.5rem;
}

.ekho-admin-section-collapse {
  margin: 0;
  padding: 0;
  border: none;
}

.ekho-admin-section-collapse-inner > .ekho-modif-lead {
  margin-top: 0;
}

.ekho-admin-section-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ekho-text);
  margin: 0;
  padding: 0.1rem 0 0.85rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ekho-admin-section-collapse:not([open]) > .ekho-admin-section-summary {
  padding-bottom: 0.35rem;
}

.ekho-admin-section-summary::-webkit-details-marker {
  display: none;
}

.ekho-admin-section-summary::before {
  content: '▸';
  font-size: 0.65em;
  color: var(--ekho-muted);
  line-height: 1;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.ekho-admin-section-collapse[open] > .ekho-admin-section-summary::before {
  transform: rotate(90deg);
}

.ekho-admin-section-summary:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.ekho-admin-section-collapse[open] > .ekho-admin-section-summary {
  border-bottom: 1px solid var(--ekho-border);
  margin-bottom: 0.85rem;
}

.ekho-admin-section-collapse-inner {
  padding-top: 0.05rem;
}

.ekho-admin-main > section[id],
.ekho-admin-main > nav + form > section[id] {
  scroll-margin-top: 1.25rem;
}

.ekho-card-inscription .ekho-inscription-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--ekho-text);
}

.ekho-form-quick fieldset {
  margin-top: 0;
}

.ekho-btn-submit {
  margin-top: 1.25rem;
}

.ekho-success-inscription .ekho-success-link {
  word-break: break-all;
  font-size: 0.85rem;
}

.ekho-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ekho-btn-success-link {
  flex: 1;
  min-width: 8rem;
  text-align: center;
  text-decoration: none;
}

.ekho-success-actions .ekho-btn-outline {
  flex: 1;
  min-width: 8rem;
  cursor: pointer;
}

.ekho-details {
  margin-top: 1rem;
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  background: rgba(255, 255, 255, 0.5);
}

.ekho-details[open] {
  border-color: var(--ekho-accent);
  background: var(--ekho-surface);
}

.ekho-details summary {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ekho-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ekho-details summary::-webkit-details-marker,
.ekho-details summary::marker {
  display: none;
}

.ekho-details summary::before {
  content: '▸';
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.ekho-details[open] summary::before {
  transform: rotate(90deg);
}

.ekho-details-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ekho-muted);
}

.ekho-details fieldset {
  padding: 0 1rem 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--ekho-border);
}

.ekho-details .ekho-checkbox {
  margin-top: 1rem;
}

.ekho-stats-summary {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(44, 62, 80, 0.04);
  border-radius: var(--ekho-radius);
  border-left: 4px solid var(--ekho-primary);
}

.ekho-stats-summary p {
  margin: 0.35rem 0;
}

.ekho-qr-hint {
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.ekho-qr-block {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--ekho-surface, #f5f5f5);
  border-radius: var(--ekho-radius, 0.5rem);
  border: 1px solid var(--ekho-border, #ddd);
}

.ekho-qr-img {
  display: block;
  max-width: 280px;
  height: auto;
}

.ekho-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ekho-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--ekho-surface);
  border-radius: var(--ekho-radius);
  border: 1px solid var(--ekho-border);
}

.ekho-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ekho-primary);
}

.ekho-stat-label {
  font-size: 0.8rem;
  color: var(--ekho-muted);
  line-height: 1.3;
}

.ekho-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ekho-stats-search-wrapper {
  position: relative;
  margin: 1rem 0;
}

.ekho-stats-search-input {
  width: 100%;
  min-height: var(--ekho-touch);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  -webkit-appearance: none;
  appearance: none;
}

@media (max-width: 767px) {
  .ekho-stats-search-input {
    font-size: 16px;
  }
}

.ekho-stats-search-input:focus {
  outline: none;
  border-color: var(--ekho-focus);
  box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.2);
}

.ekho-stats-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  margin-top: 0.25rem;
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.ekho-stats-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--ekho-border);
  -webkit-tap-highlight-color: transparent;
}

.ekho-stats-result-item:last-of-type {
  border-bottom: none;
}

.ekho-stats-result-item {
  transition: background var(--ekho-transition);
}
.ekho-stats-result-item:hover,
.ekho-stats-result-item:focus {
  background: var(--ekho-outline-hover);
}

.ekho-stats-result-more {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--ekho-muted);
  background: var(--ekho-surface);
}

.ekho-stats-panel {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.ekho-stats-surface {
  padding: 1rem 1.1rem;
  border-radius: var(--ekho-radius);
  border: 1px solid var(--ekho-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ekho-stats-surface--merchant {
  background: var(--ekho-clients-merchant-bg);
  border-color: var(--ekho-border);
  border-left: 3px solid var(--ekho-muted-soft);
}

.ekho-stats-surface--stats {
  background: var(--ekho-clients-stats-bg);
  border-color: var(--ekho-clients-stats-border);
  border-left: 3px solid #0284c7;
}

.ekho-stats-surface--loyalty {
  background: var(--ekho-clients-loyalty-bg);
  border-color: var(--ekho-clients-loyalty-border);
  border-left: 3px solid #16a34a;
}

.ekho-stats-surface--billit {
  background: var(--ekho-clients-billit-bg);
  border-color: var(--ekho-clients-billit-border);
  border-left: 3px solid #d97706;
}

.ekho-stats-surface--actions {
  background: var(--ekho-clients-actions-bg);
  border-color: var(--ekho-border);
  border-style: dashed;
  border-left: 3px solid var(--ekho-muted-soft);
  padding: 0.85rem 1rem;
}

.ekho-stats-section.ekho-stats-surface {
  margin-top: 0;
  padding: 1rem 1.1rem;
  border-top: none;
}

.ekho-stats-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.ekho-stats-detail-head {
  margin-bottom: 0;
  border-bottom: none;
}

.ekho-stats-detail-head .ekho-stats-selected-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ekho-text);
}

.ekho-stats-detail-head .ekho-stats-selected-theme {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ekho-muted);
}

.ekho-stats-result-theme {
  font-weight: 500;
  color: var(--ekho-muted);
}

.ekho-stats-section:not(.ekho-stats-surface) {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ekho-border);
}

.ekho-stats-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ekho-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ekho-stats-block-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ekho-text);
  letter-spacing: -0.01em;
}

.ekho-stats-block-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--ekho-muted);
  line-height: 1.35;
}

.ekho-stats-detail-inner .ekho-stats-block--primary {
  margin-top: 0;
  border-top: none;
}

.ekho-stats-surface--stats .ekho-stats-metric,
.ekho-stats-surface--stats .ekho-stats-source-row {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(226, 232, 240, 0.95);
}

.ekho-stats-surface--loyalty .ekho-stats-loyalty-week strong {
  color: #15803d;
}

.ekho-stats-surface--billit .ekho-billit-status-card,
.ekho-stats-surface--billit .ekho-billit-linked-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(253, 230, 138, 0.65);
}

.ekho-stats-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (min-width: 520px) {
  .ekho-stats-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ekho-stats-metrics--single {
  grid-template-columns: minmax(0, 11rem);
  max-width: 11rem;
}

.ekho-stats-channels-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(2, 132, 199, 0.25);
}

.ekho-stats-channels-summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ekho-primary);
  list-style: none;
}

.ekho-stats-channels-summary::-webkit-details-marker {
  display: none;
}

.ekho-stats-channels-summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.ekho-stats-channels-details[open] .ekho-stats-channels-summary::before {
  transform: rotate(90deg);
}

.ekho-stats-channels-hint {
  font-weight: 400;
  color: var(--ekho-muted);
  font-size: 0.82rem;
}

.ekho-stats-channels-body {
  margin-top: 0.65rem;
}

.ekho-stats-metric {
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  padding: 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ekho-stats-metric-label {
  font-size: 0.72rem;
  color: var(--ekho-muted);
  line-height: 1.2;
}

.ekho-stats-metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ekho-primary);
  line-height: 1.2;
}

.ekho-stats-source-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ekho-stats-source-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
}

@media (min-width: 480px) {
  .ekho-stats-source-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

.ekho-stats-source-name {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-word;
}

.ekho-stats-source-nums {
  font-size: 0.88rem;
  color: var(--ekho-muted);
  white-space: nowrap;
}

.ekho-stats-source-n {
  font-weight: 700;
  color: var(--ekho-text);
}

.ekho-stats-loyalty .ekho-stats-loyalty-line {
  margin: 0;
  font-size: 0.95rem;
}

.ekho-stats-loyalty-week {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--ekho-text);
  line-height: 1.45;
}

.ekho-stats-loyalty-week strong {
  color: var(--ekho-primary);
}

.ekho-billit-linked-card {
  padding: 0.75rem;
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  margin-bottom: 0.5rem;
}

.ekho-billit-linked-title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ekho-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ekho-billit-linked-body {
  margin: 0;
  font-size: 0.88rem;
  word-break: break-word;
  line-height: 1.4;
}

.ekho-billit-linked-body code {
  font-size: 0.85em;
}

.ekho-billit-empty-hint {
  margin: 0 0 0.5rem !important;
}

.ekho-billit-status-card {
  padding: 0.75rem;
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  margin-top: 0.5rem;
}

.ekho-billit-status-msg {
  margin: 0;
  font-size: 0.95rem;
}

.ekho-billit-status-head {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.ekho-billit-invoice-ref {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--ekho-muted);
}

.ekho-billit-status-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.ekho-billit-k {
  color: var(--ekho-muted);
  font-size: 0.82rem;
  margin-right: 0.35rem;
}

.ekho-stats-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.ekho-stats-action-btn {
  display: inline-flex;
  flex: 1 1 calc(50% - 0.25rem);
  min-width: min(100%, 11rem);
  min-height: var(--ekho-touch);
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .ekho-stats-action-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: unset;
  }
}

.ekho-stats-selected-name {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ekho-primary);
}

.ekho-stats-merchant-name {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ekho-primary);
}

.ekho-stats-merchant-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
}

.ekho-stats-arrow {
  color: var(--ekho-muted);
}

.ekho-stats-ratio {
  color: var(--ekho-muted);
  font-size: 0.9rem;
}

.ekho-stats-merchant-breakdown {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--ekho-muted);
}

.ekho-stats-breakdown-item {
  display: inline-block;
  margin-right: 1rem;
}

.ekho-modif-title {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
}

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

.ekho-select-merchant {
  width: 100%;
  min-height: var(--ekho-touch);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ekho-text);
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6c7d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.ekho-select-merchant:focus {
  outline: none;
  border-color: var(--ekho-focus);
  box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.2);
}

.ekho-config-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.ekho-config-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ekho-text);
}

.ekho-admin-tool-form {
  margin-bottom: 0.75rem;
}

.ekho-admin-tool-divider {
  margin: 1.25rem 0;
  height: 0;
  border: none;
  border-top: 1px solid var(--ekho-border);
}

.ekho-spin-pct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.ekho-spin-pct-row label {
  min-width: 5.5rem;
  flex-shrink: 0;
}

.ekho-input-inline {
  flex: 1 1 10rem;
  min-width: 0;
}

.ekho-pct {
  width: 3.5rem;
}

.ekho-admin-segment-list {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ekho-admin-segment-row {
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  background: rgba(0, 0, 0, 0.02);
}

.ekho-admin-segment-row[open] {
  background: var(--ekho-bg);
}

.ekho-admin-segment-add {
  border-style: dashed;
}

.ekho-admin-segment-summary {
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.ekho-admin-segment-summary-muted {
  font-weight: 500;
  color: var(--ekho-primary);
}

.ekho-admin-segment-panel {
  padding: 0 0.65rem 0.65rem;
  border-top: 1px solid var(--ekho-border);
}

.ekho-admin-segment-panel > label:first-child {
  display: block;
  font-size: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}

.ekho-admin-segment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ekho-admin-segment-name-input {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 26rem;
}

.ekho-segment-create-wrap {
  margin-top: 0;
}

.ekho-segment-create-wrap > label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.ekho-admin-segment-btn-delete {
  border-color: rgba(179, 38, 30, 0.45);
  color: #9a2820;
}

.ekho-admin-form fieldset {
  border: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.ekho-admin-form fieldset:first-of-type {
  margin-top: 0.5rem;
}

.ekho-admin-form legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ekho-text);
  margin-bottom: 0.35rem;
}

.ekho-admin-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ekho-text);
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  resize: vertical;
}

.ekho-admin-form textarea:focus {
  outline: none;
  border-color: var(--ekho-focus);
  box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.2);
}

.ekho-success {
  background: rgba(46, 125, 50, 0.06);
  border: 1px solid var(--ekho-success);
  border-radius: var(--ekho-radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.ekho-success code {
  background: rgba(0, 0, 0, 0.04);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.ekho-btn-outline {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  min-height: var(--ekho-touch);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--ekho-radius);
  border: 1px solid var(--ekho-border);
  background: transparent;
  color: var(--ekho-primary);
  text-decoration: none;
  transition: background var(--ekho-transition), border-color var(--ekho-transition), color var(--ekho-transition);
}

.ekho-btn-outline:focus {
  outline: none;
}
.ekho-btn-outline:hover,
.ekho-btn-outline:focus,
.ekho-btn-outline:focus-visible {
  background: var(--ekho-accent-soft);
  border-color: color-mix(in srgb, var(--ekho-accent) 52%, transparent);
  color: var(--ekho-accent-hover);
}
.ekho-btn-outline:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 2px;
}

.ekho-btn.ekho-btn-outline {
  background: transparent;
  color: var(--ekho-primary);
  border: 1px solid var(--ekho-border);
  box-shadow: none;
}
.ekho-btn.ekho-btn-outline:hover,
.ekho-btn.ekho-btn-outline:focus,
.ekho-btn.ekho-btn-outline:focus-visible {
  background: var(--ekho-accent-soft);
  color: var(--ekho-accent-hover);
  border-color: color-mix(in srgb, var(--ekho-accent) 52%, transparent);
  box-shadow: none;
}

.ekho-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ekho-logo {
  display: inline-block;
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.ekho-merchant-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.ekho-merchant-logo {
  max-height: 96px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
}

.ekho-signup-merchant-logo {
  max-height: clamp(7rem, 28vmin, 10.5rem);
  margin-bottom: 0.85rem;
}

.ekho-merchant-block h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ekho-text);
  text-align: center;
}

.ekho-subtitle {
  margin: 0.5rem auto 0;
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ekho-muted);
}

.ekho-merchant-block .ekho-gift,
.ekho-card-welcome-offer .ekho-gift {
  margin: 1rem 0 0;
  padding: 1.125rem 1.25rem;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ekho-accent-hover);
  text-align: center;
  background: linear-gradient(135deg, var(--ekho-accent-soft) 0%, var(--ekho-accent-soft-2) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--ekho-radius);
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.1);
}

.ekho-card-welcome-offer .ekho-gift {
  margin: 0 0 0.875rem;
}

.ekho-welcome-offer-intro,
.ekho-welcome-offer-detail {
  margin: 0 0 0.875rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ekho-muted-soft);
  text-align: left;
}

.ekho-welcome-offer-detail {
  margin: 0;
}

.ekho-returning-connected-card {
  margin-bottom: 0.5rem;
  padding-bottom: 1.1rem;
  border: 1px solid rgba(2, 132, 199, 0.16);
  background: linear-gradient(165deg, rgba(2, 132, 199, 0.06) 0%, var(--ekho-surface) 38%);
}

.ekho-returning-connected-greet {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--ekho-text);
}

.ekho-returning-connected-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ekho-muted);
  text-align: left;
}

.ekho-returning-completion-notice {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(254, 252, 232, 0.65);
}

.ekho-returning-completion-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ekho-text);
}

.ekho-returning-completion-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--ekho-muted);
}

.ekho-returning-completion-list li + li {
  margin-top: 0.35rem;
}

.ekho-signup-toggle { text-align: center; margin: 0.5rem 0 1rem; }

.ekho-signup-toggle--subtle {
  margin: 0.5rem 0 1.35rem;
  padding: 0 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ekho-signup-modifier-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ekho-muted-soft, #64748b);
  text-decoration: none;
  border-bottom: 1px solid rgba(2, 132, 199, 0.22);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ekho-signup-modifier-link:hover {
  color: var(--ekho-muted, #475569);
  border-bottom-color: rgba(2, 132, 199, 0.42);
}

.ekho-signup-modifier-link:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

button.ekho-signup-modifier-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  display: inline;
  vertical-align: baseline;
}
.ekho-signup-history-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ekho-muted-soft, #64748b);
  text-decoration: none;
  border-bottom: 1px solid rgba(2, 132, 199, 0.22);
  cursor: pointer;
  line-height: 1.2;
}

.ekho-signup-history-link:hover {
  color: var(--ekho-muted, #475569);
  border-bottom-color: rgba(2, 132, 199, 0.42);
}

.ekho-signup-history-link:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.ekho-signup-toggle-separator {
  color: var(--ekho-muted-soft, #64748b);
  font-size: 0.8rem;
  line-height: 1;
}
.ekho-link { color: var(--ekho-accent); text-decoration: underline; text-underline-offset: 2px; }
.ekho-link:hover { color: var(--ekho-accent-hover); }

h1, h2 {
  font-weight: 600;
  color: var(--ekho-text);
  margin: 0 0 0.5rem;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; color: var(--ekho-muted); }

p {
  margin: 0 0 1rem;
  color: var(--ekho-muted);
}

.ekho-card {
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  padding: 1.25rem 1.1rem 1.35rem;
  margin-bottom: 1.5rem;
}

.ekho-card-loyalty {
  background: linear-gradient(135deg, var(--ekho-accent-soft) 0%, var(--ekho-accent-soft-2) 100%);
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.08);
}

.ekho-loyalty-embed {
  margin: 0.5rem 0 0;
  padding: 0.9rem 0.85rem 1rem;
  border-radius: var(--ekho-radius);
  background: var(--ekho-surface-soft);
  border: 1px solid var(--ekho-border);
}

.ekho-signup-section-inner .ekho-loyalty-embed {
  margin-top: 0.65rem;
}

.ekho-signup-section-inner #ekho-signup-collapsible-body {
  margin-top: 0.9rem;
}

.ekho-loyalty-embed-lead {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ekho-text);
  line-height: 1.35;
}

.ekho-loyalty-embed-actions {
  margin: 0;
}

.ekho-loyalty-embed .ekho-btn.ekho-btn-outline.ekho-loyalty-embed-touch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  min-height: calc(var(--ekho-touch, 44px) + 4px);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-width: 2px;
  border-color: var(--ekho-accent);
  color: var(--ekho-accent);
  background: var(--ekho-surface);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18);
  -webkit-tap-highlight-color: rgba(2, 132, 199, 0.12);
  touch-action: manipulation;
}

.ekho-loyalty-embed .ekho-btn.ekho-btn-outline.ekho-loyalty-embed-touch-btn:hover,
.ekho-loyalty-embed .ekho-btn.ekho-btn-outline.ekho-loyalty-embed-touch-btn:focus,
.ekho-loyalty-embed .ekho-btn.ekho-btn-outline.ekho-loyalty-embed-touch-btn:focus-visible {
  background: var(--ekho-accent-soft);
  border-color: var(--ekho-accent-hover);
  color: var(--ekho-accent-hover);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22);
}

.ekho-loyalty-embed .ekho-btn.ekho-btn-outline.ekho-loyalty-embed-touch-btn:active {
  opacity: 0.92;
}

.ekho-card-returning-hub {
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  padding: 1.1rem 1.05rem 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 20px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ekho-returning-standalone-greeting {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  line-height: 1.35;
  color: var(--ekho-text);
  padding: 0 0.4rem;
}

.ekho-returning-standalone-greeting strong {
  font-weight: 700;
  color: var(--ekho-primary);
}

.ekho-returning-hub__header {
  text-align: center;
  margin: 0 0 0.5rem;
  padding-bottom: 0.65rem;
}

.ekho-returning-hub__greeting {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  color: var(--ekho-text);
}

.ekho-returning-hub__greeting strong {
  font-weight: 700;
  color: var(--ekho-primary);
}

.ekho-returning-hub__divide {
  height: 0;
  margin: 0.85rem 0 0.95rem;
  border: 0;
  background: none;
  border-top: 1px solid rgba(2, 132, 199, 0.14);
}

.ekho-spin-in-hub {
  margin: 0.65rem 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.ekho-spin-in-hub .ekho-spin-hero {
  border-radius: var(--ekho-radius, 12px);
}

.ekho-spin-in-hub .ekho-spin-buttons {
  margin-top: 0.5rem;
}

.ekho-loyalty-in-hub {
  margin: 0.35rem 0 0;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.08) 0%, rgba(186, 230, 253, 0.32) 100%);
  border: 1px solid rgba(2, 132, 199, 0.16);
  border-radius: var(--ekho-radius);
  padding: 0.9rem 0.85rem 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.ekho-card-signup {
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.ekho-signup-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.45);
}
.ekho-signup-modal-overlay[hidden] {
  display: none !important;
}
.ekho-signup-modal-dialog {
  max-width: 22rem;
  width: 100%;
  margin: 0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.ekho-signup-modal-dialog h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--ekho-text);
}
.ekho-signup-modal-dialog p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ekho-muted);
}

.ekho-spin-loyalty-modal__shell {
  position: relative;
  width: 100%;
  max-width: min(100vw - 2rem, 28rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  box-sizing: border-box;
  padding: 0;
}

.ekho-spin-loyalty-modal__shell #ekho-spin-signup-slot {
  margin: 0;
}

.ekho-spin-loyalty-modal__close {
  position: absolute;
  z-index: 3;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--ekho-text) 22%, var(--ekho-border) 78%);
  border-radius: var(--ekho-radius, 8px);
  background: color-mix(in srgb, var(--ekho-surface-soft) 72%, var(--ekho-border) 28%);
  color: color-mix(in srgb, var(--ekho-text) 78%, var(--ekho-muted) 22%);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--ekho-text) 14%, transparent),
    0 0 0 1px color-mix(in srgb, #fff 55%, var(--ekho-surface) 45%) inset;
}

.ekho-spin-loyalty-modal__close:hover {
  background: color-mix(in srgb, var(--ekho-surface) 85%, var(--ekho-border) 15%);
  color: var(--ekho-text);
  border-color: color-mix(in srgb, var(--ekho-text) 30%, var(--ekho-border) 70%);
}

.ekho-spin-loyalty-modal__close:focus-visible {
  outline: 2px solid var(--ekho-accent);
  outline-offset: 2px;
}

.ekho-spin-loyalty-modal.ekho-signup-modal-overlay:not([hidden]) {
  animation: ekhoSpinLoyaltyModalBackdropIn 0.4s ease-out both;
}

.ekho-spin-loyalty-modal.ekho-signup-modal-overlay:not([hidden]) .ekho-spin-loyalty-modal__shell {
  animation: ekhoSpinLoyaltyModalShellIn 0.48s cubic-bezier(0.22, 0.9, 0.28, 1) 0.05s both;
}

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

@keyframes ekhoSpinLoyaltyModalShellIn {
  from {
    opacity: 0;
    transform: translateY(0.85rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ekho-spin-loyalty-modal.ekho-signup-modal-overlay:not([hidden]),
  .ekho-spin-loyalty-modal.ekho-signup-modal-overlay:not([hidden]) .ekho-spin-loyalty-modal__shell {
    animation: none !important;
  }
}

.ekho-spin-win-fullscreen-fx {
  position: fixed;
  inset: 0;
  z-index: 10040;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.ekho-spin-win-fullscreen-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(253, 224, 71, 0.62) 0%, transparent 46%),
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--ekho-accent, #0284c7) 48%, transparent) 0%, transparent 54%),
    radial-gradient(ellipse 130% 72% at 50% 18%, color-mix(in srgb, var(--ekho-success, #22c55e) 38%, transparent) 0%, transparent 58%);
}

.ekho-spin-win-fullscreen-fx.ekho-spin-win-fullscreen-fx--on::before {
  animation: ekhoSpinFxFlash 0.92s ease-out both;
}

.ekho-spin-win-fullscreen-fx__flake {
  position: absolute;
  top: -24px;
  pointer-events: none;
  opacity: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 3px 10px rgba(15, 23, 42, 0.18);
  animation-name: ekhoSpinFxConfettiFall;
  animation-timing-function: cubic-bezier(0.26, 0.88, 0.34, 1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

@keyframes ekhoSpinFxFlash {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.06);
  }
}

@keyframes ekhoSpinFxConfettiFall {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 0.98;
  }
  100% {
    transform: translate3d(0, 112vh, 0) rotate(680deg);
    opacity: 0;
  }
}

.ekho-unsubscribe-loyalty-warning {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--ekho-warning-soft);
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: var(--ekho-radius);
}

.ekho-unsubscribe-loyalty-warning p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ekho-primary);
}

.ekho-unsubscribe-actions {
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ekho-form-inline {
  display: inline-block;
}

.ekho-unsubscribe-or {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ekho-muted-soft);
  text-align: center;
}

.ekho-btn-delete {
  color: var(--ekho-error);
  border-color: rgba(198, 40, 40, 0.4);
}

.ekho-btn-delete:hover {
  background: rgba(198, 40, 40, 0.08);
  border-color: var(--ekho-error);
  color: var(--ekho-error);
}

.ekho-signup-highlight {
  animation: ekho-signup-attract 2.5s ease-out;
}

@keyframes ekho-signup-attract {
  0% {
    box-shadow: 0 0 0 3px var(--ekho-accent);
  }
  100% {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ekho-signup-highlight {
    animation: none;
    box-shadow: 0 0 0 2px var(--ekho-accent);
  }
}

.ekho-loyalty-section {
  padding: 0;
}

.ekho-loyalty-buttons {
  text-align: center;
}

.ekho-loyalty-greeting {
  margin: 0 0 0.65rem;
  padding: 0;
  line-height: 1.4;
  text-align: center;
  color: var(--ekho-text);
  text-shadow: none;
}

.ekho-loyalty-greeting-line1 {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: inherit;
}

.ekho-loyalty-greeting-name {
  color: var(--ekho-primary);
  font-weight: 700;
}

.ekho-loyalty-greeting-line2 {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ekho-muted);
}

.ekho-loyalty-marketing-notice {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ekho-muted);
  background: transparent;
  border: none;
  border-radius: var(--ekho-radius);
}

.ekho-loyalty-marketing-notice-line {
  margin: 0 0 0.35rem;
}

.ekho-loyalty-marketing-notice-sub {
  font-size: 0.8rem;
  opacity: 0.92;
  margin-bottom: 0.65rem;
}

.ekho-loyalty-marketing-opt-in {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
}

.ekho-loyalty-marketing-opt-in-feedback {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ekho-muted);
}

.ekho-loyalty-marketing-opt-in-feedback--error {
  color: #b42318;
}

.ekho-loyalty-marketing-privacy {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ekho-muted);
}

.ekho-loyalty-marketing-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ekho-loyalty-marketing-notice[hidden] {
  display: none !important;
}

.ekho-loyalty-stamp-action {
  margin-top: 0.85rem;
  text-align: center;
}

.ekho-loyalty-title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--ekho-text);
  font-weight: 600;
}

.ekho-loyalty-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ekho-muted);
  line-height: 1.45;
}

.ekho-loyalty-panel {
  margin-top: 1rem;
}

.ekho-loyalty-panel label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ekho-text);
  margin-bottom: 0.35rem;
}

.ekho-loyalty-panel .ekho-input {
  width: 100%;
  min-height: var(--ekho-touch);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ekho-text);
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  margin: 0.5rem 0 0.75rem;
  box-sizing: border-box;
}

.ekho-loyalty-panel .ekho-input:focus {
  outline: none;
  border-color: var(--ekho-focus);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.ekho-loyalty-result {
  margin-top: 1rem;
}

.ekho-loyalty-message {
  color: var(--ekho-muted);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.ekho-loyalty-stamp-added-msg {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--ekho-success-ink, var(--ekho-text));
  background: var(--ekho-success-soft);
  border: 1px solid var(--ekho-success-border-callout, var(--ekho-success));
  border-radius: var(--ekho-radius);
  animation: ekho-stamp-msg-in 0.5s ease-out;
}

.ekho-loyalty-stamp-added-msg.ekho-loyalty-new-card-msg {
  color: var(--ekho-accent-ink, var(--ekho-accent-hover));
  background: var(--ekho-accent-soft);
  border-color: var(--ekho-accent);
  font-size: 1rem;
}

@keyframes ekho-stamp-msg-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ekho-loyalty-card-visual-wrap {
  position: relative;
  margin-bottom: 0.25rem;
}

.ekho-loyalty-card-visual-wrap--celebrate {
  border-radius: var(--ekho-radius);
  animation: ekho-loyalty-card-wrap-pulse 1.1s ease-out 0s 2;
}

@keyframes ekho-loyalty-card-wrap-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ekho-success) 50%, transparent);
  }
  65% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--ekho-success) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ekho-success) 0%, transparent);
  }
}

.ekho-loyalty-completion-ambient {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.ekho-loyalty-completion-ambient[hidden] {
  display: none !important;
}

.ekho-loyalty-completion-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94);
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ekho-accent) 40%, transparent) 0%, transparent 44%),
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--ekho-success) 46%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse 125% 68% at 50% 18%, color-mix(in srgb, var(--ekho-accent) 28%, transparent) 0%, transparent 56%);
}

.ekho-loyalty-completion-ambient.ekho-loyalty-completion-ambient--on::before {
  animation: ekhoLoyaltyCompleteFlash 1.05s ease-out both;
}

.ekho-loyalty-completion-ambient::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36%;
  width: min(118vmin, 680px);
  height: min(118vmin, 680px);
  margin-left: calc(min(118vmin, 680px) * -0.5);
  margin-top: calc(min(118vmin, 680px) * -0.5);
  opacity: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--ekho-accent) 24%, transparent) 0deg,
    color-mix(in srgb, var(--ekho-success) 26%, transparent) 90deg,
    color-mix(in srgb, var(--ekho-accent-hover) 22%, transparent) 180deg,
    color-mix(in srgb, var(--ekho-success) 20%, transparent) 270deg,
    color-mix(in srgb, var(--ekho-accent) 24%, transparent) 360deg
  );
  filter: blur(20px);
  will-change: transform, opacity;
}

.ekho-loyalty-completion-ambient.ekho-loyalty-completion-ambient--on::after {
  animation: ekhoLoyaltyCompleteHalo 2.75s ease-in-out both;
}

@keyframes ekhoLoyaltyCompleteFlash {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes ekhoLoyaltyCompleteHalo {
  0% {
    opacity: 0;
    transform: scale(0.58) rotate(0deg);
  }
  22% {
    opacity: 0.82;
  }
  100% {
    opacity: 0.2;
    transform: scale(1.12) rotate(64deg);
  }
}

.ekho-loyalty-celebration-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--ekho-surface) 94%, var(--ekho-success) 6%) 0%,
    color-mix(in srgb, var(--ekho-success-soft) 82%, var(--ekho-surface) 18%) 42%,
    color-mix(in srgb, var(--ekho-surface) 88%, var(--ekho-accent-soft) 12%) 100%
  );
  border-radius: var(--ekho-radius);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ekho-success) 20%, transparent);
}

.ekho-loyalty-celebration-overlay.ekho-loyalty-celebration-visible {
  opacity: 1;
}

.ekho-loyalty-celebration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  max-width: 15.5rem;
  padding: 0.35rem 0.5rem;
}

.ekho-loyalty-celebration-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(
    150deg,
    var(--ekho-success) 0%,
    color-mix(in srgb, var(--ekho-success) 68%, var(--app-surface-ink, var(--ekho-text)) 32%) 100%
  );
  box-shadow:
    0 4px 22px color-mix(in srgb, var(--ekho-success) 44%, transparent),
    0 0 0 1px color-mix(in srgb, var(--ekho-surface) 45%, transparent) inset;
  animation: ekho-loyalty-celebration-icon-in 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

.ekho-loyalty-celebration-icon::after {
  content: "\2713";
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, #ffffff 90%, var(--ekho-surface) 10%);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--app-surface-ink, var(--ekho-text)) 22%, transparent);
}

.ekho-loyalty-celebration-text {
  margin: 0;
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ekho-success-ink, color-mix(in srgb, var(--ekho-success) 42%, var(--app-surface-ink, var(--ekho-text)) 58%));
  text-align: center;
  line-height: 1.2;
  padding: 0 0.85rem 0.35rem;
  animation: ekho-celebration-pop 0.68s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
  text-shadow: 0 1px 0 color-mix(in srgb, var(--ekho-surface) 52%, transparent);
}

@keyframes ekho-loyalty-celebration-icon-in {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ekho-celebration-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ekho-loyalty-celebration-text,
  .ekho-loyalty-celebration-icon {
    animation: none;
  }

  .ekho-loyalty-card-visual-wrap--celebrate {
    animation: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--ekho-success) 34%, transparent);
  }

  .ekho-loyalty-completion-ambient.ekho-loyalty-completion-ambient--on::before,
  .ekho-loyalty-completion-ambient.ekho-loyalty-completion-ambient--on::after {
    animation: none;
  }

  .ekho-loyalty-completion-ambient.ekho-loyalty-completion-ambient--on::before {
    opacity: 0.24;
    transform: none;
  }

  .ekho-loyalty-completion-ambient.ekho-loyalty-completion-ambient--on::after {
    opacity: 0.1;
    transform: none;
  }
}

.ekho-loyalty-card-visual {
  padding: 1.25rem;
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ekho-loyalty-card-visual-wrap .ekho-loyalty-card-visual {
  margin-bottom: 0;
}

.ekho-loyalty-valid-until {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.35rem 0;
  border-top: 1px solid var(--ekho-border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ekho-muted);
  text-align: center;
  line-height: 1.35;
}

.ekho-loyalty-valid-until[hidden] {
  display: none !important;
}

.ekho-loyalty-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-width: 280px;
  margin: 0 auto;
}

.ekho-loyalty-slot {
  aspect-ratio: 1;
  border-radius: var(--ekho-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--ekho-border);
  background: var(--ekho-surface);
}

.ekho-loyalty-slot-filled {
  border-color: var(--ekho-accent);
  background: linear-gradient(135deg, var(--ekho-accent-soft) 0%, rgba(255,255,255,0.95) 100%);
}

.ekho-loyalty-slot-new {
  animation: ekho-stamp-pop 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .ekho-loyalty-slot-new,
  .ekho-loyalty-stamp-added-msg {
    animation: none;
  }
}

@keyframes ekho-stamp-pop {
  0% {
    transform: scale(0.15);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
  15% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 0 12px rgba(2, 132, 199, 0.45);
  }
  30% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0.35);
  }
  45% {
    transform: scale(0.94);
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.25);
  }
  60% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
  }
  75% {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.08);
  }
  90% {
    transform: scale(1.02);
    box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.04);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.ekho-loyalty-slot-empty {
  background: var(--ekho-bg);
}

.ekho-loyalty-stamp-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.ekho-loyalty-stamp-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ekho-accent);
}

.ekho-loyalty-reward-label {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ekho-muted);
  text-align: center;
  line-height: 1.4;
}

.ekho-loyalty-reward-label strong {
  color: var(--ekho-accent-hover);
  font-weight: 600;
}

.ekho-loyalty-progress-text {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--ekho-muted);
  text-align: center;
  line-height: 1.45;
}

.ekho-loyalty-card-complete .ekho-loyalty-card-visual {
  animation: ekho-card-complete 2s ease-out;
}

.ekho-loyalty-card-complete .ekho-loyalty-stamps {
  animation: ekho-stamps-celebrate 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ekho-card-complete {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  20% {
    box-shadow: 0 0 0 4px var(--ekho-accent-soft), 0 4px 20px rgba(2, 132, 199, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.15), 0 6px 24px rgba(2, 132, 199, 0.15);
  }
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

@keyframes ekho-stamps-celebrate {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.05);
  }
  30% {
    transform: scale(0.98);
  }
  45% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ekho-loyalty-card-complete .ekho-loyalty-card-visual,
  .ekho-loyalty-card-complete .ekho-loyalty-stamps {
    animation: none;
  }
}

.ekho-loyalty-history-inline-open {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

#loyalty-history-modal.ekho-signup-modal-overlay {
  z-index: 10050;
}

.ekho-loyalty-history {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ekho-border);
  text-align: center;
}

.ekho-loyalty-history-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.ekho-loyalty-history-toggle .ekho-loyalty-history-toggle-icon {
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.ekho-loyalty-history-toggle[aria-expanded="true"] .ekho-loyalty-history-toggle-icon {
  transform: rotate(-90deg);
}

.ekho-loyalty-history-content {
  margin-top: 1rem;
  width: 100%;
}

.ekho-loyalty-history-modal-dialog {
  width: min(100%, 36rem);
  max-width: 38rem;
  max-height: min(90dvh, 48rem);
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0.9rem;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
}

.ekho-loyalty-history-modal-dialog h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--ekho-text);
}

.ekho-loyalty-history-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: 0;
  padding-right: 0.2rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.ekho-loyalty-history-modal-actions {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  align-self: stretch;
  margin-top: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ekho-border);
  background: transparent;
}

.ekho-loyalty-history-modal-actions .ekho-btn {
  margin-top: 0;
}

#loyalty-history-modal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.8rem;
  align-items: stretch;
}

#loyalty-history-modal-cards .ekho-loyalty-history-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0.7rem 0.55rem;
  border: 1px solid var(--ekho-border);
  border-radius: 10px;
  background: var(--ekho-surface-soft);
}

@media (max-width: 520px) {
  #loyalty-history-modal {
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }

  .ekho-loyalty-history-modal-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding: 0.9rem 0.85rem calc(0.8rem + env(safe-area-inset-bottom));
    margin: 0;
  }

  .ekho-loyalty-history-modal-dialog h2 {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 0 0 0.7rem;
    background: var(--ekho-surface);
  }

  .ekho-loyalty-history-modal-content {
    padding-right: 0;
    padding-bottom: 0.1rem;
  }

  .ekho-loyalty-history-modal-actions {
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    padding-bottom: max(0.1rem, env(safe-area-inset-bottom));
  }

  #loyalty-history-modal-cards {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  #loyalty-history-modal-cards .ekho-loyalty-history-card {
    padding: 0.7rem 0.45rem;
  }
}

.ekho-loyalty-history-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

@media (min-width: 520px) {
  .ekho-loyalty-history-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
  }
}

.ekho-loyalty-history-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 11rem;
}

.ekho-loyalty-history-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  max-width: 100px;
  margin: 0 auto 0.35rem;
}

.ekho-loyalty-history-slot {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--ekho-accent);
  background: linear-gradient(135deg, var(--ekho-accent-soft) 0%, rgba(255,255,255,0.95) 100%);
}

.ekho-loyalty-history-slot .ekho-loyalty-stamp-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.ekho-loyalty-history-slot .ekho-loyalty-stamp-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ekho-accent);
}

.ekho-loyalty-history-date {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ekho-muted);
  text-align: center;
  width: 100%;
  line-height: 1.4;
}

.ekho-loyalty-history-perimee {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ekho-muted);
  text-align: center;
  width: 100%;
  line-height: 1.35;
}

.ekho-loyalty-history-summary {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ekho-muted);
  text-align: center;
  line-height: 1.45;
}

.ekho-loyalty-section .ekho-field-hint {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ekho-muted);
  line-height: 1.45;
}

#loyalty-qr-block .ekho-loyalty-qr-hint {
  margin: 0 0 1rem 0;
}

.ekho-loyalty-code-label {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ekho-muted);
}

.ekho-loyalty-code {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 0.25rem 0 0;
  padding: 0.5rem;
  background: var(--ekho-surface);
  border-radius: var(--ekho-radius);
  border: 1px solid var(--ekho-border);
}

.ekho-signup-section-inner h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--ekho-text);
}

.ekho-signup-section-inner p {
  color: var(--ekho-muted-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ekho-card-title {
  text-align: center;
  margin-bottom: 1rem;
}


.ekho-success-spam-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ekho-muted);
}

.ekho-success-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.ekho-success-layout__brand.ekho-merchant-block {
  margin-bottom: 1.25rem;
}

.ekho-merchant-block .ekho-success-layout__h1 {
  font-size: clamp(1.2rem, 4.5vw, 1.4rem);
  line-height: 1.3;
  margin: 0;
}

.ekho-success-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.ekho-success-panel {
  position: relative;
  margin: 0;
  padding: clamp(1.35rem, 5vw, 1.85rem) clamp(1.1rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 1.9rem);
  background: linear-gradient(165deg, #ffffff 0%, var(--ekho-surface-soft) 55%, rgba(220, 252, 231, 0.35) 100%);
  border: 1px solid rgba(46, 125, 50, 0.14);
  border-radius: clamp(14px, 3.5vw, 18px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 24px rgba(15, 23, 42, 0.05),
    0 1px 3px rgba(15, 23, 42, 0.04);
  text-align: center;
  overflow: hidden;
}

.ekho-success-panel__hero {
  display: flex;
  justify-content: center;
  margin: 0 0 0.9rem;
}

.ekho-success-check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(3.75rem, 16vw);
  height: min(3.75rem, 16vw);
  min-width: 3rem;
  min-height: 3rem;
}

.ekho-success-check__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ekho-success-soft) 0%, rgba(220, 252, 231, 0.55) 100%);
  border: 2px solid rgba(46, 125, 50, 0.28);
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.12);
}

.ekho-success-check__glyph {
  position: relative;
  z-index: 1;
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ekho-success);
}

.ekho-success-panel__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ekho-text);
  line-height: 1.25;
}

.ekho-success-panel__emoji {
  display: inline;
}

.ekho-success-panel__lead {
  margin: 0 0 1.1rem;
  font-size: clamp(1.02rem, 3.3vw, 1.1rem);
  font-weight: 600;
  color: var(--ekho-primary-soft);
  line-height: 1.4;
}

.ekho-success-panel__copy {
  text-align: left;
  max-width: 32rem;
  margin: 0 auto;
}

.ekho-success-panel__copy p {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ekho-muted);
}

.ekho-success-panel__copy p strong {
  color: var(--ekho-text);
  font-weight: 600;
}

.ekho-success-panel__copy p:last-child {
  margin-bottom: 0;
}

.ekho-success-panel__farewell {
  margin-top: 0.2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ekho-muted) !important;
}

.ekho-success-panel__note {
  margin-top: 0.35rem !important;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  color: var(--ekho-muted) !important;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--ekho-border-soft);
  border-radius: 10px;
  border-left: 3px solid var(--ekho-accent);
}

.ekho-success-mail-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0 0 !important;
  padding: 0.7rem 0.8rem 0.75rem 2.1rem;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  font-style: normal;
  color: var(--ekho-muted-soft) !important;
  text-align: left;
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  position: relative;
}

.ekho-success-mail-hint::before {
  content: "✉";
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.75;
}

@media (min-width: 480px) {
  .ekho-success-stack {
    gap: 1.5rem;
  }

  .ekho-success-panel__copy p {
    font-size: 1rem;
  }
}

.ekho-success-loyalty-cta {
  text-align: center;
  border-color: rgba(2, 132, 199, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, var(--ekho-surface-soft) 100%);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05);
  padding: clamp(1.2rem, 4vw, 1.5rem) clamp(1rem, 3vw, 1.35rem) clamp(1.3rem, 4vw, 1.6rem);
}

.ekho-success-loyalty-cta__lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ekho-muted);
  text-wrap: pretty;
}

.ekho-success-loyalty-cta__primary {
  max-width: 24rem;
  margin: 0 auto;
}

.ekho-success-loyalty-cta__primary .ekho-btn {
  display: flex;
  width: 100%;
  min-height: var(--ekho-touch);
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.ekho-success-loyalty-cta__spin {
  margin: 1.1rem auto 0;
  padding-top: 1.1rem;
  max-width: 24rem;
  border-top: 1px solid var(--ekho-border-soft);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.ekho-success-loyalty-cta__spin .ekho-btn-outline {
  display: flex;
  width: 100%;
  min-height: var(--ekho-touch);
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.ekho-form label {
  display: block;
  font-size: 0.9375rem;
  color: var(--ekho-muted);
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
}

.ekho-form label:first-of-type { margin-top: 0; }

.ekho-card-signup .ekho-form label[for="first_name"] {
  margin-top: 0;
}

.ekho-card-signup .ekho-form input.ekho-signup-required-field-mark:not(:focus) {
  border-color: color-mix(in srgb, var(--ekho-accent-soft, var(--ekho-accent)) 42%, var(--ekho-border));
}

@supports not (border-color: color-mix(in srgb, white, black)) {
  .ekho-card-signup .ekho-form input.ekho-signup-required-field-mark:not(:focus) {
    border-color: var(--ekho-accent);
  }
}

.ekho-required-hint--compact {
  margin-top: 0.75rem;
  font-size: 0.76rem;
  line-height: 1.35;
  opacity: 0.92;
}

.ekho-signup-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ekho-muted);
  margin: 0.85rem 0 0.3rem;
}

.ekho-signup-address-group {
  margin-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ekho-form input[type="text"],
.ekho-form input[type="email"],
.ekho-form input[type="date"],
.ekho-form input[type="tel"],
.ekho-form input.ekho-input-tel {
  width: 100%;
  min-height: var(--ekho-touch);
  padding: 0.75rem 1rem;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ekho-text);
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  -webkit-appearance: none;
  appearance: none;
}

.ekho-form input[type="tel"],
.ekho-form input.ekho-input-tel {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.ekho-form input:focus,
.ekho-birthday-select:focus {
  outline: none;
  border-color: var(--ekho-focus);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.ekho-form input::placeholder {
  color: var(--ekho-muted);
  opacity: 0.8;
}

.ekho-form .ekho-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ekho-form .ekho-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ekho-form .ekho-radio-group .ekho-checkbox {
  margin-top: 0;
}

.ekho-form .ekho-checkbox input {
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--ekho-accent);
}

.ekho-form .ekho-checkbox label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ekho-muted);
}

.ekho-form .ekho-checkbox-loyalty {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--ekho-accent-soft);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--ekho-radius);
}

.ekho-form .ekho-checkbox-loyalty label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ekho-text);
}

.ekho-form .ekho-consent-wrap {
  margin-top: 1.25rem;
  padding: 0;
  border-radius: var(--ekho-radius);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.ekho-form .ekho-consent-wrap .ekho-checkbox {
  margin-top: 0;
}

.ekho-form .ekho-consent-wrap .ekho-checkbox label a {
  font-weight: 600;
}

.ekho-form .ekho-consent-wrap.ekho-consent-wrap--nudge {
  padding: 0.85rem 1rem;
  background: rgba(250, 204, 21, 0.14);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.5);
}

.ekho-form .ekho-consent-nudge {
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.38;
  color: var(--ekho-text);
  font-weight: 600;
}

.ekho-birthday-selects {
  margin-top: 0;
}

.ekho-birthday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: fit-content;
}

.ekho-birthday-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: var(--ekho-touch);
  padding: 0.75rem 1rem;
  padding-right: 2.25rem;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--ekho-text);
  background: var(--ekho-bg);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6c7d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.ekho-birthday-select:first-of-type {
  width: 5.5rem;
}

.ekho-birthday-select:nth-of-type(2) {
  width: 9rem;
}

.ekho-birthday-select:nth-of-type(3) {
  width: 7rem;
}

.ekho-field-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ekho-muted);
  line-height: 1.35;
}

.ekho-unsub-hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ekho-muted);
  opacity: 0.9;
  text-align: right;
}

.ekho-legal-footer {
  margin: 1.25rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ekho-border, #eee);
  font-size: 0.7rem;
  color: var(--ekho-muted);
  line-height: 1.4;
  text-align: center;
}

.ekho-legal-footer p {
  margin: 0.25rem 0 0;
  font-style: normal;
}

.ekho-legal-footer p:first-child {
  margin-top: 0;
}

.ekho-legal-footer a {
  color: var(--ekho-accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ekho-legal-footer a:hover {
  color: var(--ekho-accent);
}

.ekho-page-footer {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 0;
  border-top: 1px solid var(--ekho-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--ekho-muted);
}

.ekho-page-footer p {
  margin: 0.25rem 0;
}

.ekho-page-footer a {
  color: var(--ekho-primary);
  text-decoration: none;
  font-weight: 500;
}

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

.ekho-page-footer-copy {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.ekho-required-hint {
  margin: 1rem 0 0.25rem;
  font-size: 0.8rem;
  color: var(--ekho-muted);
}

.ekho-btn {
  display: inline-block;
  width: 100%;
  min-height: var(--ekho-touch);
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--ekho-accent);
  border: none;
  border-radius: var(--ekho-radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--ekho-transition), opacity var(--ekho-transition), box-shadow var(--ekho-transition);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ekho-accent) 38%, transparent);
}

.ekho-btn:hover,
.ekho-btn:focus {
  background: var(--ekho-accent-hover);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ekho-accent) 46%, transparent);
}

.ekho-btn:active {
  opacity: 0.9;
}

.ekho-form-submit-wrap {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.ekho-btn-sm {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.ekho-btn-preview {
  min-width: 8rem;
}

.ekho-btn-preview,
.ekho-btn-preview:hover,
.ekho-btn-preview:focus,
.ekho-btn-preview:active {
  color: var(--ekho-text) !important;
}

.ekho-btn-preview:hover,
.ekho-btn-preview:focus {
  background: var(--ekho-outline-hover) !important;
  border-color: var(--ekho-outline-border-hover);
}

.ekho-btn-preview[aria-busy="true"] {
  opacity: 0.8;
}

.ekho-card-templates {
  margin-top: 2rem;
}

.ekho-template-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ekho-border);
}

.ekho-template-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ekho-template-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.ekho-template-vars {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--ekho-muted);
}

.ekho-template-vars code {
  font-size: 0.8em;
  background: var(--ekho-surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.ekho-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15em 0.5em;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}

.ekho-badge-active {
  background: rgba(34, 139, 34, 0.15);
  color: #228b22;
}

.ekho-badge-inactive {
  background: rgba(128, 128, 128, 0.15);
  color: #666;
}

.ekho-admin-espace-logs-head .ekho-modif-title {
  margin-bottom: 0.25rem;
}

.ekho-admin-espace-logs-back-row {
  margin: 0 0 1rem;
}

.ekho-admin-log-table-wrap {
  overflow-x: auto;
  margin-top: 0.35rem;
}

.ekho-admin-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ekho-admin-log-table th,
.ekho-admin-log-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--ekho-border);
  text-align: left;
  vertical-align: top;
}

.ekho-admin-log-table th {
  font-weight: 600;
  color: var(--ekho-muted);
  background: var(--ekho-surface-soft);
}

.ekho-admin-log-table-detail {
  word-break: break-word;
}

.ekho-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ekho-preview-block {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  border-radius: var(--ekho-radius);
}

.ekho-preview-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.ekho-preview-subject-line {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--ekho-muted);
}

.ekho-preview-frame-wrap {
  border: 1px solid var(--ekho-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.ekho-preview-iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  height: 500px;
  border: none;
}

.ekho-errors {
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid var(--ekho-error);
  border-radius: var(--ekho-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.ekho-errors ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ekho-error);
  font-size: 0.9375rem;
}

.ekho-health-banner {
  background: rgba(200, 140, 0, 0.12);
  border: 1px solid var(--ekho-warning);
  border-radius: var(--ekho-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.95rem;
}
.ekho-health-banner a {
  font-weight: 600;
  color: var(--ekho-primary);
}

.ekho-success-msg {
  color: var(--ekho-success);
}

.ekho-already-section {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--ekho-border);
}

.ekho-already-section p {
  margin: 0 0 0.75rem;
}

.ekho-already-section .ekho-form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.ekho-already-section .ekho-form-inline label {
  margin: 0;
}

.ekho-already-section .ekho-form-inline .ekho-birthday-selects {
  flex: 0 0 auto;
}

.ekho-loyalty-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ekho-choice-sep {
  color: var(--ekho-muted);
  font-weight: 500;
}

.ekho-btn-placeholder {
  color: var(--ekho-muted-soft);
  font-size: 0.95rem;
}

.ekho-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ekho-small {
  font-size: 0.875rem;
  color: var(--ekho-muted);
  margin-top: 1rem;
}

.ekho-stack {
  font-size: 0.75rem;
  overflow: auto;
  max-height: 12rem;
  padding: 0.75rem;
  background: var(--ekho-surface);
  border-radius: var(--ekho-radius);
  color: var(--ekho-muted);
}

@media (min-width: 480px) {
  .ekho-btn { width: auto; min-width: 10rem; }
}

@media (max-width: 380px) {
  .ekho-admin-title {
    font-size: 1.15rem;
  }

  .ekho-admin-user {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) {
  .ekho-admin-header {
    margin-bottom: 1.5rem;
  }

  .ekho-admin-header-top {
    gap: 1.5rem;
  }

  .ekho-admin-title {
    font-size: 1.5rem;
  }

  .ekho-admin-main {
    margin-top: 1.5rem;
  }
}

@media (display-mode: standalone) {
  .ekho-page {
    padding-top: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-top));
  }
}

.ekho-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ekho-primary);
  color: #fff;
  padding: 1rem max(1rem, env(safe-area-inset-left));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.ekho-cookie-banner-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ekho-cookie-banner-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ekho-cookie-banner-text a {
  color: #93c5fd;
  text-decoration: underline;
}

.ekho-cookie-banner-text a:hover {
  color: #bfdbfe;
}

.ekho-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ekho-cookie-banner-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--ekho-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ekho-cookie-banner-accept {
  background: #fff;
  color: var(--ekho-primary);
}

.ekho-cookie-banner-accept:hover {
  background: #e5e7eb;
}

.ekho-cookie-banner-refuse {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}

.ekho-cookie-banner-refuse:hover {
  background: rgba(255,255,255,0.25);
}

@media (min-width: 480px) {
  .ekho-cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ekho-cookie-banner-actions {
    flex-shrink: 0;
  }
}

.ekho-card-spin {
  background: var(--ekho-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--ekho-accent, #0284c7) 14%, var(--ekho-border, rgba(15, 23, 42, 0.08)));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 32px -14px rgba(15, 23, 42, 0.1),
    0 20px 48px -16px color-mix(in srgb, var(--ekho-accent, #0284c7) 16%, transparent),
    0 6px 22px -8px rgba(15, 23, 42, 0.07);
  border-radius: 1.15rem;
}

.ekho-spin-embed {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ekho-success-spin {
  margin: 0;
  padding: clamp(0.85rem, 2.5vw, 1.15rem);
  background: var(--ekho-surface);
  border: 1px solid var(--ekho-border);
  border-radius: clamp(12px, 3vw, 14px);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
}

.ekho-success-stack .ekho-success-spin .ekho-spin-embed {
  width: 100%;
}

.ekho-spin-hello {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.35;
  color: var(--ekho-text);
}

.ekho-spin-hello strong {
  font-weight: 700;
  color: var(--ekho-primary);
}

.ekho-spin-review-stars {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: center;
}

.ekho-spin-hero {
  position: relative;
  z-index: 0;
  text-align: center;
  padding: clamp(1.25rem, 4vw, 1.7rem) clamp(0.95rem, 3.2vw, 1.3rem) clamp(1.1rem, 3.2vw, 1.45rem);
  border-radius: var(--ekho-radius, 12px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 18%, #eff6ff 55%, #e0f2fe 100%);
  border: 1px solid rgba(2, 132, 199, 0.28);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.98) inset, 0 0 0 1px rgba(2, 132, 199, 0.06) inset, 0 10px 36px -6px rgba(2, 132, 199, 0.22), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ekho-spin-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  z-index: 1;
  border-radius: var(--ekho-radius, 12px) var(--ekho-radius, 12px) 0 0;
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8, #0ea5e9, #0284c7);
  background-size: 200% 100%;
  animation: ekho-spin-hero-bar 8s ease-in-out infinite;
}

@keyframes ekho-spin-hero-bar {
  0%,
  100% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
}

.ekho-spin-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 90%);
  background-size: 220% 100%;
  animation: ekho-spin-hero-sheen 5.5s ease-in-out infinite;
}

@keyframes ekho-spin-hero-sheen {
  0%,
  100% {
    background-position: 160% 0;
  }
  50% {
    background-position: -50% 0;
  }
}

.ekho-spin-hero__bloom {
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -12%;
  width: min(14rem, 80%);
  height: min(12rem, 65%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.28) 0%, rgba(2, 132, 199, 0) 65%);
  filter: blur(4px);
  pointer-events: none;
}

.ekho-spin-hero__overline {
  position: relative;
  z-index: 1;
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #0284c7;
}

.ekho-spin-hero__mascot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(5.25rem, 30vw);
  height: min(5.25rem, 30vw);
  min-width: 4.25rem;
  min-height: 4.25rem;
  margin: 0.15rem auto 0.7rem;
}

.ekho-spin-hero__mascot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #7dd3fc, #0ea5e9, #0284c7, #0369a1, #38bdf8, #0ea5e9, #7dd3fc);
  opacity: 0.88;
  animation: ekho-spin-hero-halo 12s linear infinite;
}

@keyframes ekho-spin-hero-halo {
  to {
    transform: rotate(1turn);
  }
}

.ekho-spin-hero__mascot-face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  font-size: clamp(2.35rem, 10vw, 2.95rem);
  line-height: 1;
  background: linear-gradient(170deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 2px 16px rgba(2, 132, 199, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 28px rgba(14, 165, 233, 0.25);
}

.ekho-spin-hero__headline {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 4.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ekho-text, #0f172a);
}

.ekho-spin-hero__lede {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ekho-muted, #334155);
}

.ekho-spin-embed .ekho-spin-hero {
  margin-bottom: 0.1rem;
}

.ekho-spin-buttons {
  text-align: center;
  margin-top: 0.55rem;
}

#ekho-spin-card.ekho-spin--work-unfolded .ekho-spin-buttons {
  display: none !important;
}

.ekho-spin-buttons .ekho-btn.ekho-btn-spin-cta {
  margin-top: 0.35rem;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  color: #ffffff;
  background: var(--ekho-accent, #0284c7);
  border-radius: var(--ekho-radius, 12px);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.ekho-spin-buttons .ekho-btn.ekho-btn-spin-cta:hover,
.ekho-spin-buttons .ekho-btn.ekho-btn-spin-cta:focus {
  color: #ffffff;
  background: var(--ekho-accent-hover, #0369a1);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.ekho-spin-buttons .ekho-btn.ekho-btn-spin-cta:active {
  color: #ffffff;
  background: var(--ekho-accent-hover, #0369a1);
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .ekho-spin-hero::before {
    animation: none;
  }
  .ekho-spin-hero::after {
    animation: none;
    opacity: 0.5;
  }
  .ekho-spin-hero__mascot::before {
    animation: none;
  }
}

.ekho-spin-launch-cta {
  margin: 0 0 1rem;
}

.ekho-spin-section {
  padding: 0;
}

.ekho-spin-work {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ekho-spin-work-head {
  margin-bottom: 0.4rem;
  padding: 0 0 0.6rem;
}

.ekho-spin-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.ekho-spin-launch-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ekho-spin-launch .ekho-btn {
  min-height: var(--ekho-touch);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.ekho-spin-launch .ekho-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.ekho-spin-launch .ekho-btn:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ekho-spin-launch .ekho-btn:hover {
    transform: none;
  }
}

.ekho-spin-bar-outer {
  height: 4px;
  border-radius: 999px;
  background: var(--ekho-border-soft);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.ekho-spin-bar {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .ekho-spin-bar {
    transition: none;
  }
}

.ekho-spin-work .ekho-spin-step,
.ekho-spin-work .ekho-spin-step--result {
  padding: 0.75rem 0 0.5rem;
}

.ekho-spin-work-title,
#ekho-spin-dialog-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ekho-text, #0f172a);
}

.ekho-spin-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ekho-muted-soft);
  line-height: 1.4;
  font-weight: 500;
}

.ekho-spin-p {
  margin: 0 0 0.75rem;
  color: var(--ekho-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ekho-spin-p-highlight {
  color: var(--ekho-text);
  line-height: 1.5;
}

.ekho-spin-step label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ekho-primary-soft);
}

.ekho-spin-step .ekho-input {
  width: 100%;
  margin-bottom: 0.5rem;
  min-height: var(--ekho-touch);
  border-radius: 10px;
}

.ekho-spin-actions {
  margin-top: 0.65rem;
}

#ekho-spin-step-wheel .ekho-spin-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ekho-spin-actions .ekho-btn,
.ekho-spin-review-actions .ekho-btn,
.ekho-spin-step--result .ekho-btn {
  width: 100%;
  text-align: center;
  min-height: var(--ekho-touch);
  border-radius: 10px;
}

#ekho-spin-step-wheel .ekho-btn-spin-launch-cta {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--ekho-accent, #0284c7) 88%, #fff) 0%,
    var(--ekho-accent, #0284c7) 48%,
    var(--ekho-accent-hover, #0369a1) 100%
  );
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 1.05rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 4px 16px color-mix(in srgb, var(--ekho-accent, #0284c7) 38%, transparent),
    0 2px 8px rgba(15, 23, 42, 0.08);
  border-radius: calc(var(--ekho-radius) + 2px);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  transition: background var(--ekho-transition), box-shadow var(--ekho-transition), opacity var(--ekho-transition), transform 0.2s ease;
}

#ekho-spin-step-wheel .ekho-btn-spin-launch-cta:hover:not(:disabled) {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--ekho-accent-hover, #0369a1) 75%, #fff) 0%,
    var(--ekho-accent-hover, #0369a1) 52%,
    color-mix(in srgb, var(--ekho-accent-hover, #0369a1) 85%, #000) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 28px color-mix(in srgb, var(--ekho-accent, #0284c7) 42%, transparent),
    0 4px 12px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  #ekho-spin-step-wheel .ekho-btn-spin-launch-cta:hover:not(:disabled) {
    transform: none;
  }
}

#ekho-spin-step-wheel .ekho-btn-spin-launch-cta:disabled {
  background: #e2e8f0;
  color: #334155;
  opacity: 1;
  box-shadow: none;
  cursor: not-allowed;
}

.ekho-btn-spin-primary,
.ekho-btn-spin-launch {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #0369a1;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ekho-btn-spin-primary:hover,
.ekho-btn-spin-launch:hover {
  filter: brightness(1.04);
}

.ekho-btn-spin-primary:disabled,
.ekho-btn-spin-launch:disabled {
  opacity: 0.65;
  filter: none;
  cursor: not-allowed;
}

.ekho-btn-spin-primary.is-ekho-waiting,
.ekho-btn-spin-launch.is-ekho-waiting {
  position: relative;
  padding-left: 1.5rem;
}

.ekho-btn-spin-primary.is-ekho-waiting::before,
.ekho-btn-spin-launch.is-ekho-waiting::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ekhoSpinWait 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ekho-btn-spin-primary.is-ekho-waiting::before,
  .ekho-btn-spin-launch.is-ekho-waiting::before {
    animation: none;
  }
}

@keyframes ekhoSpinWait {
  to { transform: rotate(360deg); }
}

.ekho-btn-spin-secondary {
  font-weight: 500;
}

.ekho-spin-review-actions .ekho-btn.ekho-btn-spin-google,
.ekho-spin-review-actions .ekho-btn.ekho-btn-spin-google:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-left: 3px solid #1a73e8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ekho-spin-review-actions .ekho-btn.ekho-btn-spin-google:hover,
.ekho-spin-review-actions .ekho-btn.ekho-btn-spin-google:focus {
  color: #0f172a;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.2);
  border-left-color: #1557b0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.ekho-spin-review-actions .ekho-btn.ekho-btn-spin-google:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 2px;
}

.ekho-spin-review-actions .ekho-btn.ekho-btn-spin-google:active {
  opacity: 1;
  background: #f1f5f9;
}

.ekho-spin-review-illus {
  text-align: center;
  font-size: 1.75rem;
  line-height: 1;
  margin: 0 0 0.4rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.ekho-spin-review-note {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ekho-muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(2, 132, 199, 0.16);
  border-radius: 10px;
}

.ekho-spin-review-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.35rem;
}

.ekho-spin-review-actions-divider {
  height: 0;
  margin: 0.55rem 0 0.45rem;
  border: 0;
  border-top: 1px solid rgba(2, 132, 199, 0.2);
  align-self: stretch;
}

.ekho-btn-spin-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  text-align: left;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  min-height: var(--ekho-touch);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ekho-btn-spin-social:visited {
  color: #0f172a;
}
.ekho-btn-spin-social__ico {
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ekho-btn-spin-social__label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  font-size: 0.95rem;
}
.ekho-spin-soc-svg {
  display: block;
  vertical-align: middle;
}
.ekho-btn-spin-social--google {
  border-left: 3px solid #1a73e8;
}
.ekho-btn-spin-social--facebook_review,
.ekho-btn-spin-social--facebook_page {
  border-left: 3px solid #1877f2;
}
.ekho-btn-spin-social--instagram {
  border-left: 3px solid #e4405f;
}
.ekho-btn-spin-social--instagram .ekho-spin-soc-svg--ig {
  color: #e4405f;
}
button.ekho-btn-spin-social {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.ekho-btn-spin-social--skip {
  border-left: 3px solid #0d9488;
}
.ekho-btn-spin-social:hover,
.ekho-btn-spin-social:focus {
  color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.ekho-btn-spin-social:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 2px;
}
.ekho-btn-spin-social:active {
  background: #f1f5f9;
}

.ekho-spin-hint-skip {
  font-size: 0.8rem;
  color: var(--ekho-muted-soft);
  text-align: center;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
}

.ekho-spin-actions-row {
  text-align: center;
  margin: 0.25rem 0 0.1rem;
}

.ekho-spin-skip {
  text-align: center;
  margin: 0.15rem 0 0;
  padding-top: 0.15rem;
}

.ekho-link-quiet {
  background: none;
  border: none;
  color: var(--ekho-muted-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
}

.ekho-link-quiet:hover {
  color: var(--ekho-muted);
  background: var(--ekho-surface-soft);
}

.ekho-link-quiet:focus-visible {
  outline: 2px solid var(--ekho-focus);
  outline-offset: 1px;
}

.ekho-spin-msg {
  min-height: 1.15em;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.ekho-spin-msg--error {
  color: var(--ekho-error);
}

.ekho-spin-msg--info {
  color: var(--ekho-muted);
  font-size: 0.88rem;
}

.ekho-spin-wheel-ambient {
  position: relative;
  height: 0;
  border-radius: 12px;
  margin: 0 0 0.2rem;
  overflow: hidden;
  transition: height 0.2s ease;
}

.ekho-spin-wheel-ambient.ekho-spin-wheel-ambient--on {
  height: 0.3rem;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ekho-accent, #0284c7) 25%, transparent),
    var(--ekho-accent, #0284c7),
    color-mix(in srgb, var(--ekho-accent-hover, #0369a1) 55%, #fff),
    var(--ekho-accent, #0284c7),
    color-mix(in srgb, var(--ekho-accent, #0284c7) 25%, transparent)
  );
  background-size: 220% 100%;
  animation: ekhoSpinAmbient 1.35s ease-in-out infinite;
  border-radius: 999px;
  box-shadow: 0 1px 8px color-mix(in srgb, var(--ekho-accent, #0284c7) 35%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .ekho-spin-wheel-ambient.ekho-spin-wheel-ambient--on {
    animation: none;
    background: var(--ekho-accent, #0284c7);
  }
}

@keyframes ekhoSpinAmbient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ekho-spin-wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0 0.85rem;
  padding: 0.65rem 0.4rem 0.45rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(ellipse 85% 70% at 50% 0%, color-mix(in srgb, var(--ekho-accent, #0284c7) 12%, transparent) 0%, transparent 55%),
    linear-gradient(165deg, rgba(2, 132, 199, 0.045) 0%, rgba(15, 23, 42, 0.018) 42%, transparent 100%);
  border: 1px solid color-mix(in srgb, var(--ekho-accent, #0284c7) 14%, rgba(15, 23, 42, 0.06));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 8px 24px -12px rgba(15, 23, 42, 0.07);
  isolation: isolate;
}

@media (prefers-reduced-motion: no-preference) {
  .ekho-spin-wheel-stage:has(.ekho-spin-wheel-wrap--ready)::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -4px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
      ellipse 78% 62% at 50% 44%,
      color-mix(in srgb, var(--ekho-accent, #0284c7) 28%, transparent) 0%,
      transparent 70%
    );
    opacity: 0.42;
    animation: ekhoSpinStagePulse 3.6s ease-in-out infinite;
  }
}

@keyframes ekhoSpinStagePulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.52;
    transform: scale(1);
  }
}

.ekho-spin-wheel-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 21.25rem;
  margin: 0.15rem auto 0.85rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: none;
  box-shadow:
    0 28px 56px -18px rgba(15, 23, 42, 0.18),
    0 14px 36px -14px color-mix(in srgb, var(--ekho-accent, #0284c7) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--ekho-accent, #0284c7) 12%, rgba(255, 255, 255, 0.08));
  transform: translateZ(0);
  transition: box-shadow 0.45s ease;
}

.ekho-spin-wheel-wrap--ready {
  box-shadow:
    0 32px 62px -18px rgba(15, 23, 42, 0.2),
    0 16px 40px -14px color-mix(in srgb, var(--ekho-accent, #0284c7) 34%, transparent),
    0 0 0 1px color-mix(in srgb, var(--ekho-accent, #0284c7) 14%, rgba(255, 255, 255, 0.1));
}

@media (prefers-reduced-motion: no-preference) {
  .ekho-spin-wheel-wrap--ready {
    animation: ekhoSpinWrapBreathe 3.4s ease-in-out infinite;
  }

  .ekho-spin-wheel-wrap--ready .ekho-spin-wheel-pointer {
    animation: ekhoSpinPointerInvite 2.5s ease-in-out infinite;
  }

  .ekho-spin-wheel-wrap--ready .ekho-spin-lbl-mock--gift .ekho-spin-ico-gift {
    animation: ekhoSpinGiftPulse 3s ease-in-out infinite;
  }
}

.ekho-spin-wheel-wrap--spinning {
  animation: none !important;
  box-shadow:
    0 36px 72px -16px rgba(15, 23, 42, 0.24),
    0 18px 44px -12px color-mix(in srgb, var(--ekho-accent, #0284c7) 42%, transparent),
    0 0 0 1px color-mix(in srgb, var(--ekho-accent, #0284c7) 18%, rgba(255, 255, 255, 0.12));
}

.ekho-spin-wheel-wrap--spinning .ekho-spin-wheel-pointer,
.ekho-spin-wheel-wrap--spinning .ekho-spin-lbl-mock--gift .ekho-spin-ico-gift {
  animation: none !important;
}

@keyframes ekhoSpinWrapBreathe {
  0%,
  100% {
    transform: translateZ(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateZ(0) scale(1.014);
    filter: brightness(1.025);
  }
}

@keyframes ekhoSpinPointerInvite {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(0.09rem);
  }
}

@keyframes ekhoSpinGiftPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.ekho-spin-rim {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0.55rem;
  background: linear-gradient(
    158deg,
    #ffffff 0%,
    #f9fafb 18%,
    color-mix(in srgb, var(--ekho-accent-soft, #e0f2fe) 42%, #f1f5f9) 45%,
    #e8edf3 72%,
    color-mix(in srgb, var(--ekho-accent-soft, #e0f2fe) 28%, #d8dee8) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.92) inset,
    0 0 0 2px rgba(15, 23, 42, 0.07),
    0 3px 0 rgba(255, 255, 255, 0.45) inset,
    0 -14px 32px rgba(15, 23, 42, 0.07) inset,
    0 16px 40px rgba(15, 23, 42, 0.12),
    0 6px 20px color-mix(in srgb, var(--ekho-accent, #0284c7) 18%, transparent);
  box-sizing: border-box;
  isolation: isolate;
}

.ekho-spin-plate-outer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: visible;
  box-shadow:
    inset 0 3px 5px rgba(255, 255, 255, 0.82),
    inset 0 -6px 14px rgba(15, 23, 42, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ekho-spin-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
  overflow: visible;
  backface-visibility: visible;
  isolation: isolate;
}

.ekho-spin-seg-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
  border-radius: 0;
  container-type: inline-size;
}

.ekho-spin-lbl-rot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  --r: min(5.05rem, 30vw);
  --spin-chord: min(3.15rem, calc(0.6 * var(--r)));
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r)));
  transform-origin: 50% 50%;
}

@container (min-width: 0) {
  .ekho-spin-lbl-rot {
    --r: min(31.5cqi, 6.2rem);
    --spin-chord: min(19.2cqi, 3.45rem);
  }
}

.ekho-spin-lbl-inner {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--spin-chord);
  min-width: 2.6rem;
  max-width: var(--spin-chord);
  min-height: 1.45rem;
  margin: 0;
  padding: 0.05rem 0.12rem;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(0.64rem, 2.9vw, 0.8rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transform: translate3d(-50%, -50%, 0) rotate(calc(-1 * var(--a)));
  transform-origin: 50% 50%;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: pre-line;
  pointer-events: none;
  letter-spacing: -0.02em;
  font-family: var(--ekho-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.ekho-spin-lbl-inner.ekho-spin-lbl--twoline {
  min-height: 2.15rem;
}

.ekho-spin-lbl-inner.ekho-spin-lbl--one-long {
  min-height: 1.65rem;
}

.ekho-spin-lbl-inner--prize {
  text-transform: none;
}

.ekho-spin-lbl-inner--lose {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.ekho-spin-lbl-mock {
  text-transform: none;
  letter-spacing: -0.03em;
}

.ekho-spin-lbl-mock--lose {
  flex: 0 0 auto;
  align-self: center;
  max-width: 100%;
  min-width: 0;
  color: #475569;
  font-weight: 600;
  font-size: clamp(0.58rem, 2vw, 0.74rem);
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.ekho-spin-lbl-mock--gift {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  align-self: center;
  color: color-mix(in srgb, var(--ekho-accent, #0284c7) 92%, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 1.45rem;
  max-height: 2.1rem;
  padding: 0.12rem 0.06rem;
  box-sizing: border-box;
  line-height: 1;
  overflow: visible;
}

.ekho-spin-lbl-mock--gift::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(2.5rem, 90%);
  height: min(2.5rem, 90%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.12) 100%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ekho-accent, #0284c7) 22%, transparent) 0%, transparent 70%);
  box-shadow:
    0 3px 14px rgba(15, 23, 42, 0.12),
    0 0 0 1px color-mix(in srgb, var(--ekho-accent, #0284c7) 28%, rgba(255, 255, 255, 0.8)),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 8px rgba(15, 23, 42, 0.06);
  z-index: -1;
}

.ekho-spin-ico-gift {
  display: block;
  position: relative;
  z-index: 1;
  width: 1.88rem;
  height: 1.88rem;
  min-width: 1.45rem;
  min-height: 1.45rem;
  max-width: min(2.15rem, 100%);
  max-height: min(2.05rem, 22vmin);
  flex: 0 0 auto;
  color: inherit;
  overflow: visible;
  filter:
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.45))
    drop-shadow(0 2px 3px rgba(15, 23, 42, 0.14));
}

.ekho-spin-lbl--twoline.ekho-spin-lbl-mock--lose {
  font-size: clamp(0.48rem, 1.8vw, 0.64rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.ekho-spin-lbl--one-long.ekho-spin-lbl-mock--lose {
  font-size: clamp(0.45rem, 1.75vw, 0.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.ekho-spin-wheel-pointer {
  position: absolute;
  top: 0.08rem;
  left: 50%;
  z-index: 5;
  width: 0.82rem;
  height: 1.08rem;
  margin-left: 0;
  background: linear-gradient(
    180deg,
    #fef08a 0%,
    #fde047 14%,
    color-mix(in srgb, var(--ekho-accent, #0284c7) 68%, #fff) 46%,
    var(--ekho-accent-hover, #0369a1) 100%
  );
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 5px 14px rgba(15, 23, 42, 0.22),
    0 3px 8px rgba(15, 23, 42, 0.12),
    0 0 20px color-mix(in srgb, var(--ekho-accent, #0284c7) 42%, transparent);
  border-radius: 0.14rem 0.14rem 0 0;
  transform: translateX(-50%) translateZ(0);
  transform-origin: 50% 0;
}

.ekho-spin-wheel-pointer::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 10%;
  width: 42%;
  height: 46%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 72%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  pointer-events: none;
  opacity: 0.72;
}

.ekho-spin-land-nudge .ekho-spin-wheel-pointer {
  animation: ekhoPointerSettle 0.52s cubic-bezier(0.34, 1.35, 0.55, 1) both;
}

@keyframes ekhoPointerSettle {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  45% {
    transform: translateX(-50%) translateY(0.12rem) scale(1.12, 1.18);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ekho-spin-wheel-wrap.ekho-spin-land-nudge {
    animation: ekhoSpinLandWiggle 0.58s cubic-bezier(0.33, 1.15, 0.48, 1) both;
  }
}

@keyframes ekhoSpinLandWiggle {
  0%,
  100% {
    transform: translateZ(0) translateX(0);
  }
  18% {
    transform: translateZ(0) translateX(-5px);
  }
  36% {
    transform: translateZ(0) translateX(5px);
  }
  54% {
    transform: translateZ(0) translateX(-3px);
  }
  72% {
    transform: translateZ(0) translateX(2px);
  }
}

.ekho-spin-wheel-plate {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -22px 44px rgba(15, 23, 42, 0.075);
}

.ekho-spin-wheel-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 115% 95% at 32% 18%, rgba(255, 255, 255, 0.34) 0%, transparent 54%),
    radial-gradient(ellipse 95% 85% at 72% 88%, rgba(15, 23, 42, 0.085) 0%, transparent 50%);
  opacity: 0.88;
}

.ekho-spin-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(30%, 6.75rem);
  height: min(30%, 6.75rem);
  min-width: 2.75rem;
  min-height: 2.75rem;
  max-width: 34%;
  max-height: 34%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 50%;
}

.ekho-spin-hub-disc {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  max-width: 20%;
  max-height: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f1f5f9 52%, #e2e8f0 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 4px color-mix(in srgb, var(--ekho-accent, #0284c7) 26%, transparent),
    0 6px 22px rgba(15, 23, 42, 0.11),
    inset 0 2px 4px rgba(255, 255, 255, 0.85),
    inset 0 -3px 10px rgba(15, 23, 42, 0.06);
  z-index: 0;
}

.ekho-spin-hub-logo {
  position: relative;
  z-index: 1;
  width: min(3rem, 22vw);
  height: min(3rem, 22vw);
  object-fit: contain;
  border-radius: 50%;
  padding: 0.18rem;
  background: radial-gradient(circle at 30% 22%, #ffffff 0%, color-mix(in srgb, var(--ekho-accent-soft, #e0f2fe) 22%, #f8fafc) 58%, #eef2f7 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.96),
    0 0 0 5px color-mix(in srgb, var(--ekho-accent, #0284c7) 32%, transparent),
    0 12px 34px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 18px rgba(15, 23, 42, 0.05);
}

.ekho-spin-wheel-hub-glyph {
  position: relative;
  z-index: 1;
  font-size: clamp(0.85rem, 3.4vw, 1rem);
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.ekho-spin-step--result {
  text-align: center;
}

.ekho-spin-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

#ekho-btn-spin-again.ekho-btn {
  background: var(--ekho-accent);
  color: #fff;
  border: none;
  font-weight: 600;
}

#ekho-btn-spin-again.ekho-btn[hidden] {
  display: none !important;
}

.ekho-spin-result-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 12px;
  padding: 1.1rem 0.9rem 1.15rem;
  margin-bottom: 0.9rem;
  background: var(--ekho-surface-soft);
  border: 1px solid var(--ekho-border);
  animation: ekhoSpinResultIn 0.35s ease-out;
}

.ekho-spin-result-panel.ekho-spin-reveal--win {
  animation: ekhoSpinResultWinEntrance 1.05s cubic-bezier(0.34, 1.45, 0.52, 1) both;
}

.ekho-spin-result-panel.ekho-spin-reveal--lose {
  animation: ekhoSpinResultLoseEntrance 0.88s cubic-bezier(0.37, 1, 0.68, 1) both;
}

.ekho-spin-result-panel.ekho-spin-reveal--win.ekho-spin-result-panel--win-fest {
  animation: ekhoSpinResultWinEntrance 1.05s cubic-bezier(0.34, 1.45, 0.52, 1) both;
}

.ekho-spin-result-panel.ekho-spin-reveal--win,
.ekho-spin-result-panel.ekho-spin-reveal--lose {
  isolation: isolate;
}

.ekho-spin-result-panel.ekho-spin-reveal--win > *,
.ekho-spin-result-panel.ekho-spin-reveal--lose > * {
  position: relative;
  z-index: 1;
}

.ekho-spin-result-panel.ekho-spin-reveal--win::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: 0;
  pointer-events: none;
  border-radius: 15px;
  border: 2px solid transparent;
  opacity: 0;
  animation: ekhoSpinWinAuraRing 2.65s ease-out 0.2s 1 both;
  box-sizing: border-box;
}

.ekho-spin-result-panel.ekho-spin-reveal--win::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(250, 204, 21, 0.55) 0, transparent 0.35rem),
    radial-gradient(circle at 90% 18%, rgba(16, 185, 129, 0.45) 0, transparent 0.32rem),
    radial-gradient(circle at 38% 8%, rgba(2, 132, 199, 0.38) 0, transparent 0.28rem),
    radial-gradient(circle at 72% 82%, rgba(250, 204, 21, 0.5) 0, transparent 0.38rem),
    radial-gradient(circle at 16% 78%, rgba(16, 185, 129, 0.4) 0, transparent 0.3rem),
    radial-gradient(circle at 52% 50%, rgba(255, 255, 255, 0.55) 0, transparent 0.15rem),
    radial-gradient(circle at 84% 62%, rgba(253, 224, 71, 0.45) 0, transparent 0.22rem),
    radial-gradient(circle at 24% 44%, rgba(52, 211, 153, 0.35) 0, transparent 0.24rem);
  background-size: 100% 100%;
  opacity: 0;
  animation: ekhoSpinConfettiShower 1.15s cubic-bezier(0.25, 0.9, 0.35, 1) 0.08s both;
}

.ekho-spin-result-panel.ekho-spin-reveal--lose::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 92% 48% at 50% 0%, rgba(148, 163, 184, 0.22) 0%, transparent 72%),
    radial-gradient(circle at 50% 88%, rgba(148, 163, 184, 0.1) 0, transparent 45%);
  opacity: 0;
  transform: translateY(0);
  animation: ekhoSpinLoseMist 1.05s ease-out both;
}

.ekho-spin-result-text.ekho-spin-line-reveal {
  animation: ekhoSpinLinePop 0.7s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .ekho-spin-wheel-stage:has(.ekho-spin-wheel-wrap--ready)::before {
    display: none;
  }

  .ekho-spin-wheel-wrap--ready,
  .ekho-spin-wheel-wrap--ready .ekho-spin-wheel-pointer,
  .ekho-spin-wheel-wrap--ready .ekho-spin-lbl-mock--gift .ekho-spin-ico-gift,
  .ekho-spin-wheel-wrap.ekho-spin-land-nudge {
    animation: none !important;
  }

  .ekho-spin-result-panel.ekho-spin-reveal--win,
  .ekho-spin-result-panel.ekho-spin-reveal--lose,
  .ekho-spin-result-text.ekho-spin-line-reveal,
  .ekho-spin-land-nudge .ekho-spin-wheel-pointer {
    animation: none !important;
  }
  .ekho-spin-result-panel.ekho-spin-reveal--win::before,
  .ekho-spin-result-panel.ekho-spin-reveal--win::after,
  .ekho-spin-result-panel.ekho-spin-reveal--lose::after {
    display: none;
  }
  .ekho-spin-result-panel {
    animation: none;
  }
  .ekho-spin-win-celebrate::before,
  .ekho-spin-win-celebrate::after {
    animation: none !important;
    transform: none;
  }
  .ekho-spin-win-celebrate::before {
    opacity: 0.35;
  }
  .ekho-spin-win-celebrate::after {
    opacity: 0;
  }
  .ekho-spin-win-headline {
    animation: none;
  }
  .ekho-spin-win-fullscreen-fx.ekho-spin-win-fullscreen-fx--on::before {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
  }
  .ekho-spin-win-fullscreen-fx__flake {
    animation: none !important;
    opacity: 0 !important;
  }
}

@keyframes ekhoSpinResultIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes ekhoSpinResultWinEntrance {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(0.7rem) rotate(-2deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.07) translateY(-0.12rem) rotate(0.9deg);
  }
  75% {
    transform: scale(0.985) translateY(0.04rem) rotate(-0.25deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@keyframes ekhoSpinWinAuraRing {
  0% {
    opacity: 0;
    transform: scale(0.96);
    border-color: rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0), 0 0 0 0 rgba(16, 185, 129, 0);
  }
  32% {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(16, 185, 129, 0.42);
    box-shadow:
      0 0 0 1px rgba(250, 204, 21, 0.4),
      0 0 36px rgba(250, 204, 21, 0.28),
      0 14px 44px -10px rgba(16, 185, 129, 0.38);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(16, 185, 129, 0.16);
    box-shadow:
      0 0 0 1px rgba(16, 185, 129, 0.12),
      0 10px 36px -12px rgba(16, 185, 129, 0.22),
      0 0 24px rgba(250, 204, 21, 0.08);
  }
}

@keyframes ekhoSpinResultLoseEntrance {
  0% {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ekhoSpinConfettiShower {
  0% {
    opacity: 0;
    transform: scale(0.42) translateY(-14%);
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0.44;
    transform: scale(1.03) translateY(5%);
  }
}

@keyframes ekhoSpinLoseMist {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(1.03);
  }
  50% {
    opacity: 0.48;
  }
  100% {
    opacity: 0.16;
    transform: translateY(4px) scale(1);
  }
}

@keyframes ekhoSpinLinePop {
  0% {
    opacity: 0;
    transform: translateY(0.3rem) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.ekho-spin-result-panel--win {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}

.ekho-spin-result-panel--lose {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.ekho-spin-result-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ekho-muted);
  margin: 0 0 0.4rem;
}

.ekho-spin-result-panel--win .ekho-spin-result-kicker {
  color: #166534;
}

.ekho-spin-result-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--ekho-text);
}

.ekho-spin-win-instruction {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ekho-muted);
  margin: 0.5rem 0 0;
  max-width: 100%;
}

.ekho-spin-result-panel--lose .ekho-spin-win-instruction {
  display: none;
}

.ekho-spin-result-panel--win .ekho-spin-win-instruction {
  color: #166534;
  opacity: 0.9;
}

.ekho-spin-result-panel--lose .ekho-spin-result-text {
  font-weight: 500;
  color: var(--ekho-muted);
}

.ekho-spin-rules {
  text-align: center;
  margin: 0;
}

.ekho-spin-rules--before {
  margin-bottom: 0.4rem;
}

.ekho-spin-rules--after {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ekho-border);
}

.ekho-spin-rules .ekho-spin-rules-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ekho-muted);
  white-space: pre-line;
}

.ekho-spin-win-celebrate {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.ekho-spin-win-celebrate::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 150%;
  height: 150%;
  margin-left: -75%;
  margin-top: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(16, 185, 129, 0.22) 0deg,
    rgba(2, 132, 199, 0.16) 100deg,
    rgba(250, 204, 21, 0.2) 200deg,
    rgba(52, 211, 153, 0.18) 300deg,
    rgba(16, 185, 129, 0.22) 360deg
  );
  animation: ekhoSpinWinBurst 1s cubic-bezier(0.22, 0.95, 0.28, 1) forwards;
  opacity: 0.8;
}

.ekho-spin-win-celebrate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.9) 0, transparent 0.08rem),
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.85) 0, transparent 0.07rem),
    radial-gradient(circle at 50% 18%, rgba(253, 224, 71, 0.95) 0, transparent 0.09rem),
    radial-gradient(circle at 65% 55%, rgba(255, 255, 255, 0.75) 0, transparent 0.06rem),
    radial-gradient(circle at 35% 62%, rgba(255, 255, 255, 0.7) 0, transparent 0.065rem);
  background-size: 100% 100%;
  opacity: 0;
  animation: ekhoSpinWinSparkle 1.15s ease-out 0.12s both;
}

@keyframes ekhoSpinWinBurst {
  0% {
    transform: scale(0.18) rotate(0deg);
    opacity: 0;
  }
  42% {
    opacity: 0.92;
  }
  100% {
    transform: scale(1.12) rotate(48deg);
    opacity: 0.38;
  }
}

@keyframes ekhoSpinWinSparkle {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.ekho-spin-win-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #15803d;
  margin: 0 0 0.45rem;
  line-height: 1.15;
  animation: ekhoSpinWinHead 0.75s cubic-bezier(0.22, 0.9, 0.28, 1) 0.04s both;
}

@keyframes ekhoSpinWinHead {
  0% {
    opacity: 0;
    transform: scale(0.68) translateY(0.45rem);
    text-shadow: 0 0 0 transparent;
  }
  45% {
    text-shadow:
      0 0 18px rgba(250, 204, 21, 0.55),
      0 0 36px rgba(16, 185, 129, 0.25);
  }
  100% {
    opacity: 1;
    transform: none;
    text-shadow: 0 2px 14px rgba(16, 185, 129, 0.18);
  }
}

.ekho-spin-result-panel--win .ekho-spin-result-text {
  position: relative;
  z-index: 1;
  font-size: clamp(1.08rem, 3.2vw, 1.28rem);
  font-weight: 700;
  color: var(--ekho-text);
  margin-top: 0.1rem;
}

.ekho-spin-result-panel--win .ekho-spin-rules--after {
  position: relative;
  z-index: 1;
  border-top-color: rgba(22, 101, 52, 0.15);
}

.ekho-vitrine-card {
  margin-bottom: 1rem;
}

.ekho-vitrine-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--ekho-text);
  border: none;
  line-height: 1.3;
}

.ekho-vitrine-section-title--hours {
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ekho-border) 55%, transparent);
}

.ekho-vitrine-intro-text {
  white-space: pre-wrap;
  margin: 0 0 1rem;
  color: var(--ekho-muted);
  line-height: 1.55;
}

.ekho-vitrine-returning-loyalty-msg {
  margin: 0.75rem 0 0;
  color: var(--ekho-muted);
  line-height: 1.55;
}

.ekho-vitrine-intro-card .ekho-vitrine-intro-text:last-child {
  margin-bottom: 0;
}

.ekho-vitrine-outbound-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}

.ekho-vitrine-outbound-links--after-intro {
  margin-top: 1rem;
}

.ekho-vitrine-outbound-item-wrap {
  margin: 0;
  padding: 0;
}

.ekho-vitrine-outbound-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ekho-border) 85%, transparent);
  background: color-mix(in srgb, var(--ekho-surface, #fff) 94%, var(--ekho-border) 6%);
  color: var(--ekho-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ekho-vitrine-outbound-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--ekho-accent, #475569) 14%, rgba(15, 23, 42, 0.08));
}

.ekho-vitrine-outbound-link:focus-visible {
  outline: 2px solid var(--ekho-focus, var(--ekho-accent));
  outline-offset: 2px;
}

.ekho-vitrine-outbound-link__icon {
  display: flex;
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ekho-vitrine-outbound-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ekho-vitrine-outbound-link--facebook {
  color: #1877f2;
}

.ekho-vitrine-outbound-link--instagram {
  color: #e4405f;
}

.ekho-vitrine-outbound-link--tiktok {
  color: #000000;
}

.ekho-vitrine-outbound-link--website {
  color: #334155;
}

.ekho-vitrine-outbound-link__txt {
  color: inherit;
}

.ekho-vitrine-join {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ekho-border);
  text-align: center;
}

.ekho-vitrine-join-label {
  margin: 0 auto 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ekho-text);
  max-width: 22rem;
  line-height: 1.45;
}

.ekho-vitrine-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.ekho-vitrine-social-icons li {
  margin: 0;
  padding: 0;
}

.ekho-vitrine-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ekho-surface, #fff) 88%, var(--ekho-border) 12%);
  border: 1px solid var(--ekho-border);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.ekho-vitrine-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ekho-accent) 18%, rgba(15, 23, 42, 0.08));
}

.ekho-vitrine-social-btn:focus-visible {
  outline: 2px solid var(--ekho-focus, var(--ekho-accent));
  outline-offset: 2px;
}

.ekho-vitrine-social-btn__icon {
  display: flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
}

.ekho-vitrine-social-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ekho-vitrine-social-btn--facebook {
  color: #1877f2;
}

.ekho-vitrine-social-btn--instagram {
  color: #e4405f;
}

.ekho-vitrine-social-btn--tiktok {
  color: #000000;
}

.ekho-vitrine-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ekho-vitrine-hours-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 34%) 1fr;
  gap: 0.35rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ekho-border) 70%, transparent);
  align-items: start;
}

.ekho-vitrine-hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ekho-vitrine-hours-row:first-child {
  padding-top: 0;
}

.ekho-vitrine-hours-day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-weight: 600;
  color: var(--ekho-text);
  font-size: 0.95rem;
}

.ekho-vitrine-hours-today-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
  background: color-mix(in srgb, var(--ekho-accent) 16%, var(--ekho-surface, #fff));
  color: var(--ekho-accent-hover, var(--ekho-accent));
  border: 1px solid color-mix(in srgb, var(--ekho-accent) 35%, var(--ekho-border));
}

.ekho-vitrine-hours-row--today {
  margin-left: -0.45rem;
  margin-right: -0.45rem;
  padding-left: calc(0.45rem + 3px);
  padding-right: 0.45rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  background: color-mix(in srgb, var(--ekho-accent, #0284c7) 10%, var(--ekho-surface, #fff));
  border-radius: calc(var(--ekho-radius, 10px) * 0.85);
  border: 1px solid color-mix(in srgb, var(--ekho-accent, #0284c7) 22%, var(--ekho-border));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  border-left: 3px solid var(--ekho-accent);
}

.ekho-vitrine-hours-row--today .ekho-vitrine-hours-slots {
  font-weight: 500;
  color: var(--ekho-text);
}

.ekho-vitrine-hours-row--today.ekho-vitrine-hours-row--closed .ekho-vitrine-hours-slots {
  color: var(--ekho-muted);
  font-weight: 500;
}

.ekho-vitrine-hours-slots {
  color: var(--ekho-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.ekho-vitrine-hours-slot-line {
  display: block;
  width: 100%;
  max-width: 16rem;
}

.ekho-vitrine-hours-slot-line:not(:last-child) {
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--ekho-border) 55%, transparent);
}

.ekho-vitrine-hours-row--closed .ekho-vitrine-hours-slots {
  font-style: italic;
  opacity: 0.9;
}

.ekho-vitrine-hours-row--closed .ekho-vitrine-hours-slot-line:not(:last-child) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

@media (max-width: 360px) {
  .ekho-vitrine-hours-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .ekho-vitrine-hours-slots {
    text-align: left;
    padding-left: 0.15rem;
    align-items: flex-start;
  }

  .ekho-vitrine-hours-slot-line {
    max-width: none;
  }

  .ekho-vitrine-hours-row--today {
    margin-left: 0;
    margin-right: 0;
    padding-left: calc(0.35rem + 3px);
    padding-right: 0.35rem;
  }
}

.ekho-vitrine-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ekho-vitrine-link-item {
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ekho-border) 75%, transparent);
}

.ekho-vitrine-link-item:last-child {
  border-bottom: none;
}

.ekho-vitrine-external-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  text-decoration: none;
  color: var(--ekho-accent);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.35;
}

.ekho-vitrine-external-link:hover {
  color: var(--ekho-accent-hover, var(--ekho-accent));
  text-decoration: underline;
}

.ekho-vitrine-link-icon {
  flex-shrink: 0;
  display: flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
}

.ekho-vitrine-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ekho-vitrine-link-icon--facebook {
  color: #1877f2;
}

.ekho-vitrine-link-icon--instagram {
  color: #e4405f;
}

.ekho-vitrine-link-icon--tiktok {
  color: #000000;
}

.ekho-vitrine-link-label {
  min-width: 0;
  word-break: break-word;
}

.ekho-vitrine-welcome-offer .ekho-welcome-offer-intro {
  line-height: 1.5;
}
