:root {
  --accent: #ffd700;
  --accent-strong: #ffe560;
  --accent-soft: rgba(255, 215, 0, 0.14);
  --bg: #050505;
  --bg-2: #0b0b0b;
  --surface: #111111;
  --surface-2: #171717;
  --surface-3: #202020;
  --surface-4: #262626;
  --border: #333333;
  --text: #ffffff;
  --muted: #8d8d8d;
  --success: #00e676;
  --danger: #ff5757;
  --info: #66b7ff;
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.1), transparent 28%),
    linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-device {
  width: min(1220px, 100%);
  min-height: calc(100vh - 48px);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.97), rgba(5, 5, 5, 0.98));
  border: 8px solid #202020;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 20px rgba(255, 215, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.page-device.merchant-app,
.page-device.view-login,
.page-device.view-dashboard,
.page-device.view-create,
.page-device.view-draw {
  width: min(375px, 100%);
  min-height: min(740px, calc(100vh - 48px));
}


.status-bar {
  display: none;
}

.status-icons {
  display: none;
}

.app-screen {
  flex: 1;
  padding: 0 26px 28px;
  overflow-y: auto;
}

.app-screen.merchant-app,
.app-screen.view-login,
.app-screen.view-dashboard,
.app-screen.view-create,
.app-screen.view-draw {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-screen.view-login {
  justify-content: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.topbar h1,
.panel h2,
.panel h3,
.entity-card h4,
.auth-card h2 {
  margin: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 16px;
  min-width: 200px;
}

.user-chip span,
.muted-copy,
.muted-line,
.table-wrap td,
.table-wrap th,
.field-block span,
.compact-list,
.info-list span,
.merchant-field span,
.merchant-event-head p,
.merchant-empty-state span,
.merchant-empty-inline span,
.merchant-participant-row span,
.draw-helper-copy,
.winner-contact,
.winner-stamp,
.merchant-login-footnote {
  color: var(--muted);
}

.eyebrow,
.mini-label,
.merchant-section-tag {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.mini-label {
  color: rgba(255, 215, 0, 0.78);
}

.content-grid {
  display: grid;
  gap: 20px;
}

.two-column {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.single-column,
.narrow-column {
  max-width: 860px;
  margin: 0 auto;
}

.stack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel,
.auth-card,
.entity-card,
.sub-panel,
.merchant-card,
.merchant-form-card {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(17, 17, 17, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 20px;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.subtle-panel {
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.95), rgba(12, 12, 12, 1));
}

.center-screen {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.install-card {
  width: min(680px, 100%);
}

.instruction-list,
.compact-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
}

.stack-form,
.merchant-stack-form {
  display: grid;
  gap: 16px;
}

.form-grid,
.merchant-grid {
  display: grid;
  gap: 14px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-block,
.merchant-field {
  display: grid;
  gap: 8px;
}

.field-block span,
.merchant-field span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

input,
textarea,
select,
.merchant-field input,
.merchant-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.12);
}

input:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.primary-button,
.secondary-button,
.ghost-button,
.merchant-primary-button,
.merchant-secondary-button,
.merchant-link-button,
.icon-button,
.mini-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.merchant-primary-button:hover,
.merchant-secondary-button:hover,
.merchant-link-button:hover,
.icon-button:hover,
.mini-icon-button:hover {
  transform: translateY(-1px);
}

.primary-button,
.merchant-primary-button {
  background: var(--accent);
  color: #0f0f0f;
  box-shadow: 0 14px 32px rgba(255, 215, 0, 0.22);
  padding: 13px 18px;
}

.secondary-button,
.merchant-secondary-button {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 18px;
}

.ghost-button,
.merchant-link-button {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 13px 18px;
}

.inline-button,
.small-button {
  padding-inline: 14px;
}

.danger-button {
  border-color: rgba(255, 87, 87, 0.4);
  color: #ffb6b6;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin: 0 18px 14px;
}

.app-screen.admin-app .flash-stack {
  margin: 0 0 18px;
}

.flash {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.flash-success {
  background: rgba(0, 230, 118, 0.12);
  color: #b7ffd9;
  border-color: rgba(0, 230, 118, 0.2);
}

.flash-error {
  background: rgba(255, 87, 87, 0.12);
  color: #ffd3d3;
  border-color: rgba(255, 87, 87, 0.25);
}

.flash-info {
  background: rgba(102, 183, 255, 0.12);
  color: #d1eaff;
  border-color: rgba(102, 183, 255, 0.22);
}

.section-heading,
.entity-card-top,
.card-actions,
.draw-panel-header,
.merchant-section-head,
.merchant-inline-actions,
.merchant-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
}

.counter-pill,
.badge,
.ticket-pill,
.draw-title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.counter-pill {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
}

.badge-success {
  background: rgba(0, 230, 118, 0.14);
  color: #afffd2;
}

.badge-danger {
  background: rgba(255, 87, 87, 0.14);
  color: #ffc2c2;
}

.badge-accent {
  background: rgba(255, 215, 0, 0.16);
  color: #ffe889;
}

.card-list,
.participant-list {
  display: grid;
  gap: 14px;
}

.entity-card {
  padding: 18px;
}

.entity-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 74px;
}

.stat-chip strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.title-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
}

.title-tags li {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: #ffe38d;
  border: 1px solid rgba(255, 215, 0, 0.14);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 14px;
}

.empty-state,
.merchant-empty-inline,
.merchant-empty-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.inline-form {
  margin: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.toggle-row input {
  width: auto;
}

.sticky-actions {
  padding-top: 6px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-list div:last-child {
  border-bottom: none;
}

/* Merchant experience */
.merchant-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.merchant-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(12, 12, 12, 0.96));
  flex-shrink: 0;
}

.merchant-nav.centered-title {
  justify-content: space-between;
}

.merchant-nav-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.merchant-nav-title h1,
.merchant-brand-lockup h1,
.merchant-overview-top h2,
.merchant-section-head h3,
.merchant-event-head h3,
.winner-copy-block h2 {
  margin: 0;
}

.merchant-nav-title h1 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 18px;
}

.merchant-nav-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button,
.mini-icon-button {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.icon-button.ghost {
  opacity: 0.35;
  pointer-events: none;
}

.mini-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
}

.mini-icon-button.danger {
  color: #ffb6b6;
  border-color: rgba(255, 87, 87, 0.2);
}

.merchant-panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scrollbar-width: none;
}

.merchant-panel-scroll::-webkit-scrollbar {
  display: none;
}

.merchant-bottom-bar {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.9), rgba(12, 12, 12, 0.98));
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.merchant-bottom-bar.two-buttons > * {
  flex: 1;
}

.merchant-primary-button.full-width,
.merchant-secondary-button.full-width,
.merchant-link-button.full-width {
  width: 100%;
}

.bottom-link {
  align-self: center;
}

.merchant-login-screen {
  justify-content: center;
  padding: 28px 24px 34px;
}

.merchant-login-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.merchant-brand-lockup {
  text-align: center;
  padding-bottom: 10px;
}

.merchant-brand-lockup.spacious-lockup {
  padding-bottom: 2px;
}

.merchant-brand-lockup h1 {
  font-size: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.merchant-brand-lockup p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.merchant-auth-form,
.setup-card-content,
.merchant-login-footnote {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(12, 12, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px;
}

.spacious-auth-form {
  padding: 26px 22px 22px;
  gap: 22px;
}

.field-block,
.merchant-field {
  display: grid;
  gap: 12px;
  padding-bottom: 5px;
}

.spacious-field {
  gap: 12px;
}

.spacious-field span {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.spacious-auth-form input {
  padding: 16px 16px;
  border-radius: 16px;
}

.merchant-login-submit {
  margin-top: 6px;
  min-height: 52px;
  width: 100%;
  display: flex;
}

.setup-panel {
  width: 100%;
}

.merchant-event-list,
.merchant-participant-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.merchant-event-card {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(16, 16, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.merchant-event-head,
.merchant-meta-row,
.merchant-cta-row,
.merchant-status-row,
.merchant-mini-stats,
.merchant-icon-actions,
.winner-actions,
.merchant-participant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.merchant-event-head h3 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.merchant-event-head p {
  font-size: 11px;
}

.merchant-icon-actions {
  justify-content: flex-end;
}

.merchant-meta-row {
  padding-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.draw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.draw-status.ready {
  color: var(--success);
}

.draw-status.drawn {
  color: var(--accent);
}

.merchant-cta-row > * {
  flex: 1;
}

.merchant-overview-card {
  gap: 18px;
}

.merchant-create-screen .merchant-grid.two-up {
  grid-template-columns: 1fr;
}

.merchant-mini-stats {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.merchant-mini-stats span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.merchant-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.merchant-participant-row:last-child {
  border-bottom: none;
}

.merchant-participant-row strong {
  display: block;
  margin-bottom: 4px;
}

.ticket-pill {
  background: rgba(255, 215, 0, 0.12);
  color: var(--accent);
}

.merchant-empty-state {
  min-height: 320px;
}

.merchant-empty-icon {
  font-size: 52px;
  opacity: 0.3;
}

.onboarding-tip {
  min-height: 160px;
  padding: 8px;
}

/* Draw screen */
.merchant-draw-screen {
  background: radial-gradient(circle at center, #151515 0%, #050505 100%);
}

.draw-nav {
  position: relative;
  z-index: 3;
}

.merchant-draw-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.merchant-draw-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.12) 0%, transparent 62%);
  opacity: 0.7;
  pointer-events: none;
}

.draw-state {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.draw-title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 9px 16px;
  border-radius: 14px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.18);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 20px;
}

.draw-orb,
.winner-orb {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 4px solid rgba(255, 215, 0, 0.24);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.12), 0 0 36px rgba(255, 215, 0, 0.1);
}

.draw-orb-count {
  font-size: 52px;
  line-height: 1;
  font-weight: 800;
}

.draw-orb-label,
.winner-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.draw-helper-copy {
  max-width: 270px;
  margin: 24px auto 18px;
  font-size: 13px;
  line-height: 1.5;
}

.draw-state-ready .merchant-primary-button {
  width: 100%;
}

.draw-rolling-label {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: pulse-text 1s ease-in-out infinite;
}

.draw-rolling-card {
  width: 100%;
  min-height: 188px;
  border: 2px solid rgba(255, 215, 0, 0.26);
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.94);
  box-shadow: inset 0 0 34px rgba(255, 215, 0, 0.14), 0 0 54px rgba(255, 215, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 20px;
}

.draw-flash-name,
.winner-name {
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  overflow-wrap: anywhere;
}

.draw-flash-ticket,
.winner-ticket {
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.draw-loader-dots {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.draw-loader-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  animation: bounce-dot 1.1s ease-in-out infinite;
}

.draw-loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.draw-loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.draw-state-winner {
  gap: 22px;
}

.draw-state-winner.is-visible {
  animation: winnerReveal 0.55s ease;
}

.winner-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 215, 0, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 15% 80%, rgba(255, 215, 0, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 78%, rgba(255, 215, 0, 0.12) 0 2px, transparent 3px),
    repeating-linear-gradient(45deg, rgba(255, 215, 0, 0.04) 0 2px, transparent 2px 10px);
}

.winner-orb {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.22), 0 0 40px rgba(255, 215, 0, 0.22);
}

.winner-copy-block {
  position: relative;
  z-index: 1;
  text-align: center;
}

.winner-copy-block h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.winner-copy-block p {
  margin: 5px 0;
  font-size: 13px;
}

.winner-actions {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-direction: column;
}

.winner-actions > * {
  width: 100%;
}

/* Motion */
.screen-enter {
  animation-duration: 0.34s;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

.fade-up {
  animation-name: fadeUp;
}

.slide-left {
  animation-name: slideLeft;
}

.slide-right {
  animation-name: slideRight;
}

.zoom-in {
  animation-name: zoomIn;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-text {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 1;
  }
}

@keyframes bounce-dot {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.45;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes winnerReveal {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  75% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.dashboard-stack {
  display: grid;
  gap: 20px;
}

.admin-hero-panel {
  align-items: center;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-panel {
  padding: 18px;
}

.admin-stat-panel strong {
  display: block;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  margin-bottom: 8px;
}

.admin-stat-panel span {
  color: var(--muted);
  font-size: 13px;
}

.admin-filter-panel {
  display: grid;
  gap: 18px;
}

.admin-filter-head {
  align-items: flex-start;
}

.admin-filter-form {
  display: grid;
  gap: 16px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(190px, 1fr));
  gap: 14px;
}

.admin-filter-search {
  min-width: 0;
}

.admin-filter-actions {
  padding-bottom: 0;
}

.admin-events-table .table-primary {
  font-weight: 700;
  color: var(--text);
}

.table-secondary,
.winner-cell-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-inline-badge {
  margin-bottom: 4px;
}

@media (max-width: 1180px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-shell {
    padding: 0;
  }

  .admin-stats-grid,
  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .page-device {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border-width: 0;
  }

  .two-column,
  .two-up,
  .hero-panel,
  .topbar,
  .section-heading,
  .entity-card-top,
  .card-actions,
  .merchant-section-head,
  .merchant-inline-actions,
  .merchant-overview-top {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions,
  .merchant-event-head,
  .merchant-meta-row,
  .merchant-cta-row,
  .merchant-status-row,
  .merchant-participant-row,
  .merchant-participant-actions,
  .winner-actions,
  .merchant-bottom-bar.two-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .user-chip {
    min-width: 0;
  }
}
